VARV:=(2*C+H+L)/4;
VARU:=LLV(LOW,30);
VARA1:=HHV(HIGH,30);
B:=EMA((VARV-VARU)/(VARA1-VARU)*100,8);
B1:=EMA(B,5);
趋势收盘:B,NODRAW;
趋势开盘:B1,NODRAW;
高抛: 80,COLORFF00FF,CIRCLEDOT;
低吸: 20,COLORBLUE,CIRCLEDOT;
强弱分界: 50,COLORYELLOW,CIRCLEDOT;
趋势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) ,COLORYELLOW,LINETHICK1;
买点准备:IF(趋势线<=10,0,10), COLORFF9933,LINETHICK3;
波段拐点:B-B1>0 AND REF((B-B1),1)<0,NODRAW;
持仓状态:B-B1>0,NODRAW;
STICKLINE(B-B1>0,B,B1,3,0),COLOR0000AA;
STICKLINE(B-B1>0,B,B1,2.5,0),COLOR0000BB;
STICKLINE(B-B1>0,B,B1,1.5,0),COLOR0000CC;
STICKLINE(B-B1>0,B,B1,1,0),COLOR0000EE;
STICKLINE(B-B1>0,B,B1,0,0),COLOR0000FF;
STICKLINE(B-B1<0,B,B1,3,0),COLOR7B7B00;
STICKLINE(B-B1<0,B,B1,2.5,0),COLOR909000;
STICKLINE(B-B1<0,B,B1,1.5,0),COLORA8A800;
STICKLINE(B-B1<0,B,B1,1,0),COLORCECE00;
STICKLINE(B-B1<0,B,B1,0,0),COLORFFFF00;
{----------------------------------------------------}
0,COLORFF00FF,LINETHICK3;