I am writing a trading system to Buy and Sell stocks on the NDX 100. If 
the system has multiple buy signals I would like to buy the highest 
rank stock which in this case would be the lowest RSI value.
 So do I simply put the following line in my script
PositionScore = 100-RSI();
Will the system automatically buy the issue with the lowest RSI value 
for back testing. Can I be assured of this??? 
Following is what I am doing. My problem seems to be when I back test a 
few days later the Open long position chances to a different stock. 

PositionScore = 100-RSI(); 
PosQty = 1;
SetOption("MaxOpenPositions", PosQty);
PositionSize = -100/PosQty;
SetTradeDelays(1,2,1,2); 
Buy = CondA AND CondC AND C < 40 AND C > 10 AND CondI > 1;  
Sell = CondB;

THANKS Ernie





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:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to