Hello Experts,

I intend to primarily figure out a dynamic band of price levels that changes at every bar in order to then discern a figure by calculating those levels. Using a matrix would be easier for my further calculations but I am stuck assigning values to the matrix and need your kind help.

```
OptSymStepMult = Param( "Upper-Lower Range", 10, 1, 100, 1 );
fvb = Status( "firstvisiblebar" );
lvbi = LastValue( BarIndex() );
UpperRangeOptSym = ...; //Formula to calculate the upper band limit
LowerRangeOptSym = ...; //Formula to calculate the lower band limit
RowNum = OptSymStepMult * 2; //Same as UpperRangeOptSym - LowerRangeOptSym
col = 0;
for( j = fvb; j <= lvbi - fvb + 1; j++ )
{
row = 0;
for( i = LowerRangeOptSym[ j ]; i <= UpperRangeOptSym[ j ]; i = i + lvStpDiff )
{
MtrxRecStrk = Matrix( RowNum, 3, 0 );
MtrxRecStrk[ row ][ col ] = i;
row++;
}
col++;
}
```

The error that I am getting is as follows:

I am definitely doing something fundamentally wrong. Please help correct!

Thank you very much....