protected override void OnBarUpdate()
{
switch(CurrentBar)
{
case 0:
//b1 is incomplete.
return;
break;
case 1:
Value[1] = Low[1];
Value[0] = High[0];
Print(Value[1]);
Print(Value[0]);
break;
default:
break;
}
}
Indicator 'CompositeTrendBar': Error on calling 'OnBarUpdate' method on bar 1: Index was outside the bounds of the array.
I know it's something basic. Please point out what I'm missing.
Thanks

Comment