以下是通达信简单实用的主图指标公式源码和截图
A1:=DATE =1060615;
A2:=(100*(CLOSE-(ma(CLOSE,30))))/(MA(CLOSE,30));
A3:=100-((90*((HHV(HIGH,20))-CLOSE))/((HHV(HIGH,20))-(LLV(LOW,20))));
A4:=100-(MA(((100*((HHV(HIGH,6))-CLOSE))/((HHV(HIGH,6))-(LLV(LOW,6)))),28));
A5:=MA(A4,6);
红持股:IF((A3A5),A5,A3),COLORGREEN;
强弱:(A5),LINETHICK1,COLORYELLOW;
A6:=(3*(SMA((((CLOSE-(LLV(LOW,27)))/((HHV(HIGH,27))-(LLV(LOW,27))))*100),5,1)))-(2*(SMA((SMA((((CLOSE-(LLV(LOW,27)))/((HHV(HIGH,27))-(LLV(LOW,27))))*100),5,1)),3,1)));
A7:=(10);
百万测底:(crOSS(A6,A7)*75)*A1,LINETHICK2,COLORCYAN;
A8:=(REF(CLOSE,1))/CLOSE;
A9:=MIN((MA(((AMOUNT/)/100),15)),(EMA(((AMOUNT/VOL)/100),15)));
A10:=((1-((SMA(((LOW*A8)-(A8/10)),6,1))/(EMA(((AMOUNT/VOL)/100),15))))*100)-(100/10);
A11:=((((1-((MA((LOW-(A8/10)),6))/A9))*(DMA(CLOSE,(VOL/CAPITAL))))/(MA(LOW,6)))*100)-(100/10);
A12:=((((A10+(A11/10)) 0)AND(DATE 1000101))AND(DATE 1991231))AND((COUNT((((1-(CLOSE/(REF(CLOSE,1)))) 0.099)AND((1-((REF(CLOSE,1))/(REF(CLOSE,2)))) 0.099)),20))
A13:=(((((((A10+(A11/10)) -3.688)AND(DATE 1000101))AND(DATE 1991231))AND((CLOSE/(REF(CLOSE,1))) 1.02))AND((COUNT((((1-(CLOSE/(REF(CLOSE,1)))) 0.099)AND((1-((REF(CLOSE,1))/(REF(CLOSE,2)))) 0.099)),20)) 3))AND(((REF(CLOSE,1))/(REF(CLOSE,2))) 0.95))AND((CLOSE/(HHV(HIGH,20))) 0.855);
灵桥:(IF(((((100 100)AND((A10+(A11/10)) 0))AND(DATE 1000101))AND(DATE 1991231)),(A12=1),(A13=1)))*100*A1,LINETHICK2,COLORRED;
A14:=EMA(CLOSE,8);
A15:=EMA(A14,20);
A16:=CROSS(A14,A15);
A17:=A14 (EMA(CLOSE,120));
大波黑马起步:(A16ANDA17)*75*A1,LINETHICK2,COLORMAGENTA;
A18:=SUM((IF((CLOSE (REF(CLOSE,1))),VOL,(IF((CLOSE (REF(CLOSE,1))),(0-VOL),0)))),0);
A19:=SUMBARS(VOL,CAPITAL);
A20:=(IF((CLOSE (LLV(CLOSE,A19))),1,-1))*(IF((A18 (LLV(A18,A19))),1,-1));
A21:=IF((A20=-1),1,0);
A22:=(COUNT((A21=1),8))
A23:=((SUM(AMOUNT,13))/((AMOUNT/VOL)/100))/100;
A24:=DMA((((((3*HIGH)+LOW)+OPEN)+(2*CLOSE))/7),(VOL/A23));
A25:=(((CLOSE-A24)/A24)*100)
A26:=((CLOSE-(MIN(((REF(CLOSE,5))*0.865),((REF(CLOSE,21))*0.772))))/CLOSE) 0.05;
A27:=REF(LOW,1);
A28:=((SMA(Abs((LOW-A27)),3,1))/(SMA((MAX((LOW-A27),0)),3,1)))*100;
A29:=EMA((IF((CLOSE*1.2),(A28*10),(A28/10))),3);
A30:=LLV(LOW,38);
A31:=HHV(A29,38);
A32:=IF((LLV(LOW,90)),1,0);
A33:=((EMA((IF((LOW =A30),((A29+(A31*2))/2),0)),3))/618)*A32;
吸筹留踪影:(stICKLINE(A33,0,A33,6,1))*A1,COLORWHITE;
底部不买你后悔:(IF(((A25ANDA26)ANDA22),60,0))*A1;
风险提示线:95,LINETHICK1,COLOR0000AA;
强弱分界线:50,LINETHICK1,COLOR858585;
安全提示线:20,LINETHICK1,COLOR00AA55;
VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD:=LLV(LOW,30);
VARE:=HHV(VARC,30);
VARF:=IF(MA(CLOSE,58),1,0);
VARG:=EMA(IF(LOW =VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
VARH:=IF(VARG 28,28,VARG);
吸货:IF(VARH -120,0,VARH),COLORYELLOW;
STICKLINE(VARH -120,0,VARH,2.8,-1),COLORYELLOW;
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;
X:=LLV(J,2)=LLV(J,8);
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
XX:=EMA((VA-VB)/(VC-VB),5);
YY:=EMA(XX,3);
:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORGRAY,DOTLINE;
红穿绿买:EMA((VA-VB)/(VC-VB)*100,5),COLORRED;
绿穿红卖:EMA(红穿绿买,3),COLORLIGREEN;
潜伏等待:IF(趋势 =3,33,0),COLORWHITE,DOTLINE;
建仓区间:IF(趋势 5,55,0),COLORLIBLUE,DOTLINE;
DRAWICON(CROSS(红穿绿买,绿穿红卖)AND绿穿红卖 50,-2,1);
准备发射:IF(CROSS(J,3)AND(CROSS(红穿绿买,绿穿红卖)AND绿穿红卖 50),77,0),COLORMAGENTA,LINETHICK1;
VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VARR3:=(2*CLOSE+HIGH+LOW)/4;
VARR4:=LLV(LOW,26);
VARR5:=HHV(HIGH,34);
VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);
VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;
VARR8:=EMA(VARR6,7);
VARR9:=SMA(VARR1,3,1);
VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VARR13:=(VARR10+VARR11+VARR12)/3;
VARR14:=IF(VARR13 =-20,10,0);
VARR15:=HHV(VARR14,10);
VARR24:=LLV(LOW,36);
VARR25:=HHV(HIGH,30);
VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;
VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1;
VARB28:=(((CLOSE-(((EMA(AMOUNT,13)/EMA(VOL,13))/100)))/(((EMA(AMOUNT,13)/EMA(VOL,13))/100)))*100);
大浪淘沙:(((VARB28 (0))ANDZXNH)AND((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100) VARB27-2ANDVARR26 10)*95,COLORCYAN,LINETHICK2,STICK;
NOTEXTDDD:0,COLORGRAY,LINETHICK1;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
回调认同:EMA(X,13),COLORGREEN;
周MACD:="MACD.MACD#WEEK"(12,26,9);
MACD:="MACD.MACD#DAY"(12,26,9);
斜率:=(EMA(回调认同,2)-REF(EMA(回调认同,2),2))/REF(EMA(回调认同,2),2)*100,NODRAW;
DRAWTEXT(CROSS(斜率,0),回调认同*0.97,'●')COLORRED;
DRAWTEXT(CROSS(0,MACD)ANDCROSS(0,周MACD),回调认同*1.03,'●')COLORGREEN;
IF(斜率 =0,回调认同,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(MACD =0AND周MACD =0,回调认同,DRAWNULL),COLORRED,LINETHICK3;
BIAS2:(C-MA(C,13))/MA(C,13)*100,NODRAW;
Q1:=CROSS(BIAS2,-30);
Q2:=CROSS(BIAS2,-25);
Q3:=CROSS(BIAS2,-20);
Q4:=CROSS(BIAS2,-15);
Q5:=CROSS(BIAS2,-10);
DRAWTEXT(Q2ANDEXIST(Q1,5),L*0.91,'J1');
DRAWTEXT(Q3ANDEXIST(Q2ORQ1,5),L*0.92,'J2');
DRAWTEXT(Q4ANDEXIST(Q1ORQ2ORQ3,5),L*0.93,'J3');
DRAWTEXT(Q5ANDEXIST(Q1ORQ2ORQ3ORQ4,5),L*0.95,'J4');
G1:=FILTER(CROSS(斜率,0),20);
G2:=BARSLAST(G1
G3:=IFF(G2 0ANDG2 =20,1,0)=1AND((C-REF(C,G2))/REF(C,G2))*100
概1号:(SUM(FILTER(G3,20),0)/SUM(G1 0,0))*100,NODRAW;
STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR000055;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000077;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR000099;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF;
STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHITE;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF;
STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR990000;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORCC0000;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF4400;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF8800;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFCC00;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCYAN;
通达信简单实用的主图指标公式截图