以下是通达信最准的主图指标源码和截图
通达信最准的趋势主图指标源码:
GGSS1:=MA(CLOSE,1);
GGSS12:=MA(CLOSE,3);
GGSS13:MA(GGSS12,1);
GGSS4:MA(GGSS12,3);
STICKLINE(GGSS13 GGSS4,GGSS13,GGSS4,2,0),LINETHICK1,COLORFF00FF;
STICKLINE(GGSS13 GGSS4,GGSS13,GGSS4,2,0),LINETHICK1,COLOR00FF00;
Q:=IF(CLOSE =OPEN,(CLOSE-OPEN)/4,0);
最准的趋势:=EMA(C,2);
指标公式:=EMA(SLOPE(C,8)*1+C,8);
BUY1:=CROSS(最准的趋势,指标公式);
SEL:=CROSS(指标公式,最准的趋势);DRAWTEXT(BUY1,LOW*(0.97),'★财'),COLORYELLOW,LINETHICK5;
DRAWTEXT(SEL,HIGH*1.04,'★抛'),COLORBLUE;
STICKLINE(最准的趋势 =指标公式,LOW,HIGH,0.1,0),COLORRED;
STICKLINE(最准的趋势 =指标公式,CLOSE,OPEN,3,3),COLORRED;
STICKLINE(最准的趋势 指标公式,CLOSE,OPEN,3,3),COLORCYAN;
STICKLINE(最准的趋势 指标公式,LOW,HIGH,0.1,0),COLORCYAN;
STICKLINE(CROSS(最准的趋势,指标公式)ORCROSS(指标公式,最准的趋势),OPEN,CLOSE,2.5,0),COLORWHITE;
GGSS11:(1-9/100)*MA(C,10),COLORYELLOW,LINETHICK2;
AAA:=(3*C+H+L+O)/6;
GGSS3:(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36,LINETHICK2,COLORRED;
IF((GGSS3 =REF(GGSS3,1)),GGSS3,DRAWNULL),COLORGREEN,LINETHICK3;
IF((GGSS3 =REF(GGSS3,1)),GGSS3,DRAWNULL),COLORRED,LINETHICK3;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,2,1);
D:=SMA(K,2,1);
J:=3*K-2*D;
GGSS2:=CROSS(J,0)AND(H =GGSS1);
DRAWICON(GGSS2,LOW*0.95,25);
{N=3M=30}
A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水岭:=IF(MA(CLOSE,17) B,B,MA(CLOSE,17)),COLORFF00FF,LINETHICK2;
操作线:=分水岭-(EMA(C,3)-分水岭),COLOR00FFFF,LINETHICK2;
PM:MA(C,3),COLORWHITE,LINETHICK3;
IF(PM REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM REF(PM,1),PM,DRAWNULL),COLORFF9900,LINETHICK2;
MA3:MA(C,3),LINETHICK;
MA30:MA(C,30),LINETHICK4,COLORYELLOW;
{MA20:MA(C,20),LINETHICK1.5;}
MA60:MA(C,60),LINETHICK5;
{MA250:MA(C,250),LINETHICK1.5;}
{M1:EMA(C,5),COLORRED,LINETHICK2;
M2:=EMA(M1,5),COLORGREEN;
M3:=EMA(M2,5),COLORGREEN;
M4:=EMA(M3,5),COLORGREEN;
M5:=EMA(M4,5),COLORGREEN;
M1S:IF(M1 REF(M1,1),M1,DRAWNULL),COLORYELLOW;
M2S:=IF(M2 REF(M2,1),M2,DRAWNULL),,COLORYELLOW;
M3S:=IF(M3 REF(M3,1),M3,DRAWNULL),,COLORYELLOW;
M4S:=IF(M4 REF(M4,1),M4,DRAWNULL),,COLORYELLOW;
M5S:=IF(M5 REF(M5,1),M5,DRAWNULL),,COLORYELLOW;};
CCC:=IF(CAPITAL 0,AMOUNT/VOL/100,C);
底线:10*(HHV(HIGH,13)-LLV(LOW,13))/100+LLV(LOW,13),COLORffabcd,LINETHICK0;
m55:MA(CLOSE,55),colorFF0080,LINETHICK0;
m34:MA(CLOSE,34),color0000ff,LINETHICK0;
m21:MA(CLOSE,21),color00FFff,LINETHICK0;
m13:MA(CLOSE,13),colorffFFFF,LINETHICK0;
m5:ma(c,5),colorff00ff,LINETHICK0;
FILLRGN(c,底线,llv(l,13)),color004000;
tjaa:=BARSLAST(ref(cross("RSI.RSI1",22) and c o,1));
R准备:=l ref(o,tjaa+1) and "RSI.RSI1" 22 and "RSI.RSI1" ref("RSI.RSI1",1) and BARSLAST(cross("RSI.RSI1",22)and c o)+1 5 and BARSLAST(cross("RSI.RSI1",22)and c o)+1
tja1:=BARSLAST(ref(cross("KDJ.J",0),1));
J准备:=l ref(o,tja1+1) and "KDJ.J" 0 and "KDJ.J" ref("KDJ.J",1) and BARSLAST(cross("KDJ.J",0))+1 5 and BARSLAST(cross("KDJ.J",0))+1
STICKLINE(R准备 AND J准备,(0.93*SYSPARAM(5)),(0.93*SYSPARAM(5))*1.03,30,0),colorFF0080;
R卖1:="RSI.RSI1" 80 and "RSI.RSI2"
R卖2:="RSI.RSI1" 85 and "RSI.RSI2"
STICKLINE("RSI.RSI1" 80,h*1.01,l*0.99,10,0),color555555;
STICKLINE(R卖1,h*1.01,l*0.99,10,0),color00ff00;
STICKLINE(R卖2,h*1.01,l*0.99,10,0),colorff0000;
PARTLINE(c,m34),Colorred,LINETHICK2,PRECISION2;
PARTLINE(m34 ref(m34,1),m34),Colorfff333,LINETHICK2,PRECISION2;
底线,COLORffabcd,LINETHICK1;
{空心红}
STICKLINE(C,H,L,1,0),COLORff0000;
STICKLINE(C,C,O,8,0),COLORff0000;
STICKLINE(C o,C,O,8,1),COLORff0000;
STICKLINE(C O and (m34 =ref(m34,1) or ccc m34),H,L,1,0),COLORRED;
STICKLINE(C O and (m34 =ref(m34,1) or ccc m34),C,O,8,1),COLORRED;
STICKLINE(C =O and (m34 =ref(m34,1) or ccc m34),H,L,1,0),COLORCYAN;
STICKLINE(C =O and (m34 =ref(m34,1) or ccc m34),C,O,8,1),COLORCYAN;
STICKLINE(C O and (m34 =ref(m34,1) or ccc m34) AND C =M13,H,L,1,0),COLORFFC0DD;
STICKLINE(C O and (m34 =ref(m34,1) or ccc m34) AND C =M13,C,O,8,0),COLORFFC0DD;
STICKLINE(C =O and (m34 =ref(m34,1) or ccc m34) AND C =M13,H,L,1,0),COLORDDDDDD;
STICKLINE(C =O and (m34 =ref(m34,1) or ccc m34) AND C =M13,C,O,8,1),COLORDDDDDD;
STICKLINE(L ma(c,34) and (m34 =ref(m34,1) or ccc m34) AND ma(c,21) ref(ma(c,21),1) and ma(c,21) ma(c,34),C,O,8,0),COLOR00FFFF;
STICKLINE(L ma(c,34) and (m34 =ref(m34,1) or ccc m34) AND ma(c,21) ref(ma(c,21),1) and ma(c,21) ma(c,34) AND C O,C,O,8,1),COLOR00FFFF;
PARTLINE(m34 m55,m55),colorff0080;
PARTLINE(m21 =m34 and m21 REF(m21,1) ,m21),COLOR33FF33,LINETHICK1,PRECISION2;
PARTLINE(m21 =m34 and m21 =REF(m21,1),m21),COLOR00ffff,LINETHICK1,PRECISION2;
PARTLINE(m21 m34 and m21 REF(m21,1),m21),COLOR33FF33,LINETHICK1,LINEDOT;
PARTLINE(m21 m34 and m21 =REF(m21,1),m21),COLOR00ffff,LINETHICK1,LINEDOT;
PARTLINE(m13 =m34 and m13 =ref(m13,1),m13),Colorffffff,LINETHICK1,PRECISION2;
PARTLINE(m13 =m34 and m13 ref(m13,1),m13),COLORff5959,LINETHICK1;
PARTLINE(m13 m34 and m13 =ref(m13,1),m13),Colorffffff,LINETHICK1,LINEDOT;
PARTLINE(m13 m34 and m13 ref(m13,1),m13),COLORff5959,LINETHICK1,LINEDOT;
PARTLINE(m5 =m34 and m5 =ref(m5,1),m5),COLORff00ff,PRECISION2,LINETHICK1;
PARTLINE(m5 =m34 and m5 ref(m5,1),m5),COLORCYAN,LINETHICK1;
PARTLINE(m5 m34 and m5 =ref(m5,1),m5),COLORff00ff,LINEDOT,LINETHICK1;
PARTLINE(m5 m34 and m5 ref(m5,1),m5),COLORCYAN,LINETHICK1,LINEDOT;
:=REF(COUNT("KDJ.K" ref("KDJ.K",1),5) =5,1) AND COUNT("KDJ.K" 30,5) =2 AND COUNT("KDJ.J" 0,3) 0 AND CROSS("KDJ.J",0);
DRAWTEXT(抄底 and not((ccc m34 or m34 ref(m34,1))),l*0.98,'抄n底'),COLOR00ffff,ALIGN;
DRAWTEXT(抄底 and (ccc m34 or m34 ref(m34,1)),l*0.98,'确n认'),COLORred,ALIGN;
tj00:=BARSLAST(ref(cross("KDJ.K","KDJ.D") and ref("KDJ.K",1) 35,1));
加仓:=c ref(c,tj00+1)*1.1 and ref("KDJ.K",1) 60 and (tj00+1) 25 and (tj00+1) 5 and "KDJ.K" ref("KDJ.K",tj00+1) and cross("KDJ.K","KDJ.D");
DRAWTEXT(加仓 and not((ccc m34 or m34 ref(m34,1))),l*0.98,'回n抽'),COLOR5599ff,ALIGN;
DRAWTEXT(加仓 and (ccc m34 or m34 ref(m34,1)),l*0.98,'加n仓'),COLORff00ff,ALIGN;
DRAWICON(CROSS("KDJ.J",0) and (ccc m34 or m34 ref(m34,1)),l*0.97,8),ALIGN;
{主图MACD}
DIFFZ:=EMA((EMA(CLOSE,12)-EMA(CLOSE,26)),1);
DEAZ:=EMA(DIFFZ,9),COLOR00AA88;
MACDZ:=3*(DIFFZ-DEAZ);
STICKLINE(MACDZ 0 AND MACDZ REF(MACDZ,1),(0.93*SYSPARAM(5)),MACDZ+(0.93*SYSPARAM(5)),8,0),COLORFF00FF;
STICKLINE(MACDZ 0 AND MACDZ =REF(MACDZ,1),(0.93*SYSPARAM(5)),MACDZ+(0.93*SYSPARAM(5)),8,1),COLORFF00FF;
STICKLINE(MACDZ 0 AND MACDZ REF(MACDZ,1),(0.93*SYSPARAM(5)),MACDZ+(0.93*SYSPARAM(5)),8,1),COLORDDDDDD;
STICKLINE(MACDZ 0 AND MACDZ =REF(MACDZ,1),(0.93*SYSPARAM(5)),MACDZ+(0.93*SYSPARAM(5)),8,0),COLORDDDDDD;
PARTLINE(MACDZ 0 AND DIFFZ 0,(0.9*SYSPARAM(5))),CROSSDOT,COLOR0000FF,LINETHICK1;
PARTLINE(MACDZ =0 AND DIFFZ 0,(0.9*SYSPARAM(5))),CROSSDOT,COLOR00FFFF,LINETHICK1;
PARTLINE(MACDZ 0 AND DIFFZ =0,(0.9*SYSPARAM(5))),CROSSDOT,COLORFF55DD,LINETHICK1;
PARTLINE(MACDZ =0 AND DIFFZ =0,(0.9*SYSPARAM(5))),CROSSDOT,COLOR66DD66,LINETHICK1;
通达信最准的趋势主图指标截图