I have a code like this
The problem is when i execute this i am getting this error
Error 6. Condition in IF, WHILE, FOR statements has to be Numeric or Boolean type. You can not use array here, please use [] (array subscript operator) to access array elements
Any idea how to solve this error
Code:
mrsi=RSIa(C,14);
ma1=MA(C,200);
if((mrsi >70) AND C>ma1 )
var=1;
else
var=0;
if ( var == 1 )
{
Do some stuff
}
else
{
}
Error 6. Condition in IF, WHILE, FOR statements has to be Numeric or Boolean type. You can not use array here, please use [] (array subscript operator) to access array elements
Any idea how to solve this error