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

Re: [amibroker] sigScaleOut



PureBytes Links

Trading Reference Links

hi,
 
I wonder if somebody has been using the CBI (Custom backtester Interface) to perform a sigScaleOut (or sigScaleIn). Here is the problem: In a test setup I enter 3 contracts of ES futures. The code uses 3 targets and a trailing stop loss. In some cases it can work without using the CBI. However if the first sigScaleOut signal falls at the same bar where the trade is entered there is a problem because both the entry and the scaleOut are stored in the Buy array.
 
Next problem that occurs is that if the first and the second scaleOut targets are hit during the same bar. Again we can only store one or the other.
 
Using the low level CBI (I assume using ScaleTrade()  ) can overcome this problem. Anyone know how to implement this? A simple example will do.
 
Illustrated is the left entry signal scales out nicely (blue arrows) and the last contract is sold at the trailing stop. The second signal however both the first and the second scaleOut are at the bar following the entry bar (in this setup I do not allow to exit during the bar of entry). The backtester will sell only 1 contract at the scaleOut point and will sell 2 contracts at  target number 3. This is wrong.
 
thx, rgds, Ed
__._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___

Attachment: scl.png
Description: PNG image