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

[EquisMetaStock Group] Re: Need codes for finding the trough of an oscillator



PureBytes Links

Trading Reference Links

Hi,

Construct something like (please, this is OTC code, full of bugs and
not tested)

n1 := Input("Smoothing",1,20,5);
n2 := Input("Exponential MA",5,250,50);
n3 := Input("Signal",1,20,5);

Y1 := Mov(C,n1,S);
Y2 := Mov(Y1,n2,E);
Y3 := Mov(Y2,n3,S);

Y2-Y3

Now you can either plot Y2 and Y3 and use that or plot the difference
Y2 - Y3 as in the code.  As long as this is positive, the model
believes the market to be bullish and vice versa for negative values.
 n1 and n3 should be relatively 'short' and n2 relatively 'long'. 
This is a different implementation of the Coppoch model that I once
got from somebody - he actually believed this to be the true Coppoch
model, but the real one is the smoothed sum of two ROCs as you had.

Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com 

--- In equismetastock@xxxxxxxxxxxxxxx, "awlaimeng" <awlaimeng@xxxx> wrote:
> Hi! MG,
> 
> You are right - it is the Coppoch model.
> 
> Could you elaborate more on how to use 3 MAs to signal the peaks & 
> troughs? I am lost here.
> 
> Thanks & best regards,
> ALM
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, mgf_za_1999 <no_reply@xxxx> 
> wrote:
> > > Any comments on the above codes will be much appreciated.
> > 
> > This looks like the Coppoch model - we use it a lot and it appears 
> to
> > be doing quite well.  Another way to implement it is to use three
> > moving averages, a quick, smoothing one, a longer, exponential one 
> and
> > another quick, signal line one.  Then the signal line gives the 
> peaks
> > and troughs.  Good, long term model.
> > 
> > Regards
> > MG Ferreira




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hbrajvs/M=362343.6886682.7839641.1493532/D=groups/S=1705375617:TM/Y=YAHOO/EXP=1124131271/A=2894352/R=0/SIG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html";>Help tsunami villages rebuild at GlobalGiving. The real work starts now</a>.</font>
--------------------------------------------------------------------~-> 

 
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/