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