通达信公式(缠中说禅) .doc

上传人:laozhun 文档编号:4169240 上传时间:2023-04-08 格式:DOC 页数:11 大小:47KB
返回 下载 相关 举报
通达信公式(缠中说禅) .doc_第1页
第1页 / 共11页
通达信公式(缠中说禅) .doc_第2页
第2页 / 共11页
通达信公式(缠中说禅) .doc_第3页
第3页 / 共11页
通达信公式(缠中说禅) .doc_第4页
第4页 / 共11页
通达信公式(缠中说禅) .doc_第5页
第5页 / 共11页
点击查看更多>>
资源描述

《通达信公式(缠中说禅) .doc》由会员分享,可在线阅读,更多相关《通达信公式(缠中说禅) .doc(11页珍藏版)》请在三一办公上搜索。

1、工作线主图技术指标(辅助判断)MA5:MA(C,5);MA10:MA(C,10);工作线:EMA(EMA(EMA(c,13),3),3);MID:MA(CLOSE,26);UPPER:MID + 2*STD(CLOSE,26);LOWER:MID - 2*STD(CLOSE,26);底分型公式(选股及预警)V00:= HIGHREF(HIGH,1) AND LOWREF(LOW,1);V01:= HIGHREF(LOW,1);V02:= HIGHREF(HIGH,1) AND LOWREF(HIGH,1) AND LOWREF(LOW,1);V04:= REF(HIGH,2) HIGH AND

2、 REF(LOW,2) REF(HIGH,1) AND REF(LOW,2) =1 AND LLVBARS(LOW,3) = 1 AND V03;V2:= COUNT(V00,4)=1 AND LLVBARS(LOW,4) = 2 AND V04;V3:= COUNT(V00,4)=1 AND COUNT(V01 OR V02,4)=1 AND LLVBARS(LOW,4) = 1 AND V03;V4:= COUNT(V00,5)=1 AND COUNT(V01 OR V02,5)=2 AND LLVBARS(LOW,5) = 2 AND V04;XG:V1 OR V2 OR V3 OR V

3、4; 笔底分型 (确保向下笔成立后的底分型)(选股 预警)V00:= HIGHREF(HIGH,1) AND LOWREF(LOW,1);V01:= HIGHREF(LOW,1);V02:= HIGHREF(HIGH,1) AND LOWREF(HIGH,1) AND LOWREF(LOW,1);V04:= REF(HIGH,2) HIGH AND REF(LOW,2) REF(HIGH,1) AND REF(LOW,2) =3 AND COUNT(V01 OR V02,5)=0 AND LLVBARS(LOW,6) = 1 AND HHVBARS(HIGH,6) = 5 AND V03;V2

4、:= COUNT(V00,7)=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7) = 2 AND HHVBARS(HIGH,7) = 6 AND V04;V3:= COUNT(V00,7)=3 AND COUNT(V01 OR V02,6)=1 AND LLVBARS(LOW,7) = 1 AND HHVBARS(HIGH,7) = 6 AND V03;V4:= COUNT(V00,8)=3 AND COUNT(V01 OR V02,7)= 7 AND V04;V5:= COUNT(V00,8)=3 AND COUNT(V01 OR V02,7)=

5、7 AND V03;V6:= COUNT(V00,9)=3 AND COUNT(V01 OR V02,8)= 8 AND V04;V7:= COUNT(V00,9)=3 AND COUNT(V01 OR V02,8)= 8 AND V03;V8:= COUNT(V00,10)=3 AND COUNT(V01 OR V02,9)= 9 AND V04;V9:= COUNT(V00,10)=3 AND COUNT(V01 OR V02,9)= 9 AND V03;V10:= COUNT(V00,11)=3 AND COUNT(V01 OR V02,10)= 10 AND V04;XG:V1 OR

6、V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10;动态翻译:V00赋值: 最高价昨日最高价 AND 最低价昨日最低价V01赋值: 最高价昨日最低价V02赋值: 最高价昨日最高价 AND 最低价昨日最高价 AND 最低价昨日最低价V04赋值: 2日前的最高价 最高价 AND 2日前的最低价 昨日最高价 AND 2日前的最低价 =1 AND 3日内最低价距今天数 = 1 AND V03V2赋值: 统计4日中满足V00的天数=1 AND 4日内最低价距今天数 = 2 AND V04V3赋值: 统计4日中满足V00的天数=1 AND 统计4日中满足

