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

Re: [amibroker] Ehlers Center of Gravity oscillator



PureBytes Links

Trading Reference Links

Eugene,
 
You can find it at this link in Third Party section  http://www.amibroker.org/3rdparty/
 
Its included in the indicators.dll  ....  Indicators Help.zip explains what is contained in the dll file.
 
Many thanks to Stephane Carrassett for providing this code.
 
Greg
----- Original Message -----
From: Eugene
Sent: Saturday, June 18, 2005 7:46 AM
Subject: [amibroker] Ehlers Center of Gravity oscillator

Inputs:      Price((H+L)/2),            Length(10);
Vars:                 count(0),            Num(0),            Denom(0),            CG(0);     
Num = 0;
Denom = 0;
For count = 0 to Length - 1 begin
Num = Num + (1 + count)*(Price[count]);      Denom = Denom + (Price[count]);
End;
If Denom <> 0 then CG = -Num/Denom;
Plot1(CG, "CG");
Plot2(CG[1], "CG1");

Here is the easy language code for it...

Has anyone translated into afl?

Thanks




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





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