AI Swing Point Stop Order Trader
- Experts
-
Fadi Hassan Khaled Ghanem
MQL4/MQL5 developer based in Jordan. I have published 169 MetaTrader 5 products on the MQL5 Market (about 8,800 downloads in total).
What I build:
- Custom Expert Advisors from your own trading rules
- Indicators, alerts and multi-timeframe dashboards - Versione: 1.2
Let the market prove the breakout: pending stop orders at the latest swing high and swing low.
How it works
On every new bar of the signal timeframe (H1 by default) the EA finds the latest confirmed swing high and swing low using a fractal rule.
A Buy Stop is placed a few points above the swing high and a Sell Stop a few points below the swing low, as long as price has not already broken that level.
Each order carries an ATR based stop loss and take profit. A swing level is kept for a limited time (24 hours by default) and is then dropped.
When the swing levels change, the orders are moved to the new levels. When one order is filled, the opposite order is deleted (OCO mode), so only one position is ever open.
Break-even and ATR trailing protect the open trade.
Key features
- Automatic fractal swing high and swing low detection
- Buy Stop and Sell Stop orders with ATR based SL and TP
- Order expiry per swing level
- OCO option, with a safety rule that never allows two positions at once
- Orders follow new swing levels on each new bar
- Risk based lot size with a maximum lot cap
- No grid, no martingale, no hedging
- Every trade is opened with SL and TP
Recommended
Forex majors, XAUUSD and indices, any chart timeframe, signal timeframe H1.
Inputs
Risk percent, maximum lot cap and magic number. Swing bars and lookback, entry offset in points, expiry hours, OCO switch, ATR period with SL and TP multipliers, break-even and trailing settings.
Risk note
Trading involves substantial risk. Test on a demo account first and use a risk level you are comfortable with.
Need this tool customized for your own strategy, or an advanced version with extra filters and alerts? Send me a private message on MQL5 and I will reply with an estimate.
