input:WS(0,0,9);{//WS是N的尾数,WS=0,尾数,0~9之间整数,可调节参数}
RSV:=(C-LLV(L,15))/(HHV(H,15)-LLV(L,15))*100;
K:=(SMA(RSV,10,1));
D:=(SMA(K,5,1));
KK:=INTPART(SMA(RSV,10,1));
DD:=INTPART((SMA(K,5,1)));
N:KK+DD,LINETHICK1,COLORGREEN;
A:KK-DD,LINETHICK1,COLORWHITE;
A1:REF(KK-DD,1),LINETHICK1,COLORCYAN;
A2:=REF(KK-DD,2);
STICKLINE(N<25,-25,-15,10,0),align0,linethick3,COLORYELLOW;
{表格竖线}
x:=DISPSTATUS=2=BARPOS;
k:=(DISPSTATUS=3)-(DISPSTATUS=2)/110;
x1:=(DISPSTATUS=2)+INTPART(12*k)=BARPOS;
x2:=(DISPSTATUS=2)+INTPART(28*k)=BARPOS;
x3:=(DISPSTATUS=2)+INTPART(46*k)=BARPOS;
x4:=(DISPSTATUS=2)+INTPART(62*k)=BARPOS;
x5:=(DISPSTATUS=2)+INTPART(80*k)=BARPOS;
x6:=(DISPSTATUS=2)+INTPART(103*k)=BARPOS;
VERTLINE(x or x1 or x2 or x3 or x4 or x5 or x6,1 ),colorgray;
{表格横线}
DRAWLINE(x,-20,x6,-20,0),colorgray;
DRAWLINE(x,14,x6,14,0),colorgray;
DRAWLINE(x,49,x6,49,0),colorgray;
DRAWLINE(x,83,x6,83,0),colorgray;
DRAWLINE(x,120,x6,120,0),colorgray;
{卖点}
卖:=7*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30,4,1)
-3*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30,4,1),3,1)
-sma(SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30,4,1),3,1),2,1);
{-----------------【图解模板】---------------------}
尾数:MOD(n,10),LINETHICK1,COLORWHITE;
N的尾数:IF(尾数=WS,0,1),LINETHICK1,COLORWHITE;
{信号}
STICKLINE(尾数=WS,38,-20,5,0),COLORGRAY;
drawicon(N<15,-20,1),ALIGN0;
{drawicon(A1=0,-20,10),ALIGN0;
drawicon((A>8 and A1>=0 and A2<0),-20,6),ALIGN0;