[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

> 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
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com 



--- In equismetastock@xxxxxxxxxxxxxxx, "awlaimeng" <awlaimeng@xxxx> wrote:
> I have the following oscillator and would like to know whether there 
> is a better way of finding the "trough" (valley) when the
> oscillator 
> moves from the negative zone and starts to move upwards.
> 
> 
> {oscillator}
> CP:=Mov(ROC(C,14,%)+ROC(C,11,%),10,W); 
> 
> {oscillator below zero line - in negative zone}
> CP<0 
> 
> {finding the trough}
> {moving upwards on latest period}
> {and moving downwards last 6 periods}
> AND CP>Ref(CP,-1) AND 
> Ref(CP,-1)<Ref(CP,-2) AND
> Ref(CP,-2)<Ref(CP,-3) AND
> Ref(CP,-3)<Ref(CP,-4) AND
> Ref(CP,-4)<Ref(CP,-5) AND
> Ref(CP,-5)<Ref(CP,-6)
> 
> Any comments on the above codes will be much appreciated.
> 
> Thank you and best regards,
> ALM




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hsj88oj/M=362343.6886682.7839641.1493532/D=groups/S=1705375617:TM/Y=YAHOO/EXP=1124046795/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/