How to make ADJUST field as an optimization input?
-
Hello,
I am trying to make my SL as X pips above the previous candle's close. I want to test this X number on the optimization till I find the optimal number.
I didn't find the tick mark (for optimization) on the right side of ADJUST field. What is the easiest way to do that?
Thanks,
-
Adjust field is not intended for that mainly.
You can use a "Formula" block for that purpose using X as an input.
StopLosslevel = CandleClose[1] + X (pips as a price fraction)

-
The Adjust field is MQL4/MQL5 code, it is not one single variable. But if you have some Constant, which is actually an input parameter of the EA and can be used for optimization, you can just write the name of the constant in Adjust. Something like this:
- MyConstant
or evven...
- MyConstant pips