以下是通达信七彩神龙公式源码和截图
通达信七彩神龙公式源码:
DIFF:=EMA(CLOSE,68)-EMA(CLOSE,170);
DEA:=EMA(DIFF,90);
MACD:=2*(DIFF-DEA);
A:=MACD;
G:=MA(MACD,2);
J:=MA(MACD,3);
J1:=MA(MACD,5);
STICKLINE(CROSS(MA(A,1),G),0.05,0,1,0),COLORWHITE,LINETHICK2;
VAR13:=IF(YEAR =2018ANDMONTH =11ANDDAY =1,0,1);
AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
CC:=EMA(AA,2);
DD:=EMA(BB,5);
VAR14:=MAX(EMA(AA,2)-EMA(BB,5),0)*1.2;
VAR15:=EMA(VAR14,5);
SS:=EMA(VAR15,2);
风险系数:=(VAR15-SS)/10*VAR13;
系数:VAR15*VAR13,STICK,COLORFF00FF;
A10:=波浪系数,LINETHICK1;
B:MA(A10,3),COLORYELLOW,LINETHICK2;
B2:=MA(B,2)*2-B;
STICKLINE(B B2,1.5*B,B2,3,0),COLOR0000FF;
STICKLINE(B B2,1.5*B,B2,3,0),COLORBLUE;
STICKLINE(VAR15 REF(VAR15,1)ANDVAR13,VAR15,0,2,0),COLOR0099FF;
STICKLINE(VAR15 REF(VAR15,1)ANDVAR13,VAR15,SS,3.5,0),COLORYELLOW;
STICKLINE(VAR15 REF(VAR15,1)ANDVAR13,0,VAR15,2,0),COLORGREEN;
STICKLINE(VAR15 REF(VAR15,1)ANDVAR13,VAR15,SS,3.5,0),COLORFFCC33;
升跌:=EMA((C/MA((2*C+H+L)/4,8)-1)*100,3);0;
VAR32:=(3*CLOSE+LOW+OPEN+HIGH)/6;
多头线:(20*VAR32+19*REF(VAR32,1)+18*REF(VAR32,2)+17*REF(VAR32,3)+16*REF(VAR32,4)+15*REF(VAR32,5)+14*REF(VAR32,6)+13*REF(VAR32,7)+12*REF(VAR32,8)+11*REF(VAR32,9)+10*REF(VAR32,10)+9*REF(VAR32,11)+8*REF(VAR32,12)+7*REF(VAR32,13)+6*REF(VAR32,14)+5*REF(VAR32,15)+4*REF(VAR32,16)+3*REF(VAR32,17)+2*REF(VAR32,18)+REF(VAR32,20))/210;
空头线:ma(多头线,10);
stICKLINE(多头线 空头线,多头线,空头线,10,10),COLORAA00AA;
STICKLINE(多头线 空头线,多头线,空头线,10,10),,COLOR11AA11;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA(C,60),COLOR1111FF;IF(MA(C,60) REF(MA(C,60),3),MA(C,60),DRAWNULL),COLORFFFF11;
M:=13;N:=30;
A01:=(C+O+L+H)/4;
A02:=(WINNER((A01*1.04))*100.000);
A03:=(WINNER((A01*0.96))*100.000);
A04:A03,NODRAW;
A08:A02-A03,NODRAW;
A06:(100.000-A02),NODRAW;
STICKLINE(1.000,0,A04,2,0),COLORRED;
STICKLINE(1.000,100.000,A02,2,0),COLORGREEN;
STICKLINE(1.000,A04,(100-A06),2,0),COLORYELLOW;
A0A:=(((((HHV(A04,15.000)-A03)/A03)*100.000) N)AND(HHV(A04,15.000) 50.000));
STICKLINE(A0A,(0-2.000),2.000,4,0),COLORYELLOW;
STICKLINE(NOT(A0A),(0-2.000),2.000,4,0),COLORMAGENTA;
获利:MA(A03,M),COLORRED,LINETHICK3;
浮动:(MA(A02,M)-MA(A03,M)),COLORYELLOW,LINETHICK3;
套牢:(100.000-MA(A02,M)),COLORGREEN,LINETHICK3;
通达信七彩神龙公式截图