But it stil entering if another strategy is short at the instrument. Have someone a tip?
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1
|| CurrentBars[1] < 0
|| CurrentBars[2] < 0)
return;
// Set 1
(Closes[2][0] > Opens[2][0])
// Long Strategy Filter
&& ((Position.MarketPosition == MarketPosition.Long) || (Position.MarketPosition == MarketPosition.Flat)))
{
EnterLong(Convert.ToInt32(QTY), @"Long");
}

Comment