[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Question for Yahoo & MSN Data Users/Industry Question



PureBytes Links

Trading Reference Links

How do I add to a position?

As a simple example, suppose I want to test a "buy and hold" 
strategy where I buy $100 of stock xyz every Tuesday. I tried this:

PositionSize = 200; // invest $200 in every trade
Buy = DayOfWeek() == 2; // buy on Tuesday
Sell = False;

However, running a backtest only buys $200 on the first Tuesday. AFL 
doesn't allow me to continue to add to this position without first 
closing it.

It seems like I should be able to do this. What am I missing?

Warmest regards, Matt




------------------------ 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/