Hi Alex,
Would you know how I could obtain the EMA (Exponential MA) for the Daily Range?
I am currently trying (in section before preMain) :-
var DailyRange;
// The 55 EMA of the period's range
var EMA55_of_Range = new MAStudy(55, 0, DailyRange, MAStudy.MA, MAStudy.EXPONENTIAL);
Then in Main :-
DailyRange = high() - low();
var vEMA_of_Range = EMA55_of_Range.getValue(MAStudy.MA, 0);
But I get syntax error saying the DailyRange parameter (the 3rd parameter) in the MAStudy is invalid. I know it is not assigned in value but the variable is declared.
What needs to be done?
Thanks,
Christopher
Would you know how I could obtain the EMA (Exponential MA) for the Daily Range?
I am currently trying (in section before preMain) :-
var DailyRange;
// The 55 EMA of the period's range
var EMA55_of_Range = new MAStudy(55, 0, DailyRange, MAStudy.MA, MAStudy.EXPONENTIAL);
Then in Main :-
DailyRange = high() - low();
var vEMA_of_Range = EMA55_of_Range.getValue(MAStudy.MA, 0);
But I get syntax error saying the DailyRange parameter (the 3rd parameter) in the MAStudy is invalid. I know it is not assigned in value but the variable is declared.
What needs to be done?
Thanks,
Christopher
Comment