I am using a moving average of
vMA5x = new MAStudy(5, -3, "Close", MAStudy.EXPONENTAL);
vMA5 = vMA5x.getValue(MAStudy.MA);
The IF condition is something like this.
if (vMA5 > vMA8) && (vMA5 > vMA12)
I do a function etc. What I wanted to do was to see what the value is in vMA5 for purpose of validating my results. So I place a
debugPrintln("vMA5-3 : " +vMA5); just after doing my alert and placing a flag on the chart. the value that was return was
vMA5-3 : null
Not sure how that this can be a "null" value used in this IF condition and still be true result for the IF statment.
vMA5x = new MAStudy(5, -3, "Close", MAStudy.EXPONENTAL);
vMA5 = vMA5x.getValue(MAStudy.MA);
The IF condition is something like this.
if (vMA5 > vMA8) && (vMA5 > vMA12)
I do a function etc. What I wanted to do was to see what the value is in vMA5 for purpose of validating my results. So I place a
debugPrintln("vMA5-3 : " +vMA5); just after doing my alert and placing a flag on the chart. the value that was return was
vMA5-3 : null
Not sure how that this can be a "null" value used in this IF condition and still be true result for the IF statment.
Comment