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

Re: [amibroker] Re: AFL, just to improve my skills...



PureBytes Links

Trading Reference Links

Hello,

CMO itself is here:
http://www.amibroker.com/library/detail.php?id=239


FibCMO formula:


function CMO( array, cmopds)
{
CMO_1=Sum( IIf( array > Ref( array, -1 ) , ( C - Ref( array ,-1 ) ) ,0 ) ,cmopds ) ;
CMO_2=Sum( IIf( array < Ref( array ,-1 ) , ( Ref( array ,-1 ) - array )  ,0 ) ,cmopds );

return 100 * (( CMO_1 -CMO_2)  /( CMO_1+CMO_2));
}


FibCMO = (CMO(C,3)+CMO(C,5)+CMO(C,8))/3;


Plot( FibCMO, "FibCMO", colorRed );


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "gillesdeprez" <gillesdeprez@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, December 06, 2003 1:15 PM
Subject: [amibroker] Re: AFL, just to improve my skills...


> Hi Graham!
> I had a look at the library already...Most of the CCT formulas are 
> translated there...Except the one I'm looking for! Well, I'm not 
> interested by the formula itself, but by a way to run the same 
> formula 3 times with the period changing (3,5 and 8 days for the 
> CMO), in other words:
> CCTfibCMO=(CMO(C,3)+CMO(C,5)+CMO(C,8))/3;
> I'm only looking for an elegant way to solve the question...
> Thanks anyway for your answer!
> Friendly,
> Gilles
> 
> 
> In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> > Gilles
> > Go to the AB website AFL library and type in search CMO. It came up 
> with a
> > few AFL's from that search. 
> > All seem to reference Chande and Momentum
> > 
> > Cheers,
> > Graham
> > http://groups.msn.com/asxsharetrading
> > http://groups.msn.com/fmsaustralia 
> > 
> > -----Original Message-----
> > From: gillesdeprez [mailto:gillesdeprez@x...] 
> > Sent: Saturday, 6 December 2003 7:28 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] AFL, just to improve my skills...
> > 
> > 
> > Hi group!
> > Could one of you AFL skilled guys have a look at post 53742 ? I'm 
> sure it's
> > possible to write the formula without re-writing 3 
> > times the CMO with 3 different periods? But I'm scratching my head 
> > for hours now, and all I get is a "syntax error"...
> > Can somebody help?
> > PS If the Aussies could stop talking about the beauties of their 
> > climate??? Here it's cold  , grey and rainy, and ...life is a bitch 
> > and then you die!Grr! :o)
> > Friendly,
> > Gilles
> > 
> > 
> > ------------------------ Yahoo! Groups Sponsor ---------------------
> ~--> Buy
> > Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark 
> Printer
> > at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
> > http://www.c1tracking.com/l.asp?cid=5511
> > http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
> > --------------------------------------------------------------------
> -~->
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/
> 
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/