It is ideal to use a broker with a floating spread of 6 pips. Such brokers are on the market. In those moments when the spread will be lower than the one set during optimization (for example, you will set 10-14 pips), then when a signal appears at this moment, you can expect an input. That is, in reality, the inputs will be less frequent than with ideal tester indicators.
You need to optimize all the parameters:
- Magic - an ordinary parameter, a magic number.
- Risk - risk (volume is calculated from the balance sheet);
- Lot - position volume;
- LotDigits - lot accuracy;
- MaxSpread - spread restriction (if this field is less than the real spread, the expert will not enter the market).
- TakeProfit - take profit;
- StopLoss - stop loss;
- TrailingStart - after how many pips a trailing stop will turn on.
- Commission - an important parameter (like the spread) for those accounts in which the commission is used. It is necessary to set this parameter so that it is taken into account during optimization and operation. You need to pick it up by recounting the commission for pips and set the indicator in pips as an addition to the spread.
- Slippage - level of maximum slippage.
- VolatilityMultiplier is an important parameter that allows you to place an order only if the volatility is higher than this relative parameter (the higher the parameter, the more active price movements will be necessary to enter the market).
- VolatilityPercentageLimit - the parameter is set as a percentage. it indicates that the order will be placed if the ratio of real volatility to the selected Multiplier parameter is greater than the specified value in percent.
- OrderExpireSeconds - pending order lifetime in milliseconds;
- MaxExecutionMinutes - the maximum lifetime of a pending order in milliseconds;
- MinStopsLevel - set the "StopsLevel" level yourself;
- MinFreezeLevel - set the level of "FreezeLevel" yourself;