Parabolic SAR EA for MT5 — No Code
Can I build a Parabolic SAR EA for MT5 without coding?
Yes. Add Parabolic SAR on Step 3 — Signals in AlfaTactix Strategy Builder. On Buy, condition Cross → Target price → Direction above. On Sell, Cross → Target price → Direction below. Set Step 0.02, Max Step 0.2 (product defaults). Add Stop Loss on Step 5, Save, export MQL5 from Code Generator, compile once in MetaEditor, backtest EURUSD H1 with Every tick in the Strategy Tester.
Alternative entry: Reversal with Period 5, Confirmation 1 on Buy/Sell tabs — same flip intent with bar confirmation.
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) · Build EA Without Coding · SuperTrend EA — No Code · Donchian Breakout EA — No Code · 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 uses iSAR() internally; in Strategy Builder you define when entries fire — export handles handles and buffers.
Why traders search for this: Simple trend following without coding acceleration factors. Most tutorials show hand-written MQL5. This guide maps the same idea to every parameter and condition Parabolic SAR exposes in AlfaTactix.
Classic Parabolic SAR Settings and When It Works
| Setting | Starter value | Notes |
|---|---|---|
| Step | 0.02 | Default in builder (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 |
| Confirmation | 1 bar on Reversal | Reduces one-bar noise |
Works best: Sustained trends — SAR trails and lets winners run until the next flip.
Struggles in: Sideways ranges — repeated SAR reversals (whipsaw). Mitigate with Step 4 session or spread filters, or combine SAR Trend Direction rising with a second filter (AND) from ADX Trend EA — No Code.
For indicator theory, see Parabolic SAR — Settings & Entries.
Parabolic SAR Parameters in Strategy Builder
On Step 3 — Signals, add indicator Parabolic SAR (Trend group). The Parameters panel shows:
| Parameter | Type | Range | Default | What it does |
|---|---|---|---|---|
| Step | Number | 0.001 – 1 (step 0.001) | 0.02 | Initial acceleration factor |
| Max Step | Number | 0.01 – 1 (step 0.01) | 0.2 | Maximum acceleration cap |
Tip: Match Step 3 signal timeframe to Step 2 trading TF (e.g. both H1).
Parabolic SAR Condition Types Explained
Open Parabolic SAR on Step 3 → Add condition. The product exposes four condition types:
1. Cross (recommended for flip EA)
| Field | Options | Default |
|---|---|---|
| Target | price · sar | price |
| Direction | above · below | above |
| Value | Number (optional offset; step 0.01) | 0 |
Use for this guide:
| Tab | Target | Direction |
|---|---|---|
| Buy | price | above |
| Sell | price | below |
Meaning: Enter when price crosses above SAR (bullish flip) or below SAR (bearish flip).
2. Reversal
| Field | Range | Default |
|---|---|---|
| Period | 1 – 50 | 5 |
| Confirmation | 1 – 10 | 1 |
Use case: Explicit stop-and-reverse with bar confirmation — good when Cross fires too early on wicks.
3. Trend Direction
| Field | Options | Default |
|---|---|---|
| Direction | rising · falling | rising |
| Period | 1 – 50 | 5 |
| Confirmation | 1 – 10 | 1 |
Use case: “Only buy when SAR trend is rising” — fewer entries than Cross; combine with another signal using AND.
4. Compare
| Field | Options | Default |
|---|---|---|
| Operator | >, <, >=, <=, ==, != | > |
| Value | Number (step 0.01) | 0 |
Use case: Advanced filters comparing SAR level to a fixed threshold — test in Strategy Tester before live.
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 ADX 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 — add Step 4 spread filter like Scalping EA — No Code.
Build the Parabolic SAR EA Step by Step
Step 1 — Name
Parabolic SAR Trend H1
Step 2 — Timeframes
Enable H1 (or your chosen TF).
Step 3 — Signals (Buy)
- Add Parabolic SAR — Step 0.02, Max Step 0.2.
- Condition Cross → Target price → Direction above.
Step 3 — Sell
- Same indicator parameters.
- Cross → Target price → Direction below.
Step 4 — Filters (optional)
Market Session London/NY · Liquidity → hasSpread if your broker widens spread on H1.
Step 5 — Risk
Stop Loss / Take Profit / lot size — EA Risk Management.
Step 6 — Save
Save strategy → Code Generator → download .mq5.
Export, Compile, and Backtest
Compile F7 in MetaEditor → Strategy Tester → model Every tick → forward test on Demo.
Strategy Tester vs Live · Production-Ready MQL5 Without MetaEditor.
Improvements: Filters and Risk
| Issue | Fix |
|---|---|
| Too many flips | Raise Step slightly (e.g. 0.025) or use Reversal Confirmation 2 |
| Late entries | Add Trend Direction rising AND Cross above |
| Range losses | Step 4 session filter · or skip when ADX < 20 on a filter tab |
Next Steps
- Donchian Breakout EA — No Code — channel breakout counterpart
- SuperTrend EA — No Code
- Build EA Without Coding
Sanity check: On your symbol's H1 chart, compare the last five SAR flips to the builder's Cross direction on Step 3. If they disagree, do not export — fix parameters first in the live demo.
References: MQL5 iSAR · Strategy Tester.