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)
Hi,
Suppose, for example, I have a strategy that enters long at 1900 and has a target of 1905 and a stop of 1898. When it gets to 1902.50 I want to cancel the original stop and replace it with a trailing stop so that my trailing stop is 2.5 points below my target. These numbers are just to help explain what I want to do. Basically, I want to enter at a certain point with a target and stop order. Then when my profit reaches a certain level I want to drop in a trailing stop.
Is this doable? Does anyone have some code they'd be willing to share?
Thanks ... Ed
Can you help answer these questions from other members on NexusFi?
This is what I understood. When you code your own strategy, you can access existing indicators and use them for your trailing stop. Of course you can code your own variations of trailing stops as well.
I'm jumping into this thread a bit late, actually 4 years late, but I was wondering if you've been able to achieve your trailing stop Ed?
I see what you mean with wanting to create your own trailing stop loss, as the Strategy Builder tool in Ninjatrader has limited flexibility, unlike the ATM Strategy tool. Personally, I like to trade with Renko charts so a trailing stop such as yours, i.e price must move x amount before moving stop loss y amount, is useful and simple.
I also see why you'd like to code it and not link it to an ATM Strategy as doing so is not backtestable using the Strategy Analyzer tool.