OnBarUpdate()
if (CurrentBar <= BarsRequiredToPlot) return;
if (Bars.IsFirstBarOfSession)
Value[0] = Close[0];
else
{ Value[0] = Value[1] + Close[0]; }
Very simple. The problem is I cannot seem to make the second indicator use the first as input. I change Input series to first indicator, but it will always use price data series instead. I tried several different input series without success. I've done this many times with other indicators on indicators. Where am I going wrong?
Also, I tried calling the first indicator from within the second by setting a variable = first indicator. All I got was a zero line. This second indicator only has any value in relation to the first, so no real reason to make it input flexible. Is there a way to force the second to always use the first as input series? Thanks.
Comment