AI Break and Retest Trader
- Experts
- Version: 1.0
Trades the classic break and retest: price closes through a key level, comes back to test it, and continues.
How it works
On each closed bar of the signal timeframe (H1 by default) the EA looks for a candle that closed above the high, or below the low, of the previous range (20 bars by default).
It then waits for price to return to the broken level within a few bars. The retest candle must touch the level within an ATR based tolerance and close back on the breakout side.
If price closes back inside the old range, the setup is cancelled. The stop goes beyond the retest candle and the level with an ATR buffer; the target is a multiple of the stop.
Key features
- Automatic range level detection on closed bars
- Break, hold and retest confirmation
- ATR based retest tolerance
- Stop beyond the retest candle with ATR buffer and cap
- Risk based lot size with a maximum lot cap and free margin check
- ATR based break-even and trailing stop
- One position at a time, no grid, no martingale, no averaging
- Every trade is opened with SL and TP
- Small on-chart status panel
Recommended
Major Forex pairs, XAUUSD and indices. H1 signal timeframe by default; M30 and H4 also work.
Inputs
Risk percent, lot cap and magic number. Range bars, breakout window, retest tolerance, SL buffer, maximum SL, reward ratio, break-even, trailing and minimum bars between trades.
Risk note
Trading involves substantial risk. Test the EA on a demo account first and use a risk level you are comfortable with.
