喜庆佳节6--------多空PK主图指标 源码 贴图
佳节已接近尾声,但学员们交流的热情尚正浓,现组合一个简易的主图指标《多空PK》助助兴!!其中的资料有的是参考学员们的素材,经过再创作编辑而成,这就是来源于理想,回归于理想,目的就是交流互相学习!!!
指标中,将学员们常用的多空指标进行立体并用彩带进行美化,增加了观赏性和实用性。同时将收盘价的走势在图中以小彩柱形式显示,配合主指标共同提供买卖操盘的依据。还是那句话:指标是死的,人是活的,千万别当真,只供参考用。
指标源码;
{多空PK主图}
今日保护价:(REF(C,1)+REF(C,2)+O)/3,NODRAW;
多:(SUM(((2*CLOSE+OPEN+HIGH+LOW)/5)*(VOL),8))/(SUM(VOL,8)),COLOR00FFFF,LINETHICK0;
空:LLV(多,8),LINETHICK0,COLORFFFF00;
DRAWBAND(多,RGB(140,0,140),空,RGB(0,0,0));
DRAWKLINE(H,O,L,C);
DRAWICON(REF(多,1)=REF(空,1) AND 多>空,LOW*0.98,13);
DRAWTEXT(REF(多,1)=REF(空,1) AND 多>空,LOW*0.97,'*关注'),COLOR00FFFF;
C1:=C>=多;
C2:=C<多;
AA:=C1>=C2 ;
BB:=C2>C1 ;
STICKLINE(AA,C,O,3.2,0),COLORRED;
STICKLINE(AA,H,L,0,0),COLORRED;
STICKLINE(BB,C,O,3.2,0),COLORFFFF00;
STICKLINE(BB,H,L,0,0),COLORFFFF00;
STICKLINE(AA,CLOSE,OPEN,3.2,0),COLOR000099;
STICKLINE(AA,CLOSE,OPEN,2.6,0),COLOR0000AA;
STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(AA,CLOSE,OPEN,1.8,0),COLOR0000DD;
STICKLINE(AA,CLOSE,OPEN,1.3,0),COLOR0000FF;
STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(BB,CLOSE,OPEN,3.2,0),COLOR777700;
STICKLINE(BB,CLOSE,OPEN,2.6,0),COLORAAAA00;
STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORBBBB00;
STICKLINE(BB,CLOSE,OPEN,1.8,0),COLORDDDD00;
STICKLINE(BB,CLOSE,OPEN,1.3,0),COLOREEFF00;
STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORCYAN;
SJ:=WMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.667*REF(SJ,1)+0.333*SJ,2);
DRAWTEXT(CROSS(SJ,ZJ) AND SJ<30,L-0.05,'←买入'),COLOR00FF00;
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.05,'←卖出'),COLORFFFF00;
RC:=DYNAINFO(3);
SA:=SMA(C,3,1);
SB:=SMA(C,5,1);
DK:=2*(SA-SB);
STICKLINE(DK>0 AND DK>=REF(DK,1),RC,RC+DK,0.1,0),COLOR0000BB;
STICKLINE(DK>0 AND DK<REF(DK,1),RC,RC+DK,0.1,0),COLOR00BBBB;
STICKLINE(DK<0 AND DK>=REF(DK,1),RC,RC+DK,0.1,0),COLORBB00BB;
STICKLINE(DK<0 AND DK<REF(DK,1),RC,RC+DK,0.1,0),COLORBBBB00;
|