Prime Trend Pro MT5
- Индикаторы
-
Artem Koliada
MQL4/MQL5 Developer 💻 | Turning trading strategies into profitable code. Expert Advisors (EA) & Custom Indicators for MT4/MT5. Let's automate your trading - Версия: 2.7
- Обновлено: 12 июля 2026
- Активации: 8
PrimeTrend Pro is a trend-following indicator based on an ATR ratchet engine. It features a set of independent signal-quality gates and a multi-symbol, multi-timeframe dashboard. It is designed to answer three questions on one screen: what is the current trend, how reliable is the signal and whether the rest of the market agrees.
PrimeTrend Pro is an indicator. It does not open, modify or close trades. It draws signals and provides analytics, but you are always responsible for making trading decisions.
The Engine
The engine's core is an ATR channel with a one-way ratchet: in an uptrend, the support level can only rise; in a downtrend, the resistance level can only fall. On top of the classic logic, version 2.7 adds:
- Flip Hysteresis. A trend reversal requires the close to breach the level by an additional fraction of the ATR value (configurable). This eliminates the one-point stop-hunt flips that affect classic ATR trailing indicators in ranging markets.
- Two-Bar Confirmation (optional).The first close that breaches the level arms a 'pending' state, and the flip is only confirmed if the next bar also closes beyond the level. A single wick-and-return no longer reverses the trend.
- Adaptive Multiplier (optional). The channel width scales with the volatility regime (fast ATR/slow ATR ratio, clamped). When volatility increases, the channel widens to filter out noise, and when it decreases, the channel narrows to react more quickly.
- Two Ratchet Modes. Classic (median-anchored) or Chandelier (anchored at the highest high/lowest low of the period), the latter of which trails price more aggressively in strong trends.
- Data-Driven Seeding. The initial trend direction is derived from price data rather than being hardcoded, so the historical line remains consistent regardless of how much history is loaded.
Signal-Quality Gates
Each gate is independent and can be switched on or off. Instead of being hidden, a signal that fails a gate is drawn in a distinct colour (dotted grey for a flat market and gold for a risky/unconfirmed market), so you can always see why the indicator is not giving a clean BUY/SELL signal.
- Kaufman Efficiency Ratio Gate. This measures how directional the recent price path is. It classifies choppy, inefficient movement as FLAT before it can generate whipsaw signals. It reacts faster than the ADX.
- ADX Gate. Classic ranging-market filter, can run alongside or instead of the ER gate.
- Volume Delta Confirmation. The indicator computes real tick-volume delta (bullish-bar volume vs bearish-bar volume over a lookback window). A BUY trend without bullish volume dominance — or a SELL without bearish dominance — is marked as risky.
- Baseline Filter. Signals against a long-period EMA are marked as counter-trend.
- Volume Filter. Signals on abnormally low volume are marked as unreliable. The live bar's volume is time-scaled so the forming bar is not unfairly flagged.
Stable Live Bar (No Signal Flicker)
Window-based gates are noisy while the current bar is forming, which usually causes the live signal to flicker between 'BUY' and 'WAIT' intra-bar. PrimeTrend Pro takes a snapshot of the gate verdicts on the last closed bar and locks the classification of the live bar until it closes. The line on closed bars never changes; the colour of the live bar no longer flickers either.
Multi-Symbol / Multi-Timeframe Dashboard
- TF Column for the current symbol: trend status and volume-delta dominance across M1–MN1.
- Market Watch Matrix: the same 9-timeframe scan for every symbol in your Market Watch or a custom list, with category grouping, sorting (category, A–Z, bull strength, bear strength), per-cell tooltips, and mini-sparklines of delta history. Click a symbol name to switch the chart.
- Volume Delta Cockpit: a live histogram of signed delta dominance over the last 35 bars.
- Weighted Confluence Score: a single number summarizing multi-timeframe agreement. Higher timeframes carry more weight (D1 counts 6× an M1 vote), which avoids the illusion of "confluence" created by three correlated minute charts. A plain-count mode is also available.
- Confirmed-Bar Mode: with alerts set to bar-close only, the entire dashboard (matrix, confluence, cockpit) reads the last closed bar — nothing on the panel repaints intrabar.
- Draggable panel, position saved per chart, hologram mode (panel behind candles), adaptive refresh rate.
Alerts
Receive screen, push and email alerts on BUY/SELL trend changes for every symbol and timeframe in the matrix. In confirmed mode, alerts are triggered strictly based on closed-bar data — an alerted signal will not disappear.
Performance Design
- No indicator reads in the render path — all multi-symbol data is cached and refreshed on a throttled timer.
- Handles for other symbols are created lazily, only when the matrix is opened.
- Rolling-window computation for volume delta, volume MA and Efficiency Ratio (O(1) per bar).
- Dirty-flag redraw: the panel repaints only when data actually changes.
- Symbol cap input to keep terminal load predictable on large Market Watch lists.
Important Notes
- In the Strategy Tester the dashboard shows only the tested symbol (a tester limitation for multi-symbol indicators).
- The trend flip on the live bar follows the current close by design; use Confirm Bars = 1 or confirmed-bar mode if you want flips strictly on closed bars.
- This indicator does not guarantee any trading results. Past performance of any signal logic does not indicate future results. Always test on a demo account first.
INPUT PARAMETERS REFERENCE
Core Strategy
| Input | Default | Description |
|---|---|---|
| ATR Period | 10 | Trend sensitivity. Lower = faster, more flips. |
| ATR Multiplier | 3.0 | Channel width. Lower = tighter stops, more flips. |
| History Bars | 1000 | Bars to calculate (0 = all history). |
Engine v2.7
| Input | Default | Description |
|---|---|---|
| Ratchet Anchor Mode | Classic | Classic (median) or Chandelier (HH/LL anchored). |
| Flip Hysteresis (×ATR) | 0.15 | Extra breach depth required to flip. 0 = classic behavior. |
| Confirm Bars | 0 | 1 = require a second consecutive close beyond the level. |
| Adaptive Multiplier | false | Scale channel width by volatility regime. |
| Slow ATR Period | 100 | Regime reference for the adaptive multiplier. |
| Min / Max Factor | 0.7 / 1.6 | Clamp range for the adaptive scaling. |
| Stable Live Bar | true | Lock live-bar gate verdicts to closed-bar data (no flicker). |
Smart Filters
| Input | Default | Description |
|---|---|---|
| Use ADX Filter | false | ADX below threshold = FLAT (gray dotted). |
| Use ER Gate | true | Efficiency Ratio below level = FLAT. |
| ER Period / Level | 20 / 0.30 | ER lookback and minimum. |
| Use Delta Confirm | true | Trend against volume delta = risky (gold). |
| Delta Min % | 50 | Required dominance on the trend side (50–100). |
| Use Baseline Filter | false | Signals against long EMA = risky. |
| Use Volume Filter | false | Low-volume signals = risky. |
USER GUIDE
Reading the Chart Line
The indicator draws one trailing line whose color and style carry the signal:
| Line | Meaning | What to do |
|---|---|---|
| Solid blue | Confirmed BUY trend, all enabled gates passed | Trend-following long context; the line is a natural trailing-stop reference |
| Solid red | Confirmed SELL trend, all gates passed | Trend-following short context |
| Dotted gray | FLAT — the market is ranging (ER or ADX gate) | Stand aside; breakout traders may watch the channel edges |
| Solid gold | RISKY — trend exists but a confirmation gate failed (volume delta against the trend, price against baseline, or low volume) | Treat as unconfirmed; either skip or demand additional confirmation |
The line on closed bars never repaints. The live bar's trend can flip with the current close (this is inherent to any close-based trailing logic); with default settings its color classification is locked until the bar closes (Stable Live Bar).
First-Time Setup — Three Profiles
Conservative (default-plus): leave defaults, set Confirm Bars = 1 . Fewest signals, fewest whipsaws, one bar of lag on reversals. Suits H1 and above.
Balanced (defaults): Hysteresis 0.15, ER gate on, Delta confirm on. Good starting point for M15–H4.
Fast: Flip Hysteresis = 0.05 , ER Level = 0.20 , Delta Confirm = off . More signals, more noise. Only for experienced scalpers on liquid symbols; expect whipsaws in Asian-session ranges.
After choosing a profile, run the indicator on a demo chart for at least a week of your normal timeframe before changing anything else. Change one input at a time.
The Dashboard
Main Panel (always visible when Show Panel = true)- TF column — trend status (BUY/SELL/FLAT/WAIT) and signed volume-delta dominance for the current symbol across M1…MN1. "+ 63.1 %" means bulls hold 63% of directional tick volume in the lookback window on that timeframe.
- Volume Delta Cockpit — histogram of the last 35 bars of delta dominance on the chart timeframe. Blue bars = bullish dominance, red = bearish. The big number is the current (or last closed, in confirmed mode) reading.
- Confluence bar — one number summarizing all 9 timeframes. In weighted mode (default), higher TFs count for more: a D1 vote is worth six M1 votes. ≥ 60% of total weight on one side = STRONG (colored), anything less = WEAK (gold) or MIXED (gray).
Drag the panel anywhere; its position is saved per chart. Hologram Mode puts the panel behind the candles so it never hides price.
Market Watch Matrix
Click MATRIX >> to open. Each row is a symbol, each column a timeframe:
- ▲ blue = BUY, ▼ red = SELL, ■ gray = FLAT, ◆ gold = RISKY, • dim = no data yet.
- The tiny line under each cell is a sparkline of recent delta-dominance history for that symbol/TF.
- Hover any cell for a tooltip with the exact status and delta percentage.
- Click a symbol name to switch the chart to it (same timeframe).
- Sort buttons in the header: CAT (grouped by asset class), A–Z, Bull (strongest bullish confluence first), Bear. Bull/Bear sorting live-updates as market data changes.
First population of a large matrix takes a few seconds while the terminal loads history for other symbols — this is normal. Cells show • until their data arrives.
Confirmed-Bar Mode
With Alert Only on Bar Close = true (default), the entire dashboard — matrix cells, confluence, cockpit — reads the last closed bar of each timeframe. Nothing on the panel changes intrabar, and every alert corresponds to a state that cannot un-happen. Set it to false only if you explicitly want live intrabar readings and accept that they can revert.
Alerts
Enable Screen / Push / E-mail in the Alerts block. Alerts fire on BUY↔SELL trend changes for every symbol and timeframe in the matrix, formatted as:
PrimeTrend | EURUSD H4 | Trend: BUY
- For push notifications, set your MetaQuotes ID in terminal Options → Notifications.
- For e-mail, configure Options → Email.
- The very first scan after attaching the indicator never alerts (it only records the initial state) — you will not be spammed with 200 alerts on startup.
Suggested Workflows
Trend-following with MTF filter: trade only in the direction where the weighted confluence is STRONG. Enter on your own trigger (e.g., pullback to the line) in that direction on your working TF; the line itself is your trailing-stop reference.
Screening: open the matrix, sort by Bull or Bear, and work down the list — the top symbols are where the most timeframes agree. Check the sparklines: rising delta dominance alongside a fresh ▲ is the cleanest configuration.
Chop avoidance: if your working TF shows dotted gray (FLAT), do not force trades — that is the ER/ADX gate telling you the current path is inefficient. Gold (RISKY) after a flip often marks early, unconfirmed reversals: aggressive traders may scale in small; conservative traders wait for the line to turn solid.
None of the above is trading advice; they are usage patterns of the tool. Test any approach on demo first.
Strategy Tester Notes
- The dashboard shows only the tested symbol — the tester cannot supply other symbols' data to a multi-symbol indicator. This is a platform limitation, not a defect.
- Panel refresh in the tester is throttled to once per 2 seconds of tester time to keep visual mode fast.
- The signal line itself (all engine and gate logic) is fully testable and identical to live behavior.
Performance Tips
- Keep Max Symbols at or below your broker's realistic Market Watch size; 20–30 is comfortable on MT5, 8–12 on MT4.
- If you never use the matrix, keep it closed — background handles for other symbols are only created when you first open it.
- History Bars = 1000 is enough for visual work; raise it only if you need the line far back in history.
FAQ
The line changed color mid-bar once and back — is that repaint? No. Closed bars never change. What you saw was the live bar before the Stable Live Bar update, or you have Stable Live Bar = false . With defaults, the live bar's classification is locked.
Matrix cells show • for some symbols. The terminal has not downloaded that symbol/TF history yet. Open that chart once, or simply wait — cells fill in as data arrives.
Delta shows 100% constantly on an exotic symbol. Very thin symbols can have one-sided tick volume in a short window. Increase Volume Delta Lookback Period .
Can it trade automatically? No. It is an indicator. The trend and filter states are exposed in indicator buffers (0–3 line states, 4 trend, 6 signed delta), so an EA developer can read them via iCustom/CopyBuffer.
MT4 and MT5 give slightly different history lines. With identical inputs they should match bar-for-bar. If they do not, check that both have the same amount of history loaded and the same History Bars setting.

