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

[amibroker] How to Buy Tomorrow and Sell the Next Day Using Your Whole Portfolio


  • To: amibroker@xxxxxxxxxxxxxxx
  • Subject: [amibroker] How to Buy Tomorrow and Sell the Next Day Using Your Whole Portfolio
  • From: "Joseph Peha" <jpeha@xxxxxx>
  • Date: Tue, 13 Nov 2007 19:24:47 -0000

PureBytes Links

Trading Reference Links

So I've got this great EOD system that pulls in handsome results. 
However, I really want to measure exactly how effective it is. 
There's only one snafu.  I can't get the backtester to buy and sell on
different days.  Basically, I want to:

1) Get the buy signal at the end of Day 1
2) Buy the stock on the opening of Day 2
3) Sell the stock on the opening of Day 3

And I can do this when I invest my whole portfolio in one stock using
this code:

E = Equity(0);
Buy <= SellPrice*Ref(E,-1) AND E > 0;

And I've tried everything I can think of relating to Buy, Sell, and
Ref commands, but those only seems to work when you don't want the
backtester to buy and sell the SAME stock on the same day.  It doesn't
work across your whole portfolio.

So does anyone know how to buy tomorrow and sell the next day across
your entire portfolio?



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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

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