Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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
Can you help answer these questions from other members on NexusFi?
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?
yes I have played with that a bit(openpositionprofit) but prob need to look into it further.Let me put the code together for the ATR and send it to you
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.