PureBytes Links
Trading Reference Links
|
You are putting 100% into the first trade, so there will not be another trade opened until that trade is closed. Since you don't have a Sell or Cover, whichever comes first, Buy or Short is the only action that is going to take place.
Joe
--- In amibroker@xxxxxxxxxxxxxxx, "lucianomt" <lucianomt@xxx> wrote:
>
> I created a simple strategy to measure follow-through:
>
> Buy = 0;
> Short = 0;
> Sell = 0;
> Cover = 0;
> BuyPrice = C;
> ShortPrice = C;
> SetTradeDelays(0,0,0,0);
> SetPositionSize( 100, spsPercentOfEquity );
> Buy = C >= Ref(C,-1);
> Short = C < Ref(C,-1);
>
> Strangely, the backtest is only registering the Short trades. No Buys. Even more strangely, when I invert the Buy and Short orders (Short = C >= Ref(C,-1); Buy = C < Ref(C,-1)), the backtest works fine.
>
> Am I doing something wrong?
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|