Not sure what I am doing wrong, I am trying to place 2 orders at the same time one long one short, but only the first order is getting placed. I am trying to capture a break out in either direction.
Any idea what I am doing wrong?
protected override void OnBarUpdate() {
if (Position.MarketPosition == MarketPosition.Flat) {
if (ValidEntry) {
SetStopLoss("Short", CalculationMode.Ticks, 20, false);
SetProfitTarget("Short", CalculationMode.Ticks, 50);
shortOrder = EnterShortStop(ShortEntry, "Short");
SetStopLoss("Long", CalculationMode.Ticks, 20, false);
SetProfitTarget("Long", CalculationMode.Ticks, 50);
longOrder = EnterLongStop(LongEntry, "Long");
}
}
}
Thanks
Mike
Comment