거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

SMC Order Block Detector with Alert for MT5 - MetaTrader 5용 지표

조회수:
2384
평가:
(3)
게시됨:
업데이트됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Technical Workflow & Architecture

This indicator operates on an event-driven and sequential calculation pipeline inside the OnCalculate and OnTimer functions. Below is the step-by-step execution flow:

1. Initialization ( OnInit )

  • Sets chart digits precision dynamically using _Digits .

  • Clears any legacy drawing objects prefixed with "SMC_OB_" to ensure a clean slate.

  • Initializes global variables, structural validation buffers, and state tracking arrays.

2. Historical Iteration & Optimization ( OnCalculate Loop)

  • The engine loops through historical rates starting from prev_calculated - 1 to ensure efficient incremental updates without reprocessing the entire chart history.

  • Price Filter Optimization: To save CPU cycles, the loop evaluates whether current price action exceeds prev_valid_high or prev_valid_low . If price stays within boundaries, minor updates are skipped.

3. Pivot & Structure Tracking ( ValidBar Struct)

  • Utilizes a rolling 3-bar structural window ( vb1 , vb2 , vb3 ) to track swing points dynamically using absolute timestamps ( datetime ) rather than volatile bar indices. This guarantees absolute positioning stability across terminal reloads and timeframe switches.

4. Order Block Detection & Filtering Logic

  • Bullish OB: Identified when a lower low ( vb2.l < vb3.l ) is followed by an impulsive displacement breaking above vb2.h ( vb0.l > vb2.h ), leaving a measurable Fair Value Gap ( fvg_size ).

  • Bearish OB: Identified when a higher high ( vb2.h > vb3.h ) is followed by a displacement breaking below vb2.l ( vb0.l < vb2.h ).

  • Overlap & Nested Filtering: When a new OB forms inside an existing zone, the engine compares their FVG sizes and automatically deactivates the weaker/smaller block.

5. Mitigation Management

  • Continuously scans historical and live bars against active OB boundaries.

  • Supports dual mitigation modes:

    • Mitigation by Body: Deactivates the OB if a candle closes beyond its opposite boundary.

    • Mitigation by Wick: Deactivates the OB the moment a wick penetrates the boundary.

6. Real-Time Tick Engine & Alert Mechanism

  • On every incoming tick ( rates_total > 1 ), the engine monitors the live bar ( rates_total - 1 ) using the real-time Bid price ( SymbolInfoDouble ).

  • Checks for price crossings against active Bullish and Bearish OB zones.

  • Incorporates a bar-based cooldown filter ( InpAlertCooldownBars ) to prevent duplicate alert spam when price lingers inside an OB zone.

7. Graphical Rendering ( UpdateOBGraphics )

  • Manages rectangle objects ( OBJ_RECTANGLE ) and text labels dynamically.

  • Respects the maximum limit set by InpMaxOB , automatically cleaning up expired or mitigated visual zones to keep the chart clutter-free.


GoldScalpBot — Autonomous XAUUSD Scalper with Local App Bridge (IC Markets) GoldScalpBot — Autonomous XAUUSD Scalper with Local App Bridge (IC Markets)

What it does DEMO = unlimited free. LIVE = 7-day trial, then rent GoldScalping Pro on MQL5 Market: https://www.mql5.com/en/market/product/190166 Trades XAUUSD on M5 during London / New York sessions Entry logic: EMA momentum + short breakout/retest filters Exits: ATR-based Stop Loss / Take Profit + optional time-stop Risk: fixed % of equity per base trade Lot scaling: increases only after consecutive wins (capped) — no martingale after losses Daily loss stop and max spread filter Optional local HTTP bridge for a companion mobile/web app (monitor, pause, close, modify SL/TP)

Portfolio Correlation Analyzer Portfolio Correlation Analyzer

Read-only analytics for accounts that run several Expert Advisors. It groups closed trades by magic number and measures what running those systems together actually saves you: standalone versus combined drawdown, the pairwise correlation matrix drawn as a heat map on the chart, and a Monte Carlo reshuffle of the portfolio's period returns.

Bands StochRSI Extreme Reversal Bands StochRSI Extreme Reversal

Bands StochRSI Extreme Reversal — spots mean-reversion signals where price closes back inside the Bollinger Band after Stochastic RSI hit an extreme zone, with an on-chart status panel.

Trade Manager Panel Simple Interactive Chart Trading Tool with Risk Management for MT5 Trade Manager Panel Simple Interactive Chart Trading Tool with Risk Management for MT5

An Simple MQL5 trade management panel featuring drag-and-drop chart lines, dynamic lot sizing based on risk percentage, ATR/Point Stop Loss modes, and real-time floating P/L monitoring.