Trade By AI Claude
- Experts
- Versione: 7.3
- Attivazioni: 15
Trade by Ai Claude V7.03 - US100 Breakout-Pullback Expert Advisor
Trade by Ai Claude is a rule-based Expert Advisor for (US100) that trades a multi-timeframe breakout-and-pullback setup. It combines three timeframes (M15, M5, M1) with an H1 trend filter, fixed-percentage risk per trade, a news filter and built-in drawdown protection. Every trade is opened with a predefined Stop Loss and Take Profit. The EA does not use martingale, grid, averaging down or hedging.
HOW IT WORKS
1. M15 bias: a strong M15 candle closes above the high of the last 20 candles (with a body of at least 1.0 x ATR) and creates a bullish bias that stays valid for 4 M15 candles.
2. M5 confirmation: an M5 candle closes above the high of the last 36 M5 candles, which confirms the impulse.
3. M1 pullback and entry: the EA waits for a shallow pullback on M1 (maximum 50% of the impulse height). After the pullback it places a Buy Stop above the high of the latest M1 candles.
4. Stop Loss is placed below the pullback low with an ATR-based buffer. Trades with a stop distance that is too small or too large (measured in ATR) are skipped.
5. Take Profit is set at a fixed Risk:Reward ratio (default 1:3).
6. A setup expires automatically after 90 minutes, or earlier if it is invalidated. Pending orders that are no longer valid are deleted.
The EA works with one position at a time and reads all three timeframes by itself, so it does not depend on the timeframe of the chart it is attached to.
KEY FEATURES
- Trend filter: trades only in the direction of the H1 EMA(200).
- Fixed risk per trade: lot size is calculated from the % of equity at risk (default 0.5%) and the Stop Loss distance, and is adjusted to the symbol's volume limits and free margin.
- Trading session filter: configurable start and end hour (broker server time).
- News filter: stops trading and removes pending orders around high-impact (optionally medium-impact) USD events from the built-in MT5 Economic Calendar (default: 60 minutes before and after).
- Break-even: moves the Stop Loss to break-even after the trade reaches a set multiple of the initial risk (default 1.5R). A maximum holding time (default 10 days) is also available.
- Drawdown Guard (for prop firm / funded accounts): closes all EA trades and stops trading when the daily loss limit (default 2%) or the total drawdown limit (default 4%) is reached.
- Consistency Rule (for prop firm challenges): keeps the daily profit below a configurable share of the profit target and stops trading for the day when the limit is nearly reached.
- Order handling: automatic retries after temporary rejections (requotes, connection issues) and checks of stop level, freeze level and margin before sending an order.
- On-chart dashboard: draggable and collapsible panel with account status, trading state, news status, and monthly and total results.
- Optional Sell logic (a mirror of the Buy logic) is available but disabled by default.
RECOMMENDED SETUP
- Symbol: (US100). Make sure the symbol is visible in Market Watch.
- Chart timeframe: any. The EA reads M15, M5 and M1 internally.
- Account: a low-spread / ECN-type account and a VPS for 24/5 operation are recommended.
- Default settings are designed around a 10,000 USD account. If your balance is different, set "DDReferenceBalance" to your starting balance and check the risk settings before going live.
- Session hours are in broker server time. Adjust them to your broker's time zone.
- The news filter uses the MT5 Economic Calendar, which is not available in the Strategy Tester. Backtest results therefore do not include the news filter.
- Test on a demo account first.
MAIN INPUT PARAMETERS
- RiskPercent - risk per trade, % of equity (default 0.5)
- RewardRatio - Take Profit as a multiple of risk (default 3.0)
- AllowBuy / AllowSell - enable trade directions (default: Buy only)
- TrendTF / TrendEMAPeriod - trend filter
- SessionStartHour / SessionEndHour - trading hours (default 16-23 server time)
- UseNewsFilter, NewsImpact, MinBeforeNews, MinAfterNews - news filter
- BreakEvenTriggerR - break-even trigger (default 1.5R)
- UseDrawdownGuard, DailyDDPercent, MaxDDPercent - drawdown protection
- UseConsistencyRule and related settings - prop firm consistency control
- BaseMagic / MagicByTimeframe - magic number settings
RISK WARNING
Trading Gold and other leveraged instruments involves a high level of risk and may not be suitable for all investors. You can lose some or all of your capital. Strategy Tester results are simulations only, and past performance does not guarantee future results. No Expert Advisor can guarantee profit. Always test on a demo account first and trade only with money you can afford to lose.
