Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnExecutionUpdate call multiple times for single contract

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

    OnExecutionUpdate call multiple times for single contract

    Hi,

    On occasion NT8 is now calling OnExecutionUpdate multiple times for an order that for one contract. I'm sure this never used to be the case. I am using NT 8.0.6.1

    I understand and have programmed accordingly with OnExecutionUpdate being called multiple time for partial fills. But how do you get partial fills on an order with a quantity of 1.

    My question is this: should OnExecutionUpdate be called twice for an order with a single contract or is the behaviour incorrect?

    Thanks in advance

    #2
    Hello AusTrader,

    It would not be expected for OnExecutionUpdate to be called twice with only a unit of 1 being executed.

    What type of order are you submitting as part of your strategy? (Limit, Market, Etc).

    What instrument are you trading?

    I was able to test with the following script and only saw one print to the output window.
    Code:
    	protected override void OnExecutionUpdate(Cbi.Execution execution, string executionId, double price, int quantity, 
    			Cbi.MarketPosition marketPosition, string orderId, DateTime time)
    		{
    			Print("OBE is being called"+Time[0].ToString());
    			
    		}
    
    		protected override void OnBarUpdate()
    		{
    			if(State ==State.Historical) return;
    			EnterLong();
    		}
    Could you provide a code sample which replicates the behavior please?
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi,
      I'm currently working on a simple strategy that reproduces the problem. I will post here when I have one.

      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by AaronKoRn, Today, 09:49 PM
      0 responses
      11 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Today, 08:42 PM
      0 responses
      10 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Today, 07:51 PM
      0 responses
      11 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,980 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      9 views
      0 likes
      Last Post rbeckmann05  
      Working...
      X