TR=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),15);
HD=HIGH-REF(HIGH,1);
LD=REF(LOW,1)-LOW;
DMP=SUM(IF(HD>0 AND HD>LD,HD,0),15);
DMM=SUM(IF(LD>0 AND LD>HD,LD,0),15);
多方:DMP*100/TR,COLORFF00FF,LINETHICK3;
多:DMP*100/TR,coloryellow,LINETHICK1;
空方:DMM*100/TR,COLOR00FF00,LINETHICK3;
空:DMM*100/TR,colorwhite,LINETHICK1;
TJ1:=CROSS(多方,空方);
TJ2:=CROSS(空方,多方);
TJ3:=COUNT(TJ2,BARSLAST(TJ1));
DRAWICON(TJ1,多方*0.85,'buy');
DRAWICON(TJ2 AND TJ3=1,多方*0.85,'SELL');