MiniBull Session SR MTF

# MiniBull Session S/R MTF

**Version:** 4.0
**Platform:** MetaTrader 5 (custom indicator, `.mq5`)
**Type:** Visual reference overlay — no trading logic, no signals, no orders
**File:** `MiniBull_Session_SR_MTF.mq5`

## Overview

MiniBull Session S/R MTF is a multi-timeframe support/resistance and session-level
overlay for MT5. It draws the previous trading session's high/low, the current
session's open, the US cash market open, rolling support/resistance from three
higher timeframes (4H / 1H / 15M-intraday), two Kaufman Adaptive Moving Averages
(KAMA), and a compact info panel with % distance to key levels and the Daily
Wilder ATR — all computed automatically, with no manual timezone configuration
required.

It is a from-scratch MQL5 implementation inspired by a "Session & Prev-Day
Levels" style TradingView (Pine Script) tool, adapted and extended for MT5's
object/event model.

## What it draws

| Element | Style | Notes |
|---|---|---|
| Previous session High | Solid green line + label | Anchored at the actual bar that set the high |
| Previous session Low | Solid red line + label | Anchored at the actual bar that set the low |
| Current session Open | Solid white line + label | Drawn at the first bar of the current session |
| US cash open (09:30 NY) | Dashed white line + label | Standard instrument mode only |
| R / S (4H, x120 bars) | Solid, width 3 | ~4 weeks lookback by default |
| R / S (1H, x120 bars) | Dashed, width 2 | ~1 week lookback by default |
| R / S (15M, current day) | Dotted, width 1 | Rebuilt every session, current day only |
| R / S (30M, x120 bars) | Dash-dot, width 1 | **Off by default** — enable from inputs; ~2.5 days lookback |
| R / S (5M, x120 bars) | Dash-dot-dot, width 1 | **Off by default** — enable from inputs; ~10 hours lookback |
| R / S (1M, x120 bars) | Dotted, width 1 (distinct colors) | **Off by default** — enable from inputs; ~2 hours lookback |
| AMA #1 / AMA #2 | Solid lines (white / yellow by default) | Kaufman KAMA, periods configurable (default 200 / 9) |
| Info panel | Top-right corner | % vs Prev High, % vs Prev Low, Daily ATR (Wilder) |

Every S/R line is anchored **at the exact candle that produced the high or low**,
not at the edge of the lookback window — so a level that formed 3 days into a
20-day scan starts exactly 3 days back, not 20. Resistance and support within
the same timeframe are tracked independently, since the bar that set the high is
rarely the same bar that set the low.

Line thickness decreases with timeframe: 4H (3) → 1H (2) → 15M (1), on top of
the existing solid / dashed / dotted style distinction, so the timeframe
hierarchy is visible at a glance even in monochrome.

## Session logic

- **Standard mode**: a new "trading day" begins at **18:00 New York time**
  (the standard forex/CFD rollover), matching how most retail platforms define
  a trading session for FX and metals.
- **Brent mode**: a new "trading day" begins at **00:00 UTC** (fixed), which
  suits energy/futures-style instruments that don't follow the FX rollover.
- Weekend gaps are handled naturally: since no new session boundary occurs
  while the market is closed, the session that was open at Friday's close
  simply continues through the gap into Monday, exactly as a trader would
  expect.

## Timezone handling (fully automatic)

