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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    56 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    132 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X