PureBytes Links
Trading Reference Links
|
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/
|