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, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X