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
| Setting | Default | What it does |
|---|---|---|
| Range bars | 20 | Bars defining the breakout range |
| Volume avg period | 20 | Bars averaged to establish normal tick volume |
| Volume spike multiple | 2.0 | Breakout bar's volume must be at least this multiple of average to be examined for climax |
| Weak close ratio | 0.35 | Close within this fraction of the bar's OWN range from the adverse extreme counts as a weak close |
| Break buffer pips | 2.0 | Close must clear the range by this many extra pips |
| Use risk sizing | true | Size by percent risk to the stop instead of a fixed lot |
| Risk percent | 1.0 | Percent of equity risked per trade, when risk sizing is on |
| Fixed lots | 0.10 | Lot size when risk sizing is off, or as a sizing fallback |
| Stop buffer pips | 5.0 | Extra pips beyond the range's far edge used for the stop |
| Reward risk ratio | 1.5 | Take-profit distance as a multiple of the stop distance |
| Magic number | 43781 | Magic number for orders opened by this EA |
| Slippage pips | 3 | Slippage tolerance, in pips |
| Max retries | 5 | Attempts per trade action before giving up |
| Retry wait ms | 500 | Pause between attempts, milliseconds |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Breakout · Volume · Buy/Sell Arrows · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code