Hi everybody
I've got a file (var.txt) with some variables
//************var.txt*********************//
double high_d1 = iHigh(NULL, PERIOD_D1, Current + 0);
double low_d1 = iLow(NULL, PERIOD_D1, Current + 0);
double highp1_d1 = iHigh(NULL, PERIOD_D1, Current + 1);
double lowp1_d1 = iLow(NULL, PERIOD_D1, Current + 1);
double sto14 = iStochastic(NULL, 0, 14, 3, 5, MODE_EMA, 0, MODE_MAIN, Current + 0);
double sto14s = iStochastic(NULL, 0, 14, 3, 5, MODE_EMA, 0, MODE_SIGNAL, Current + 0);
double sar = iSAR(NULL, 0, 0.02, 0.2, Current + 0);
double open = iOpen(NULL, 0, Current + 0);
double close = iClose(NULL, 0, Current + 0);
//*******************************//
and I want to put this file in an mq4 file (test.mq4) with the fonction "include" like this
#include <var.txt>
But the programm return this message : " #include <var.txt> cannot open the programm file"
Is it possible to do that ? and how?
Thanks in advance for your help!!
I've got a file (var.txt) with some variables
//************var.txt*********************//
double high_d1 = iHigh(NULL, PERIOD_D1, Current + 0);
double low_d1 = iLow(NULL, PERIOD_D1, Current + 0);
double highp1_d1 = iHigh(NULL, PERIOD_D1, Current + 1);
double lowp1_d1 = iLow(NULL, PERIOD_D1, Current + 1);
double sto14 = iStochastic(NULL, 0, 14, 3, 5, MODE_EMA, 0, MODE_MAIN, Current + 0);
double sto14s = iStochastic(NULL, 0, 14, 3, 5, MODE_EMA, 0, MODE_SIGNAL, Current + 0);
double sar = iSAR(NULL, 0, 0.02, 0.2, Current + 0);
double open = iOpen(NULL, 0, Current + 0);
double close = iClose(NULL, 0, Current + 0);
//*******************************//
and I want to put this file in an mq4 file (test.mq4) with the fonction "include" like this
#include <var.txt>
But the programm return this message : " #include <var.txt> cannot open the programm file"
Is it possible to do that ? and how?
Thanks in advance for your help!!