Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Trailing stops in strategy builder.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trailing stops in strategy builder.

    Hello,

    I'm new to NinjaTrader 8 and have set up a few simple strategies that I would like to build in the Strategy Builder. I've read the documentation and I am having trouble implementing the trailing stop to my liking. If someone could provide screenshots that would be very helpful, I'm a visual person and grasp concepts best that way.

    If someone could assist me setting up this scenario, I'll be able to test and modify for different scenarios. Thanks!!!

    Here is what I'm looking to do.
    1. Typically I trade 5 MES at one time
    2. Upon Order fill, set up a 10pt stop loss
    3. When price moves in my favor by 6 points, move stop loss to break even(3000)
    4. When prices moves in my favor by 8 points, sell 2 contracts at market order
    5. Add a trailing stop for 6 ticks for the remaining 3 contracts
    6. When the price moves 12pts in my favor take 2 contracts at market order
    7. Leave 1 contract as a runner and sell at market if it hits profit or trailing stop (market)
    Price Contracts Stop Loss
    Initial Long Entry 3000 5 2990 (10pt)
    Moves 6 pts in favor 3006 Move to Break even (3000)
    Moves 8 pts in favor 3008 2 Take Profit - Market order
    Add Trailing stop for next 3 contracts 3008 6 ticks behind (3002)
    Moves 12pts in favor 3012 2 Take Profit - Market order
    leave Runner 40pts 3042 1 Take Profit - Market order

    #2
    Hello phillyc,

    Below I am providing a link to an example of custom trailing logic in the strategy builder for you to learn from.


    The idea is to use variables to track the price of where the trailing event will be, and then trigger the action one the market price reaches that variable price.

    I am also including a link to a forum post with helpful resources on getting started with NinjaScript and C#. Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.


    Please let me know if you would further direction as you create your script.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Ndakotan1313, 03-14-2024, 05:02 PM
    3 responses
    65 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by reynoldsn, Yesterday, 04:40 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by memonic, Yesterday, 01:23 PM
    4 responses
    27 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by BIOK.NT, Yesterday, 01:56 PM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by betsuni_123, Yesterday, 04:20 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X