Announcement

Collapse
No announcement yet.

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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    64 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X