Would anyone be able to advise how one can use a calculated value as a parameter to a function?
For example, given the function :-
var vPMP = new MAStudy(3, 0, "HL/2", MAStudy.SIMPLE);
var vEMA3_of_PMP = new MAStudy(3, 0, vPMP , MAStudy.EXPONENTIAL);
return vEMA3_of_PMP.getValue(MAStudy.MA)
I would like to use a calculated value, say vPMP, instead of something like "HL/2" but this generates nothing.
For example, given the function :-
var vPMP = new MAStudy(3, 0, "HL/2", MAStudy.SIMPLE);
var vEMA3_of_PMP = new MAStudy(3, 0, vPMP , MAStudy.EXPONENTIAL);
return vEMA3_of_PMP.getValue(MAStudy.MA)
I would like to use a calculated value, say vPMP, instead of something like "HL/2" but this generates nothing.
Comment