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

RE: [amibroker] Momentum Index



PureBytes Links

Trading Reference Links

Period.

Just set a line before: pds = 14;

 

Regards

- - - - - - - - - - - - - - - - - - - -
Thomas
www.tradingbasis.com
support@xxxxxxxxxxxxxxxx
- - - - - - - - - - - - - - - - - - - -


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of martinod
Sent: Wednesday, April 05, 2006 12:49 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE : [amibroker] Momentum Index

 

Hello,

 

What is « pds »  in your Database,

 

Thank you,

 

AL,

 

-----Message d'origine-----
De : amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] De la part de Thomas Z.
Envoyé : mercredi 5 avril 2006 11:57
À : amibroker@xxxxxxxxxxxxxxx
Objet : RE: [amibroker] Momentum Index

 

Hi,

 

i have not checked it but found this in my database…

 

CMO =

100*((Sum(IIf(C > Ref(C,-1),(C-Ref(C,-1)),0),pds)) -

(Sum(IIf(C < Ref(C,-1),(Ref(C,-1)-C),0),pds))) /

((Sum(IIf(C > Ref(C,-1),(C-Ref(C,-1)),0),pds)

+(Sum(IIf(C < Ref(C,-1),(Ref(C,-1)-C),0),pds)))) ;

 

Regards

- - - - - - - - - - - - - - - - - - - -
Thomas
www.tradingbasis.com
support@xxxxxxxxxxxxxxxx
- - - - - - - - - - - - - - - - - - - -


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of alex huynh
Sent: Wednesday, April 05, 2006 11:03 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Momentum Index

 

Hi,

I am missing a piece of puzzle (A of B) to complete translate code. anyone reproduce similiar to the code greatly appreciate. I'm trying to get into Momentum Index.

 

Regards,

Alex

 

 

//Chande's Momentum Oscillator II

periods=Param("Periods",14,5,30,1);

//{define an up Day AND down Day}

upday=IIf(C>Ref(C,-1),C-Ref(C,-1),0);

downday=IIf(Ref(C,-1)> C,Ref(C,-1)-C,0);

//{Sum up the up AND down days over the given period}

sumup=Sum(upday,periods);

sumdown=Sum(downday,periods);

//{define the CMO}

CD=100*(sumup-sumdown)/(sumup+sumdown);

 

/////////////////////////////////////

 

//Momentum Index

PD= Param("Lookback Period",30, 5, 220, 1);

MI= {Chande Momentum Osc (C,PD)}

((Sum(IIf(Close,>,Ref(Close,-1), (Close-Ref(Close,-1)),0),pd)) -

(Sum(IIf(Close,<,Ref(Close,-1), (Ref(Close,-1)- Close),0),pd))) /

((Sum(IIf(Close,>,Ref(Close,-1), (Close-Ref(Close,-1)),0),pd) +

(Sum(IIf(Close,<,Ref(Close,-1), (Ref(Close,-1)- Close),0),pd))))*100; // problem start here

 


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.



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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS