Grid Trading Algorithm in Volatile Markets - MetaTrader 4 Expert | Grid EA Download - MT4/MT5 Resources
The input parameters are: Tp - This is a number, when the profit reaches Tp*invested funds, the robot will make a profit (recommended 0.01-0.1). SlowMovingAverage is the period of the moving average that attempts to determine the trend. The multiplier is a factor of the volume and the next order in the grid will be placed using the multiplier * the volume of the last order size. TimeFrame is the time frame in minutes. (Recommended: 1 hour - 60 or 15 minutes - 15).
The Expert Advisor contains the TotalOrderLots() function, which returns all used lots. CalcMaxLot function returns the maximum lot size that can be traded. CalcGridLot function that returns the starting lot size with the given security parameters. The bearish and bullish engulfing functions will return true if one of these candlestick patterns occurs. The OpenOrderProfits function returns all profits of open orders. CloseallOrders closes all orders (checked multiple times).
The EA places grid orders based on the atr value.
Attachment download
📎 gridtradingatvolatilemarkets_graph.png (77.84 KB)
📎 gridtradingatvolatilemarket_results.png (98.27 KB)
📎 gridtrading_at_volatile_market.mq4 (18.01 KB)
📎 donchianchannel.mq4 (2.87 KB)
Source: MQL5 #42488
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •