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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    136 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X