Hi there:
Error on calling 'OnBarUpdate' method for Strategy (Multi time frame and instrument)
Please see the attached screenshot. I highlight in light yellow what the explanation of the error is...The issue is with the dark yellow with the Category name "Strategy"
I recently added and a multi time frame function (not instrument at the time...just multi time frame). It compiles ok etc. How do I fix this? Here is the beginning of the 'OnBarUpdate':
protected override void OnBarUpdate()
{
// OFF if backtesting. But ON if trading Calc on False if (Historical) return;
if (Position.MarketPosition == MarketPosition.Flat) // Be Flat
if(FirstTickOfBar)
{
x = 0;
}
if (BarsInProgress != 0)
return;
if (CrossAbove(SMA(Fast), SMA(Slow), 1)..."ETC ETC ETC"

Comment