As indicators don't really work if started by the debugger, copy your idea into a script and go through your code line by line.
But even correctly compiled scripts causes repeating problems in the debugger: You'll find:
2015.10.26 10:36:49.576 cannot open file 'C:\..\MQL4\Scripts\test_script02.ex4' [2]
Just save the script with File => Save As.. under the same name!
BTW do you know the default value of indicator buffers and how to set it: SetIndexEmptyValue()?
As indicators don't really work if started by the debugger, copy your idea into a script and go through your code line by line.
But even correctly compiled scripts causes repeating problems in the debugger: You'll find:
Just save the script with File => Save As.. under the same name!
BTW do you know the default value of indicator buffers and how to set it: SetIndexEmptyValue()?
When I delete the line "double ratio=x1/x2;" and "*ratio",the client terminal will generate the graph normally.
But when I add the "double ratio=x1/x2;" back,the graph in the seperate window disappear and there is -950000 on the vertical axis.
you might have a zero divide check x2 to be != 0!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
This is my program code,l always don't know why there is a number -9500000 and my customer indicator don't generate.