Hello,
I'm writing an indicator and have defined a variable 'BarsToProcess'.
However, on line 63 and 64, when compiling, I receive the message that this variable 'BarsToProcess' is not defined. I tried to define again, but then I receive message that it is already defined ...
I attach the mq4 file in txt format 'randomIndicator.txt' so you can read it.
Thank you for your comments.
You declared this . . .
extern int BarsToProcess=100;
and tried to use this . . .
if(limit > barsToProcess) // barsToProcess: variable not defined limit = barsToProcess;
They are not the same variable.
Hello,
I'm writing an indicator and have defined a variable 'BarsToProcess'.
However, on line 63 and 64, when compiling, I receive the message that this variable 'BarsToProcess' is not defined. I tried to define again, but then I receive message that it is already defined ...
I attach the mq4 file in txt format 'randomIndicator.txt' so you can read it.
Thank you for your comments.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I'm writing an indicator and have defined a variable 'BarsToProcess'.
However, on line 63 and 64, when compiling, I receive the message that this variable 'BarsToProcess' is not defined. I tried to define again, but then I receive message that it is already defined ...
I attach the mq4 file in txt format 'randomIndicator.txt' so you can read it.
Thank you for your comments.