I have set up a new indicator with just the basics to check that the data will print and everything is working but some plot data is not returning a value. Basic set up is:
This is all working
Initialise - private indicator indicator1; and private indicator indicator2;
State.Configure - AddRenko(null, 12, MarketDataType.Last); (indicator2 = my second series)
State.DataLoaded - indicator1 = indicator(Closes[0],parameters); and indicator2 = indicator(Closes[1],parameters);
OnBarUpdate() - Print MACD, Ave, and Diff works for both series fine and Print values as per the Data Box (these all change value on each bar)
This is not working
OnBarUpdate() - Print Upper & Lower for both series plot ok and is listed correctly in Data Box but Print as 0 in Output Window (these don't change value on every bar)
The indicator.Upper & indicator.Lower are the same value as the indicator.Diff on their respective bars and that also matches the Data Box (bars in between plots is "n/a" in the Data Box and should Print as 0) I have already checked for typos so that is not the problem
Because Upper & Lower dont change value on every single bar do I need to add something to BarsinProgress ==0 & BarsinProgress ==1 to get a variable value other than 0 to print
It is a bit confusing that everything that updates every bar Prints the data perfectly even if I add other Ema's
Comment