Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to edit/update the order in managed approach

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

    How to edit/update the order in managed approach

    Hi,
    I am using Ninja Traders managed approach to execute the orders from my strategy.
    After calling EnterLong(int quantity, string signalName), I am using

    ExitLongStop(int quantity, double stopPrice, string signalName, string fromEntrySignal)
    in OnExecution(IExecution execution)

    It creates the stop order but on next bar, this order is getting canceled. I don't know why?? pls help.


    My other question is, How can I update order placed by ExitLongStop().
    If I use ExitLongStop() again with different stop price than earlier stop price, will it cancel the earlier order and place new order with new stop price?

    #2
    Hello rahulkalgunde,

    You will have to use the advanced overload of this method that supports setting liveUntilCanceled to true.
    http://www.ninjatrader-support.com/H...tLongStop.html

    Code:
     
    ExitLongStop(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double stopPrice, string signalName, string fromEntrySignal)

    The following reference sample can help with a lot of this:
    http://www.ninjatrader.com/support/f...ad.php?t=18890

    Yes, you can update the price of your orders and it will modify the order with the new price.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Walter2011, Today, 08:27 AM
    0 responses
    4 views
    0 likes
    Last Post Walter2011  
    Started by arangocj, Today, 06:28 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by BIllblast, Today, 08:03 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by jerryblack, Yesterday, 05:04 PM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by mattage86, Today, 06:43 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_RyanS  
    Working...
    X