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