|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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"); |
|
||||
|
Quote:
Thank you very much for your suggestion; it's really a very good exercise. It will be our next lesson. At the same time the Oscillator's name starts with my name's first letters CG (Center of Gravity) (Coders' Guru) ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stochastic Oscillator | newdigital | Setup Questions | 114 | 07-04-2008 05:31 PM |
| WESS-Oscillator | McDuck | Suggestions for Trading Systems | 12 | 04-02-2007 02:43 AM |
| Awesome oscillator | trevman | Metatrader 4 | 0 | 12-15-2006 03:32 PM |
| Oscillator Indicator | babarmughal | Indicators - Metatrader 4 | 5 | 05-07-2006 08:38 AM |
| Oscillator | 006 | Expert Advisors - Metatrader 4 | 2 | 01-28-2006 04:49 PM |