private KeltnerEmaAtr k; protected override void OnStartUp() { k = new KeltnerEmaAtr(); } ~~~~~~ protected override void OnBarUpdate() { if (CurrentBar < k.MainPeriod) // (k.MainPeriod = 20) return; Print (Close[0]+" = "+k.Upper[0]); }
**NT** Error on calling 'OnBarUpdate' method for strategy 'AutoSysTrader/d2d5700a1a99406b9073e5b5a3922b3a': Index was outside the bounds of the array.
Comment