I'm new to ninjascript, but not new to programming.
I used the ninjascript tool to create a simple indicator and have been able to plot the following
double plotme = Close[0];
Plot0.Set( plotme );
but nothing plots(draws) when I do the following:
double plotme = Close[0] - Close[1];
Plot0.Set( plotme );
futhermore, nothing plots(draws) using the following:
double plotme = Close[1];
Plot0.Set( plotme );
My ultimate goal is to perform calculations on on EMA(60)[0] and EMA(60)[1], but I ran into into same problems I have with Close[0] and Close[1]
what am I missing?
Any suggested code snippets to review?
Comment