RUNO:=0;
上趋势:IF(tj+RUNO,MA(LOW,20)*1.2,NULL),colormagenta,CROSSDOT;
次上趋势:IF(tj+RUNO,MA(LOW,20)*1.1,NULL),coloryellow;
次下趋势:IF(tj+RUNO,MA(HIGH,20)*0.9,NULL),colorwhite;
下趋势:IF(tj+RUNO,MA(HIGH,20)*0.8,NULL),colorgreen,CROSSDOT;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C<次上趋势,2,IF(C<下趋势,0,1)));
STICKLINE(趋势强度=0 AND (tj+RUNO),H,L,8,1),colorblue;
STICKLINE(趋势强度=1 AND (tj+RUNO),H,L,8,1),colorgreen;
STICKLINE(趋势强度=2 AND (tj+RUNO),H,L,8,1),colorgray;
STICKLINE(趋势强度=3 AND (tj+RUNO),H,L,8,1),coloryellow;
STICKLINE(趋势强度=4 AND (tj+RUNO),H,L,8,1),colormagenta;
STICKLINE(趋势强度=0 AND (tj+RUNO),C,O,7,0),colorblue;
STICKLINE(趋势强度=1 AND (tj+RUNO),C,O,7,0),colorgreen;
STICKLINE(趋势强度=2 AND (tj+RUNO),C,O,7,0),colorgray;
STICKLINE(趋势强度=3 AND (tj+RUNO),C,O,7,0),coloryellow;
STICKLINE(趋势强度=4 AND (tj+RUNO),C,O,7,0),colormagenta;