Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ShortLimitOrder

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

    ShortLimitOrder

    Hello, why is my ShortLimitOrder executed immediately and not at the desired price?

    Unfortunately I am not getting anywhere with the code examples.

    Short example:
    Market is currently at 12550 points and goes long. The ShortLimitOrder should be executed at 12560 points, but is executed at 12550 points.

    Where is my error?

    #2
    Hello ds10106,

    Welcome to the NinjaTrader forums!

    An EnterShortLimit() order must have the limit price above the current ask price.

    May I confirm the price you have chosen is several ticks above the GetCurrentAsk()?

    A limit order fills at the specified price or better. If the order is filling immediately, this would suggest the limit price chosen is at or below the current ask.

    Use Print() and TraceOrders to understand the behavior.


    Print the time of the bar and the limit price for the order and GetCurrentAsk() one line above where the order is submitted.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    197 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    362 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    282 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X