I noticed that the strategy tester is doing some caching and will ignore new logic after making changes in a script
If you are referring to input parameters, then yes, it is cached as documented (it is wise to read the documentation).
So, in the "Inputs" Section, right-click and choose "Defaults" to set the values to the new default values set in the compiled program, if you have changed them.
You can also save an reload different set of parameter values for various testing conditions.
If you are referring to input parameters, then yes, it is cached as documented (it is wise to read the documentation).
So, in the "Inputs" Section, right-click and choose "Defaults" to set the values to the new default values set in the compiled program, if you have changed them.
You can also save an reload different set of parameter values for various testing conditions.
Oh great, that fixes it. I was thinking I might have had to make input parameters for all things but I don't need to. I'll be taking time to look into the documentation, thanks.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I could make a change in the code (lets say I alter the EA so that it will have a fixed SL of 25 points), then I recompile the script in the MetaEditor, and run it again in the strategy tester. It does not act on the changes I made in the code unless I compile the script under a new filename. Why is this? I tried deleting the contents of the testing folder, but this didn't remove this caching/history saving. Any ideas?
My only solution right now is to save the script with a new version number in the filename and compile that one.