I have a indicator that I put on the Daily Chart which shows me what the %change for the first 30min . For example looking at SPY-DailyChart instrument on April 28,2017 when I load that indicator it show that for the first 30min on April 28,2017 %chg was -0.15%.
----------
My issues is when I put that indicator into SampleStreamWriter. It will only spit out 256 results for the %chg indicator. How can I tell ninjatrader to # look back bars to load 1000 Daily as well 1000 30min for the indicator. So for every Daily bar I want as well the first 30min for that day.
{ Add(PeriodType.Minute, 30); Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0")); Overlay = false; } protected override void OnBarUpdate() { if(CurrentBars[0] <= BarsRequired || CurrentBars[1] <= BarsRequired) return; if (BarsInProgress ==0) { Plot0.Set(((Closes[1][12] / Opens[1][12])-1)*100) ; } }
Comment