Try using alert or barssince function with backtestrawmulti. I have used this method often, for example barssince(Cross(H, ref(hhv(H,3),-1)) < xdays often combined with a another entry condition.
The backtestrawmulti then allows mutiple positions to be taken on same ticker. Cheers, Dave ----- Original Message ----- From: droskill To: [email protected] Sent: Saturday, May 10, 2008 3:42 AM Subject: [amibroker] Adding to a position on consecutive days Say I want to buy when an oversold condition appears - and then the oversold condition persists - how can easily add to that position while the oversold condition persists? Ideally, I'd like to define the following: Day 1: Oversold - buy one position Day 2: Oversold - buy another position (same instrument) Day 3: Oversold - buy another position (same instrument) I want to be able to also define the maximum number of positions I can have - so there would be a max of, say, 4 positions including the initial position. Thoughts appreciated!
