Change Parameters of Expert Advisor while backtesting

To add comments, please log in or register
Lerooy
22
Lerooy  

Hi,

I am the only one who get the parameters get reanitialized when I change them to proced to a backtest ?

Each time I change a parameter in the ''Placement'' tab, for example initial lot, and going for the backtest, it changes it automatically to the initial value.

It happens that I can't really modulate values and test for different strategies ... 

Is it normal ?

Best regards

Files:
Anthony Garot
2585
Anthony Garot  
Each time I change a parameter in the ''Placement'' tab, for example initial lot, and going for the backtest, it changes it automatically to the initial value.

That doesn't happen to me. Each time I change a parameter in the "Inputs" tab, that value is retained. (Apparently "Inputs" is "Placement" in English.)

These values are stored in a .set file in the following directory:

\MQL5\Profiles\Tester\

Perhaps your directory is set to Read-Only (through the Windows file system), which means MT5 cannot write the values to the appropriate .set file.

Petr Nosek
1966
Petr Nosek  
Lerooy:

Hi,

I am the only one who get the parameters get reanitialized when I change them to proced to a backtest ?

Each time I change a parameter in the ''Placement'' tab, for example initial lot, and going for the backtest, it changes it automatically to the initial value.

It happens that I can't really modulate values and test for different strategies ... 

Is it normal ?

Best regards

Maybe you've meant "Optimization".

There are three (in your case two) kind of input parameters.

The first is "extern" that allows changing its value in the code and also allows changing its value at the optimization.

The second is "input" that doesn't allow changing its value in the code but allows changing its value at the optimization.

The third is "sinput" that doesn't allow changing its value in the code neither at the optimization.

It seems your parameters for SL, TP and BE are "input" or "extern" and the other parameters are "sinput".

To add comments, please log in or register