/// </summary>
protected override void OnBarUpdate()
{
double NH1 = BarsArray[1][0];
double NL1 = BarsArray[2][0];
double NHNLavg = (NH1/(NH1 + NL1));
double NHNLSMA = SMA(Close, SMAInput)[0]; <----This is wrong, I'm sure.
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
Plot0.Set(NHNLSMA);
I am looking to be able to plot the "SMAInput" day SMA of NHNLSMA. Thanks.

Comment