The display in the upper right corner is not easy to write. The last two are the maximum and minimum values of the last K line displayed above and below the last K line respectively.
DRAWNUMBER(ISLASTBAR,H+ 10*MINPRICE,REF(H, 1),2,color yellow);
DRAWNUMBER(ISLASTBAR,L- 15*MINPRICE,REF(L, 1),2,color magenta);