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

[amibroker] Ehlers Center of Gravity oscillator



PureBytes Links

Trading Reference Links

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

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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