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

[amibroker] Re: Backester - multiple open positions



PureBytes Links

Trading Reference Links

If I'm understanding what you want to do - set up 10 positions with
$10k each, or 1/10 of the portfolio, then the code could look like this:

PosQty = 10; //Number of positions
SetOption("MaxOpenPositions", PosQty );
PositionSize = -100/PosQty; //Divide total equity by # of positions.

Hope this helps!

--- In amibroker@xxxxxxxxxxxxxxx, "gmorlosky" <gmorlosky@xxx> wrote:
>
> How can I set the BackTester settings so that of the $100,000 portfolio 
> I designate, it buys with only $10,000 (max open positions would be 10, 
> of course, at first). I only end up with 1 open position no matter what 
> I set ?
>



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

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/