Join our fan page
Market Structure SMC: Swings, BOS/CHoCH, Order Blocks, FVG, QML - indicator for MetaTrader 5
- Views:
- 426
- Rating:
- Published:
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
A clean Smart Money Concepts (SMC/ICT) market-structure indicator for MetaTrader 5. It reads the sequence of swing highs and lows and marks the full structure on the chart.
What it draws:
- Swing highs/lows — N-bar fractal points (arrows).
- BOS (Break of Structure) — a close beyond the last swing in the trend direction = continuation.
- CHoCH (Change of Character) — a close beyond the last swing against the trend = possible reversal.
- Order Blocks — the last opposite candle before a structure break.
- Fair Value Gaps (FVG) — 3-candle imbalance zones.
- QML (Quasimodo) — on a CHoCH, a dotted line at the left-shoulder swing (sell = previous high, buy = previous low) as a retrace reference.
Inputs:
- InpSwingN — fractal bars each side (swing sensitivity; higher = fewer, larger swings).
- InpBreakOnClose — confirm breaks on candle close (true) or wick (false).
- InpMaxBars — recent bars to analyze.
- InpShowLines / InpShowLabels — broken-level line and BOS/CHoCH text.
- InpShowFVG / InpFVGColor — Fair Value Gaps and color.
- InpShowOB / InpOBBullColor / InpOBBearColor — Order Blocks and colors.
- InpShowQML / InpQMLColor — QML levels and color.
Works on any symbol and timeframe. All markings are close-confirmed and redrawn on each new bar.

Trade Journal Exporter - closed positions to CSV
Exports your closed positions for a configurable period to a CSV file for journal analysis in Excel or Google Sheets: entry and exit time and price (volume-weighted over partial fills), volume, result in points, commission, swap, net profit and trade duration.
Position Size Calculator - risk-based lot sizing script
Calculates the correct lot size for a planned trade from your risk (percent of equity or a fixed money amount) and stop-loss distance (points or a price level). Respects the symbol's contract specification - tick size and value, volume min/max/step - and estimates the required margin.
KCI Standard: A Pure Kinematic Computing Engine for Market Singularity Detection
The Kinetic Compression Index (KCI) Standard is a high-performance, purely mathematical oscillator designed to detect extreme market exhaustion and volumetric compression points known as "Singularities." By abandoning traditional, lagging indicator handles in favor of native kinematic calculations, KCI offers unparalleled execution speed and CPU efficiency. This article details the mathematical foundation, system architecture, core code mechanics, and practical integration guides for developers looking to implement this asynchronous-proof engine into Expert Advisors and Custom Indicators.
EA KCI Embeded Sniper
The KCI Embedded Sniper is an algorithmic trading solution designed for high-precision reversal entries. Unlike conventional Expert Advisors that rely on external indicator dependencies (which often suffer from thread desynchronization and latency), this EA features a fully embedded Kinetic Compression Index (KCI) engine. By transplanting the entire mathematical framework of the KCI—calculating Velocity Quotients, Kinetic Displacement, Energy Dispersion, and Phase Velocity—directly into the EA’s core logic, we have eliminated "asynchronous lag." The result is a lightning-fast sniper engine that validates market exhaustion (Singularity) and momentum extremes (Williams %R) with micro-second precision, operating solely on completed bars to ensure zero-repaint performance.