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

RE: [amibroker] How to automatically control buy conditions depending on trades per day?



PureBytes Links

Trading Reference Links

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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of fox97us
Sent: Sunday, June 11, 2006 03:03
To: amibroker@xxxxxxxxxxxxxxx
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