This isn't exactly the answer to your question, but if you know which trades are the more excellent ones you create a positionscore and not take any trades that don't meet your 'excellent' criteria.
Otherwise I would use a loop to figure out all my trades and adjust there...before your buy/sell conditions. -- Terry -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of fox97us Sent: Sunday, June 11, 2006 03:03 To: [email protected] Subject: [amibroker] How to automatically control buy conditions depending on trades per day? Hello I have an intraday database composed of different stocks. Some periods, my fomular gives lots of trades while other periods it gives less. I want to dynamically control the buy conditions depending on avg trades/per recently. For example, if there are too many trades everyday recently (say avg 8 trades/day over last 20 trading days), i will choose a tighter buy condition to filter out the non-excellent ones. On the other hand, if there r less trades recently(eg avg 2 trades/day), i will loose the buy conditions as long as the increased trades give positive return on avg. How can I use AFL language to achieve it when I do backtest? Thanks a lot Bill 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/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: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
