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

[Metastockusers] Re: lag-less MA/oscillator



PureBytes Links

Trading Reference Links

Adrian,

A 3/10 price oscillator is the difference between two MA's - similar 
to a 3/10 MACD - hence its roughness.  

Drawbacks with the price oscillator are:
1) values are not normalized - they will vary according to price 
scaling;
2) "jaggedness" makes it difficult to use when looking for turning 
points;
3) there is one slightly more jagged indicator, that will turn before 
the price oscillator: price.

The value in a sine-weighted MA/oscillator (SWMA), is in its ability 
to help identify turning points much clearer.  Adjust the price 
oscillator to match the smooth turning points of the SWMA, and compare 
lag then.

The SWMA's combination of smoothness and minimal lag is excellent - 
plot the SW Mov Avg (option 2) on the price to see this.  I would be 
surprised if you could find anything to match it.

jose '-)



--- In Metastockusers@xxxxxxxxxxxxxxx, "Adrian Pitt" <apitt@xxxx> 
wrote:
> Jose,
>  
> For all its complexity, it ultimately ends up looking almost 
identical
> to a simple 3/10 price oscillator! Slightly smoother, but other than
> that, the similarity is  quite amazing :) Offsetting the slightly 
more
> jagged 3/10 oscillator was the fact it would often turn 1-2 days 
before
> yours.
>  
> Cheers,
> Adrian
> 
> -----Original Message-----
> From: Jose [mailto:josesilva22@x...] 
> Sent: Wednesday, 25 February 2004 7:15 PM
> To: Metastockusers@xxxxxxxxxxxxxxx
> Subject: [Metastockusers] lag-less MA/oscillator
> 
> 
> Here's an interesting tool: 
> normalized, lag-less, sine-weighted "Moving Average", MA oscillator, 
> and divergence signals.
> 
> Comments?
> 
> jose '-)
> 
> ============================
> MA oscillator, sine-weighted
> ============================
> ---8<--------------------------------
> 
> { Normalized, lag-less, sine-weighted
>   Mov Avg & MA oscillator v1.0 }
> { Divergence signals between SWMA & oscillator:
>   +1=Long,  -1=Short }
> { CCopyright 2004 Jose Silva }
> { http://users.bigpond.com/prominex/pegasus.htm }
> 
> plot:=Input("[1]-SWMA Osc,  [2]-SW Mov Avg,  [3]-Divergences",1,3,1)
;
> pds:=Input("normalizing periods (1=none)",
> 1,2520,252);
> 
> SD:=30 {180/12};
> S1:=Sin(1*SD)*C;
> S2:=Sin(2*SD)*Ref(C,-1);
> S3:=Sin(3*SD)*Ref(C,-2);
> S4:=Sin(4*SD)*Ref(C,-3);
> S5:=Sin(5*SD)*Ref(C,-4);
> S6:=Sin(6*SD)*Ref(C,-5);
> S7:=Sin(7*SD)*Ref(C,-6);
> S8:=Sin(8*SD)*Ref(C,-7);
> S9:=Sin(9*SD)*Ref(C,-8);
> S10:=Sin(10*SD)*Ref(C,-9);
> S11:=Sin(11*SD)*Ref(C,-10);
> 
> den:=
> Sin(SD)+Sin(2*SD)+Sin(3*SD)+Sin(4*SD)+Sin(5*SD);
> SWMA:=(S1+S2+S3+S4+S5)/den;
> den:=Sin(SD)+Sin(2*SD)+Sin(3*SD)+Sin(4*SD)
> +Sin(5*SD)+Sin(6*SD)+Sin(7*SD)+Sin(8*SD)
> +Sin(9*SD)+Sin(10*SD)+Sin(11*SD);
> SWosc:=(S1+S2+S3+S4+S5+S6+S7+S8+S9+S10+S11)/den;
> SWoscNorm:=(SWosc-LLV(SWosc,pds))
> /(HHV(SWosc,pds)-LLV(SWosc,pds)+.000001)*100;
> SWoscNorm:=If(pds<2,SWosc,SWoscNorm);
> up:=SWoscNorm>Ref(SWoscNorm,-1)
> AND SWMA<Ref(SWMA,-1);
> dw:=SWoscNorm<Ref(SWoscNorm,-1)
> AND SWMA>Ref(SWMA,-1);
> 
> If(plot=1,SWoscNorm,If(plot=2,SWMA,up+-dw))
> 
> ---8<--------------------------------




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/Metastockusers/

<*> To unsubscribe from this group, send an email to:
     Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/