• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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,

    http://ninjatrader.com/support/helpG...d_approach.htm

    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 aligator, Today, 03:23 PM
    4 responses
    8 views
    0 likes
    Last Post aligator  
    Started by RtelTrade, Today, 01:27 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by RolloHarper, Today, 12:59 PM
    2 responses
    22 views
    0 likes
    Last Post NinjaTrader_Jermaine  
    Started by tvaughan4, Today, 01:02 PM
    2 responses
    32 views
    0 likes
    Last Post tvaughan4  
    Started by NinjaTrader_Brandon, Today, 01:19 PM
    0 responses
    58 views
    0 likes
    Last Post NinjaTrader_Brandon  
    Working...
    X