凯恩斯四星级主图(大智慧)

A1:=DATE <= 13181231;

DRAWTEXTREL(4,5,'流通A股:'+NUMTOstRN(FINANCE2(7),0)+'万'+'市净率:'+NUMTOSTRN((DYNAINFO(7)/FINANCE2(34)),2)+' 昨:'+NUMTOSTRN(DYNAINFO(3),2)+'开:'+NUMTOSTRN(DYNAINFO(4),2)+' 高:'+NUMTOSTRN(DYNAINFO(5),2)+'低:'+NUMTOSTRN(DYNAINFO(6),2)+' 收:'+NUMTOSTRN(DYNAINFO(7),2)+'涨幅:'+NUMTOSTRN((DYNAINFO(14)*100),2)+'%'+' 振幅:'+NUMTOSTRN((DYNAINFO(13)*100),2)+'%'+'换手率:'+NUMTOSTRN((DYNAINFO(37)*100),2)+'%'),linethick1,colorwhite;

DRAWTEXTREL(22,40,'凯恩斯双线'),linethick5,colorred;

DRAWTEXTREL(180,50,'黄点工作线'),linethick1,coloryellow;

DRAWTEXTREL(260,50,'多空停损点'),linethick1,colormagenta;

DRAWTEXTREL(340,50,'线上工作|线下休息'),linethick1,colorwhite;

DRAWTEXTREL(470,50,'最低点靠近工作线低吸'),linethick1,coloryellow;

DRAWTEXTREL(210,100,STKLABEL+' '+STKNAME),linethick5,ColorFFFF80;

DRAWTEXTREL(6,150,'空心:阳线|实体:阴线'),linethick2,colorwhite;

DRAWTEXTREL(10,200,'线上阴线买|买错也要买'),linethick1,colorred;

DRAWTEXTREL(10,240,'线下阳线卖|卖错也要卖'),linethick1,colorgreen;

七天线:MA(C,7),colorgray;

工作线:(EMA(C,14)) * A1,POINTDOT,linethick4,coloryellow;

生命线:(MA(C,25)) * A1,linethick2,colormagenta;

不惑线:(MA(C,40)) * A1,colorcyan;

姊妹线:(EMA(C,56)) * A1,CIRCLEDOT,colorwhite;

长线启动点:(MA(C,99)) * A1,linethick1,Color0099FF;

{卖线:EMA(SLOPE(C,21)*21+C,42),colorred,LINETHICK2;}

A2:="cpzb@cp";

STICKLINE((A2 >= 8),H,L,0.8,1),colorgreen;

STICKLINE(((A2 >= 8) AND (C > O)),O,C,8,1),colorgreen;

STICKLINE(((A2 >= 8) AND (C < O)),C,O,8,0),colorgreen;

STICKLINE(((A2 > 0) AND (A2 <= 2)),H,L,0.8,1),colorred;

STICKLINE((((A2 > 0) AND (A2 <= 2)) AND (C > O)),O,C,8,1),colorred;

STICKLINE((((A2 > 0) AND (A2 <= 2)) AND (C < O)),C,O,8,0),colorred;

STICKLINE(((C >= 工作线) AND (C >= O)),H,L,0.5,1),colorred;

STICKLINE(((C >= 工作线) AND (C >= O)),O,C,8,1),colorred;

STICKLINE(((C >= 工作线) AND (C <= O)),H,L,0.5,0),colorred;

STICKLINE(((C >= 工作线) AND (C <= O)),O,C,8,0),colorred;

STICKLINE(((C < 工作线) AND (C >= O)),H,L,0.5,1),colorgreen;

STICKLINE(((C < 工作线) AND (C >= O)),O,C,8,1),colorgreen;

STICKLINE(((C < 工作线) AND (C <= O)),H,L,0.5,0),colorgreen;

STICKLINE(((C < 工作线) AND (C <= O)),O,C,8,0),colorgreen;

DRAWTEXT((A2 = 1),L,' ̄'),linethick2,ALIGN1,Color208FFF;

DRAWTEXT((A2 = 1),L,'B'),linethick5,ALIGN1,coloryellow;

DRAWTEXT((A2 = 9),H,' ̄'),linethick2,ALIGN1,colorcyan;

DRAWTEXT((A2 = 9),H+0.38,'S'),linethick5,colorcyan;

STICKLINE((A2 = 9),C,O,0,0),colorwhite;

STICKLINE((A2 = 9),C,O,8,0),colorwhite;

STICKLINE((A2 = 9),C,O,7,0),ColorDDDDDD;

STICKLINE((A2 = 9),C,O,6,0),ColorCCCCCC;

STICKLINE((A2 = 9),C,O,5,0),colorwhite;

STICKLINE((A2 = 9),C,O,4,0),ColorEEEEEE;

STICKLINE((A2 = 9),C,O,3,0),ColorDDDDDD;

STICKLINE((A2 = 9),C,O,2,0),ColorCCCCCC;

STICKLINE((A2 = 9),C,O,1,0),colorwhite;

STICKLINE((A2 = 1),C,O,0,0),ColorFFBBFF;

STICKLINE((A2 = 1),C,O,8,0),colormagenta;

STICKLINE((A2 = 1),C,O,7,0),ColorFF22FF;

STICKLINE((A2 = 1),C,O,6,0),ColorFF44FF;

STICKLINE((A2 = 1),C,O,5,0),ColorFF66FF;

STICKLINE((A2 = 1),C,O,4,0),ColorFF88FF;

STICKLINE((A2 = 1),C,O,3,0),ColorFF99FF;

STICKLINE((A2 = 1),C,O,2,0),ColorFFAAFF;

STICKLINE((A2 = 1),C,O,1,0),ColorFFBBFF;