Smart Structure Origin is a professional algorithmic indicator designed for cTrader that automatically identifies high-probability Supply & Demand zones based on Smart Money Concepts (SMC).
Unlike standard zigzag indicators, this algorithm validates zones by checking for Explosive Price Action (Momentum) to ensure only institutional-level orders are highlighted.
- Automated Market Structure: Detects Swing Highs and Lows using customizable depth.
- BOS Detection: Identifies Break of Structure events to confirm trend continuations.
- Momentum Validation: Includes a unique
MaxConsolidationfilter. Zones are only drawn if price leaves the origin area aggressively (Sharp Departure), filtering out weak setups. - Dynamic Mitigation: Zones automatically disappear or are marked as invalid once price retests and breaks through them.
- Fully Customizable: Adjust colors, opacity, lookback periods, and swing sensitivity.
- Download the
.algofile (or compile the source code). - Double-click to install into cTrader.
- Open cTrader, press
F11(or add indicator), and search for SmartStructureOrigin.
| Parameter | Default | Description |
|---|---|---|
| Lookback Period | 300 |
Number of candles to analyze historically. |
| Swing Depth | 5 |
Sensitivity for detecting Swing Highs/Lows. |
| Max Consolidation | 5 |
[Critical] Maximum candles allowed for price to leave the zone. Ensures momentum. |
| Colors | Green/Red |
Customize Supply and Demand zone aesthetics. |
The core strength of this indicator lies in the Sharp Departure logic, ensuring we only trade with momentum:
// Logic to ensure price leaves the zone aggressively
private bool IsSharpDeparture(int originIndex, double limitPrice, bool isDemand)
{
// Checks strictly within the 'MaxConsolidation' window
int checkLimit = Math.Min(originIndex + MaxConsolidation, Bars.Count - 1);
// ... verification loop
}
## π¨βπ» About The Developer
**QuantForge IO** specializes in building high-performance algorithmic trading systems, custom indicators, and automated bots for cTrader (C#) and TradingView (Pine Script).
* **Connect on X (Twitter):** [@QuantForgeIO](https://x.com/QuantForgeIO)
* **GitHub:** [QuantForgeIO](https://github.com/QuantForgeIO)
---
*Disclaimer: This tool is for educational purposes. Always backtest strategies before live trading.*