Mb logical multi timeframe Scanner non repainting
- Indicators
-
Yusuf Levent Aksun
Platform Engineer & AWS Certified Professional with 20+ years of experience in
software development, cloud architecture, and DevOps transformation.
Currently driving platform engineering initiatives at World Wide Technology in London, - Version: 25.0
- Updated: 12 July 2026
- Activations: 5
MiniBull Logical is a multi-timeframe trend-confirmation and false-breakout indicator for MetaTrader 5. It combines three layers of analysis — long-term trend direction, daily false-breakout detection, and a multi-timeframe moving average reversal filter — into a single, non-repainting BUY/SELL signal displayed directly on the chart, alongside a live status panel.
1. Trend Direction (Monthly + Weekly Confluence)
On every evaluation, the indicator reads the last fully closed Monthly (MN1) and Weekly (W1) candle closes and compares the current price against both:
- Price above both the last MN1 close and the last W1 close → Bullish main trend
- Price below both → Bearish main trend
- Any disagreement between MN1 and W1 → Neutral, no trend, no trading direction favored
Only signals aligned with this main trend are allowed through; a BUY setup during a Bearish main trend (or vice versa) is explicitly blocked, never fired as a signal.
A proximity warning also fires (configurable via InpProxATR ) when price is within a set multiple of the Daily ATR(14) of the MN1 or W1 level that defines the trend — a heads-up that the underlying trend classification could flip soon.
2. False-Breakout Detection (Daily Range)
The indicator tracks the previous completed Daily (D1) bar's high and low. A setup is flagged when:
- BUY setup: price closed below the prior D1 low on the last bar, then the current closed bar is back inside the D1 range (a failed breakdown)
- SELL setup: the mirror case at the D1 high (a failed breakout)
This is the "false breakout" — price pushed through a key daily level and immediately failed to hold it, a classic exhaustion/reversal pattern.
3. Multi-Timeframe Moving Average Reversal Confirmation
A false-breakout setup alone does not fire a signal. The indicator then checks for a Moving Average reversal (SMA, EMA, or KAMA — selectable, with configurable period and KAMA fast/slow periods) across seven timeframes: M15, M30, H1, H4, H8, H12, and D1. For each timeframe it checks whether price:
- Was at or below the MA within an ATR-based touch zone ( InpMATouchATR ) two bars ago, and has now closed back above it (bullish reversal), or the mirrored bearish case
The first timeframe to confirm a reversal in the setup's direction becomes the "confirming timeframe," displayed in the signal message (e.g., >>> BUY [H1 EMA(29)] ). If no timeframe confirms, no signal fires — the setup is logged as "Below D1 Low — Watching MA…" or "Above D1 High — Watching MA…" instead, so you can see the false breakout was noticed but not yet validated.
4. Non-Repainting Design
As of v25, all live-chart signal logic evaluates strictly against the last fully closed bar — never the live, still-ticking price of the forming bar. Once a signal is computed for a bar, it is final: it cannot appear, disappear, or change retroactively as price continues to move within the next bar. (The Strategy Tester code path already worked this way; v25 brings the live-chart path to the same standard.)
5. Historical Signal Backfill
When the indicator is first attached to a chart, it automatically scans back through recent history ( InpBackfillBars , default 5000 bars) and draws every past BUY/SELL arrow it would have fired, using each historical bar's own closed data — so you see the full recent signal history immediately, not just signals going forward from the moment of attachment.
6. On-Chart Panel
A live panel (position and colors configurable) displays: current price, MN1/W1 trend with distance-to-flip percentages, the combined main trend, any proximity warning, D1 high/low/close/ATR, price's position relative to the D1 range, a full per-timeframe MA table (value, touch status, reversal direction), and the current signal state in plain language.
7. Alerts
Optional pop-up alert and/or push notification when a new confirmed signal fires, or when the main trend flips direction — throttled to fire once per confirmed bar, not repeatedly.
8. Strategy Tester Analytics (Backtest Only)
In the Strategy Tester, the indicator additionally logs each signal and tracks its hypothetical outcome at three configurable bar checkpoints ( InpEval1/2/3 ), printing running win-rate statistics to the Experts log — useful for gauging signal quality independent of any specific trade-management strategy.
What It Does Not Do
This is a pure signal/analysis indicator — it does not place trades, manage positions, or size risk. (A separate cBot/EA build of the same signal engine handles execution, for those who want automated trading built on this logic.)
