Parabolic SAR EA for MT5 — No Code
Can I build a Parabolic SAR EA for MT5 without coding?
Not in AlfaTactix today. Parabolic SAR is not one of the indicators the MT5 Strategy Builder supports, so it cannot be added as a Step 3 condition. Two honest paths:
- Code it in MQL5 — one iSAR [1] handle gives you the dot value on every bar (outline below).
- Build a no-code trend EA with supported indicators — an EMA or SMA crossover on Step 3, with an ATR-based trailing stop on Step 5 for a similar "ride the trend, exit on reversal" feel. It is a different system: SAR trails and flips tick by tick; a crossover only signals on the average cross.
Disclosure: This is an educational build guide, not financial advice. Backtest and Demo results do not guarantee live profits.
Related guides: Parabolic SAR Indicator (academy) · MA Crossover EA — No Code · Build EA Without Coding · Backtest in Strategy Tester · EA Strategy Library
What Is a Parabolic SAR EA?
A Parabolic SAR Expert Advisor automates Welles Wilder's Stop and Reverse trend system:
| Signal | Rule (typical) |
|---|---|
| Buy (long) | SAR dots flip below price — price is above the SAR (uptrend) |
| Sell (short) | SAR dots flip above price — price is below the SAR (downtrend) |
The indicator plots dots that trail price and reverse when price penetrates the dot. In MQL5, the platform provides this via iSAR() [1].
Why traders search for this: simple trend following without coding acceleration factors by hand. That part of the idea is easy — it is the AlfaTactix builder support that is missing today.
Classic Parabolic SAR Settings and When It Works
| Setting | Starter value | Notes |
|---|---|---|
| Step | 0.02 | Common default (0.001–1) |
| Max Step | 0.2 | Caps acceleration (0.01–1) |
| Timeframe | H1 or H4 | M15 = more flips; D1 = slower |
| Symbol | EURUSD, GBPUSD | Trend + liquid sessions help |
Works best: Sustained trends — SAR trails and lets winners run until the next flip.
Struggles in: Sideways ranges — repeated SAR reversals (whipsaw).
For indicator theory, see Parabolic SAR — Settings & Entries.
Parabolic SAR Logic in MQL5
A hand-written EA reads one iSAR handle and compares it with price:
// OnInit
sarHandle = iSAR(_Symbol, PERIOD_H1, 0.02, 0.2);
// OnTick, once per new bar
CopyBuffer(sarHandle, 0, 1, 1, sar); // SAR value on the last closed bar
bool buyFlip = close[1] > sar[0]; // price closed above the dot
bool sellFlip = close[1] < sar[0]; // price closed below the dot
Read the SAR value with CopyBuffer [2] on the last closed bar, same as any other indicator handle, so the signal does not repaint while the current bar forms.
A No-Code Trend EA With Supported Indicators
The MT5 form supports the market's most-used indicators: RSI, SMA, EMA, WMA, MACD, Stochastic, Williams %R, CCI, Momentum, Bollinger Bands, ATR, Volume and OBV. The closest no-code trend build:
- Step 3: an EMA or SMA crossover — see MA Crossover EA — No Code.
- Step 5: an ATR-based trailing stop, so a winning trade is protected and given room to run somewhat the way a trailing SAR dot would.
Honest limit: a crossover only fires when the faster average crosses the slower one — it does not trail every bar or auto-reverse into the opposite side the way SAR does. Expect fewer, later signals than a true SAR flip system.
Trader-Reported Themes (Forums)
In public threads on r/algotrading and r/Forex, traders often report these themes (not profit claims):
- Parabolic SAR alone whipsaws in tight ranges — many pair it with a trend filter or higher-timeframe bias.
- Step too low increases flip frequency; max step caps how fast dots catch up in strong trends.
- Live vs tester gaps appear when spread widens — a Step 4 liquidity filter helps, as in Scalping EA — No Code.
Compile and Backtest
Compile your .mq5 (hand-written, or exported from Code Generator for the supported-indicator version) with F7 → Strategy Tester Every tick → Demo.
Improvements: Filters and Risk
| Issue | Fix |
|---|---|
| Too many crossover flips | Use a longer moving-average period |
| Late entries | Read the trend on a higher timeframe in your own code |
| Range losses | Add a Step 4 ATR volatility or market session filter |
Tactix AI on this workflow
AlfaTactix includes Tactix AI: use Tactix Studio to describe your idea in plain language and draft timeframes, signals, filters, and risk into the same six-step Strategy Builder form — or open Tactix Guide on any step when you only need a field explained. Review every value, then export MQL5 or Pine Script from Code Generator (form-first — not untested prompt-to-code).
Next Steps
- MA Crossover EA — No Code — a trend EA you can build today with supported indicators
- Build EA Without Coding
Sanity check: If you code the SAR version yourself, compare your last five hand-coded flips against a Parabolic SAR study on the same chart before you trust the EA on Demo.
References: MQL5 iSAR [1] · CopyBuffer [2] · Strategy Tester [3].

