PureBytes Links
Trading Reference Links
|
The valuewhen function lets you know if a signal has happened within n days
of its occurrence, therefore n = > 2 will work.
If you set n=1 just remove valuewhen and the extra brackets in your formula.
:Lionel
_____
From: equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx]
On Behalf Of Abo Faisal
Sent: Thursday, February 02, 2006 5:54 AM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group] First Time Condition
Hi
I wrote this code...
To catch the first time the goal been hit (which is as an example if the
close is 5% more first time siince the signal buy);
Trend := Mov(C,9,E) > Mov(C,21,S);
StartTrend := Trend AND Cross(Mov(CLOSE,9,E),Mov(CLOSE,21,S));
MyGoal:=ValueWhen(1, Cross(Mov(CLOSE,9,E),Mov(CLOSE,21,S)),C*1.05);
Trigger:=Cross(H,MyGoal);
Signal:= Trend AND Trigger AND BarsSince(Ref(Trigger,-1)) >
BarsSince(StartTrend);
Signal;
It works fine except for for first hit in the chart ,,,,
Any idea?
Thanks
Majed
---------------------------------
What are the most popular cars? Find out at Yahoo! Autos
[Non-text portions of this message have been removed]
SPONSORED LINKS
Business
<http://groups.yahoo.com/gads?t=ms&k=Business+finance+course&w1=Business+fin
ance+course&w2=Business+to+business+finance&w3=Small+business+finance&w4=Bus
iness+finance+consultant&w5=Business+finance+magazine&w6=Business+finance+sc
hools&c=6&s=185&.sig=I8jDsORmsaYn0BeqghcJ2w> finance course
Business
<http://groups.yahoo.com/gads?t=ms&k=Business+to+business+finance&w1=Busines
s+finance+course&w2=Business+to+business+finance&w3=Small+business+finance&w
4=Business+finance+consultant&w5=Business+finance+magazine&w6=Business+finan
ce+schools&c=6&s=185&.sig=fCzze7cxm1K7TVKkzAaOrA> to business finance
Small
<http://groups.yahoo.com/gads?t=ms&k=Small+business+finance&w1=Business+fina
nce+course&w2=Business+to+business+finance&w3=Small+business+finance&w4=Busi
ness+finance+consultant&w5=Business+finance+magazine&w6=Business+finance+sch
ools&c=6&s=185&.sig=v9sWAno7Kz4WuL8Tadcdhw> business finance
Business
<http://groups.yahoo.com/gads?t=ms&k=Business+finance+consultant&w1=Business
+finance+course&w2=Business+to+business+finance&w3=Small+business+finance&w4
=Business+finance+consultant&w5=Business+finance+magazine&w6=Business+financ
e+schools&c=6&s=185&.sig=d1xwT3WL0E6XBf6cAV5BXA> finance consultant
Business
<http://groups.yahoo.com/gads?t=ms&k=Business+finance+magazine&w1=Business+f
inance+course&w2=Business+to+business+finance&w3=Small+business+finance&w4=B
usiness+finance+consultant&w5=Business+finance+magazine&w6=Business+finance+
schools&c=6&s=185&.sig=qphRINaNuVm_6bwoQxgUmg> finance magazine
Business
<http://groups.yahoo.com/gads?t=ms&k=Business+finance+schools&w1=Business+fi
nance+course&w2=Business+to+business+finance&w3=Small+business+finance&w4=Bu
siness+finance+consultant&w5=Business+finance+magazine&w6=Business+finance+s
chools&c=6&s=185&.sig=1RfnhYZpV99RKWRZzSH4gA> finance schools
_____
YAHOO! GROUPS LINKS
* Visit your group "equismetastock
<http://groups.yahoo.com/group/equismetastock> " on the web.
* To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<mailto:equismetastock-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/> Terms of Service.
_____
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|