大智慧黄金线主图指标
源码
DRAWTEXTREL(4,0,'流通A股:'+NUMTOSTRn(FINANCE2(37),0)+'万'+' 市净率:'+NUMTOSTRn(DYNAINFO(58),2)+' 昨:'+NUMTOSTRn(DYNAINFO(3),2)+' 开:'+NUMTOSTRn(DYNAINFO(4),2)+' 高:'+NUMTOSTRn(DYNAINFO(5),2)+' 低:'+NUMTOSTRn(DYNAINFO(6),2)+' 收:'+NUMTOSTRn(DYNAINFO(7),2)),colorWhite;
DRAWTEXTREL(4,80,''+'涨幅:'+NUMTOSTRn((DYNAINFO(14) * 100),2)+'%'+' 振幅:'+NUMTOSTRn((DYNAINFO(13) * 100),2)+'%'+' 换手率:'+NUMTOSTRn((DYNAINFO(37) * 100),2)+'%'),color00FFFF;
DRAWTEXTREL(630,80,'凯恩斯工作线 | 一发千钧优化'),color00FFFF;
DRAWTEXTREL(4,160,'黄点工作线 '),colorYellow;
DRAWTEXTREL(4,560,'粉色K线
DRAWTEXTREL(4,640,'多空止赢
DRAWTEXTREL(4,240,'线上:工作
DRAWTEXTREL(120,160,' | 最低点靠近工作线低吸'),colorYellow;
DRAWTEXTREL(420,80,STKLABEL+' '+STKNAME),Color00FFFF;
DRAWTEXTREL(4,480,'空心:阳线
DRAWTEXTREL(4,320,'线上阴线买 | 买错也要买'),color00FFFF;
DRAWTEXTREL(4,400,'线下阳线卖 | 卖错也要卖'),color00FFFF;
七天线:MA(C,7),ColorFFFFFF;
工作线:EMA(C,14),POINTDOT,linethick4,coloryellow;
生命线:MA(C,22),linethick2,colorFF00FF;
季线:ma(c,66),linethick2,color0000FF;
半年线:ma(c,120),linethick2,colorFFFF00;
长期趋势线:ma(c,240),CIRCLEDOT,ColorEEBBEE;
A0:="cpzb.zp";
A1:="cpzb.cp";
A2:="cpzb.DP";
STICKLINE((A2>=2.1),H,L,0.8,1),colorGreen;
STICKLINE(((A2>=2.1) AND (C>REF(C,1))),O,C,8,1),colorGreen;
STICKLINE(((A2>=2.1) AND (C<REF(C,1))),C,O,8,0),colorGreen;
STICKLINE(((A2>0) AND (A2<5)),H,L,0.8,1),colorRed;
STICKLINE((((A2>0) AND (A2<5)) AND (C>REF(C,1))),O,C,8,0),colorRed;
STICKLINE((((A2>0) AND (A2<5)) AND (C<REF(C,1))),C,O,8,1),colorRed;
STICKLINE(((C>=工作线) AND (C>REF(C,1))),H,L,0.5,1),colorRed;
STICKLINE(((C>=工作线) AND (C>REF(C,1))),O,C,8,1),colorRed;
STICKLINE(((C>=工作线) AND (C<REF(C,1))),H,L,0.5,0),colorRed;
STICKLINE(((C>=工作线) AND (C<REF(C,1))),O,C,8,0),colorRed;
STICKLINE(((C<工作线) AND (C>REF(C,1))),H,L,0.5,1),colorGreen;
STICKLINE(((C<工作线) AND (C>REF(C,1))),O,C,8,1),colorGreen;
STICKLINE(((C<工作线) AND (C<REF(C,1))),H,L,0.5,0),colorGreen;
STICKLINE(((C<工作线) AND (C<REF(C,1))),O,C,8,0),colorGreen;
DRAWTEXT(A0,L,' ̄ ̄'),linethick2,ALIGN1,ColorFFFFFF;
DRAWTEXT(A0,L*0.98,' B-B'),linethick5,ALIGN1,colorFFFFFF;
DRAWTEXT(A1,H,' ̄ ̄'),linethick2,ALIGN1,colorcyan;
DRAWTEXT(A1,H*1.03,' S-S'),linethick5,colorcyan;
STICKLINE(A1,C,O,8,0),colorFFFF00;
STICKLINE(A1,H,L,1,0),colorFFFF00;
STICKLINE(A0,C,O,8,0),ColorFFFFFF;
STICKLINE(A0,H,L,1,0),ColorFFFFFF;
STICKLINE((A2>=10 and A2<30),C,O,0,0),ColorFFBBFF;
STICKLINE((A2>=10 and A2<30),C,O,8,0),colorMagenta;
STICKLINE((A2>=10 and A2<30),C,O,7,0),ColorFF22FF;
STICKLINE((A2>=10 and A2<30),C,O,6,0),ColorFF44FF;
STICKLINE((A2>=10 and A2<30),C,O,5,0),ColorFF66FF;
STICKLINE((A2>=10 and A2<30),C,O,4,0),ColorFF88FF;
STICKLINE((A2>=10 and A2<30),C,O,3,0),ColorFF99FF;
STICKLINE((A2>=10 and A2<30),C,O,2,0),ColorFFAAFF;
STICKLINE((A2>=10 and A2<30),C,O,1,0),ColorFFBBFF;
A3:=EMA((((SLOPE(C,21)) * 20) + C),68);
A4:=EMA(C,10);
A5:=REF(C,2);
A6:=((SMA((MAX((C - A5),0)),6,1)) / (SMA(ABS((C - A5)),6,1))) * 100;
A7:=IF(((A6 < (REF(A6,1))) AND (A6 > 79)),A6,0);
DRAWTEXT((CROSS(A4,A3)),L,'△'),linethick2,ALIGN1,colorYellow;
DRAWTEXT(A7,H,'○'),linethick3,colorGreen;
A8:=LLV(L,21);
A9:=HHV(H,21);
A10:=EMA((((CLOSE - A8) / (A9 - A8)) * 100),5);
A11:=EMA((((CLOSE - A8) / (A9 - A8)) * 50),13);
A12:=EMA(((0.667 * (REF(A10,1))) + (0.333 * A10)),2);
A13:=LLV(L,55);
A14:=HHV(H,34);
A15:=EMA((((C - A13) / (A14 - A13)) * 100),3);
A16:=(A11 + A15) / 2;
A17:=EMA(((0.667 * (REF(A15,1))) + (0.333 * A10)),2);
A18:=EMA(A16,5);
A19:=EMA(((0.667 * (REF(A18,1))) + (0.333 * A18)),2);
A20:=CROSS(A10,A11);
A21:=(CROSS(A10,A19)) AND (A19 < 30);
A22:=A21 * 0.6;
DRAWTEXT((A22 = 0.6),L,'◇'),ALIGN1,colorYellow;
DRAWTEXT((A20 = 1),L,'◇'),ALIGN1,colorWhite;