7、V01ORV02的天数=1 AND 4日内最低价距今天数 = 1 AND V03V4赋值: 统计5日中满足V00的天数=1 AND 统计5日中满足V01ORV02的天数=2 AND 5日内最低价距今天数 = 2 AND V04输出XG:(V1 OR V2 OR V3 OR V4)笔顶分型(确保向上笔成立后的顶分型 )( 选股 预警 )V00:= HIGHREF(HIGH,1) AND LOWREF(LOW,1);V01:= HIGHREF(LOW,1);V02:= HIGHREF(HIGH,1) AND LOWREF(LOW,1);V03:= HIGHREF(HIGH,1) AND LOW H

8、IGH AND REF(LOW,2) LOW AND REF(HIGH,2) REF(HIGH,1) AND REF(LOW,2) =3 AND COUNT(V01 OR V02,5)=0 AND HHVBARS(HIGH,6) = 1 AND LLVBARS(LOW,6) = 5 AND V03;V2:= COUNT(V00,7)=3 AND COUNT(V01 OR V02,6)=1 AND HHVBARS(HIGH,7) = 2 AND LLVBARS(LOW,7) = 6 AND V04;V3:= COUNT(V00,7)=3 AND COUNT(V01 OR V02,6)=1 AND

9、 HHVBARS(HIGH,7) = 1 AND LLVBARS(LOW,7) = 6 AND V03;V4:= COUNT(V00,8)=3 AND COUNT(V01 OR V02,7)= 7 AND V04;V5:= COUNT(V00,8)=3 AND COUNT(V01 OR V02,7)= 7 AND V03;V6:= COUNT(V00,9)=3 AND COUNT(V01 OR V02,8)= 8 AND V04;V7:= COUNT(V00,9)=3 AND COUNT(V01 OR V02,8)= 8 AND V03;V8:= COUNT(V00,10)=3 AND COU

10、NT(V01 OR V02,9)= 9 AND V04;V9:= COUNT(V00,10)=3 AND COUNT(V01 OR V02,9)= 9 AND V03;V10:= COUNT(V00,11)=3 AND COUNT(V01 OR V02,10)= 10 AND V04;XG:XG: V1 OR V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10;动态翻译:V00赋值: 最高价昨日最高价 AND 最低价昨日最低价V01赋值: 最高价昨日最低价V02赋值: 最高价昨日最高价 AND 最低价昨日最低价V03赋值: 最高价昨日最高价

11、AND 最低价 最高价 AND 2日前的最低价 最低价 AND 2日前的最高价 昨日最高价 AND 2日前的最低价 =3 AND 统计5日中满足V01ORV02的天数=0 AND 6日内最高价距今天数 = 1 AND 6日内最低价距今天数 = 5 AND V03V2赋值: 统计7日中满足V00的天数=3 AND 统计6日中满足V01ORV02的天数=1 AND 7日内最高价距今天数 = 2 AND 7日内最低价距今天数 = 6 AND V04V3赋值: 统计7日中满足V00的天数=3 AND 统计6日中满足V01ORV02的天数=1 AND 7日内最高价距今天数 = 1 AND 7日内最低价距

12、今天数 = 6 AND V03V4赋值: 统计8日中满足V00的天数=3 AND 统计7日中满足V01ORV02的天数= 7 AND V04V5赋值: 统计8日中满足V00的天数=3 AND 统计7日中满足V01ORV02的天数= 7 AND V03V6赋值: 统计9日中满足V00的天数=3 AND 统计8日中满足V01ORV02的天数= 8 AND V04V7赋值: 统计9日中满足V00的天数=3 AND 统计8日中满足V01ORV02的天数= 8 AND V03V8赋值: 统计10日中满足V00的天数=3 AND 统计9日中满足V01ORV02的天数= 9 AND V04V9赋值: 统计1

13、0日中满足V00的天数=3 AND 统计9日中满足V01ORV02的天数= 9 AND V03V10赋值: 统计11日中满足V00的天数=3 AND 统计10日中满足V01ORV02的天数= 10 AND V04输出XG:V1 OR V2 OR V3 OR V4 OR V5 OR V6 OR V7 OR V8 OR V9 OR V10顶分型 (预警)V00:= HIGHREF(HIGH,1) AND LOWREF(LOW,1);V01:= HIGHREF(HIGH,1) AND LOW HIGH AND REF(LOW,2) LOW AND REF(HIGH,2) REF(HIGH,1) AN

