hi fellow traders,
im currently in the process of writing an efs trading system. im calculating a handfull (or two) of custom homegrown indicators. since a few of them are somewhat choppy i want to use EMAs to smooth them. now here's the problem:
all the efs scripts i've come along are quite ugly - in other words it is not a real template that you can use for more than one EMA in the same script.
the latest version - alexis ma-ema-wmaof_template.efs would solve the problem of calculating EMAs on my vars - but since i will have more than one ema in my tradings system script (short:TSS)
i would have to add dozens of control variables outside of main (one set for each single EMA) and - what is much worse - you have to write multiple EMA formulas since the control variables are called from within the EMA functions (one function foe each individual EMA)!. this is true for all different EMA scripts ive found.
is there a better solution already out somewhere ? There must be a better solution (programmingwise) . for instance linnsofts investor/rt based on esignal offers an EMA() template and you can feed a custom indicator to it too. so you only call
EMA(indicator1,10);
EMA(indicator2,20);
EMA(indicator3,5);
EMA(indicator4,8);
this is neat code! one size fits all.no multiple EMA functions, not 100 control vars.
I really wonder why nobody else has recognized the weakness of EMA functions so far.... or did I miss something?
regards,
EZ-T
im currently in the process of writing an efs trading system. im calculating a handfull (or two) of custom homegrown indicators. since a few of them are somewhat choppy i want to use EMAs to smooth them. now here's the problem:
all the efs scripts i've come along are quite ugly - in other words it is not a real template that you can use for more than one EMA in the same script.
the latest version - alexis ma-ema-wmaof_template.efs would solve the problem of calculating EMAs on my vars - but since i will have more than one ema in my tradings system script (short:TSS)
i would have to add dozens of control variables outside of main (one set for each single EMA) and - what is much worse - you have to write multiple EMA formulas since the control variables are called from within the EMA functions (one function foe each individual EMA)!. this is true for all different EMA scripts ive found.
is there a better solution already out somewhere ? There must be a better solution (programmingwise) . for instance linnsofts investor/rt based on esignal offers an EMA() template and you can feed a custom indicator to it too. so you only call
EMA(indicator1,10);
EMA(indicator2,20);
EMA(indicator3,5);
EMA(indicator4,8);
this is neat code! one size fits all.no multiple EMA functions, not 100 control vars.
I really wonder why nobody else has recognized the weakness of EMA functions so far.... or did I miss something?
regards,
EZ-T
Comment