Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

When using ExitShortStopLimit(...full...) NT submits order with wrong quantity

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

    When using ExitShortStopLimit(...full...) NT submits order with wrong quantity

    Hi,

    I have a strategy in which I am using ExitShortStopLimit and ExitLongStopLimit. First I am exiting the position with 50% and later am taking out the other 50%.

    Using the above methods the second targe is good but for the first target:
    Instead of NT submitting a waiting order with quantity of 5 it submits an order with quantity == 1

    What wrong I am doing or am facing some kind of a bug?

    In the output window NT reports everything correct (that it is submitting an order with size of 5) but on the chat and in the main window we can clearly see an order with wrong size 1 while the requested size is 5...

    You can see it clearly on the attached screenshot...
    What wrong I am ding or a facing some kind of bug in NT8?

    P.S.
    Ad you can see the second partial 50% target is submitted correct...
    But the other one - regardless it is reported as an order with quantity of 5 - is "taken" as 5 contracts order...
    Attached Files

    #2
    Hello vlaladim,

    Thank you for your note.

    Without the full code, I’m unable to test on my end. If you’d to upload the strategy I can take a look otherwise I would suggest splitting up your entry order into two, uniquely naming those entries. Then submitting cover logic for both those orders independently.

    I have attached a strategy which has the same enter logic for 3 orders and different cover logic for the orders.

    I would also suggest reading about Order Entry Methods, EntriesPerDirection, and EntryHandling section of our helpguide,



    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    67 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    150 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X