The author of the idea - Andrey
mq5 code author - barabashkakvn
ATTENTION: By default, grid trading is completely FORBIDDEN, i.e. Use buy stop, Use buy limit, Use sell stop and Use sell limit parameters are set to "false". First, you need to select your type of grid (type of pending orders) and select the best parameters: step, volume, etc.
The EA places a grid consisting of pending Stop and Limit orders.
Grid features: the first pending grid order can be placed at the Firstxxxx price or at a certain DeltaFirstxxxx distance from the current price. If Firstxxxx exceeds zero, the DeltaFirstxxxx parameter is not considered, and vice versa, when Firstxxxx is equal to zero, the DeltaFirstxxxx parameter is activated.
You can:
Stop loss (Stop Loss) and take profit (Take Profit) can be disabled. To do this, simply set the parameters to "0.0".
The lifetime of a pending order in minutes (Expiration) - if "0", it is not considered.
Closing all open positions and deleting pending orders are possible in two cases:
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/22100
WILL_VAL
WILL VAL indicator
MA_Rounding_Candle_HTF
MA_Rounding_Candle_HTF indicator with the timeframe selection option available in input parameters