AA:=11203309999;
控盘线:MA(MA(WINNER(C),3),40)*100,COLORGRAY,LINETHICK3;
控盘:=控盘线>REF(控盘线,5);
ZH:=100*(C-REF(C,1))/REF(C,1);
KXKZZ:=COUNT(ZH<0,120);
加仓线:IF(DATE<=AA AND BARSCOUNT(C)>10,KXKZZ,0) COLORYELLOW ,LINETHICK2;
XX:=SUM(KXKZZ ,120) ;
总跌值:=IF(BARSCOUNT(C)>10,XX,0)/100;
ZFFF:=(C-REF(C,120))/REF(C,120)*80;
ZFRF:=MA(ZFFF,7);
生命线:加仓线/总跌值*10 COLORRED ,LINETHICK2;
趋势线:IF(BARSCOUNT(C)>10,ZFRF,0) COLORGREEN ,LINETHICK2 ;
KLL4:=CROSS(趋势线,生命线) AND 控盘线;
KLL5:=CROSS(趋势线,加仓线) AND 控盘线;
KLLL4:=CROSS(生命线,趋势线);
KLLL5:=CROSS(加仓线,趋势线);
DRAWTEXT(KLLL4 ,生命线,'清仓'),COLORWHITE;
DRAWTEXT(KLLL5 ,加仓线,'减仓'),COLORRED;
DRAWTEXT(KLL4 AND 控盘,生命线,'进仓'),COLORGREEN;
DRAWTEXT(KLL5 AND 控盘,加仓线,'加仓'),COLORMAGENTA;