my question is is this the right way to specify position is short and order is from Breakout Short only?
If
if (Position.MarketPosition == MarketPosition.Short && Position.Account.Name == "Breakout Short"
&& ((Close[1] < Open[1] && Low[0] < Low[1] && Close[0] > Open[1])
|| (Close[0] > Open[0] && Close[1] > Open[1] && Close[3] > Open[3]) // 3 closes
|| (Close[0] > High[3])))
{
ExitShort(Position.Quantity);
}
Comment