I"m not at all a "good" coder, but have had some success using dataseries in the past. The script code below doesn't work (doesn't paint anything in pane, just blank). I did some debugging (commenting out things one at a time) and it seems that the problem stems from when the code tries to access myDataSeries[1]. When the code calls for myDataSeries[0], it seems ok.
Here is the code:
myValue = EMA(Typical,period)[0];
myDataSeries.Set(myValue);
myValue1 = 2*(myDataSeries[0]-myDataSeries[1])/(myDataSeries[0]+myDataSeries[1]);
myDataSeries2.Set(myValue1);
Plot0.Set(100*EMA(myDataSeries2,3)[0]);
And yes, I have the proper variables declared and the dataseries initialized in the proper place. Any ideas? I'm hoping I've done something really stupid
Thanks much for any help!
Comment