趋势线:(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
DRAWTEXT(趋势线>99,96,'大\n盘\n跑'),ALIGN0,COLORYELLOW;
VAR3:=SMA(趋势线,4,1);
VAR4:=SMA(趋势线,2,1);
均线:MA(趋势线,10);
机构增仓:IF(VAR3<9 AND VAR4<6,60,0),colorFF;
DRAWTEXT(机构增仓,30,'机构增仓'),colorFF;
机构逃:IF(VAR4>82 AND VAR3>89,90,0),colorFF00;
DRAWTEXT(机构逃,60,'机\n构\n逃'),ALIGN0,colormagenta;
机构进出:=SMA(VAR3,2,1);
机构均线:=MA(机构进出,7);
DRAWTEXT(机构进出<10 AND CROSS(15,机构均线),机构进出,'增仓!'),colorFF;
DRAWTEXT(机构进出>80 AND CROSS(机构均线,85),60,'机\n构\n逃\n命'),ALIGN0,Colorgreen;
底部区域:IF(VAR4<15 AND VAR3<12,30,0),colorFF00FF;
顶部区域:IF(VAR4>85 AND VAR3>95,50,100);
50,POINTDOT;