以下是凯恩斯黄金线主图(通达信)源码
凯恩斯黄金线主图(通达信)源码:
七天线:EMA(C,7),COLORWHITE;
黄金线:(EMA(C,18)),POINTDOT,LINETHICK4,COLORYELLOW;
生命线:(MA(C,28)),COLORMAGENTA;
姊妹线:(EMA(C,56)),COLORCYAN;
多空线:(MA(C,120)),COLOR0099FF;
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);
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
A22:=A21*0.6;
A23:=((C+L)+H)/3;
A24:=EMA(A23,6);
A25:=EMA(A24,5);
A26:=CROSS(A24,A25);
DRAWICON(A26,(LOW/1.030),1),LINETHICK2,COLORMAGENTA;
DRAWTEXT(CROSS(A4,A3),L*0.88,'买!'),LINETHICK4,COLORYELLOW;
STICKLINE(((C =黄金线)AND(C =O)),H,L,0,1),COLORRED;
STICKLINE(((C =黄金线)AND(C =O)),O,C,2,1),COLORRED;
STICKLINE(((C =黄金线)AND(C =O)),H,L,0,0),COLORRED;
STICKLINE(((C =黄金线)AND(C =O)),O,C,2,0),COLORRED;
STICKLINE(((C 黄金线)AND(C =O)),H,L,0,1),COLORGREEN;
STICKLINE(((C 黄金线)AND(C =O)),O,C,2,1),COLORGREEN;
STICKLINE(((C 黄金线)AND(C =O)),H,L,0,0),COLORGREEN;
STICKLINE(((C 黄金线)AND(C =O)),O,C,2,0),COLORGREEN;
【操盘附图】
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:3*K-2*D;
A:=REF(J+0.01,1);
STICKLINE(CROSS(90,J),100,110,5,0),COLORRED;
STICKLINE(CROSS(J,0),0,-10,10,0),COLORGREEN;
个股趋势线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORMAGENTA,LINETHICK2;
趋势线:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORGREEN,LINETHICK2;
X:=5;
Var1:=X;
N:1*Var1;
0.927*Var1,POINTDOT;
0.882*Var1,POINTDOT;
X1:0.809*Var1;
0.736*Var1,POINTDOT;
0.691*Var1,POINTDOT;
X2:0.618*Var1;
0.528*Var1,POINTDOT;
0.472*Var1,POINTDOT;
呆熊:0.382*Var1;
M1:MA(C,5);
M2:MA(C,21);
M3:MA(C,34);
XG:=CROSS(C,M1)ANDREF(EXIST(M1 REF(M1,5),1),1)ANDCOUNT(M2 M3,10) =10ANDM2
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
RSI:=CROSS(RSI1,RSI2);
{SWL:=(EXPMA(CLOSE,5)*7+EXPMA(CLOSE,10)*3)/10;
SWS:=DMA(EMA(CLOSE,12),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL))));}
XGG:={CROSS(SWL,SWS)AND}RSI金叉ANDXG;
DRAWICON(XGG,L-0.25,1);
STICKLINE(XGG,C,O,3,0)COLORYELLOW;
STICKLINE(XGG,L,H,0,0)COLORYELLOW;
凯恩斯黄金线主图(通达信)截图