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

Re: [amibroker] Adding to a position on consecutive days



PureBytes Links

Trading Reference Links

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
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!

__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___