Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buy, Sell, SellShort, BuytoCover

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

    Buy, Sell, SellShort, BuytoCover

    Why when submitting a Sell order does it enter short? Isnt that what the Sell Short Command is for?

    Is there a way to prevent a strategy from trading either long or short to keep this reversal from happening?

    I

    #2
    Hello neb1998,

    If you're using SubmitOrder() in an unmanaged strategy, then it will just submit the order you put in.

    The designation SellShort or SelltoCover is required for some brokerages, but most will just see a sell order and if you're flat at the time then the order places you short.

    If you use the managed order system, there are built in protections for this. An ExitLong() statement is a sell order that requires a long position before it's submitted.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    639 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    572 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X