finnhan
Above the drawText command insert the following line if(vEMA3_of_vRSI14.getValue(MAStudy.MA)==null) return;
which will perform a null check on the value of the ema of RSI. Then in the drawText command replace vEMA3_of_vRSI14.getValue(MAStudy.MA)
with vEMA3_of_vRSI14.getValue(MAStudy.MA).toFixed(2)
The .toFixed() method will limit the number of decimals to the value you define (2 in the example shown above).
Alex
Comment