I can get a 2EMA (vMinorEMA) to plot and work with withj no problem, but when I try to grab the PREVIOUS value of 2EMA (vMinorEMAPREV1), I get null
Why?
nPriceSource = "O"; // nPriceSource == "C" || nPriceSource == "O" || nPriceSource == "H" || nPriceSource == "L")
nType = "MAStudy.EXPONENTIAL"; // nType == "MAStudy.EXPONENTIAL" || nType == "MAStudy.SIMPLE" || nType == "MAStudy.WEIGHTED" || nType == "MAStudy.VOLUMEWEIGHTED"
MINOREMAstudy = new MAStudy(2, 0, nPriceSource, eval(nType));
vMinorEMA = MINOREMAstudy.getValue(MAStudy.MA);
vMinorEMAPREV1 = MINOREMAstudy.getValue(-1);
Why?
nPriceSource = "O"; // nPriceSource == "C" || nPriceSource == "O" || nPriceSource == "H" || nPriceSource == "L")
nType = "MAStudy.EXPONENTIAL"; // nType == "MAStudy.EXPONENTIAL" || nType == "MAStudy.SIMPLE" || nType == "MAStudy.WEIGHTED" || nType == "MAStudy.VOLUMEWEIGHTED"
MINOREMAstudy = new MAStudy(2, 0, nPriceSource, eval(nType));
vMinorEMA = MINOREMAstudy.getValue(MAStudy.MA);
vMinorEMAPREV1 = MINOREMAstudy.getValue(-1);
Comment