so what should i do if instead of FLATTEN I want to EXIT the position that were only entered via addon with the name "Entry"
there is no ....Name == "Entry" option in below code.
for (int i = 0; i < TotalNumberOfAccounts; i++) { foreach (var position in accountSelectors[i].SelectedAccount.Positions) { // Check if the position has the desired name if (position.Name == "Entry") { position.Close(); } } }
Comment