How could I know if the operation generated by ExitLongPosition() has succeeded and thus we have sold order quantity specified.
if(Position .MarketPosition != MarketPosition.Long )
{
// Declaramos la 1 cobertura Alcista en 1 desviaciones
if (Time[0].DayOfWeek == DayOfWeek.Friday &&ToTime (Time[0])>=1845*100)
{
cierre= Close[0];
EnterLongStop (8,cierre+25,"Entrada");
ejecutada15 =false;
ejecutada10 =false;
}
}
if(Position .MarketPosition == MarketPosition.Long && ejecutada05 ==false )
{
ExitLongStop( 4,cierre+15,"Entrada","1close");
ejecutada05 =true;
}
if(Position .MarketPosition == MarketPosition.Long && ejecutada02 ==false )
{
ExitLongStop(4,cierre+10,"Entrada","2close")
;ejecutada02 =true;
}

Comment