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

[amibroker] Proprietary stop and custom backtester


  • Date: Fri, 22 Jan 2010 16:56:12 +0100
  • From: "Markus Witzler" <funnybiz@xxxxxx>
  • Subject: [amibroker] Proprietary stop and custom backtester

PureBytes Links

Trading Reference Links



Hello,
 
I´m in the process of coding a proprietary stop for the first time.
 
Since I need to use low-level CBT for backtesting, I wonder how to implement the stops into my code.
 
I understood that a proprietary stop is actually nothing else than an additional sell rule (in case of a long positon), coded as a loop.
 
My question would be the following:
 
1. Can I leave the stop code in regular AFL part just as the buy and sell rules or do I need to write it in CBT part of the code?
2. Since I use low-level mode of CBT, I need to call bo.handlestops(i). Does it "recognize" the stop part of the code, or do I have to tell it somehow. Or do I only have to use it for stops coded as applystops?
 
Maybe, someone could provide a sample code, how proprietary stops are being implemented into CBT routine?!
 
Any help/suggestion is highly appreciated!
 
Thanks
 
Markus


__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





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

__,_._,___