Thank you for your response.
I would like to clarify here on my last post.
Is it okay that a reverse occurs before the position is closed by the Stop? Is this desired?
If not you can add checks to the conditions to ensure the position is Flat before reentry:
// Condition set 1
if (Position.MarketPosition == MarketPosition.Flat && CrossAbove(WMA(CortaEntradaLargo), WMA(LargaEntradaLargo), 1)
&& ADX(14)[0] > ValorADX)
{
EnterLong(DefaultQuantity, "Largo");
}
// Condition set 2
if (Position.MarketPosition == MarketPosition.Flat && CrossBelow(WMA(CortaEntradaLargo), WMA(LargaEntradaLargo), 1)
&& ADX(14)[0] > 20)
{
EnterShort(DefaultQuantity, "Corto");
}

Comment