First of all, I would like to say that I am an absolute beginner in ninjascript coding...
I am currently in the learning phase and I need a little help with a problem that I don't know how to solve...
I get an error when compiling ninjascript, it is probably an error in the object overriding and I don't know how to solve the problem...
I have defined a range using
private Series<double> MySeries;
next I create an object
MySeries = new Series<double>(this);
then I specify a condition on this object that will hold the difference
close - open of the current candle
MySeries[0] = Close[0] - Open[0];
and I would like to create a something like this
if (
MySeries[0] >2 * StdDev( MySeries[0] )[0]
)
but every time I try to compile the script, I get an error related to overriding..
Once again I apologize for the beginner's question and thank you very much for any help..
I would like to understand at least the basic logic of how to create ninjascript and where I am making a mistake..
Comment