SMA 20 Universal Magic EA MT5
- Experts
- Version: 5.0
- Activations: 10
20 SMA Universal Magic EA is a simple breakout Expert Advisor. It trades when price breaks out of a channel made by two moving averages: a 20-period SMA of the High and a 20-period SMA of the Low. The same EA is available for both MetaTrader 4 and MetaTrader 5, with identical logic and settings.
For Set file you can Contact, if Required.
How it trades
BUY when a candle closes above the 20 SMA (High).
SELL when a candle closes below the 20 SMA (Low).
Each new breakout adds a position to the basket.
When the combined profit of all positions reaches the Basket TP (default $5), the EA closes them all and starts a fresh cycle.
Signals are checked only on closed candles, so it never trades on an unfinished bar.
Risk and money management
Daily equity target, as a fixed amount or a percentage. When it is reached, the EA closes its trades and pauses until the next server day.
Daily drawdown limit, as a fixed amount or a percentage. It protects the account by closing trades and pausing trading for the rest of the day.
Optional maximum number of open orders.
Optional lot multiplier.
The daily state is saved, so a restart does not reset the limits.
Server-time trading hours
Set a start and end time based on the broker’s server time. Overnight sessions are supported.
Friday stop time: no new trades late on Friday, to avoid weekend gaps.
Optional: close all trades outside trading hours.
On-chart panel and chart theme
Colourful information panel showing balance, equity, free margin, spread, SMA values, price position, buy and sell orders, basket P/L, daily P/L, daily target and drawdown, maximum drawdown today, server time, session status and candle countdown.
20 SMA High and Low lines drawn on the chart, with price tags.
Clean dark theme with no grid and coloured bullish and bearish candles. The original chart settings are restored when the EA is removed.
Recommendations
Works on any symbol and any timeframe.
MT5 version: a hedging account is required.
Test it in the Strategy Tester and on a demo account first, then adjust Basket TP, the daily limits and the lot size to your account size.
Main inputs
Lot Size, Lot Multiplier, MA Period, MA Method, Basket TP, Max Orders, Magic Number, Daily Target ($/%), Daily Max Loss ($/%), Trading Start/End Time, Friday Stop Time, panel and chart colour settings.
Disclaimer: Trading involves risk. Past results do not guarantee future performance. This EA does not use a stop loss on individual trades. Use proper risk settings.
