For the new error I can't tell what line that may be, you can undo the changes to get rid of that.
This part of your condition uses a specific order variable that you made:
&& myEntryOrderESSHORT != null)
foreach(Order order in orderList)
The error you are getting simply means something was null and if the line which throws the error is if( order.Name == "ES SHORT LIMIT" + esuhsc) that means the order in your list was null. I can't say what order that was because it was null so we cant get the name of it.
To bypass that order because its null you could use a null check
if(order != null) { // order exists and is not null }
Comment