I understand that you want to run the indicator on COBC = true, but the strategy on COBC = false.
As far as I know this is not possible with a straight forward approach, because setting the strategy COBC = false will force COBC = false on all the indicators it is using.
However I use the following workaround:
set COBC = true in initialize of strategy
CalculateOnBarClose = true;
(you should add this method in the code, below the default OnBarUpdate() method )
protected override void OnMarketData(MarketDataEventArgs e)
{
if (e.MarketDataType == MarketDataType.Last) // executes if incoming tick was a price change ( and not bid/ask change)
{
// put code here to check if price is above/below Supertrend indicator value.
}
}
I don't know your programming skills, so let me know if this works for you.
Marco


Leave a comment: