The discription attached below in English and Russian languages. Kindly note that I want to get the source code(.mq5 + .ex5) too, for self education. Thank you at advance
The EA should be fundamentally similar to the Magic Grid EA.
Reference: https://www.mql5.com/ru/market/product/76546?source=Unknown
This Expert Advisor places pending orders in a grid similar to Magic Grid. It uses TakeProfit/StopLoss. When launched, grids are created at equal distances relative to the current price. The EA always places only pending orders.
1. Base Grid Lot = 0.01 (adjustable)
2. Grids (Up & Down) = 10 (adjustable)
o Total: 10 grids upward and 10 grids downward
o Due to limitations on placing pending orders within one trading account, orders must be placed/removed gradually as the price moves
o Number of grid levels = 10 (adjustable), with expansion capability when approaching grid boundaries (+10 levels in the direction of price)
3. Grid Distance = 2000 (adjustable)
4. Grid Take Profit = 2000 (adjustable)
o Take Profit applies only to base grid orders
5. Grid Stop Loss = 2000 (adjustable)
o Stop Loss applies only to base grid orders
6. Grid Deviation = 150 (adjustable, slippage)
7. Magic Number = 9812345 (adjustable)
o Used to allow running the EA on multiple instruments within one terminal
Risk management works on every tick if enabled.
8. Risk Management = true (adjustable)
9. Target Profit = 1000.0 (adjustable, % of equity)
o When reached: closes all orders and trades, fully stops trading, and sends a notification
10. Max Drawdown = 80.0 (adjustable, % of equity)
11. Extra Notification for Equity Drawdown = true (adjustable)
12. Extra Notification for Equity Drawdown Percentage = 70.0 (adjustable)
The mechanism called the first-stage compensator places additional pending BuyStop or SellStop orders to support the current price direction.
(No TakeProfit/StopLoss — only a two-stage Trailing Stop)
13. First Stage Compensator = On/Off (adjustable)
14. First Stage Compensator Mode = limited / unlimited (adjustable)
15. First Stage Compensator Lot = 0.01 (adjustable)
16. Lot Difference Divisor = 3 (adjustable)
17. First Stage Compensator Mode = each_grid
(adjustable, struct Mode = each_grid, second_grid, third_grid)
18. Trailing Stop Start At = 2000 (adjustable)
19. Trailing Stop Placed At = 1000 (adjustable)
20. Trailing Stop Additional Moved To = 4000 (adjustable)