Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 andrewtrades, Today, 04:57 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    3 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    6 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X