I have one indicator code that trying modify that:
internal int Calc(double bbMacd, double supVal, double resVal, out bool LMacdOK, out bool SMacdOK)
{
bool item;
bool flag;
bool flag1;
bool flag2;
bool flag3;
Some calculation here
bool& lMacdOK=LMacdOK;
if (flag4 || flag5)
{
flag2 = true;
}
else
{
flag2 = flag7;
}
*(lMacdOK) = flag2;
bool& sMacdOK=SMacdOK;
if (flag4 || flag5)
{
flag3 = true;
}
else
{
flag3 = flag6;
}
*(sMacdOK) = flag3;
return 1;
}
}
}
After compile get below errors:
Identifier expected Error CS1001. I got this error for below two lines:
bool& lMacdOK=LMacdOK;
bool& sMacdOK=SMacdOK;
How to solve this?
Regards,
Comment