Input variables

 
Hello everyone.
I have a problem with backtesting my expert.
I defined some inputs with initial values. Although I change their values ​​every time and compile, it only uses the values ​​from the first time I run the backtest.
Can anyone help me?
 
Reza.mh:
Hello everyone.
I have a problem with backtesting my expert.
I defined some inputs with initial values. Although I change their values ​​every time and compile, it only uses the values ​​from the first time I run the backtest.
Can anyone help me?
Restart your terminal and try again.
 

In MT5, go to File==>Open Data Folder==>Tester==>cache, and delete all files. Then back out to Tester==>logs, and delete all files. Finally, go back to the Data Folder==>MQL5==>Profiles==>Tester, and delete all files inside the Symbols folder and below the Symbols folder. Close the Data Folder, restart MT5, and start a fresh backtest.

If you inspect your previous duplicate backtest, you'll likely find an entry in the Tester Journal that reads something like, "Settings applied from [blah blah blah].txt". In my experience, it can refuse to go away until I delete all of the Tester history.

If all else fails, just rename your most recent code edit to something new like "[blah blah blah]_v2". That will disassociate the EA from whichever buggy file remains in the Tester.

(This post assumes that you've changed your Tester Inputs settings, and that those new settings failed to take effect).

 
Reza.mh:
Hello everyone.
I have a problem with backtesting my expert.
I defined some inputs with initial values. Although I change their values ​​every time and compile, it only uses the values ​​from the first time I run the backtest.
Can anyone help me?

This is normal. If you change the Defaults, you need to reset the input values in the Tester.