- The broker server → UTC offset is **auto-detected at runtime** by comparing
  `TimeGMT()` (the PC's real UTC clock) against `TimeTradeServer()` (the
  broker's server clock). This works regardless of the trader's own location
  or which broker/server is in use — it only requires the PC's own clock to be
  correctly set, which is standard on any modern OS.
- US Daylight Saving Time is computed from the **actual US DST calendar rule**
  (2nd Sunday of March → 1st Sunday of November), so New York's UTC offset is
  always correct for the current year without ever needing a manual update.
- A manual fallback offset input exists only for edge cases where `TimeGMT()`
  is unavailable, such as the Strategy Tester.

## Inputs

**Session & Prev-Day Levels**
- `InpShowSessionLevels` — show/hide prev high/low + session open
- `InpInstrumentMode` — `Standard` (NY rollover) or `Brent` (00:00 UTC rollover)
- `InpShowCashOpen` — show the 09:30 NY cash-open marker (Standard mode only)
- `InpShowSessionPanel` — show/hide the info panel

**Timezone**
- `InpAutoDetectBrokerOffset` — auto-detect broker↔UTC offset (recommended, default on)
- `InpManualBrokerOffsetHours` — fallback offset, used only if auto-detect is off or fails

**Support/Resistance**
- `InpShowSR4H` / `InpLookback4H` — 4H S/R on/off + lookback in bars (default 120 ≈ 4 weeks)
- `InpShowSR1H` / `InpLookback1H` — 1H S/R on/off + lookback in bars (default 120 ≈ 1 week)
- `InpShowSR15M` — 15-minute intraday S/R on/off (always scoped to the current session)
- `InpShowSR30M` / `InpLookback30M` — **optional, off by default.** Rolling 30-minute S/R, same model as 4H/1H (default lookback 120 ≈ 2.5 days)
- `InpShowSR5M` / `InpLookback5M` — **optional, off by default.** Rolling 5-minute S/R (default lookback 120 ≈ 10 hours)
- `InpShowSR1M` / `InpLookback1M` — **optional, off by default.** Rolling 1-minute S/R (default lookback 120 ≈ 2 hours)

**Adaptive Moving Average**
- `InpShowAMA` — show/hide both AMA lines
- `InpAmaPeriod1` / `InpAmaPeriod2` — KAMA periods (default 200 / 9)
- `InpAmaFastEMA` / `InpAmaSlowEMA` — KAMA smoothing-constant bounds (default 2 / 30)
- `InpAmaColor1` / `InpAmaColor2` — line colors

**Wilder ATR**
- `InpShowATRPanel` — show/hide the ATR row in the panel
- `InpAtrLength` — ATR period (default 14). **ATR is always computed on the
  Daily timeframe**, regardless of the timeframe the chart is currently
  showing.

## Design notes / things fixed along the way

This is a living document of the more subtle correctness issues addressed
during development, kept here for anyone maintaining the code later:

- **Label collision avoidance.** Nearby levels (e.g. a 4H resistance and a
  15-minute "today" resistance a few points apart) are queued and resolved by
  pixel distance before being drawn, so overlapping text is nudged apart. Only
  the printed label moves — the underlying line is always drawn at the exact
  price.
- **Lines drawn in front of candles, not behind.** On a volatile instrument,
  dense candle bodies can fully obscure a "behind the price action" line even
  though the object exists — all reference lines render in front instead.
- **Panel anchoring.** A corner-anchored label with a small offset from the
  edge needs to be *right*-anchored so its text grows inward, or it renders
  mostly off-screen — an easy mistake that makes a working panel look like it
  never rendered at all.
- **"Today" session detection is anchored to the chart's own current time**,
  not to whichever bar a separately-fetched intraday series happens to return
  as "latest" — avoiding a stale/mismatched read locking the day's range to
  the wrong session.
- **KAMA computation is O(n)**, not O(n·period): the volatility sum inside the
  efficiency-ratio calculation is maintained as a sliding window instead of
  being re-summed from scratch for every historical bar, which matters a lot
  with a 200-period AMA over a long history.

## Known limitations

- First load on a fresh chart/timeframe/symbol can take a few seconds while
  MT5 syncs the H4/H1/M15 history series it depends on — this is normal MT5
  history-sync behavior, not indicator overhead, and is faster once those
  timeframes have been opened once for that symbol.
- Designed as a visual aid only. It does not place trades, generate alerts, or
  make any trading recommendation.
- For best readability, enabling **Chart Shift** (right-click chart → 
  Properties → Common) gives labels room to breathe on the right edge instead
  of crowding against the last candle.

## Disclaimer

This indicator is a visual reference tool only. It does not constitute
financial advice, and past levels holding as support/resistance is not a
guarantee they will do so in the future. Use at your own risk alongside your
own analysis and risk management.

Altri dall’autore
Analizzatore MTF MA: Posizione prezzo vs SMA/EMA/KAMA su 11 timeframe in un pannello. ### Full Description: ** Basta monitorare grafici su diversi timeframe!** MiniBull Periscope - Analizzatore di Posizione Multi-Timeframe della Media Mobile Vedi il quadro completo senza aprire più grafici! MiniBull Periscope mostra la posizione attuale del prezzo rispetto alle medie mobili su 11 timeframe contemporaneamente - dal Mensile (MN1) fino a 1 Minuto (M1). **CARATTERISTICHE PRINCIPALI:** • 11
Analizzatore MTF Composito: 9 indicatori su 11 TF con sistema di punteggio (-9 a +9). ### Full Description: ** Basta monitorare grafici su diversi timeframe!** MiniBull MTF Observer - Analizzatore di Segnali Compositi Multi-Timeframe Il pannello multi-indicatore definitivo! Analizza 9 indicatori tecnici diversi su 11 timeframe contemporaneamente e fornisce un punteggio composito da -9 a +9 per ogni timeframe. **9 INDICATORI ANALIZZATI:** • RSI (Indice di Forza Relativa) • MACD (Converge
Risultati completi del backtest (222 file): https://drive.google.com/drive/folders/1-1QefUiJ1lm6Se0HYCpAmYIbERZ8xjR8 Strategia: MN1/W1 Trend + D1 Falsa Rottura + Multi-TF MA Inversione Backtest: 2024.07.01 – 2026.02.03 | $10,000 | 1:10 | 26,784 Trade | 10/20 Profittevoli ️  TUTTI I TEST SONO STATI CONDOTTI CON EMA(20). SMA e KAMA NON sono stati completamente testati.   ️  PARAMETRI DI INPUT
BullBOP13 — Bilancio dei Poteri | Oro vs Indici USA BullBOP13 rileva divergenze temporanee tra l'Oro (XAUUSD) e tre indici azionari statunitensi (NAS100, US500, US30). Quando 3 asset su 4 si muovono in una direzione e 1 nella direzione opposta, l'anomalia sta subendo un "falso movimento" che tende a invertirsi. FUNZIONAMENTO — Filtro segnale a 4 livelli: 1. Filtro di Fase — analisi del regime di mercato su D1 (Allineato / Divergente / Forte Divergenza) 2. Rilevamento Falso Movimento — regola 3
Minibull Sniper Ama
Yusuf Levent Aksun
Minibull AMA Sniper v7.30 è un Expert Advisor professionale per il trend following ottimizzato per NAS100 (Nasdaq 100). Compatibile anche con US30 (Dow Jones), SPX500 (S&P 500) e DAX40. L'EA rileva automaticamente il nome del simbolo del tuo broker — NAS100, US100, NASDAQ100, USTEC, NQ100, US30, NYA30, NYSE30, SPX500, US500 o altre varianti comuni — e si adatta di conseguenza. La strategia si basa su due Medie Mobili Adattive — AMA(200) e AMA(9) — calcolate sul grafico giornaliero (D1), con se
Minibull Logical Pro
Yusuf Levent Aksun
**MiniBull Logical EA** individua la direzione del trend sui timeframe mensile (MN1) e settimanale (W1), filtrando gli ingressi con la logica del falso breakout su D1 e segnali di inversione della media mobile su più timeframe (M15→D1). Il pannello interattivo sul grafico consente di attivare/disattivare l'EA, passare tra modalità AUTO/MANUALE e cambiare la strategia di uscita con un solo clic. Tre strategie di uscita e uno stop d'emergenza basato sull'ATR garantiscono la massima flessibilità
### BullBOP19 Live EA — Rilevamento dei "Falsi Movimenti" tra Oro e Indici USA BullBOP19 è un Expert Advisor completamente automatizzato per MetaTrader 5, costruito attorno alla relazione di equilibrio delle forze (Balance of Power) tra l'Oro e i principali indici azionari statunitensi (NASDAQ 100, S&P 500, US30/DJIA). Confrontando l'andamento del prezzo dell'Oro con questi indici, l'EA identifica i "falsi movimenti" — movimenti privi di reale convinzione — filtrando i segnali poco affidabili
**Minibull AMA Sniper — Indicatore di Segnali Senza Repaint** Minibull AMA Sniper è un indicatore di posizionamento del trend costruito attorno a due Medie Mobili Adattive di Kaufman (AMA200 e AMA9), combinato con un esclusivo filtro di Conferma della Pendenza (Slope Confirm) che evita di operare in un mercato piatto e indeciso. **Come funziona** L'indicatore monitora la posizione del prezzo rispetto alle due AMA: - **BUY (acquisto)** quando il prezzo chiude sopra AMA200 e AMA9 - **SELL (ven
**Vedi esattamente dove si trova il prezzo — su ogni timeframe rilevante — senza cambiare grafico.** MiniBull LOP è un indicatore a dashboard multi-timeframe per trader che analizzano più timeframe contemporaneamente. Mostra, per MN, W, D, H8, H4, H1, M30, M15, M5 e M1: la posizione del prezzo rispetto all'ultima candela chiusa (breakout al rialzo/ribasso, all'interno del range sopra/sotto la chiusura, sulla chiusura), una lettura del trend basata sulla Media Mobile Adattiva di Kaufman (AMA),
VAMA Signal Simulator analizza 7 timeframe (M1-D1, ponderati dal 5% al 30%) e valuta ciascuno con 4 medie mobili e 6 oscillatori, combinandoli in una lettura ponderata Strong Buy/Buy/Neutral/Sell/Strong Sell. Un segnale confermato deve anche concordare con una media mobile H4 adattiva alla volatilità (il periodo si accorcia con alta volatilità, si allunga nei mercati calmi) E con la direzione del trend su M15 e H1. Ogni segnale confermato riceve una freccia e un'etichetta BUY/SELL sul grafico, c
MiniBull Algorithmic Signal Engine è un sistema di trading multi-timeframe per MetaTrader 5, disponibile come indicatore e come Expert Advisor. Valuta 7 timeframe (M1-D1) su 4 medie mobili e 6 oscillatori, filtra il risultato tramite una media di tendenza H4 adattiva alla volatilità (VAMA), quindi richiede che sia M15 sia H1 confermino la direzione prima di agire — nessuna conferma parziale. L'EA offre due modalità: Faithful (lotto fisso di 0,02, rischio:rendimento 1:1, replica esatta dello sc
Filtro:
Nessuna recensione
Rispondi alla recensione