|
Buff MA - help to code(translate) it
Hi,
as I'm not well-versed in MT4 coding I need help with a simple formula called Buff MA; I've the corresponding formula in Metastock language as the following one:
BUFF:=Sum(V*C, 32) / (Cum(V) - Ref( Cum(V), -32));
BUFF
If someone could compile it for MT4 I'd be glad.
Buff MA helps in determining the most probable side to trade... when price is above Buff and aligned with it* only long positions are allowed... viceversa for short ones.
*(that's if Buff and price both are upward it's OK to be long... viceversa for shorting)
Thanks a lot
ontherun
ps: I've been looking for the Sum() and Cum() corresponding functions in the MetaEditor but I've not found anything related to those functions...
|