Thread: GC Oscillator
View Single Post
  #1 (permalink)  
Old 11-04-2005, 01:18 PM
forexts's Avatar
forexts forexts is offline
Administrator
 
Join Date: Sep 2005
Posts: 299
forexts has disabled reputation
GC Oscillator

http://www.forex-tsd.com/showpost.ph...0&postcount=23

I think this oscillator (documented in Ehlers section), is a very good exercise for this section.

In fact I think we could develop as much indicators from Ehlers as possible.

Figure 1. Easy Language Code to Compute the CG 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");
Reply With Quote