I am trying to use the draw,region function to highlight the area between 1 and 0.8 in my indicator panel but I face two errors. I looked these codes up but could not solve the issue. Can someone explain to me how to use the draw.region function properly ? Below you can find the part of the code which should include the statements. Many thanks in advance !
if (L0[0] >= L1[0])
cu = L0[0] - L1[0];
else
cd = L1[0] - L0[0];
if (L1[0] >= L2[0])
cu += L1[0] - L2[0];
else
cd += L2[0] - L1[0];
if (L2[0] >= L3[0])
cu += L2[0] - L3[0];
else
cd += L3[0] - L2[0];
if (cu + cd != 0){
LRSI[0] = (cu / (cu + cd));
(Draw region should be included here)

Comment