NexusFi: Find Your Edge


Home Menu

 





Trailing stop


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one edstaffin with 2 posts (0 thanks)
    2. looks_two Fat Tails with 2 posts (1 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 Jimbobulus with 1 posts (0 thanks)
    1. trending_up 2,075 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

Trailing stop

  #1 (permalink)
edstaffin
Key West
 
Posts: 13 since Sep 2014
Thanks Given: 1
Thanks Received: 1

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

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
Quant vue
Trading Reviews and Vendors
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
ZombieSqueeze
Platforms and Indicators
 
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


You can easily do this, but you need to code it manually. Also you would need to decide, which trailing stop you would like to use

-> Parabolic Stop
-> Supertrend
-> Gann Hi-Lo Activator
-> Chandelier stop
-> 3 bar trailing stop
-> BBandsDots
-> Brain trend

You will find most of these in the download section of the forum and can use them with your strategy.

Reply With Quote
Thanked by:
  #4 (permalink)
edstaffin
Key West
 
Posts: 13 since Sep 2014
Thanks Given: 1
Thanks Received: 1

Hi,
Thanks for the quick response. I guess I wasn't clear. I am looking to do this in my own strategy using ninjascript.
Thanks ... Ed


Fat Tails View Post
You can easily do this, but you need to code it manually. Also you would need to decide, which trailing stop you would like to use

-> Parabolic Stop
-> Supertrend
-> Gann Hi-Lo Activator
-> Chandelier stop
-> 3 bar trailing stop
-> BBandsDots
-> Brain trend

You will find most of these in the download section of the forum and can use them with your strategy.


Reply With Quote
  #5 (permalink)
EnsoTrader
Durham, NC
 
Posts: 48 since Oct 2014
Thanks Given: 0
Thanks Received: 21

Ed

You can do that in NT without any coding.
Just define an ATM Strategy and you can define a trailing stop strategy.

Reply With Quote
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


edstaffin View Post
Hi,
Thanks for the quick response. I guess I wasn't clear. I am looking to do this in my own strategy using ninjascript.
Thanks ... Ed

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.

What you wish to do is easily feasible.

Reply With Quote
  #7 (permalink)
Jimbobulus
Liverpool
 
Posts: 1 since Jun 2018
Thanks Given: 0
Thanks Received: 0

Hi All,

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.

Please could you let me know, how you got on.

Thanks!

Jim

Reply With Quote




Last Updated on August 10, 2018


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts