通达信指标公式大全.doc

上传人:99****p 文档编号:1622368 上传时间:2019-03-09 格式:DOC 页数:22 大小:107.50KB
下载 相关 举报
通达信指标公式大全.doc_第1页
第1页 / 共22页
通达信指标公式大全.doc_第2页
第2页 / 共22页
通达信指标公式大全.doc_第3页
第3页 / 共22页
通达信指标公式大全.doc_第4页
第4页 / 共22页
通达信指标公式大全.doc_第5页
第5页 / 共22页
点击查看更多>>
资源描述

1、SZ3 天地人天: IF(HHVBARS(V ,60) ,REF(C ,HHVBARS(V ,60) ) ,C ),COLORLIBLUE,POINTDOT;地: IF(LLVBARS(V,5), REF (C,LLVBARS(V,5),C),COLORYELLOW,POINTDOT;人: IF(LLVBARS(V,13), REF (C,LLVBARS(V,13),C),COLORMAGENTA,POINTDOT;MA3:MA(C,3);MA13:MA(C,13);主力成本:COST(5),POINTDOT;获利了结: COST(98),POINTDOT;ZLX:STICKLINE(CREF

2、(O,1),REF(C,1),REF(C,1)*0.995,4,0),COLOR00FF00;SZ1 交易量WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORBLUE;VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V20:MA(VOLUME,20);V60:MA(VOLUME,60);VAR1:=VOL/(HIGH-LOW)*2-AB

3、S(CLOSE-OPEN);主买:IF(CLOSEOPEN,VAR1*(HIGH-LOW),IF(CLOSEOPEN,VAR1*(HIGH-CLOSE)+(OPEN-LOW),IF(CLOSE1.03;B:=V/REF(V,1)=0.8;D:=H=HHV(H,3); A AND B AND D;SZ 仙人LC:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4)/2.382,COLORWHITE,LINETHICK1;GAO:=HHV(C,60)-LLV(C,60);RSI:=SMA(MAX(LC-REF(LC,1),0

4、),5,1)/SMA(ABS(LC-REF(LC,1),5,1);仙人:LC+GAO*(RSI-0.5),COLORFF3399,LINETHICK1;STICKLINE(CROSS(RSI,0.1),仙人,REF(仙人,1),1,0),COLORYELLOW;STICKLINE(CROSS(0.9,RSI),仙人,REF( 仙人,1),1,0),COLORCYAN;攻防价位:(REF(H-L)*0.618+L,1),NODRAW,COLORYELLOW;STICKLINE(ISLASTBAR,攻防价位-0.01,攻防价位,6,0),COLORYELLOW;MID:=(3*CLOSE+LOW+

5、OPEN+HIGH)/6;多:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20)/210,COLORRED

6、;空:MA(多,6),COLORGREEN;水平面:MA(CLOSE,60),COLORYELLOW,POINTDOT;MS:IF(多 =REF(多,1), 多,DRAWNULL),COLORRED,LINETHICK2;MM:IF(空=REF(空,1),空,DRAWNULL),COLORYELLOW,LINETHICK2;买:=CROSS(多 ,空);卖:=CROSS(空 ,多);DRAWICON(买,L*0.97,1);DRAWICON(卖,H*1.03,2);SZ7 短线MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE(MA30强弱),MA3

7、0, 强弱,1,0),COLOR0000FF;STICKLINE(MA30P,1,0);STICKLINE(D2=0,OPEN,CLOSE,0.8,0),COLORBLUE;STICKLINE(D2=1,OPEN,CLOSE,0.8,0),COLORWHITE;A:=C-MA6;A1:=CROSS(A,0);A2:=CROSS(0,A);A3:=0.68*MA(FORCAST(CLOSE,2),40);A4:=IF(COPEN,A5,A6);A8:=IF(OPEN=REF(EE,1) OR (REF(CROSS(-30,EE),1) AND CROSS(EE,-30) OR EE=-30;MJ

8、0:=IF(AA AND LECLOSE OR OPEN-0;DRAWTEXT(MJ0=1 AND MACDREF(MACD,1),L*0.95,极品底),COLORMAGENTA;DRAWTEXT(AREF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;阻力位:IF(NH 强,(强-CDP)*0.618+CDP,NH)NODRAW,COLORCYAN;M:=IF(ALREF(OPEN,2) AND REF(CLOSE,1)OPEN;三日均线描述A2:=REF(C,2)/REF(O,2)1.03;前天的涨幅大于 3%A3:=REF(H,1)/REF(L,1)1.03;昨振幅大

9、于 3%A4:=C/REF(C,1)1.03;今天涨幅大于 3%A5:=REF(C,1)/REF(C,2)REF(O,2);昨天阴线收盘要大于前日开盘价A7:=CREF(O,1);今日收盘价大于昨日的开盘价A8:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;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;多方炮:A8 AND J MM),SSL,SA),LINETHICK1,COLORGREEN;熊掌:IF(SSL

10、 MM) ),MM,SA),LINETHICK1,COLORGREEN;猎刀:IF(SSL MM),MM,SA),LINETHICK2,COLORWHITE;VAR2Y:=(CLOSE - REF(CLOSE,1) / REF(CLOSE,1) * 100);VAR3Y:=(CLOSE - REF(OPEN,29) / REF(OPEN,29) * 100);VAR4Y:=REF(CLOSE,1);VAR5Y:=(SMA(MAX(CLOSE - VAR4Y),0),6,1) / SMA(ABS(CLOSE - VAR4Y),6,1) * 100);VAR6Y:=(SMA(MAX(CLOSE -

11、 VAR4Y),0),12,1) / SMA(ABS(CLOSE - VAR4Y),12,1) * 100);VAR7Y:=(SMA(MAX(CLOSE - VAR4Y),0),24,1) / SMA(ABS(CLOSE - VAR4Y),24,1) * 100);VAR8Y:=(CLOSE - LLV(LOW,45) / (HHV(HIGH,45) - LLV(LOW,45) * 100);VAR9Y:=SMA(VAR8Y,3,1);VARAY:=SMA(VAR9Y,3,1);VARBY:=(3 * VAR9Y) - (2 * VARAY);VARCY:=(CROSS(VAR5Y,10) A

12、ND (VAR3Y (5 * 20);DRAWICON(CROSS(76,VAR5Y) AND (VAR3Y 5) ),(HIGH * 1.0099),6),COLORFFFFFF;VAREY:=(CROSS(VAR9Y,VARAY) AND (VARAY 3) * 30);VARFY:= - (VARAY 79),MD,0);DRAWICON(CROSS(Y,X),(LOW * 0.985),1),LINETHICK3,COLORRED;DRAWICON(CROSS(X,Y),(HIGH * 1.02),2),LINETHICK2,COLOR00FF00;DRAWTEXT(DB,(HIGH

13、* 1.02),抛),LINETHICK2,COLOR00FF00;VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK:=EMA(CLOSE - VAR1) / (VAR2 - VAR1) * 50),13);AK1:=EMA(CLOSE - VAR1) / (VAR2 - VAR1) * 100),5);VAR3:=LLV(LOW,55);VAR4:=HHV(HIGH,34);VAR5:=EMA(CLOSE - VAR3) / (VAR4 - VAR3) * 100),3);VAR6:=(AK + VAR5) / 2);VAR8:=EMA(VAR6,5);BB:=

14、EMA(0.667 * REF(VAR8,1) + (0.333 * VAR8),2);AB:=CROSS(AK1,AK);BB1:=(CROSS(AK1,BB) AND (BB 回归斜率线 A AND MAHL10,EMA(C,3),LLV(EMA(H+L)/2,5),30);AMAHL3:=IF(EMA(C,2)回归斜率线 A AND MAHL10,LLV(EMA(H+L)/2,5),30),EMA(C,5);A回归斜率带:DRAWBAND(回归斜率线 A,RGB(235,0,230),REF(回归斜率线 A,2),RGB(0,104,154);上线:=SMA(C,6.5,1);一号支撑线

15、:SMA(C,14.5,1);上线 1:=SMA(C,3,1);一号支撑线 1:=SMA(C,8,1);上线 2:=SMA(C,3.5,1);DRAWTEXT(CROSS(一号支撑线 1,上线 1),H*1.08,洗盘),COLOR00FF00;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25)/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,55),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOS

16、E-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) AND CLOSE操作,LOW *0.92,买进 ),COLORYELLOW;VAR1:LLV(A7,21);VAR2:HHV(A7,30);DRAWTEXT( CROSS(上线 1,操作) AND 上线 1VAR1,LOW *0.98,见底 ),COLORYELLOW;YCX:=操作=REF( 操作,1);H1:=MAX(MAX(上线,一号支撑线 1),一号支撑线);L1:=MIN(MIN(上线,一号支撑线 1),一号支撑线);DRAWTEXT(CROSS(上线 1

17、,一号支撑线 1) AND 上线 1操作 ,LOW *0.98,全仓 ),COLORYELLOW;SK:=EMA(A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);M1:=1000*操作/一号支撑线=975;M2:=1000*一号支撑线 1/一号支撑线 =980;M3:=1000*上线/一号支撑线=985;DRAWTEXT(IF(COUNT(CLOSE6/10 ANDCOUNT(SKSD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE=OPEN,4) ANDREF(CLOSE

18、OPEN,3) AND REF(CLOSEOPEN,2) AND REF(OPENCLOSE,1) ANDOPENREF(CLOSE,1),1,0),LOW*0.94,买进) ,COLORYELLOW;D:=MA(CLOSE,89)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSEREF(CLOSE,1)*1.08AND CLOSE65,HIGH*1.02,15),COLORGREEN;DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW;DRAWTEXT(CLOSEOPEN AND H1VAR1

19、AND 上线 1一号支撑线 AND JOPEN AND 上线一号支撑线 1 AND 一号支撑线 1一号支撑线 AND CLOSEMA(CLOSE,一号支撑线) AND 操作=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOWVAR1 AND JOPEN AND 操作上线 AND 上线一号支撑线 1 AND 一号支撑线1一号支撑线 AND CROSS(上线 1,操作) AND LOWVAR1 AND JOPEN AND CROSS(上线,一号支撑线 ) AND LOWVAR1 AND J REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;ST

20、ICKLINE(CREF(C,1),C,O,3,0),COLORFFCC00;STICKLINE(CLOSE REF(CLOSE,1) AND CO ,OPEN,CLOSE,3,0 ),COLOR000055;红 K;STICKLINE(CLOSE REF(CLOSE,1) AND CO ,OPEN,CLOSE,2.7,0 ),COLOR000077;红 K;STICKLINE(CLOSE REF(CLOSE,1) AND CO ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),CO

21、LOR0000BB;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) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR55555

22、5;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 ),

23、COLORFFFFFF;STICKLINE(CLOSEREF(Q_B,1);买进:=(X1 AND X2 AND X3) AND X4 AND X5;TJ:=IF(Q_B=1;SZ18 背离DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;DRAWTEXT(CROSS(DIFF,DEA),DIFF,),COLORRED;DRAWICON(CROSS(DIF,DEA),DIF*1.05,1);DRAWICON(CROSS(DEA,DIF),DEA*0.90,2);月

24、DIFF:=“MACD.DIF#MONTH“COLOR0080FF;月 DEA:=“MACD.DEA#MONTH“,COLOR0080FF,LINETHICK2;周 DIFF:=“MACD.DIF#WEEK“COLORRED;周 DEA:=“MACD.DEA#WEEK“,COLORRED,LINETHICK2;日 DIFF:=“MACD.DIF“,COLORWHITE;日 DEA:=“MACD.DEA“,COLORWHITE,LINETHICK2;日金:IF(CROSS(日 DIFF,日 DEA),0.125,0),COLORYELLOW;周金:IF(CROSS(周 DIFF,周 DEA),0

25、.15,0),COLORRED;月金:IF(CROSS(月 DIFF,月 DEA),0.175,0),COLORGREEN;DRAWICON(周金 AND 日金,-0.1,7);DRAWICON(周金 AND 月金,-0.15,11);DRAWICON(日金 AND 月金,-0.1,1);日死:IF(CROSS(日 DEA,日 DIFF),-0.1,0),COLORYELLOW;周死:IF(CROSS(周 DEA,周 DIFF),-0.125,0),COLORRED;月死:IF(CROSS(月 DEA,月 DIFF),-0.15,0),COLORGREEN;DRAWICON(周死 AND 日死

26、,-0.1,8);DRAWICON(周死 AND 月死,-0.15,12);DRAWICON(日死 AND 月死,-0.15,2);低位金叉:=CROSS(DIFF,DEA) AND DIFF=0);二次金叉:=CROSS(DIFF,DEA) AND DEACLOSE AND DIFFREF(DIFF,A1+1) AND CROSS(DIFF,DEA),NODRAW;STICKLINE(底背离 ,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA, 底背离,DEA,0),COLORRED,NODRAW;DRAWTEXT(底背离,0.10, 底背离 ),CO

27、LORFF00FF;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1);顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF),NODRAW;顶背:DRAWLINE(A2=0,DEA, 顶背离,DEA,0),COLORGREEN,LINETHICK2;DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.275,三全项),COLOR0000FF,LINETHICK2;DRAWICON(CROSS(DIFF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIFF),DEA,2);WW:=DEAREF(DEA,1);

28、DD:=CROSS(DIFF,REF(DIFF,1);反身向上:IF(WW AND DD),0.25,0),COLORWHITE;DRAWTEXT(反身向上,0.17, 反身上),COLORWHITE;AD:=LOW=LLV(LOW,14) AND LOWREF(MACD,1) AND 0MACD AND 0REF(MACD,1);DRAWICON(AD,MACD,9);SZ17 火焰山VAR1:=EMA(HHV(HIGH,500),21); VAR2:=EMA(HHV(HIGH,250),21); VAR3:=EMA(HHV(HIGH,90),21); VAR4:=EMA(LLV(LOW,5

29、00),21); VAR5:=EMA(LLV(LOW,250),21); VAR6:=EMA(LLV(LOW,90),21); VAR7:=EMA(VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21); VAR8:=EMA(VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21); VAR9:=EMA(VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21); VAR

30、A:=EMA(VAR7*3+VAR8*2+VAR9)/6*1.738,21); VARB:=REF(LOW,1); VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100; VARD:=EMA(IF(CLOSE*1.350,0,火焰山,4,1); 今量: 火焰山; STICKLINE(火焰山 0,0,今量*1.2,8,0) COLOR0000FF; STICKLINE(火焰山 0,0,今量*0.8,8,0) COLOR0066FF; STICKLINE(火焰山 0,0,今量*0.6,8,0) COLOR0099FF; STICKLIN

31、E(火焰山 0,0,今量*0.4,8,0) COLOR00CCFF; STICKLINE(火焰山 0,0,今量*0.2,8,0) COLOR00FFFF;SZ16 水池STICKLINE(C0,90,95,10,0),COLOR408000;STICKLINE(C0,10,5,10,0),COLOR408000;ZHENGYI:=EMA (100*(C-LLV(LOW,34)/(HHV(H,34)-LLV(LOW,34),3);DRAWBAND(ZHENGYI,RGB(255,000,139),10,RGB(255,255,71);STICKLINE(C0,90,10,10,0),COLOR0

32、00000;风险值:ZHENGYI,COLORCYAN,LINETHICK1;警示线:45,COLORMAGENTA,LINETHICK1,POINTDOT;SZ10 综合预警VAR1:=EMA(HHV(HIGH,500),21); VAR2:=EMA(HHV(HIGH,250),21); VAR3:=EMA(HHV(HIGH,90),21); VAR4:=EMA(LLV(LOW,500),21); VAR5:=EMA(LLV(LOW,250),21); VAR6:=EMA(LLV(LOW,90),21); VAR7:=EMA(VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21); VAR8:=EMA(VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21); VAR9:=EMA(VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育教学资料库 > 课件讲义

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。