14、D REF(LOW,2) =2 AND HHVBARS(HIGH,4) = 1 AND V01;V2:= COUNT(V00,5)=2 AND HHVBARS(HIGH,5) = 2 AND V02;V3:= COUNT(V00,5)=2 AND HHVBARS(HIGH,5) = 1 AND V01;V4:= COUNT(V00,6)=2 AND HHVBARS(HIGH,6) = 2 AND V02;XG: V1 OR V2 OR V3 OR V4;短线底部(预警选股)快金YXG:=IF(TROUGHBARS(3,6,1)=0 AND HIGHLOW+0.1,2,0) AND (INDEX

15、C-MA(INDEXC,70)/MA(INDEXC,70)=DXL AND REF(动向流,1)REF(DXL,3) AND REF(动向流,1)LOW+0.01;XG: BIAS50 AND MACDREF(MACD,1),MACD,0);MACDHX:=IF(MACD0 AND MACDREF(MACD,1),MACD,0);MACDLX:=IF(MACD0 AND MACDREF(MACD,1),MACD,0);MACDLS:=IF(MACDREF(MACD,1),MACD,0);STICKLINE(MACDHS0,0,MACD,7,0),COLOR0000EE;STICKLINE(MA

16、CDHS0,0,MACD,6,0),COLOR0000FF;STICKLINE(MACDHS0,0,MACD,5,0),COLOR0033FF;STICKLINE(MACDHS0,0,MACD,4,0),COLOR3355FF;STICKLINE(MACDHS0,0,MACD,3,0),COLOR6677FF;STICKLINE(MACDHS0,0,MACD,2,0),COLOR8888FF;STICKLINE(MACDHS0,0,MACD,1,0),COLOR9999FF;STICKLINE(MACDHX0,0,MACD,7,0),COLOR0099CC;STICKLINE(MACDHX0,

17、0,MACD,6,0),COLOR00AADD;STICKLINE(MACDHX0,0,MACD,5,0),COLOR00BBDD;STICKLINE(MACDHX0,0,MACD,4,0),COLOR00CCEE;STICKLINE(MACDHX0,0,MACD,3,0),COLOR00DDEE;STICKLINE(MACDHX0,0,MACD,2,0),COLOR00EEFF;STICKLINE(MACDHX0,0,MACD,1,0),COLOR00FFFF;STICKLINE(MACDLX0,MACD,0,7,0),COLOR990000;STICKLINE(MACDLX0,MACD,0

18、,6,0),COLORAA2200;STICKLINE(MACDLX0,MACD,0,5,0),COLORBB4400;STICKLINE(MACDLX0,MACD,0,4,0),COLORCC7700;STICKLINE(MACDLX0,MACD,0,3,0),COLORDD9900;STICKLINE(MACDLX0,MACD,0,2,0),COLOREEBB00;STICKLINE(MACDLX0,MACD,0,1,0),COLORFFCC00;STICKLINE(MACDLS0,MACD,0,7,0),COLOR005500;STICKLINE(MACDLS0,MACD,0,6,0),

