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 StockTrader88, 03-06-2021, 08:58 AM
      45 responses
      3,991 views
      3 likes
      Last Post johntraderuser2  
      Started by TAJTrades, Today, 09:46 AM
      0 responses
      7 views
      0 likes
      Last Post TAJTrades  
      Started by rhyminkevin, Yesterday, 04:58 PM
      5 responses
      62 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Started by realblubb, Today, 09:28 AM
      0 responses
      8 views
      0 likes
      Last Post realblubb  
      Started by AaronKoRn, Yesterday, 09:49 PM
      1 response
      19 views
      0 likes
      Last Post Rikazkhan007  
      Working...
      X