PureBytes Links
Trading Reference Links
|
In regards to question 2, perhaps,
PositionScore = (ROC(C,200)/ATR(200))* (MA(V,20)>500000);
as MA(V,20)>500000 will give a binary result which should provide you with
the required filter.
Regards
Dave
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of fesch92126
Sent: Tuesday, 25 April 2006 7:10 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Rotational Trading
I'm a new Amibroker user and have a few naiive questions about the
EnableRotationalTrading() function if someone has the patience to
respond.
I employed the simple code below on the components of the Nasdaq 100
from 1/1/2003 to 12/31/04 going LONG only (as specified
under "Settings" in the Backtester)on a Daily timeframe:
EnableRotationalTrading();
SetOption("WorstRankHeld",5);
PositionScore = ROC(C,200)/ATR(200);
SetPositionSize(20,spsPercentOfEquity);
I obtained 14 trades, 4 of which were Shorts.
Question No. 1: If I specifically asked for Longs only in the AA,
why did I see the 4 Short trades? How do I avoid this in the future?
Question No. 2: Is it possible to specify other entry criteria, eg,
MA(V,20)>500000, in addition to the PositionScore and SetOption
(WorstRankHeld) criteria when employing the EnableRotationalTrading
() function? If so, how would one do this?
Thanks for any and all input.
With kind regards,
Fred
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|