19、COLOR007700;STICKLINE(MACDLS0,MACD,0,5,0),COLOR009900;STICKLINE(MACDLS0,MACD,0,4,0),COLOR00BB00;STICKLINE(MACDLS0,MACD,0,3,0),COLOR00DD00;STICKLINE(MACDLS0,MACD,0,2,0),COLOR00EE00;STICKLINE(MACDLS0,MACD,0,1,0),COLOR00FF00;绿柱面积:IF (MACD0),0),LINETHICK0,COLORRED;红柱面积:IF (MACD0,SUM(MACD,BARSLAST(MACD0

20、AND MACD=0 ,HHV(MACD,8),+REF(红柱面积,1),COLORRED;DRAWTEXT(REF(MACD,1)=0 ,LLV(MACD,4),+REF(ABS(绿柱面积),1),COLOR00FF00;DRAWTEXT(ISLASTBAR=2 AND MACD0,HHV(MACD,4),+ABS(红柱面积),COLORRED;MACD底背离公式(选股)DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)0);QM:=LLVBARS(

21、MACD,QZQ+20);MQDZ:=IF(QMQZQ,REF(MACD,QM),0);XG1:=MACDMQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZREF(MACD,1);MACD双底背离公式(选股)DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);QZQ:=BARSLAST(REF(MACD,1)0);QM:=LLVBARS(MACD,QZQ+20);MQDZ:=IF(QMQZQ,REF(MACD,QM),0);QF:=LLVBARS(DIFF,QZQ+20)

22、;DQDZ:=IF(QFQZQ,REF(DIFF,QF),0);XG1:=MACDMQDZ AND DIFFDQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ0 AND DQDZREF(MACD,1);顶底辅助判断动向流 (参数N:4,2,20)动向流:(MA(CLOSE,2)-REF(MA(CLOSE,2),N)/REF(MA(CLOSE,2),N),COLORFFFF00;PLOYLINE(1,MA(动向流,2),COLORFFFF00;PLOYLINE(1,MA(动向流,4),COLORFFD800;PLOYLINE(1,MA(动向流,6),COLORFF

23、A600;PLOYLINE(1,MA(动向流,8),COLORFF6800;PLOYLINE(1,MA(动向流,10),COLORFF3800;PLOYLINE(1,MA(动向流,12),COLORD1FF00;PLOYLINE(1,MA(动向流,14),COLORABFF00;PLOYLINE(1,MA(动向流,16),COLOR68FF00;PLOYLINE(1,MA(动向流,18),COLOR3EFF00;PLOYLINE(1,MA(动向流,20),COLORFF8CFF;PLOYLINE(1,MA(动向流,22),COLORC88CFF;PLOYLINE(1,MA(动向流,24),CO

24、LORC854FF;PLOYLINE(1,MA(动向流,26),COLOR7354FF;PLOYLINE(1,MA(动向流,28),COLOR7F00FF;PLOYLINE(1,MA(动向流,30),COLOR0000FF;一阳穿两线(选股)M1:=MA(C,5);M2:=MA(C,13);一阳1:=OM1;一阳2:=OM2;一阳穿二线:一阳1+一阳21;一阳穿三线(选股)M1:=MA(C,5);M2:=MA(C,18);M3:=MA(C,34);一阳1:=OM1;一阳2:=OM2;一阳3:=OM3;一阳穿三线:一阳1+一阳2+一阳32;缠论第三买点(选股)A1:=HHV(H,LS*0.7)T

25、UFENDOU;A2:=HHV(H,LS*4)TUFENDOU;A3:=REF(HHV(H,LS*4),LS*0.7)TUFENDOU;A4:=LLV(L,LS/10)TUFENDOU;选股:TUFENDOUA1=A2 AND A1=A3*1.2 AND A4A3;波浪底抓黑马(选股)A1:=3*SMA(C-LLV(L,55)/(HHV(H,55)-LLV(L,55)*100,5,1)-2*SMA(C-LLV(L,55)/(HHV(H,55)-LLV(L,55)*100,5,1);黑马线:=EMA(A1,5);A4:=(C-LLV(L,21)/(HHV(H,21)-LLV(L,21)*100;

26、趋势线:=(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2);大黑马:CROSS(趋势线,0) AND 黑马线A2 OR 波段买入A3 AND CROSS(C,ZX) AND VOL0,10,0);企稳向上(选股)EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);AR1:=EMA55EMA34 AND EMA34EMA13;AR2:=BARSLAST(C-EMA13)/EMA13*100=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND A

27、R2 AND AR3 AND AR4;企稳向上:AR5 AND FILTER(AR5,10);一阴破三(选股)M1:=MA(C,5);M2:=MA(C,18);M3:=MA(C,34);一阴1:=OM1 AND CM1;一阴2:=OM2 AND CM2;一阴3:=OM3 AND CM3;一阴破三线:一阴1+一阴2+一阴3OPEN AND CLOSE=HIGH,GTYX,0)2.5;波段王(选股)量能饱和度:IF(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)*100100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20)*100),NOD

28、RAW;AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLOR0000FF;BB10:=(ATAN(AA10 - REF(AA10,1) * 3.1416) * 10);BB12:=(ATAN(AA12 - REF(AA12,1) * 3.1416) * 10);MA13:=MA(CLOSE,13);DRAWBAND(AA10,RGB(150,50,50),AA12,RGB(0,100,50);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1)*3.1416*10;EMA8:=EMA(C,

29、8);DRAWTEXT(FILTER(BB131 AND EMA(X1,13)REF(EMA(X1,8),1),10),EMA8,45上升),COLORWHITE;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46;AA1:=AMOUNT/V;BB1:=L1.2;DD1:=LMA(C,5)*0.921;EE1:=VMA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.99),老鼠仓),COLOR4080FF;A51:=

30、3*SMA(C-LLV(L,55)/(HHV(H,55)-LLV(L,55)*100,5,1)-2*SMA(C-LLV(L,55)/(HHV(H,55)-LLV(L,55)*100,5,1);黑码线:=EMA(A51,5);A54:=(C-LLV(L,21)/(HHV(H,21)-LLV(L,21)*100;趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2);DRAWTEXT(CROSS(趋势线,0)AND 黑码线40,(HIGH* 0.97),大黑码),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=(SMA(MAX(CL

31、OSE - LC),0),3,1) / SMA(ABS(CLOSE - LC),3,1) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),底背离),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),顶背离),COLOR1880FF;VAR2:=LLV(LOW,27);VAR3:=HHV(HIGH,34);VAR4:=EMA(CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;注意买:=IF(VAR410),80,100);

32、RSV:=(C-LLV(L,9)/(HHV(H,9)-LLV(L,9)*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;超跌:=IF(J0,10,0);BDDD:=LLV(J,2)=LLV(J,8);买入:=IF(CROSS(J,REF(J+0.01,1) AND BDDD AND J20,30,0);DRAWTEXT(买入 AND 注意买=100 AND 超跌=0,LOW,短线),COLOR8000FF;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=IF(LLV

33、(DX,2)=LLV(DX,7) AND COUNT(DXOPEN,OPEN,LOW,0,0 ),COLOR0000FF;STICKLINE(CLOSEOPEN,CLOSE,HIGH,0,0 ),COLOR0000FF;STICKLINE(OPEN=CLOSE,CLOSE,LOW,0,0 ),COLOR00FF00;STICKLINE(OPEN=CLOSE,OPEN,HIGH,0,0 ),COLOR00FF00;STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFF8800;STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,2,0 ),

34、COLORFFAA00;STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFCC00;STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,0,0 ),COLORFFEE00;STICKLINE(CLOSEOPEN,CLOSE,OPEN,3,0) ,COLOR000066;STICKLINE(CLOSEOPEN,CLOSE,OPEN,2,0) ,COLOR000088;STICKLINE(CLOSEOPEN,CLOSE,OPEN,1,0) ,COLOR0000AA;STICKLINE(CLOSEOPEN,CLOSE,OPEN,0,0) ,

35、COLOR0000CC;VAR9Q:=C=HHV(C,4) AND (REF(C,1)=REF(C,2) OR REF(C,1)=REF(C,3) OR REF(C,1)=HHV(C,4) AND CLOSE=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C=REF(C,1) OR REF(C,3)=HHV(C,4) AND C=REF(C,1) AND C=REF(C,2);STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000066;STICKLINE(VAR9Q,C,(O+C)/2,2,0),COL

36、OR000088;STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000AA;STICKLINE(VAR9Q,C,(O+C)/2,0,0),COLOR0000CC;VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF22FF;STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFF44FF;STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF66FF;STICKLINE(VARAQ,C,(O+C)/2,0,0),COLOR

37、FF88FF;VARBQ:=C=LLV(C,4) AND (REF(C,1)REF(C,2) OR REF(C,1)REF(C,3) OR REF(C,1)=LLV(C,4) AND CHHV(C,4) OR REF(C,1)HHV(C,4) AND CREF(C,1) OR REF(C,3)=LLV(C,4) AND CREF(C,1) AND C=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=REF(C,3) AND REF(C,2)=REF(C,1);STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR004400;STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR006600;STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR008800;STICKLINE(VARCQ,O,(O+C)/2,0,0),COLOR00AA00;VARDQ:=REF(C,1)=HHV(C,4) AND CREF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)REF(C,2) AND REF(C,2)=REF(C,4) AND CREF(C,1);

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 办公文档 > 其他范文


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号