Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why this error is caused?

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

    Why this error is caused?

    thanks, solved small mistake myself.
    Last edited by ttodua; 06-05-2017, 02:22 PM.

    #2
    Hello selnomeria,

    Thank you for your post.

    You are missing an open bracket. Please change lines 385 to 394 to the following:
    Code:
            protected override void OnOrderUpdate(IOrder order)
            {
    			// Handle entry orders here. The entryOrder object allows us to identify that the order that is calling the OnOrderUpdate() method is the entry order.
    			for (int i=0; i<4; i++)
    [B]			{[/B]
    				// Reset the entryOrder object to null if order was cancelled without any fill
    				if(MyEntryOrders[i] != null  && MyEntryOrders[i].Token == order.Token ) { MyEntryOrders[i] = null; }
    			}
    			
    		}
    Please let me know if you have any questions.

    Comment


      #3
      many htanks. solved and please delete this topic, there was missing small type.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      51 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      142 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      275 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X