1. SetTradeDelays http://www.amibroker.com/guide/afl/afl_view.php?id=137
2. N-bar stop http://www.amibroker.com/guide/afl/afl_view.php?name=applystop 3. User guide main index (also Help from AmiBroker itself) http://www.amibroker.com/guide/ Mike --- In [email protected], "scottr" <scott.reisf...@...> wrote: > > I apologise if this has been addressed elsewhere - I've searched the forum > and the help files and cannot find the answer. > > (1) I'd like to know how to run a scan/backtest where I enter a position at > the open on the day after my buy criteria has been met. So, for example, if > I want to buy every stock that closes up 10% in one day (I'll be buying it > the next day), how would I code that? > > The below line of code expresses what I'm looking for, but I can't figure out > how to tell the program to then buy the stock at the open the next day > > Buy = Close > 1.1*Ref(Close,-1); > > (2) How can I tell the program to sell a position at the open 20 days from > when I purchased it? In the above example, what I would like to do is buy > the stock the day after my criteria are met and then sell it 20 days later. > > (3) Is there some resource that answers these basic "How do I?..." type > questions? > > Thanks very much for any assistance > Scott >
