Loading…

Holy Grail Pullback System

RISK WARNING: this EA places real market orders with a stop and target on every trade. Confirm behaviour on a demo account before running it live, and size conservatively - InpRiskPercent controls how much of the account each trade risks. The Holy Grail setup, published by Linda Raschke and Laurence Connors in "Street Smarts" (1996), looks for a strong and still-strengthening trend (ADX above a threshold and rising, confirming momentum rather than just a level), then waits for price to pull back and touch a shorter moving average without breaking the trend - a pause, not a reversal. The entry trigger is the break of that pullback bar's own extreme in the trend direction: for a long, price closing back above the pullback bar's high; for a short, closing back below its low. That is genuinely a two-moment pattern, not a single-bar signal, so this EA carries it as a small state machine: the bar that touches the average arms a watch, and a later bar's break of that bar's extreme fires the entry. A watch that never triggers expires automatically after a configurable number of bars, because a trend strong enough to justify the setup rarely leaves a pullback unresolved for long - if the breakout hasn't happened by then, the original read on the trend is stale. The stop sits just beyond the pullback bar's opposite extreme, the level that would prove the pullback failed to hold. The target is a configurable multiple of that same risk distance. Position size is computed from account risk percentage and the trade's actual stop distance, converted to lots through tick value and tick size rather than a hardcoded contract size - the same conversion this catalogue uses everywhere real money is at stake, because a fixed contract size silently mis-sizes metals, indices and JPY crosses. Notes and limitations Only one position is held at a time per symbol and magic number - a new signal is ignored while a position from this EA is already open. Signals are evaluated once per new bar on the last fully closed bar only, never on the forming bar, so nothing here repaints. A trade skipped because the stop distance was inside the broker's minimum stop or freeze level is simply not taken; the EA does not widen the stop to force an entry through that restriction. Like any trend and pullback system, this does poorly in a choppy, low-ADX market by design - it is deliberately selective about when it trades at all.

Expert advisor · MT4 · v1.0 · Free

About Holy Grail Pullback System

Holy Grail Pullback System is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and ADX. It can size trades from your balance and risk percent and trades breakouts. It has 11 settings, such as Magic, Ema period and Adx period. MQL source code included.

Files in the download: HolyGrailPullbackSystem.ex4, HolyGrailPullbackSystem.mq4, HolyGrailPullbackSystem.txt.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Magic20261207Magic number for this system's own orders
Ema period20Trend moving average period
Adx period14ADX period
Adx threshold30.0Minimum ADX to treat the trend as strong enough to trade
Max bars to trigger3Bars a pending pullback breakout is watched before the watch expires
Stop buffer pips2.0Extra pips added beyond the pullback bar's extreme for the stop
Reward multiple2.0Take-profit distance as a multiple of the stop distance
Risk percent1.0Risk % of balance per trade
Max slippage points5Slippage tolerance passed to OrderSend
Max retries5Attempts per order action before giving up
Retry wait ms500Pause between attempts, milliseconds

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Moving Average · ADX · Trend · Risk & Lot Size · Breakout · MT4 Expert Advisor · MQL4 Source Code

Expert advisors (EA) for MT4 & MT5 · PolyMaria