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

[EquisMetaStock Group] Re: Stochastics



PureBytes Links

Trading Reference Links

The easiest way to code Slow stochastics(12,3,3) is to use moving 
average thus mov( stoch(12, 3), 3, S ).



--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> wrote:
> Rahul,
> 
> The formula that you submitted works but the output is not the 
same 
> as the canned Metastock indicator. This one is:
> 
> {Stochastics}
> {byRahul Mathur}
> {EquisMetastock 4-2-'04}
> {For full stochastics using three periods}
> Period1 := Input("Time Period1", 1, 100, 12);
> Period2 := Input("Time Period2", 1, 100, 3);
> Period3 := Input("Time Period3", 1, 100, 3);
> a:=Sum(HHV(H ,Period1)-LLV(L,Period1),Period2);
> b:=Sum(C-LLV(L,Period1),Period2);
> Kfull:=(b/a)*100;
> Dfull:=Mov(Kfull,Period3,S);
> Kfull;Dfull
> 
> The difference, although suttle, involves summing the Kfast rather 
> than using a moving average. Metastock uses summing. Again, great 
> work!
> 
> Preston 
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "Rahul" <me@xxxx> wrote:
> > Preston,
> > I saw this formula in help but was not sure if it was 
calculating 
> what
> > I wanted. I was a bit confused with Stochastics as I was not 
aware
> > that Full Stochastics which requires 3 inputs is different from 
Slow
> > Stochastics...
> > I found a good explaination at
> > http://www.stockcharts.com/education/IndicatorAnal
> > ysis/indic_stochasticOscillator.html
> > I am including the formula I built for anybody's use.
> > If you (or anybody) find a bug in it, please let me know...
> > {For full stochastics using three periods}
> > Period1 := Input("Time Period1", 1, 100, 12);
> > Period2 := Input("Time Period2", 1, 100, 3);
> > Period3 := Input("Time Period3", 1, 100, 3);
> > a:=HHV(H ,Period1)-LLV(L,Period1);
> > b:=C-LLV(L,Period1);
> > Kfast:=b/a;
> > Kfull:=Mov(Kfast,Period2,S);
> > Dfull:=Mov(Kfull,Period3,S);
> > Kfull*100;Dfull*100
> > 
> > Rahul
> > 
> > --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> 
> wrote:
> > > Rahul,
> > > 
> > > The manual covers this. Further, every copy of metastock has a 
> help 
> > > file. You should learn to use it. This comes directly from that
> > file.
> > > 
> > > The following formula calculates a 5-period %K Stochastic
> > Oscillator 
> > > with 3-period slowing:
> > > (sum( C - llv(L,5), 3 ) / sum(hhv(H,5) - llv(L,5), 3) ) * 100
> > > This next formula calculates a 3-period %D of the %K in the
> > preceding 
> > > formula.
> > > mov( stoch(5,3), 3, S )
> > > 
> > > Preston
> > > 
> > > --- In equismetastock@xxxxxxxxxxxxxxx, "Rahul" <me@xxxx> wrote:
> > > > Hi,
> > > > I tried searching archives. But couldnt find anything.
> > > > Any help would be welcome.
> > > > Again, I need to know how to build slow stochastics function.
> > > > Regards
> > > > Rahul
> > 
> > > > > -----Original Message-----
> > > > > From: Rahul [mailto:me@x...] 
> > > > > Sent: Thursday, April 01, 2004 10:27 AM
> > > > > To: equismetastock@xxxxxxxxxxxxxxx
> > > > > Subject: [EquisMetaStock Group] Stochastics
> > > > > 
> > > > > Hi,
> > > > > I need help in calculating slow stochastics indicator. Say 
> Slow 
> > > > > stochastics(12,3,3). How is it done?
> > > > > I believe the Stoch() function is for fast stochastics.
> > > > > Thanks for help.
> > > > > Rahul




 
Yahoo! Groups Links

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

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

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