源码
{M1:=30;M2:=6;N1:=18;N2:=15;}
{input:m1(30),m2(6),n1(18),n2(15);}
风险:1,linethick3, colorred;
1,linethick1, coloryellow;
底部:-1,linethick1,colorblue;
BIAS :=(C-eMA(C,M1))/eMA(C,M1)*10.0;
TR:= DMA(DMA(DMA(C,N1/100),N1/100),N1/100);
TRIX :=(TR-REF(TR,1))/REF(TR,1)*100;
gg1:ma(bias,M2), colorwhite;
gg2: MA(TRIX,N2)*1.5, colorgreen;
stickline(gg1>=gg2,gg2,((gg1-gg2)/3+gg2),1,0),linethick2,color6600ff;
stickline(gg1>=gg2,((gg1-gg2)/3+gg2),(2*(gg1-gg2)/3+gg2),1,0),linethick2,color9900ff;
stickline(gg1>=gg2,(2*(gg1-gg2)/3+gg2),(3*(gg1-gg2)/3+gg2),1,0),linethick2,colorcc00ff;
stickline(gg1<gg2,gg1,((gg2-gg1)/3+gg1),1,0),linethick2,colorff3366;
stickline(gg1<gg2,((gg2-gg1)/3+gg1),(2*(gg2-gg1)/3+gg1),1,0),linethick2,colorff6666;
stickline(gg1<gg2,(2*(gg2-gg1)/3+gg1),(3*(gg2-gg1)/3+gg1),1,0),linethick2,colorff9966;