Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Center of Gravity Oscillator #438996
03/25/14 06:49
03/25/14 06:49
Joined: Jan 2013
Posts: 68
I
ibra Offline OP
Junior Member
ibra  Offline OP
Junior Member
I

Joined: Jan 2013
Posts: 68
The manual says following:
Quote:

CGOsc(var* Data, int TimePeriod): var
Center of Gravity oscillator, by John Ehlers; computes the deviation of prices from their center within the TimePeriod. Can be used to identify price turning points with almost zero lag. Source available in indicators.c.


When I'm reading this, the first thing I got to think of was Standard Deviation...

Anyone knows the difference between the two?

Thanks!

Re: Center of Gravity Oscillator [Re: ibra] #439311
03/31/14 11:17
03/31/14 11:17
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
It is not the standard deviation. The GCOsc algorithm is described in John Ehler's book.

Re: Center of Gravity Oscillator [Re: jcl] #459356
05/10/16 17:18
05/10/16 17:18
Joined: Dec 2014
Posts: 206
Germany
Smon Offline
Member
Smon  Offline
Member

Joined: Dec 2014
Posts: 206
Germany
I'm not sure about how to use CGOsc to create signals. John Ehlers himself shows two outputs (two lines) in his graph, but the Manual doesn't mention that. If I look at MACD or Bollinger Bands, I got 3 outputs and can create signals with cross over or under condition. Ehlers notes in http://www.mesasoftware.com/papers/TheCGOscillator.pdf "It is clear that every major price turning point is identified by the CG Oscillator and the crossovers formed by its trigger with zero lag." Where do I get the signal line from?

Re: Center of Gravity Oscillator [Re: Smon] #459357
05/11/16 08:19
05/11/16 08:19
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
The CGO has only one output. The other line in Ehler's image is just the signal delayed by 1 bar.

Re: Center of Gravity Oscillator [Re: jcl] #459359
05/11/16 12:39
05/11/16 12:39
Joined: Dec 2014
Posts: 206
Germany
Smon Offline
Member
Smon  Offline
Member

Joined: Dec 2014
Posts: 206
Germany
I was irritated by the looks of the graph, because it's not exactly the same graph shifted to the right. (look just after the last peak).

I think my interpretation must be false, because I get only like 400 Trades on EURUSD for the whole year 2015 on the 1min TF, compared to over 10000 with RSI.

int Cycle = 0.5*DominantPeriod(Price,20);
vars CGO = series(CGOsc(price,Cycle));

if(crossOver(CGO+1,CGO))
enterLong();
else if(crossUnder(CGO+1,CGO))
enterShort();

Re: Center of Gravity Oscillator [Re: Smon] #459369
05/12/16 08:37
05/12/16 08:37
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
The code looks ok, only "Price", not "price" must passed to CGOsc. And Ehler's chart looks indeed as if the curves were slightly different, but according to his description it's just CGO+1 vs. CGO. Maybe it's a resolution issue with his charting software.

Re: Center of Gravity Oscillator [Re: jcl] #459372
05/12/16 11:37
05/12/16 11:37
Joined: Dec 2014
Posts: 206
Germany
Smon Offline
Member
Smon  Offline
Member

Joined: Dec 2014
Posts: 206
Germany
Thank you!


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1