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

Placing simultanious stop oders: programming assistance needed

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

    Placing simultanious stop oders: programming assistance needed

    Need help. I'm trying to figure out how to place simultaneous stop orders for a bracket trade setup within a strategy. It seems that Ninjatrader has certain trading rules that stop this being possible in the obvious way. I tested this a number of different ways. Clearly it's possible to have simultaneous orders as they can be generated via chart trader. Does anybody know how to do this programmatically. A code snippet would be appreciated. There must be some additional attributes to the order entry method perhaps to do with OCO.

    Heres something interesting I found in the trace file:

    PlaceOrder(Int32 selectedBarsInProgress, Boolean liveUntilCancelled, Action action, OrderType orderType, Int32 quantity, Double limitPrice, Double stopPrice, String signalName, String fromEntrySignal, String oco, Boolean simStop)

    Thanks
    Peter
    Last edited by boreland; 01-16-2010, 09:50 PM.

    #2
    Peter, it isn't possible to have two opposing orders working simultaneously in NinjaTrader 6.5.

    NinjaTrader 7 will offer enhancements in this area:
    New Unmanaged Order Submission
    In 6.5 some users were burdened with our "Internal Order Handling" rules. We have introduced unmanaged order submission which bypasses the convenience of our order handling layer. This lower level of programming allows you to do what you want relative to order submission/management without any limitations other than any imposed by your broker. There are only three methods, SubmitOrder(), ChangeOrder() and CancelOrder(). You then get the flexibility of managing your orders how you see fit and optionally handling rejections.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ghoul, Today, 06:02 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Working...
    X