源码
P1:=5;P2:=10;P3:=21;P4:=65;
p5:=130;
p6:=260;
MA1:MA(CLOSE,P1),COLORcyan;
MA2:MA(CLOSE,P2),COLORgreen;
MA3:MA(CLOSE,P3),COLORMAGENTA,linethick2;
MA4:MA(CLOSE,P4),COLORblue,linethick2;
MA5:MA(CLOSE,P5),COLORgray;
MA6:MA(CLOSE,P6),COLORbrown;
KDB1:=filter(backset(BARSCOUNT(C)=SYSPARAM(1) ,P1),P1);
KDB2:=filter(backset(BARSCOUNT(C)=SYSPARAM(1) ,P2),P2);
KDB3:=filter(backset(BARSCOUNT(C)=SYSPARAM(1) ,P3),P3);
KDB4:=filter(backset(BARSCOUNT(C)=SYSPARAM(1) ,P4),P4);
KDB5:=filter(backset(BARSCOUNT(C)=SYSPARAM(1) ,P5),P5);
KDB6:=filter(backset(BARSCOUNT(C)=SYSPARAM(1) ,P6),P6);
vertline(KDB1),colorCYAN,POINTDOT;
vertline(KDB2),colorCYAN,POINTDOT;
vertline(KDB3),colorCYAN,POINTDOT;
vertline(KDB4),colorCYAN,POINTDOT;
vertline(KDB5),colorCYAN,POINTDOT;
vertline(KDB6),colorCYAN,POINTDOT;
DRAWNUMBER(BARSCOUNT(C)=SYSPARAM(1),L*0.98,C,0),colorcyan;
DRAWICON(KDB1,L,8),colorcyan,align5;
DRAWNUMBER(KDB1,L*0.98,C,0),colorcyan;
DRAWICON(KDB2,L,8),colorcyan,align5;
DRAWNUMBER(KDB2,L*0.98,C,0),colorcyan;
DRAWICON(KDB3,L,8),colorcyan,align5;
DRAWNUMBER(KDB3,L*0.98,C,0),colorcyan;
DRAWICON(KDB4,L,8),colorcyan,align5;
DRAWNUMBER(KDB4,L*0.98,C,0),colorcyan;
DRAWICON(KDB5,L,8),colorcyan,align5;
DRAWNUMBER(KDB5,L*0.98,C,0),colorcyan;
DRAWICON(KDB6,L,8),colorcyan,align5;
STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa;
STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb;
STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc;
STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;
STICKLINE(close>open,close,open,9,0 ),COLOr6666cc;
STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;
STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee;
STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;
STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff;
STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff;
STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc;
STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;