Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why Exit order will take twice while both of them are different value ??

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

    Why Exit order will take twice while both of them are different value ??

    I have make a exit order and i dont know why i will get 2 times of it.

    I called it on the OnExecutionUpdate.
    Code:
    protected override void OnExecutionUpdate(Cbi.Execution execution, string executionId, double price, int quantity, Cbi.MarketPosition marketPosition, string orderId, DateTime time)
    {
    if (ExitType == CustomUniversalTrendStrategyExitCondition.Percenta ge && fulfillExit)
    {
    if (execution.Order == entryLong)
    {
    exitLong = SubmitOrderUnmanaged(0, OrderAction.Sell, OrderType.Limit, Position.Quantity, exitLongPrice, 0, "", "Exit Long");
    
    }
    else if (execution.Order == entryShort)
    {
    exitShort = SubmitOrderUnmanaged(0, OrderAction.BuyToCover, OrderType.Limit, Position.Quantity, exitShortPrice, 0, "", "Exit Short");
    }
    }

    #2
    Hello soon123,

    Thank you for your note.

    I'd guess you had a partial fill which triggered the exit order twice, but I'd like to take a look at your log and trace files to see if that may be the case.

    Please send me your log and trace files so that I may look into what occurred.

    You can do this by going to the Control Center-> Help-> Email Support

    Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

    Please reference the following ticket number in the body of the email: 2718536 ATTN Kate W.

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RobotSyndicate, Today, 04:27 AM
    0 responses
    1 view
    0 likes
    Last Post RobotSyndicate  
    Started by Ray12345, Today, 04:10 AM
    0 responses
    2 views
    0 likes
    Last Post Ray12345  
    Started by Behungr101, Today, 02:16 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by omermirza, Yesterday, 08:37 PM
    2 responses
    12 views
    0 likes
    Last Post NT-Roland  
    Started by aelagha, Today, 01:28 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X