VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
主力线:100-(100-VARA),COLORYELLOW;
IF(主力线
持强:HHV(IF(TIME<=100000,COUNT(CROSS(主力线,REF(主力线,1))+CROSS(REF(主力线,1),主力线),0),0),0),COLORWHITE,NODRAW;
连红:BARSCOUNT(主力线>REF(主力线,1) AND 主力线>100),COLORRED,NODRAW;
AA:=IF(主力线<0,主力线,0);
BB:=IF(主力线>100,主力线,100);
DRAWBAND(BB,RGB(0,0,255),100,RGB(0,0,0));
DRAWBAND(0,RGB(0,0,255),AA,RGB(0,0,0));
DRAWICON((CROSS(主力线,REF(主力线,1)) AND 主力线<=100),主力线-3,1),DRAWABOVE;
DRAWICON((CROSS(REF(主力线,1),主力线) AND 主力线<=100),主力线+1,2),DRAWABOVE;
DRAWICON((CROSS(主力线,REF(主力线,1)) AND 主力线>100),100-2,1),DRAWABOVE;
DRAWICON((CROSS(REF(主力线,1),主力线) AND 主力线>100),100+1,2),DRAWABOVE;
0,POINTDOT,COLORGREEN;
50,POINTDOT,COLORGRAY;
100,POINTDOT,COLORRED;