//+------------------------------------------------------------------+
//|                                  MarketStructure_BOS_CHoCH_MT5.mq5|
//|                    Copyright 2026, TraderSentiments Quant Team   |
//|                                    https://tradersentiments.com  |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, TraderSentiments"
#property link      "https://tradersentiments.com/indicators/mt5/smart-money/break-of-structure-indicator"
#property version   "2.10"
#property indicator_chart_window

input int      InpSwingDepth       = 5;          // Swing Depth
input bool     InpShowBOS          = true;       // Show BOS Lines
input bool     InpShowCHoCH        = true;       // Show CHoCH Lines
input bool     InpPushAlerts       = true;       // Mobile Push Alerts

int OnInit()
  {
   IndicatorSetString(INDICATOR_SHORTNAME, "BOS & CHoCH Market Structure MT5");
   return(INIT_SUCCEEDED);
  }

void OnDeinit(const int reason)
  {
   ObjectsDeleteAll(0, "TS_BOS_MT5_");
  }

int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
   return(rates_total);
  }
