LC:=REF(CLOSE,1);
N:=14;
趋势线:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100,COLORYELLOW,LINETHICK3;
超卖区:=35,COLORGREEN;
超买区:70,COLORRED;
{STICKLINE(趋势线>70,趋势线,70,0,0),COLORRED;}
STICKLINE(趋势线<35,趋势线,35,1,0),COLORYELLOW;
RSIB1:=REF(趋势线,1)<50 AND 趋势线<70 AND 趋势线>=HHV(趋势线,10) AND H>=HHV(H,10);
{DRAWICON(RSIB1,趋势线,13);}
RSIB:=L<=LLV(L,10) AND 趋势线>LLV(趋势线,10) AND 趋势线<35 AND 趋势线>=REF(趋势线,1);
DRAWICON(RSIB,趋势线,1);
RSIS1:=趋势线>70 AND 趋势线<HHV(趋势线,5) AND H>=HHV(H,5);
{DRAWICON(RSIS1,趋势线+5,8);}
{STICKLINE(RSIS1,趋势线,70,1,0),COLORGREEN;}
RSIS2:=REF(趋势线,1)>70 AND 趋势线<REF(趋势线,1) AND H>=REF(H,1);
{DRAWICON(RSIS2,73,39);}
{STICKLINE(RSIS2,趋势线,70,2,0),COLORGREEN;}
RSIS3:=趋势线<65 AND REF(趋势线,1)>70;
{DRAWICON(RSIS3,73,39);}
{STICKLINE(RSIS3,70,趋势线,2,0),COLORGREEN;}
强弱分界线:=50,COLORWHITE,DOTLINE;
VARA1:=(DVOL/C)/2,NODRAW;
VARA2:=SUM(IF(VARA1>100 AND CLOSE>REF(CLOSE,1),VARA1,0),0);
VARA3:=SUM(IF(VARA1>100 AND CLOSE<REF(CLOSE,1),VARA1,0),0);
VARA4:=SUM(IF(VARA1<100 AND CLOSE>REF(CLOSE,1),VARA1,0),0);
VARA5:=SUM(IF(VARA1<100 AND CLOSE<REF(CLOSE,1),VARA1,0),0);
VARA6:=VARA2+VARA3+VARA4+VARA5;
机买:=(VARA2/VARA6)*100,LINETHICK2,COLORRED;
机卖:=(VARA3/VARA6)*100,LINETHICK2,COLORGREEN;
主力差:=机买-机卖,LINETHICK2,NODRAW;
强度:=主力差-REF(主力差,1),NODRAW,COLORYELLOW;
{STICKLINE(强度>1.5,-3.01,-3.3,2,0),COLORYELLOW;}
L2:=MA(AMOUNT/(100*V),13);
CYS13:= (C-L2)/L2*100 ;
强庄:STICKLINE(CYS13>3.5 AND TIME<=0935,-99,9,2,0 ),COLORCYAN;