I am trying to validate for an existing order name and if it exists then placing a second order . here is an example:
//
var order2 = Orders.FirstOrDefault(O => O.Name == "LD");
{
if ((order2 != null) && ((Closes[0][0] < SMA(10)[0])))
{
EnterLong(1, "LD2");
return;
}
}
The above code is not returning the First order "LD"
Could you please help me.
Thanks

Comment