Is it possible to do this, I don't see any reason why not but just checking,
protected override void OnBarUpdate()
{
if(Position.MarketPosition == MarketPosition.Long)
{
if(BarsInProgress == 2) // Tick bars
{
//Logic
}
}
}
so only processing tick bars if there is a position, so to lessen the CPU load when there is no position? Does it make sense to do this?
Thx

Comment