• 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

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 aslane, Today, 01:29 PM
    1 response
    6 views
    0 likes
    Last Post aslane
    by aslane
     
    Started by itrader46, Today, 01:09 PM
    0 responses
    5 views
    0 likes
    Last Post itrader46  
    Started by elnoppo, Today, 12:38 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by TradingRocks, Today, 11:44 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Brillo, Today, 11:39 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X