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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    57 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X