Loading…

Climax Filtered Breakout System

Most breakout systems treat volume, if they look at it at all, as a simple "more is better" filter. That misses the specific pattern that actually warns of trouble: a bar with unusually heavy volume that closes well back from the extreme it reached is a classic absorption or exhaustion signature, not confirmation of the move. This EA checks for exactly that combination on the breakout bar. Volume must first spike to at least InpVolumeSpikeMultiple times the average of the prior InpVolumeAvgPeriod bars - a bar on ordinary volume is never filtered, however it closes. Only once that spike condition is met is the bar's close position examined: for an upside breakout, how close the bar held to its HIGH; for a downside breakout, how close it held to its LOW. A close that falls within InpWeakCloseRatio of the bar's own range from the adverse extreme (i.e. gave back most of the spike bar's own move) is classed as a climax, and the breakout is declined for that bar. A high-volume bar that closes strongly in the breakout direction is not filtered - only the specific spike-plus-weak-close combination is. Notes and limitations - Forex has no centralised exchange volume; tick volume is used throughout, which is the standard and correct MQL4 practice for FX and is a reasonable proxy for activity on any symbol. - A declined (climax-filtered) breakout is not queued or retried - if the next bar breaks again cleanly, that is evaluated fresh on its own merits. - The climax check only looks at the single breakout bar itself, not a multi-bar exhaustion pattern - a genuine multi-day blow-off that built up before the breakout bar is not detected by this filter. - Lot sizing uses MODE_TICKVALUE/MODE_TICKSIZE, not a hardcoded contract size. - Only one position at a time.

Expert advisor · MT4 · v1.0 · Free

About Climax Filtered Breakout System

Climax Filtered Breakout System is an expert advisor (trading robot) for MetaTrader 4. It can size trades from your balance and risk percent and trades breakouts. It has 14 settings, such as Range bars, Volume avg period and Volume spike multiple. MQL source code included.

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

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

Settings

SettingDefaultWhat it does
Range bars20Bars defining the breakout range
Volume avg period20Bars averaged to establish normal tick volume
Volume spike multiple2.0Breakout bar's volume must be at least this multiple of average to be examined for climax
Weak close ratio0.35Close within this fraction of the bar's OWN range from the adverse extreme counts as a weak close
Break buffer pips2.0Close must clear the range by this many extra pips
Use risk sizingtrueSize by percent risk to the stop instead of a fixed lot
Risk percent1.0Percent of equity risked per trade, when risk sizing is on
Fixed lots0.10Lot size when risk sizing is off, or as a sizing fallback
Stop buffer pips5.0Extra pips beyond the range's far edge used for the stop
Reward risk ratio1.5Take-profit distance as a multiple of the stop distance
Magic number43781Magic number for orders opened by this EA
Slippage pips3Slippage tolerance, in pips
Max retries5Attempts per trade 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: Breakout · Volume · Buy/Sell Arrows · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code

Expert advisors (EA) for MT4 & MT5 · PolyMaria