If I do the following
if(abortOrders == true && Positions[0] != null){
Print("Exit Positoin");
if(Positions[0].Quantity > 0){
Print("Position Close Requested");
Positions[0].Close();
Print("Position Close");
}
}
I get an " Object reference not set to an instance of an object." error.. Even though it's not null and the quantity is greater then 0.
Thanks!
Chris
Comment