I remember that when I was into this subject, there were many nuances. Something showed right or wrong, depending on the OnTester* function. Try to call it in different On-functions.
What do you mean different? I need it in OnTesterInit - there are no other options.
This only confirms my test case: setting a parameter in MQL has no effect on its subsequent reading in OnTesterInit. In the other handlers, it's too late to adjust anything, as the passes are determined by the initial settings.
#import "z.ex5"//(1) Error: '#import' - #import was not closed#import
/*
.
.
.
*/#import "z.ex5" //(2)
The 2nd #import is not closed, but the error is on the 1st one - therefore the real error location is shown incorrectly - it took me a long time to figure out what was wrong
Is the current behaviour correct when the Expert Advisor in frame mode on the Terminal chart is run with the default input parameters rather than those set in the Tester Parameter tab?
I remember that when I was into this subject, there were many nuances. Something showed right or wrong, depending on the OnTester* function. Try to call it in different On-functions.
What do you mean different? I need it in OnTesterInit - there are no other options.
What do you mean different? I need it in OnTesterInit - no other options.
Forum on trading, automated trading systems and strategy testing
Bugs, bugs, questions
fxsaber, 2017.08.15 17:49
ParameterGetRange does not work in OnTesterInit.This only confirms my test case: setting a parameter in MQL has no effect on its subsequent reading in OnTesterInit. In the other handlers, it's too late to adjust anything, as the passes are determined by the initial settings.
The 2nd #import is not closed, but the error is on the 1st one - therefore the real error location is shown incorrectly - it took me a long time to figure out what was wrong
Function:
in tick generation mode returns a maximum of 131072 ticks. Is this a bug, a feature, does the documentation say anything about this?
In real ticks mode, there is no such limitation.