• 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 seagraph, Today, 03:27 PM
    0 responses
    11 views
    0 likes
    Last Post seagraph  
    Started by dedouglas, Today, 02:54 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by elkhatabi, 08-01-2019, 06:36 PM
    5 responses
    53 views
    0 likes
    Last Post NinjaTrader_RyanL  
    Started by mr_trade, Today, 01:01 PM
    4 responses
    19 views
    0 likes
    Last Post mr_trade  
    Started by Renorail, Today, 12:31 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X