Hello folks, Having trouble trying to use ATR trailing stop in conjunction with a hard stop. Looking for some code that will say "if equity positive on current trade then use ATR trailing stop.If equity negative on current trade then use hard stop.
Another thought would be to say if trade is x number of emini points higher than where I bought then use ATR, If not then use hard stop. This might be the better way to go..
Right now I am using setpercenttraling which I don't think is reliable in back testing and need to move this to an ATR type of trailing stop.
Thank you for your time
Last edited by robz75; September 15th, 2014 at 12:48 PM.
what code have you written so far that gives you the trouble? If you post is I am sure someone is able to steer you into the right direction.
What makes you think setpercenttrailing is not reliable in backtesting and why would the ATR not be affected by the exact same thing then?
I am working with a developer who has won the futures championship a number of times. He has some concerns about setpercent trailing. What he had me do was to use on my 60 bar chart the 1 min LIBB.This does reduce the net profit by more than half. I guess that is what it is.My what my concern is that I could be leaving profit on the table and from what some of my back testing has shown me is that the ATR trailing helps with that.Give me a higher net profit per trade.
Also on the tradestaion site there are a number of posts from tradestation saying it is not the best thing to use.
Yes, in my opinion you should always use the LIBB feature in backtesting with the highest granularity possible (unless your strategy won't be affected by that, but when you use the build in reserved words for profit and stops the results without LIBB are almost always too good and not accurate) as this will help you quickly rule out backtesting fallacies that are caused by wrong platform assumptions.
Depending on your implementation of the ATR and the bar status when you take/exit trades using LIBB might be a good idea there, too.
like I wrote I would need to see the code that you wrote so far for the ATR and that is giving you the trouble to be able to steer you into the right direction. Did you look into the reserved word openpositionprofit for example?
I am just worried about posting the entire strategy on this site. I just opened up the canned ATR trailstop in TS.Any thoughts on how to do what it mentions on the notes below?
NOTE: This is not a strict trailing stop because the stop can actually loosen
sometimes instead of always tightening. To convert to a strict trailing stop,
ATRCalc should be fixed at the entry-bar for each position.