[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Dinapoli MACD



PureBytes Links

Trading Reference Links

There is something wrong with this formula and I can't figure it out.

FastLength = Param("FastLength",.213,0,36,2);
SlowLength = Param("SlowLength",.108,0,52,2);
MACMA = Param("MACMA",.199,0,15,1);


SmoothingFactor1 = 2 / ( fastlength + 1 ) ;
SmoothingFactor2 = 2 / ( slowlength + 1 ) ;
SmoothingFactor3 = 2 / ( MACMA + 1 ) ;

EMA1 = EMA (Close, fastlength) ;
EMAfast = EMA1 + ( SmoothingFactor1 * (Close-EMA1) ) ;

EMA2 = EMA (Close, slowlength );
EMAslow = EMA2 + ( SmoothingFactor2 * (Close - EMA2) ) ;

MACD1 = EMAfast-EMAslow ;


Plot (MACD1, "", 5, 4 ) ;


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS