AI News Safe Session Trader
- Experts
- 버전: 1.0
AI News-Safe Session Trader
AI News-Safe Session Trader is an EMA-crossover trend EA built with capital protection in mind. It trades only during normal market session hours and automatically stands aside around your configured high-impact news release times, avoiding the erratic spikes and slippage that often occur during news events.
How it works
The EA watches for a crossover between a fast and slow EMA (default 20/60). When the fast EMA crosses above the slow EMA it looks to buy; when it crosses below, it looks to sell. Before every potential entry it checks two safety filters:
- Session filter – only trades within the symbol's normal trading session, avoiding illiquid pre/post-session periods
- News blackout windows – a configurable list of broker-time news release times (e.g. 14:30, 16:00, 20:00); the EA pauses new entries for a buffer of minutes before and after each one
Built-in risk management
- Fixed Stop Loss and Take Profit on every trade
- Automatic trailing stop that locks in profit as price moves favorably
- Broker-safe minimum stop distance check (respects the symbol's stop and freeze levels) so orders are never rejected for invalid stops
- Margin check before opening any new position
- Only one position open at a time per symbol/magic number
Main Inputs
- InpEmaFastPeriod (default 20) – Fast EMA period
- InpEmaSlowPeriod (default 60) – Slow EMA period
- InpBlackoutTimes (default "14:30,16:00,20:00") – Comma-separated broker-time news release times to avoid
- InpBlackoutBufferMin (default 30) – Minutes to avoid trading before/after each blackout time
- InpUseSessionFilter (default true) – Restrict trading to the symbol's normal session hours
- InpLotSize (default 0.01) – Fixed trade volume
- InpStopLossPoints (default 300) – Stop Loss distance in points
- InpTakeProfitPoints (default 600) – Take Profit distance in points
- InpTrailingStartPoints (default 250) – Profit distance (points) at which trailing starts
- InpTrailingStepPoints (default 80) – Trailing step distance in points
- InpMagicNumber (default 500110) – Unique identifier for this EA's trades
- InpTradeComment – Comment attached to trades opened by this EA
Recommendations
Update the blackout time list to match your broker's server time and the news events relevant to your traded symbol. As with any automated trading system, please test thoroughly on a demo account before live use, and adjust the risk parameters to match your account size and risk tolerance.
