以下是通达信凯恩斯黄金线理念指标公式源码和使用说明

通达信凯恩斯黄金线理念指标公式源码:

   DIFF:(10000*(EMA(CLOSE,12)-EMA(CLOSE,26))),COLORRED;

   逃命:H/1.11,COLORFFFFFF;

   E40:=EMA(C,40);

   E40GL:=(C-E40)/E40*100;

   DEA:EMA(DIFF,9),COLORYELLOW;

   MACD:2*(DIFF-DEA),COLORSTICK;

   STICKLINE(MACD<REF(MACD,1)ANDMACD>0,0,MACD,0,0),COLORYELLOW;

   STICKLINE(MACD>REF(MACD,1)ANDMACD<0,0,MACD,0,0),COLORWHITE;

   {PARTLINE(DIFF,DIFF>REF(DIFF,1),RGB(255,0,0),DIFF<REF(DIFF,1),RGB(0,255,0));}

   {IF(DIFF>REF(DIFF,1),DIFF,DRAWNULL),COLORRED;}

   IF(DIFF<REF(DIFF,1),DIFF,DRAWNULL),COLORGREEN;

   乖底天数:=BARSLAST(E40GL<=LLV(E40GL,20));

   RSVK:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

   KK:=SMA(RSVK,3,1);

   DK:=SMA(KK,3,1);

   JK:=3*KK-2*DK;

   顶:IF(JK<120ANDJK>98ANDJK>REF(JK,1),5000,0),COLORYELLOW;

   A1:=(C/MA(C,3)>=(1+0.07)ANDC=HHV(C,3)ANDMA(V,2)/MA(V,40)>=3AND

   MA(V,2)=HHV(MA(V,2),3)ANDV>REF(V,1)ANDC>REF(C,1));

   A9:=MA(C,30);

   A10:=(C-A9)/A9*100;

   A11:=MA(A10,3);

   A15:=BARSLAST(CROSS(-10,A11)=1);

   DRAWTEXT(FILTER(顶,10),顶*1.02,’顶’),COLORRED;

   RR8:=MA(CLOSE,27);

   RR9:=(CLOSE-RR8)/RR8*100;

   RRA:=MA(RR9,2);

   RRB:=BARSLAST(CROSS(-10,RRA)=1);

   RRD:=RRA<-10ANDRRB>3;

   黄金坑:(IF(RRD,-2000,DRAWNULL)),COLORYELLOW,STICK,LINETHICK4;

   A1:=DATE<=13181231;

   七天线: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;

   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,’◇’),linethick4,ALIGN1,colorYellow;

   DRAWTEXT((A20=1),L,’◇’),linethick4,ALIGN1,colorWhite;

   A23:=((C+L)+H)/3;

   A24:=EMA(A23,6);

   A25:=EMA(A24,5);

   A26:=CROSS(A24,A25);

   DRAWicon(A26,(LOW/1.005),3),linethick2,ALIGN1,colorMagenta;

   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;

通达信凯恩斯黄金线理念指标公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。