I use this code:
if (entryOrder == null && logica == true)
{
entryOrder = EnterLongStop(Convert.ToInt32(DefaultQuantity),Hig h[0] + TickSize*2,"Long"+ CurrentBar);
entryOrder = EnterShortStop(Convert.ToInt32(DefaultQuantity),Lo w[0] - TickSize*2,"Short"+ CurrentBar);
}
The input logic is the same for long and short:
Volume[0]>Volume[1]
always execute the long order first.
Why if sometimes first there is the condition to enter short?
thank you.
Comment