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

[amibroker] Re: Adding to a position on consecutive days



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "droskill" <droskill@xxx> wrote:
>
> Ideally, I'd like to define the following:
> 
> Day 1: Oversold - buy one position
> Day 2: Oversold - buy another position (same instrument)
> Day 3: Oversold - buy another position (same instrument)
> 
> I want to be able to also define the maximum number of positions I can
> have - so there would be a max of, say, 4 positions including the
> initial position.

setBackTestMode (backtestRegularRawMulti) may do what you want.

"Signal-based backtest, redundant (raw) signals are NOT removed,
MULTIPLE positions per symbol will be open if BUY/SHORT signal is
"true" for more than one bar and there are free funds, Sell/Cover exit
all open positions on given symbol, Scale-In/Out work on all open
positions of given symbol at once."

http://www.amibroker.com/guide/afl/setbacktestmode.html

I think you will still need to restrict the maximum positions per
symbol (if that is your intent).


Tuzo


------------------------------------

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/