That's because you change the default settings in the code file, but once the binary has been loaded by the terminals strategy tester, settings need to be changed in the terminal.
Open the terminal and press CTRL-R to open the dialog for the tester, now switch to the tab inputs. There you change the settings which will be used in the strategy tester.
Dominik Christian Egert #:
Much appreciated. Thank you.
That's because you change the default settings in the code file, but once the binary has been loaded by the terminals strategy tester, settings need to be changed in the terminal.
Open the terminal and press CTRL-R to open the dialog for the tester, now switch to the tab inputs. There you change the settings which will be used in the strategy tester.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This code runs completely fine until the input variables are changed on Strategy Tester.
i.e. At first I tested the code with StartHour = 8 but when I change it to a random figure, in this case 15, it still runs as if the StartHour was 8.
The lines below are from the Journal in MT5 once the values have been changed to StartHour = 15.
I have closed MT5 and launched it again but the same problem occurs. The only solution I have found is the 'copy + paste' on to a new 'project'.
Is there a fix for this or is this is a bug caused from the constant updates?