I'm using the ema() function and I want to covert the value to a string. I have this code, but I get an error saying "vStr:has no properties."
var vEMA = ema(10);
var vTemp = vEMA.getValue(0);
var vStr = vTemp.toString();
If howerver, I use the non-efs MA study I receive no error message and the value of the moving average is now stored as a string.
var vEMA = new MAStudy(10, 0, "Close", MAStudy.EXPONENTIAL);
var vTemp = vEME.getValue(MAStudy.MA);
var vStr = vTemp.toString();
Is there a workaround the efs2 version to convert the value to a string?
var vEMA = ema(10);
var vTemp = vEMA.getValue(0);
var vStr = vTemp.toString();
If howerver, I use the non-efs MA study I receive no error message and the value of the moving average is now stored as a string.
var vEMA = new MAStudy(10, 0, "Close", MAStudy.EXPONENTIAL);
var vTemp = vEME.getValue(MAStudy.MA);
var vStr = vTemp.toString();
Is there a workaround the efs2 version to convert the value to a string?
Comment