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

Re: [amibroker] Problem with nBar trailing stop



PureBytes Links

Trading Reference Links



Jeff

try this

ApplyStop(stopTypeNBar,stopModeBars, 15 );

Brenton

jeffarcherjr wrote:
 

Hi Everyone:

I'm having a problem implementing (or more likely understanding) an nBar stop.

I want to enter a trade and always exit fifteen days later. I think the following code should do this:

ApplyStop(stopTypeNBar,1,15,0,False);

However, when I look at the back test results, there are some trades that stay open much longer (as long as 60 days in one test). As far as I can tell, if there are other buy signals within the 15 days then the bar count resets to zero. However, I can't find any combination of parameters for the ApplyStop that seems to stop this.

Any suggestions?

Thanks

Jeff



__________ Information from ESET Smart Security, version of virus signature database 4566 (20091102) __________

The message was checked by ESET Smart Security.

http://www.eset.com


__________ Information from ESET Smart Security, version of virus signature database 4566 (20091102) __________

The message was checked by ESET Smart Security.

http://www.eset.com


__._,_.___


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

__,_._,___