View Single Post
  #1 (permalink)  
Old 09-10-2007, 07:59 PM
ontherun ontherun is offline
Junior Member
 
Join Date: Dec 2005
Posts: 13
ontherun is on a distinguished road
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...
Reply With Quote