On this page
Back to tutorials

Parabolic SAR EA MT5 — No Code

SAR flip EA: Cross price above/below dots, Step 0.02 and Max Step 0.2, Reversal and Trend Direction conditions, export MQL5, H1 backtest.

📖 16 min read

📝 3,100 words

🏷️ MQL5 & Expert Advisors

Share this article:

Try the workflow from this guide

Open the live demo first — no signup. Sign up later to save your strategy and export from Code Generator.


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:

SignalRule (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

SettingStarter valueNotes
Step0.02Default in builder (0.001–1)
Max Step0.2Caps acceleration (0.01–1)
TimeframeH1 or H4M15 = more flips; D1 = slower
SymbolEURUSD, GBPUSDTrend + liquid sessions help
Confirmation1 bar on ReversalReduces 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:

ParameterTypeRangeDefaultWhat it does
StepNumber0.001 – 1 (step 0.001)0.02Initial acceleration factor
Max StepNumber0.01 – 1 (step 0.01)0.2Maximum 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:

FieldOptionsDefault
Targetprice · sarprice
Directionabove · belowabove
ValueNumber (optional offset; step 0.01)0

Use for this guide:

TabTargetDirection
Buypriceabove
Sellpricebelow

Meaning: Enter when price crosses above SAR (bullish flip) or below SAR (bearish flip).


2. Reversal

FieldRangeDefault
Period1 – 505
Confirmation1 – 101

Use case: Explicit stop-and-reverse with bar confirmation — good when Cross fires too early on wicks.


3. Trend Direction

FieldOptionsDefault
Directionrising · fallingrising
Period1 – 505
Confirmation1 – 101

Use case: “Only buy when SAR trend is rising” — fewer entries than Cross; combine with another signal using AND.


4. Compare

FieldOptionsDefault
Operator>, <, >=, <=, ==, !=>
ValueNumber (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)

  1. Add Parabolic SARStep 0.02, Max Step 0.2.
  2. Condition Cross → Target price → Direction above.

Step 3 — Sell

  1. Same indicator parameters.
  2. 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

IssueFix
Too many flipsRaise Step slightly (e.g. 0.025) or use Reversal Confirmation 2
Late entriesAdd Trend Direction rising AND Cross above
Range lossesStep 4 session filter · or skip when ADX < 20 on a filter tab

Next Steps

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.

Build this EA in Strategy Builder

Start in the live demo — no signup required. Walk through signals, filters, and risk. Create a free account only when you want to save and export MQL5.

Frequently Asked Questions

Yes. Add Parabolic SAR on Step 3 in Strategy Builder, use Cross Target price Direction above for Buy and below for Sell (Step 0.02, Max Step 0.2 defaults), set risk on Step 5, save, export MQL5 from Code Generator, compile once, and backtest with Every tick.

MT5 defaults Step 0.02 and Max Step 0.2 are the builder defaults. Use H1 or H4 for forex majors. Lower step reacts faster (more flips); raise max step cautiously. Always backtest on your symbol and spread.

Cross price above/below SAR fires on the classic dot flip. Reversal uses Period and Confirmation for SAR stop-and-reverse. Trend Direction rising/falling keeps you in an established SAR trend without requiring a fresh flip.

No. SAR is a trend-following rule that whipsaws in ranges. This guide is educational: backtest, then Demo, then live only with risk you can afford.

See the AlfaTactix Parabolic SAR indicator guide at /academy/indicators/parabolic-sar, then return here for the no-code EA workflow.

Try Strategy Builder — no signup

Try Strategy Builder — No Signup