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

NinjaTrader breaking down order quantity?

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

    NinjaTrader breaking down order quantity?

    Hi,

    I'm running a short strategy on stock using interactive brokers. This happens pretty often now and I can't figure it out. An example:

    I shorted 349 shares of stock, in one order, one execution
    After entry, Ninja generated 4 Stop orders to cover in quantities of: 6, 43, 2, 298.

    Any ideas on why this is happening would be greatly appreciated.

    Thanks,

    Pete

    #2
    Hello Pete,

    This is going to be due to how the Stop orders are going to be submitted or the settings of NinjaTrader.

    Do you use the SetStopLoss() method? If so then this is going to be due to the your strategy settings and your order being part filled.

    By Default, NinjaTrader is going to use the "PerEntryExecution" for the "Stop & target submission" which when this is selected, a stop loss, trail stop and/or profit target order is submitted for each partial fill received. The downside is if your broker charges commission per order, you can incur very expensive commission costs if you receive partial fills. The upside is that orders are submitted as soon as possible giving you the advantage of getting into the order queue immediately.

    If you would like one order you may want to change this to "By Strategy Position" which when this is selected, only one stop loss, trail stop and/or profit target order is submitted. As entry executions come in, the order size is amended. The downside of this approach is that if you have partial fills, the orders are re-inserted into the exchange order queue. The upside is that if you broker charges you a per order commission (not per lot), you will not incur additional commission expenses.



    Otherwise, let me know how you are placing your Stop orders and I would be happy to help.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    66 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    15 views
    0 likes
    Last Post benmarkal  
    Started by f.saeidi, Today, 01:38 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X