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

move stop loss after target filled on the ES

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

    move stop loss after target filled on the ES

    Is it possible to move my stop loss after a profit target is reached? For example if I have 2 contracts going long with 1 target at 10 ticks and 1 at 25, when the first one hits it's target, move the stop loss to break even - 2 ticks.

    I trade on the ES so I want my target to be executed before moving the stop loss.

    Any help would be appreciated.
    Thanks!

    #2
    Hello gravdigaz6,

    Thank you for your post.

    Are you using a NinjaScript strategy or an ATM Strategy to place these orders?

    This would be simple to accomplish with an ATM Strategy. You can set that up as below:

    Click image for larger version

Name:	2019-05-10_1406_001.png
Views:	593
Size:	16.8 KB
ID:	1056998

    Click image for larger version

Name:	2019-05-10_1406.png
Views:	595
Size:	12.8 KB
ID:	1056997

    In the above example, we have two targets that each start out with a stop at 10 ticks below entry. Our first target will get filled at 10 ticks, then the custom stop strategy for the second target will move the stop for that target to 2 ticks below breakeven at that point.

    If you are interested in doing this from within a NinjaScript Strategy, please let me know and I can go into detail on that; however, you would need to manually code this functionality.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rtwave, 04-12-2024, 09:30 AM
    4 responses
    30 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by yertle, Yesterday, 08:38 AM
    7 responses
    29 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by bmartz, 03-12-2024, 06:12 AM
    2 responses
    22 views
    0 likes
    Last Post bmartz
    by bmartz
     
    Started by funk10101, Today, 12:02 AM
    0 responses
    6 views
    0 likes
    Last Post funk10101  
    Started by gravdigaz6, Yesterday, 11:40 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X