@@ -73,9 +73,12 @@ public override void Initialize()
7373 _qqq = AddEquity ( "QQQ" ) . Symbol ;
7474 // Add the IchimokuKinkoHyo indicator.
7575 _ichimoku = ICHIMOKU ( _qqq , 9 , 26 , 52 , 26 , 26 , 52 , Resolution . Daily ) ;
76+ // Alternatively, use a manual indicator.
77+ // _ichimoku = new IchimokuKinkoHyo(9, 26, 52, 26, 26, 52);
78+ // RegisterIndicator(_qqq, _ichimoku, Resolution.Daily);
7679 // Manual warm-up: need WarmUpPeriod + 1 so both .Current and .Previous are valid.
7780 IndicatorHistory ( _ichimoku , _qqq , _ichimoku . WarmUpPeriod + 1 , Resolution . Daily ) ;
78- // Plot all five Ichimoku components — Tenkan, Kijun, Senkou A, Senkou B, Chikou.
81+ // Plot all five Ichimoku components - Tenkan, Kijun, Senkou A, Senkou B, Chikou.
7982 PlotIndicator ( "Ichimoku" , _ichimoku . Tenkan , _ichimoku . Kijun , _ichimoku . SenkouA , _ichimoku . SenkouB , _ichimoku . Chikou ) ;
8083 // Add a Scheduled Event to scan for trades every trading day at 8 AM.
8184 Schedule . On ( DateRules . EveryDay ( _qqq ) , TimeRules . At ( 8 , 0 ) , Rebalance ) ;
0 commit comments