PureBytes Links
Trading Reference Links
|
Yes, simple IIF statement will do it, or just a set of conditions. This
example uses high being the highest in 10 days, and x%==10%
HighDay = H==HHV(H,10);
Retraceday = c<ref(c,-1);
Buy = sum(highday,5)>0 and sum(retraceday,5)>0 and cross( c, valuewhen(
retraceday, C) * 1.1 );
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/
-----Original Message-----
From: darrinm81 [mailto:fmarx@xxxxxxxxxxxx]
Sent: Thursday, August 05, 2004 9:46 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] IF criteria met, then buy x% above if price rises
I am trying to run a back test that measures the success rate of a
swing trading system.
Basically, if several conditions are met, a buy order is place above
a reaction day (pull back).
IF Price creates new high
AND Price has retraced (Retracement Day)
THEN Only Buy IF
Price rises x% above Retracement Day close
Is this just a simple If then statement? I am still working how to
implement this.
Any help will be greatly appreciated!
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|