PureBytes Links
Trading Reference Links
|
Posted this 5 hours ago....trying again.
I just can't leave anything as is. Ehlers' CG oscillator had a remarkable
resemblance to Levine's Win Midas indicator so I took the liberty of adding
a Mode switch to the TASC CG Oscillator in the May issue. The effect is to
provide some trend indication that a trader might use in conjunction with
the CG Oscillator.
Mode1= original oscillator. Mode(0)=Levine version. This mod was done in
haste without forethought of consequences of its use nor implications of
profits or losses...purely spontaneous and inspirational.
enjoy,
bobr
========================
{John Ehlers, Technical Analysis of Stocks and Commodities May 2002}
{modified for trend indication BobR 4/17/2002}
{Mode1= original oscillator using Price, Mode2=oscillator using volume for
trend indication}
Inputs: Price((H+L)/2),Length(10),vol(volume),Mode(1);
Vars: count(0),Num(0),Denom(0),CG(0);
If Mode=1 then begin
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");
end;
If Mode=0 then begin
Num=0;
Denom=0;
For count=0 to Length-1 begin
Num=Num+(vol[count])*(Price[count]);
Denom=Denom+(vol[count]);
End;
If Denom<>0 then CG=Num/Denom;
Plot1(CG,"CG");
Plot2(CG[1],"CG1");
end;
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Stock for $4
and no minimums.
FREE Money 2002.
http://us.click.yahoo.com/orkH0C/n97DAA/ySSFAA/zMEolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Attachment:
Description: "CGOSC.ELA"
Attachment:
Description: "CGOsc.gif"
|