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

[amibroker] How to reset POSITIONSIZE



PureBytes Links

Trading Reference Links

Hi there,

the following is my backtest for trading a portfolio of 10 stocks
according to some BUY and SELL rules. Thanks to Yuki, Fred and Graham,
I have figured out how to do this now. 

SetOption ("MaxOpenPositions", 10);

PositionSize = -100 / 10 ;  // trade a portfolio of 10 stocks
PositionScore = C;            // prefer the highest priced stocks

Buy  = MyBuyConditions; 
Sell = MySellConditions;

Short = MyShortConditions AND Name() == "QQQQ";
Cover = Buy;

For going SHORT, I want to trade the QQQQ only, but with FULL equity.
Unfortunately, I can not figure out, how to reset Positionsize. It
always trades only 10% of equity (which is correct for going LONG, 10%
of equity for 1 stock). But for going SHORT I want to trade the FULL
equity with the QQQQ (just 1 position). How do I reset POSITIONSIZE ?

Thanks for any suggestions.

Werner







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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