Folks,
Would really appreciate help on this error I am getting when compiling the code but cannot see any reason. I am not a developer.
int Al_1 ;
Al_1 =
(Period() == PERIOD_M1) +
(Period() == PERIOD_M5) * 2 + 3 *
(Period() == PERIOD_M15) +
(Period() == PERIOD_M30) << 2 + 5 *
(Period() == PERIOD_H1) + 6 *
(Period() == PERIOD_H4) + 7 *
(Period() == PERIOD_D1) +
(Period() == PERIOD_W1) << 3;
'<<' bitwise operator are to be applied to integer values only.
thanks
Would really appreciate help on this error I am getting when compiling the code but cannot see any reason. I am not a developer.
int Al_1 ;
Al_1 =
(Period() == PERIOD_M1) +
(Period() == PERIOD_M5) * 2 + 3 *
(Period() == PERIOD_M15) +
(Period() == PERIOD_M30) << 2 + 5 *
(Period() == PERIOD_H1) + 6 *
(Period() == PERIOD_H4) + 7 *
(Period() == PERIOD_D1) +
(Period() == PERIOD_W1) << 3;
'<<' bitwise operator are to be applied to integer values only.
thanks