Strong Close Continuation System
Close Location Value tells you where a bar closed within its own high-low range regardless of how wide that range was or what happened intrabar: a CLV near 1.0 closed at the high, near 0.0 closed at the low. A lot of "strong candle" logic in published EAs is really just body-size or bullish/bearish colour, which misses bars that wicked hard against the close but still closed strong - exactly the kind of bar CLV is built to identify correctly. This system computes CLV directly from the formula on every closed bar and additionally requires the bar's tick volume to exceed its own recent average by a configurable multiple, so a strong-looking close on a dead, thin bar (more likely noise than real participation) is filtered out. When both conditions align - CLV at or above the bull threshold with elevated volume, or at or below the bear threshold with elevated volume - the system opens a continuation trade with a stop beyond the signal bar's opposite extreme. Notes and limitations - Tick volume, not real traded volume, is what MQL4/most FX brokers provide - it is a proxy for participation, not an exact trade count. - A strong close against a very recent volume spike unrelated to the bar's own direction (e.g. a broad news tick surge just before the bar closes) can still qualify - the filter measures volume and CLV independently, not their causal relationship. - Only one position at a time. - Lot sizing uses MODE_TICKVALUE/MODE_TICKSIZE, not a hardcoded contract size. - A simple continuation system like this will take losses in a choppy market where strong closes reverse quickly - inherent to the method, not a configuration mistake.
Expert advisor · MT5 · v1.0 · Free
About Strong Close Continuation System
Strong Close Continuation System is an expert advisor (trading robot) for MetaTrader 5. It can size trades from your balance and risk percent. It has 14 settings, such as Clv bull threshold, Clv bear threshold and Volume avg period. MQL source code included.
Files in the download: StrongCloseContinuation.ex5, StrongCloseContinuation.mq5, StrongCloseContinuation.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 |
|---|---|---|
| Clv bull threshold | 0.75 | CLV at or above this counts as a strong bullish close |
| Clv bear threshold | 0.25 | CLV at or below this counts as a strong bearish close |
| Volume avg period | 20 | Bars averaged to establish "normal" tick volume |
| Volume multiple | 1.3 | Signal bar's tick volume must exceed the average by this multiple |
| Min range pips | 3.0 | Bars with a smaller high-low range than this are skipped (CLV is meaningless on a doji) |
| Stop buffer pips | 3.0 | Extra buffer beyond the signal bar's opposite extreme for the stop |
| Target r multiple | 1.2 | Take profit as a multiple of the stop distance |
| 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 |
| Magic number | 32901 | 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 5 open File → Open Data Folder, then go to MQL5 → Experts.
- Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
- Open the .mq5 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: Volume · Risk & Lot Size · MT5 Expert Advisor · MQL5 Source Code