PureBytes Links
Trading Reference Links
|
Correct.
The code below may make it easier to understand.
---8<-----------
{ Variables }
PerCentCh:=2;
pds:=150;
{ SMA }
sma:=Mov(C,pds,S);
{ SMA x% lower }
smaX:=sma*(1-PerCentCh/100);
{ Binary signal }
Cross(smaX,C)
---8<-----------
jose '-)
--- In equismetastock@xxxxxxxxxxxxxxx, "Robert Jolley" <rjolley@xxxx>
wrote:
> Is this code correct for cross 2 percent below
> the 150-day moving average?
>
> cross(.98*(mov(c,150,s)),c )
>
>
> Robert Jolley
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~->
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/
|