<p class="ql-block">T:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);</p><p class="ql-block">HD :=HIGH-REF(HIGH,1);</p><p class="ql-block">LD :=REF(LOW,1)-LOW;</p><p class="ql-block">MP:=SUM(IF(HD>0&&HD>LD,HD,0),14);</p><p class="ql-block">MM:=SUM(IF(LD>0&&LD>HD,LD,0),14);</p><p class="ql-block">PD:=MP*100/T;</p><p class="ql-block">MD:=MM*100/T;</p><p class="ql-block">A:=PD-MD>=0;</p><p class="ql-block">B:=PD-MD<0;</p><p class="ql-block">D:=(PD-MD);</p><p class="ql-block">DD:=D>=0;</p><p class="ql-block">STICKLINE(DD,0,D,3,0),COLOR000055;</p><p class="ql-block"> STICKLINE(DD,0,D,2.8,0),COLOR000066;</p><p class="ql-block"> STICKLINE(DD,0,D,2.5,0),COLOR000077;</p><p class="ql-block"> STICKLINE(DD,0,D,2.2,0),COLOR000088;</p><p class="ql-block"> STICKLINE(DD,0,D,1.7,0),COLOR000099;</p><p class="ql-block"> STICKLINE(DD,0,D,1.2,0),COLOR0000AA;</p><p class="ql-block"> STICKLINE(DD,0,D,0.7,0),COLOR0000CC;</p><p class="ql-block"> STICKLINE(DD,0,D,0.2,0),COLOR0000FF;</p><p class="ql-block">F:=(PD-MD);</p><p class="ql-block">FF:=F<0;</p><p class="ql-block"> STICKLINE(FF,0,F,3,0),COLOR009900;</p><p class="ql-block"> STICKLINE(FF,0,F,2,0),COLOR00BB00;</p><p class="ql-block"> STICKLINE(FF,0,F,1,0),COLOR00DD00;</p><p class="ql-block"> STICKLINE(FF,0,F,0.3,0),COLOR00FF00;</p>