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

[EquisMetaStock Group] Re: Simple sin wave indicator



PureBytes Links

Trading Reference Links

Just as a matter of interest, if you want to take this further, you
may want to look at Fourier analysis.  It starts by fitting the best
sine wave to the data, then, whatever remains, gets fitted to by the
next best sine wave etc until there is a 100% fit.  The trick is to
know when to stop, which is another story.  But if you are interested,
 do a search on Fourier analysis.

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



--- In equismetastock@xxxxxxxxxxxxxxx, mgf_za_1999 <no_reply@xxxx> wrote:
> Here is a quicky, in OTC code, so it may have bugs:
> 
> ---8<----------------
> 
> {MG Ferreira}
> {http://www.ferra4models.com}
> {2005}
> 
> amp := input( "Amplitude",0,1000,1);
> prd := input( "Period", 0, 1000,30);
> ofs := input( "Offset",0,1000,0);
> {The offset is where to start, e.g. if period is 30 and
> you want the waves to start in the middle, enter 15}
> 
> amp * sin( (ofs+cum(1)) / prd * 360 )
> 
> ---8<----------------
> 
> Regards
> MG Ferreira
> TsaTsa EOD Programmer and trading model builder
> http://www.ferra4models.com
> http://fun.ferra4models.com 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "tan ming"
> <reminiscenostalgia@xxxx> wrote:
> > Hello everyone, does anyone know how to create a simple sin wave
> indicator 
> > with option to adjust its ampltitude (Vertical distance from tough
> to peak), 
> > period (Time in bars from one peak to subsequent peak) and phase (The 
> > initial time period in bars for the sin wave to reach its first
peak or 
> > tough)
> > 
> > Dan
> > 
> > _________________________________________________________________
> > Find love online with MSN Personals. 
> > http://match.msn.com.my/match/mt.cfm?pg=channel




 
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/