Hello
...So exactly the same as the previous run. When I edited the code and recompiled, I would expect to see an updated journal. What's happening?
Cheers
This is not a bug, it's a feature ;-) You don't have to change your code to test with others parameters values. As you have declared them as "input", you can change these values directly from the Inputs tab on the Strategy Tester.
If you right-click within this tab, you have context menu with more options to save, load or reset to defaults.
Oh good - an aspect I'd missed. Cheers.
Although shortly after I read your post, I looked again. Notice
input int gap = 7;
and then
SL = gap;
and then
SL = SL * 10;
and then
Print("INIT: SL: ", SL);
which with my broker means the output should be 70. But as we see above, we get
2013.04.30 13:23:04 2011.07.18 00:00:00 INIT: SL: 180Irrespective of the constance of the input variables within the code, this doesn't look right to me or is there an explanation? Let me know if I should post this separately.
Oh good - an aspect I'd missed. Cheers.
Although shortly after I read your post, I looked again. Notice
and then
and then
and then
which with my broker means the output should be 70. But as we see above, we get
Oh good - an aspect I'd missed. Cheers.
Although shortly after I read your post, I looked again. Notice
and then
and then
and then
which with my broker means the output should be 70. But as we see above, we get
This is the result of running in the Strategy Tester ?
If yes, then what is the value of gap in Inputs tab of Strategy Tester ?
Ah yes I see it is 18. Which explains everything except how it was originally given this value. I imagine it must have been a typo somewhere as I renamed the vars for the post.
Thanks for your help.
Ah yes I see it is 18. Which explains everything except how it was originally given this value. I imagine it must have been a typo somewhere as I renamed the vars for the post.
Thanks for your help.
- 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 getting this weird result from MT5 strat tester. I have the simplest code snippet to prove that the problem is reproducable. I assign a few external input variables in the code. I run the code and check the journal of the tester as I output the values. When I stop the test, close the window, edit the variable values so they are different, and then restart the test from the terminal, the output in the journal log are the ones from the previous test and not the current one. Argh! Why is this, and how can I work around the problem?
Code:
The result of this in the tester:
And now I modify the code from the above EA:
And the resulting output is
So exactly the same as the previous run. When I edited the code and recompiled, I would expect to see an updated journal. What's happening?
Cheers