Idea by: alex
MQL5 Code Author: barabashkakvn
🚨 Note: This Expert Advisor is intended for testing in the MetaTrader 5 platform only and isn't meant for live trading!
Strategy Overview
- At the zero bar, it initiates SELL #1 at the current market price.
- If the price rises, it opens a market position BUY #1 at a grid step distance from SELL #1.
- If the price continues to climb, it opens BUY #2 at a grid step distance from the previous BUY #1 position.
- If the price drops below the level of the last BUY position, it opens SELL #2 at a grid step distance, and this pattern continues for downward movements.
Input Parameters
- Buy Trading: true = enabled, false = disabled
- Sell Trading: true = enabled, false = disabled
- Close by Equity: true, false
- Close by Equity in Drawdown: true, false
- Position Volume
- Take Profit
- Minimum Distance Between Positions
- Equity Increase % to Close Losing Positions
- Equity Decrease % to Close Losing Positions
- Number of Losing Positions to Close on Equity Growth
- Number of Losing Positions to Close on Equity Decline

Comments 0