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

[EquisMetaStock Group] Programing CG oscillator



PureBytes Links

Trading Reference Links



Please, can someone help me to program the CG oscillator of J.Ehlers in Metastock language.
Thanks for your helping,
Marc.
 
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");Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail






Yahoo! Groups Sponsor


  ADVERTISEMENT 









To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.