Skip to content

Professional Supply & Demand indicator for cTrader with automated BOS detection and momentum validation.

Notifications You must be signed in to change notification settings

QuantForgeIO/cTrader-Smart-Structure-SMC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Smart Structure Origin Indicator

🏦 Smart Structure Origin (SMC) for cTrader

cTrader Language Category

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.


πŸš€ Key Features

  • 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 MaxConsolidation filter. 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.

πŸ› οΈ Installation

  1. Download the .algo file (or compile the source code).
  2. Double-click to install into cTrader.
  3. Open cTrader, press F11 (or add indicator), and search for SmartStructureOrigin.

βš™οΈ Parameters

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.

πŸ’» Code Logic Snippet

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.*

About

Professional Supply & Demand indicator for cTrader with automated BOS detection and momentum validation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published