zzz_ed
Enclosed below is a sample script that will compute a 10 period momentum of a 34 period exponential average.
To create the script I used the new EFS2 builtin studies. For more information on these studies see the EFS2 Function Reference that is in the EFS KnowledgeBase
Alex
PHP Code:
function main(){
var myStudy = mom(10,ema(34));
return myStudy;
}
zzz_ed
You are most welcome.
FYI since the study could be of interest also to others I uploaded here a fully customizable version of the Momentum of MA study which is also preset for use with multiple intervals or external symbols
Alex
Alexis ...thanks for the help .......when i downloaded the indicator i recieved an error message on line 74 ....Reference Error : mom is not defined . I am using e-signal 7.8 if that make any difference.
Comment