I am trying to do this in the formula editor.
I have a user-defined variable named say SL, which is computed from price.
I want to compute the moving average on the values of SL. Can I do this? I want to write something like
var SL = <some calculation>;
var newMA = new MAStudy(3, 0, SL, "CLOSE", MAStudy.SIMPLE);
I am getting a syntax error saying parameter 3 is incorrect.
Any help is appreciated.
Thanks.
I have a user-defined variable named say SL, which is computed from price.
I want to compute the moving average on the values of SL. Can I do this? I want to write something like
var SL = <some calculation>;
var newMA = new MAStudy(3, 0, SL, "CLOSE", MAStudy.SIMPLE);
I am getting a syntax error saying parameter 3 is incorrect.
Any help is appreciated.
Thanks.
Comment