How would I get the total number of positions that each specific Signal as placed and been filled? The reason is because Signal1 is allowed to put in up to 2 positions but Signal 3 is only allowed to plane 1 position but Signal2 can put in as many positions as it wants.
I have tried something like this to loop through all the orders but it doesnt seem to be working
int sig1 = 0 private void OnAccountItemUpdate(object sender, AccountItemEventArgs e) { foreach (Order order in myAccount.Orders) { if(order.Name == "Signal1") sig1+=1 } }
Comment