You could use a loop to keep count of your trades and define the entries as zero if your limit number is achieved
-- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://e-wire.net.au/~eb_kavan/ab_write.htm On 15/08/06, giggollo99 <[EMAIL PROTECTED]> wrote: > When doing a backtest, is there a way to require Amibroker to trade > exactly 10 long stocks and 10 short stocks everyday? I know i can set > > "maximum number of positions" = 20, > Long/short > > but that can result in say, 15 long and 5 short on one day and then 3 > long and 17 short another day, etc...any suggestions are much > appreciated > > Thanks > g > > > > > > 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 > > > > > > > > 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/
