Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding sell order 4 ticks above entry price in Ninjascript

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

    Adding sell order 4 ticks above entry price in Ninjascript

    Hello, I apologize if this is a amateur question but I cant seem to figure out how to enter a sell order say 4 or however many ticks above my entry price. Same goes for shorts, I can enter a short trade with my script but as soon as I am in the money trading the ES it wont trigger my sell order for however many ticks I set it to. If someone can just point me in the right direction of how to either add or edit my code to where it will set a sell order for long trades or buy order for my short trades. Thanks

    #2
    Hello Endlessweek122,

    Thanks for your post and welcome to the NinjaTrader forums.

    If you are the Strategy Builder, you would set your profit target and stop orders in the "Stops and Targets" page.

    If you are programming directly in Ninjascript then you can use SetProfitTarget() and SetStopLoss() as these methods will be OCO tied to your entry order.

    Here are links to these methods:





    I would also suggest reviewing the "Managed approach" document for further guidance: https://ninjatrader.com/support/help...d_approach.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    236 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    151 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    162 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    243 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    198 views
    0 likes
    Last Post CarlTrading  
    Working...
    X