精准共振点 复件 通达信指标公式源码

合集下载

通达信共振通杀指标公式

通达信共振通杀指标公式

通达信共振通杀指标公式RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=Ema(J0,3);J1:=IF(CLOSE>QJ,vol,0);J2:=IF(CLOSE< QJ,VOL,0);量能:IF(CAPITAL< 1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW;趋势:IF(CAPITAL< 1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW;VAR3:=(量能-趋势);VAR44:SMA(RV,3,1);VAR55:SMA(VAR44,3,1);stICKLINE(VAR3>0,50,100,5,0),COLOR990099;STICKLINE(VAR3< -100,0,50,10,0),COLOR009900;DRAWICON(crOSS(VAR44,VAR55) AND VAR55< 30,2,1);DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));DRAWTEXT_FIX(C>O,1,1,0,''),COLORRED;KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振点'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振点,0,85,0,1)COLORYELLOW;吸筹:0,NODRAW;STICKLINE(吸筹,0,25,2,0)COLORRED;金:=0;STICKLINE(金,100,85,2,0)COLORYELLOW;金线:=1;临界点:=0;比系数:=1.3;月线:=MA(C,20);均线:=MA(C,5)>REF(MA(C,5),1) AND MA(C,10)< REF(MA(C,10),1) AND MA(C,20)< REF(MA(C,20),1);均价:=(3*C+L+3*O+H)/8;RV1:=REF(V,1);RV2:=REF(V,2);RV3:=REF(V,3);RC1:=REF(C,1);RC2:=REF(C,2);RC3:=REF(C,3);RC4:=REF(C,4);RO1:=REF(O,1);RO2:=REF(O,2);RO3:=REF(O,3);RO4:=REF(O,4);不破价顶:=(C>=RC3) AND RC1>=RC3 AND RC2>=RC3;不破价底:=L>RO3 AND REF(L,1)>RO3 AND REF(L,2)>RO3;RJ1:=REF(均价,1);RJ2:=REF(均价,2);阳柱:=C>=O OR (C< O AND 均价>RC1);三日二阳:=COUNT(阳柱,3)>=2;基价柱阳:=RC3>RO3;价渐升:=(均价>=RJ1 OR C>RC1) AND (RJ1>=RJ2 OR RC1>=RC2);均价升:=(C+RC1+RC2)/3>RC3;量渐升:=V>RV1 AND RV1>RV2;量渐减:=V< RV1 AND RV1<=RV2;均量减:=((V+RV1+RV2)/3)<=RV3;日价量比:=C/V;日价量比升:=日价量比>=REF(日价量比,1) AND REF(日价量比,1)>=REF(日价量比,2);均价升幅:=(C+RC1+RC2)/3/RC3;均量升幅:=(V+RV1+RV2)/3/RV3;价量比:=比系数*均价升幅/均量升幅>1;基前跳空:=RO3>RC4 AND RC4>RO4;黄金柱1T:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶AND 不破价底 AND 基前跳空;BacKSET101T:=BACKSET(黄金柱1T,5);FILTER101T:=FILTER(BACKSET101T,4);黄金柱1:=基价柱阳AND 价渐升AND 量渐减AND 不破价顶AND 不破价底 ;BACKSET101:=BACKSET(黄金柱1,4);FILTER101:=FILTER(BACKSET101,3);黄金柱11:=黄金柱1 AND REF(黄金柱1,1);BACKSET1011:=BACKSET(黄金柱11,4);FILTER1011:=FILTER(BACKSET1011,3);黄金柱12:=黄金柱1 AND REF(黄金柱1,2);BACKSET1012:=BACKSET(黄金柱12,4);FILTER1012:=FILTER(BACKSET1012,3);黄金柱13:=黄金柱1 AND REF(黄金柱1,3);BACKSET1013:=BACKSET(黄金柱13,4);FILTER1013:=FILTER(BACKSET1013,3);黄金柱2T:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T);BA201T:=BACKSET(黄金柱2T,5);FILTER201T:=FILTER(BA201T,4);黄金柱2:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201:=BACKSET(黄金柱2,4);FILTER201:=FILTER(BACKSET201,3);黄金柱21:=黄金柱2 AND REF(黄金柱2,1);BACKSET2011:=BACKSET(黄金柱21,4);FILTER2011:=FILTER(BACKSET2011,3);黄金柱22:=黄金柱2 AND REF(黄金柱2,2);BACKSET2012:=BACKSET(黄金柱22,4);FILTER2012:=FILTER(BACKSET2012,3);黄金柱23:=黄金柱2 AND REF(黄金柱2,3);BACKSET2013:=BACKSET(黄金柱23,4);FILTER2013:=FILTER(BACKSET2013,3);黄金柱3T:=基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301T:=BACKSET(黄金柱3T,5);FILTER301T:=FILTER(BACKSET301T,4);黄金柱3:=基价柱阳AND 均价升AND 量渐减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301:=BACKSET(黄金柱3,4);FILTER301:=FILTER(BACKSET301,3);黄金柱31:=黄金柱3 AND REF(黄金柱3,1);BACKSET3011:=BACKSET(黄金柱31,4);FILTER3011:=FILTER(BACKSET3011,3);黄金柱32:=黄金柱3 AND REF(黄金柱3,2);FILTER3012:=FILTER(BACKSET3012,3);黄金柱33:=黄金柱3 AND REF(黄金柱3,3);BACKSET3013:=BACKSET(黄金柱33,4);FILTER3013:=FILTER(BACKSET3013,3);黄金柱4T:=基价柱阳 AND 均价升 AND 均量减 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T) AND NOT(黄金柱2) AND NOT(黄金柱2T) AND NOT(黄金柱3) AND NOT(黄金柱3T);BACKSET401T:=BACKSET(黄金柱4T,5);FILTER401T:=FILTER(BACKSET401T,4);黄金柱4:=基价柱阳AND 均价升AND 均量减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T);BACKSET401:=BACKSET(黄金柱4,4);FILTER401:=FILTER(BACKSET401,3);黄金柱41:=黄金柱4 AND REF(黄金柱4,1);BACKSET4011:=BACKSET(黄金柱41,4);FILTER4011:=FILTER(BACKSET4011,3);黄金柱42:=黄金柱4 AND REF(黄金柱4,2);BACKSET4012:=BACKSET(黄金柱42,4);FILTER4012:=FILTER(BACKSET4012,3);黄金柱43:=黄金柱4 AND REF(黄金柱4,3);BACKSET4013:=BACKSET(黄金柱43,4);FILTER4013:=FILTER(BACKSET4013,3);黄金柱5T:=基价柱阳 AND 均价升 AND 价量比 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);FILTER501T:=FILTER(BACKSET501T,4);黄金柱5:=基价柱阳AND 均价升AND 价量比AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501:=BACKSET(黄金柱5,4);FILTER501:=FILTER(BACKSET501,3);黄金柱51:=黄金柱5 AND REF(黄金柱5,1);BACKSET5011:=BACKSET(黄金柱51,4);FILTER5011:=FILTER(BACKSET5011,3);黄金柱52:=黄金柱5 AND REF(黄金柱5,2);BACKSET5012:=BACKSET(黄金柱52,4);FILTER5012:=FILTER(BACKSET5012,3);黄金柱53:=黄金柱5 AND REF(黄金柱5,3);BASET5013:=BACKSET(黄金柱53,4);FILTER5013:=FILTER(BASET5013,3);黄金柱6T:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601T:=BACKSET(黄金柱6T,5);FILTER601T:=FILTER(BACKSET601T,4);黄金柱6:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601:=BACKSET(黄金柱6,4);FILTER601:=FILTER(BACKSET601,3);黄金柱61:=黄金柱6 AND REF(黄金柱6,1);BACKSET6011:=BACKSET(黄金柱61,4);FILTER6011:=FILTER(BACKSET6011,3);黄金柱62:=黄金柱6 AND REF(黄金柱6,2);BACKSET6012:=BACKSET(黄金柱62,4);FILTER6012:=FILTER(BACKSET6012,3);黄金柱63:=黄金柱6 AND REF(黄金柱6,3);BACKSET6013:=BACKSET(黄金柱63,4);FILTER6013:=FILTER(BACKSET6013,3);FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4)));FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 AND NOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4)));FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4)));FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4)));FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4)));FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4)));FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6,COLOR0099FF;黄金柱:=FIL AND NOT(REF(FIL,4));FILJJ:=BArslAST(FIL);FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5)));FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5)));FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5)));FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5)));FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5)));FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5)));FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T;元帅柱:=FILT AND NOT(REF(FILT,5));帅距:=BARSLAST(元帅柱);H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:=L1+P1*7/8,COLORGREEN;支撑:=L1+P1*0.5/8,COLORRED;中线:=(支撑+阻力)/2;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:=EMA(V11,3),LINETHICK2,COLORLIMAGENTA;V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备买入:=STICKLINE(趋势线< 11,趋势线,11,5,0),COLORYELLOW;AA:=(趋势线< 11) AND FILTER((趋势线<=11),15) AND C< 中线;BB0:=REF(趋势线,1)< 11 AND CROSS(趋势线,11) AND C< 中线;BB1:=REF(趋势线,1)< 11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);BB2:=REF(趋势线,1)< 6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);BB3:=REF(趋势线,1)< 3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);BB4:=REF(趋势线,1)< 1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);BB5:=REF(趋势线,1)< 0 AND CROSS(趋势线,0);BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;买入:=BB=1 AND C< 中线;LTP:=CAPITAL*100/100000000;挂帅:COUNT(买入,帅距)>1 AND (EVERY(黄金柱,3) OR COUNT(元帅柱,10)>1),NODRAW;STICKLINE(挂帅,0,100,0.1,0)COLORLIMAGENTA;。

通达信指标公式源码 时间共振点 副图源码

通达信指标公式源码 时间共振点 副图源码

无总天数:=HHVBARS(H,120);无交换次数5:=FLOOR(无总天数/5);{5}无判断5:=IF(无交换次数5>0,无交换次数5,0);无判定5:=IF(无判断5-REF(无判断5,1)>0,无判断5,0);无距上次交换5:=BARSLAST(无判定5)+1;无交换次数6:=FLOOR(无总天数/6);{6}无判断6:=IF(无交换次数6>0,无交换次数6,0);无判定6:=IF(无判断6-REF(无判断6,1)>0,无判断6,0);无距上次交换6:=BARSLAST(无判定6)+1;无交换次数9:=FLOOR(无总天数/9);{9}无判断9:=IF(无交换次数9>0,无交换次数9,0);无判定9:=IF(无判断9-REF(无判断9,1)>0,无判断9,0);无距上次交换9:=BARSLAST(无判定9)+1;无顶56:(无距上次交换5+无距上次交换6=2)*80,NODRAW,COLOR3399FF; STICKLINE(无距上次交换5+无距上次交换6=2 ,200 ,120 ,2 ,0 ),COLOR3399FF; 无顶69:(无距上次交换6+无距上次交换9=2)*80,NODRAW,COLOR33FF00; STICKLINE(无距上次交换6+无距上次交换9=2 ,200 ,120 ,2 ,0 ),COLOR33FF00;无底总天数:=LLVBARS(L,120);无底交换次数5:=FLOOR(无底总天数/5);{5}无底判断5:=IF(无底交换次数5>0,无底交换次数5,0);无底判定5:=IF(无底判断5-REF(无底判断5,1)>0,无底判断5,0);无底距上次交换5:=BARSLAST(无底判定5)+1;无底交换次数6:=FLOOR(无底总天数/6);{6}无底判断6:=IF(无底交换次数6>0,无底交换次数6,0);无底判定6:=IF(无底判断6-REF(无底判断6,1)>0,无底判断6,0);无底距上次交换6:=BARSLAST(无判定6)+1;无底交换次数9:=FLOOR(无底总天数/9);{9}无底判断9:=IF(无底交换次数9>0,无底交换次数9,0);无底判定9:=IF(无底判断9-REF(无底判断9,1)>0,无底判断9,0);无底距上次交换9:=BARSLAST(无底判定9)+1;无底56:(无底距上次交换5+无底距上次交换6=2)*80,NODRAW,COLOR3333FF; STICKLINE(无底距上次交换5+无底距上次交换6=2 ,200 ,120 ,2 ,0 ),COLOR3333FF;无底69:(无底距上次交换6+无底距上次交换9=2)*80,NODRAW,COLORFFFF00; STICKLINE(无底距上次交换6+无底距上次交换9=2 ,200 ,120 ,2 ,0 ),COLORFFFF00;顶转点:=PEAKBARS(1,10,5);顶总天数:=顶转点;交换次数5:=FLOOR(顶总天数/5);{5}判断5:=IF(交换次数5>0,交换次数5,0);判定5:=IF(判断5-REF(判断5,1)>0,判断5,0);距上次交换5:=BARSLAST(判定5)+1;交换次数6:=FLOOR(顶总天数/6);{6}判断6:=IF(交换次数6>0,交换次数6,0);判定6:=IF(判断6-REF(判断6,1)>0,判断6,0);距上次交换6:=BARSLAST(判定6)+1;交换次数9:=FLOOR(顶总天数/9);{9}判断9:=IF(交换次数9>0,交换次数9,0);判定9:=IF(判断9-REF(判断9,1)>0,判断9,0);距上次交换9:=BARSLAST(判定9)+1;有未顶56:(距上次交换5+距上次交换6=2)*80,NODRAW,COLOR3399FF; STICKLINE(距上次交换5+距上次交换6=2 ,0 ,80 ,2 ,0 ),COLOR3399FF;有未顶69:(距上次交换6+距上次交换9=2)*80,NODRAW,COLOR33FF00; STICKLINE(距上次交换6+距上次交换9=2 ,0 ,80 ,2 ,0 ),COLOR33FF00;底转点:=TROUGHBARS(1,10,5);底总天数:=底转点;交换次数55:=FLOOR(底总天数/5);{5}判断55:=IF(交换次数55>0,交换次数55,0);判定55:=IF(判断55-REF(判断55,1)>0,判断55,0);距上次交换55:=BARSLAST(判定55)+1;交换次数66:=FLOOR(底总天数/6);{6}判断66:=IF(交换次数66>0,交换次数66,0);判定66:=IF(判断66-REF(判断66,1)>0,判断66,0);距上次交换66:=BARSLAST(判定66)+1;交换次数99:=FLOOR(底总天数/99);{9}判断99:=IF(交换次数99>0,交换次数99,0);判定99:=IF(判断99-REF(判断99,1)>0,判断99,0);距上次交换99:=BARSLAST(判定99)+1;有未底56:(距上次交换55+距上次交换66=2)*80,NODRAW,COLOR3333FF; STICKLINE(距上次交换55+距上次交换66=2 ,0 ,80 ,2 ,0 ),COLOR3333FF; 有未底69:(距上次交换66+距上次交换99=2)*80,NODRAW,COLORFFFF00; STICKLINE(距上次交换66+距上次交换99=2 ,0 ,80 ,2 ,0 ),COLORFFFF00;。

通达信指标公式源码 金窗共振主图指标公式

通达信指标公式源码 金窗共振主图指标公式

DIF:=EMA(CLOSE,6)-EMA(CLOSE,16);DEA:=EMA(DIF,9);资金窗:CROSS(DIF,DEA) AND DEA>-0.05,COLORFFFFFF,NODRAW; DRAWICON(资金窗,LOW*1,9);DRAWTEXT(资金窗>0, LOW*0.99,'资金窗'),COLORFFFFFF;VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR27:=EMA(VAR26,100);VAR28:=2*(VAR26-VAR27);VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR2B:=EMA(VAR2A*0.97,3);VAR2C:=(HIGH+LOW+CLOSE)/3;VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));龙抬头:=IF( VAR28>0.1,VAR29,0)*5,COLORCYAN;麒麟护盘: CROSS(VAR28,1),COLORFF9900,NODRAW;DRAWICON(麒麟护盘,LOW*0.96,31);DRAWTEXT(麒麟护盘>0, LOW*0.95,'麒麟护盘'),COLORFF9900;后金窗:COUNT(L=LLV(L,20),20)=1 AND L=LLV(L,20),NODRAW,COLORFF00FF; DRAWICON(后金窗,LOW*1,22);DRAWTEXT(后金窗>0, LOW*0.99,'后金窗'),COLORFF00FF;STICKLINE(后金窗AND FILTER(后金窗,31)>0,L*1.01,L*1.01,300,0),COLORYELLOW;C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;RC1:=REF(C,1);涨停率10:=10-1/RC1;涨停率5:=5-1/RC1;比前涨率:=(C-RC1+0.004)*100/RC1;比前跌率:=(RC1-C-0.004)*100/RC1;本日涨率:=(C-O+0.004)*100/O;本日跌率:=(O-C-0.004)*100/O;大阳线:=C>O AND (比前涨率>=涨停率5 OR 本日涨率>=涨停率5)AND 比前涨率<涨停率10 AND 涨停=0;STICKLINE(大阳线,O,C,3,0),COLOR0000BB;大阴线:=C<O AND (比前跌率>=涨停率5 OR 本日跌率>=涨停率5)AND 比前跌率<涨停率10 AND 跌停=0;STICKLINE(大阴线,O,C,3,0),COLORLIGREEN;HIGHN:=10;AAB:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AAB,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.01,2);DRAWTEXT(CC>0, H*1,'洗盘'),COLORFFFFFF;。

【三点共振】 决胜买卖通达信指标公式源码

【三点共振】 决胜买卖通达信指标公式源码

【三点共振】决胜买卖最佳买点是三者完全共振,信号少但是成功率相当高。

差点的就是圈内共振,或者是主图和最佳买点2共振。

RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);DRAWICON(CROSS(VAR44,VAR55) AND VAR55<30,2,1);DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF; DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振点>0,0,100,2,0),COLOR008888;STICKLINE(共振点>0,0,100,1.5,0),COLOR00AAAA;STICKLINE(共振点>0,0,100,0.8,0),COLOR00DDDD;STICKLINE(共振点>0,0,100,0.3,0),COLOR00FFFF;VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:20,COLORFF00FF,LINETHICK2;高死叉出:90,COLORBLUE,LINETHICK2;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2;条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),70,'止'),COLORRED; {DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),60,'跌'),COLORRED;} DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR(REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),65,'买'),COLORRED;DRAWTEXT(条件,20,'买'),COLORRED;STICKLINE(条件,0,20,2,0),COLORRED;DRAWTEXT(条件0,85,'卖'),COLORBLUE;DRAWTEXT(CROSS(C1,75),70,'险区'),COLORGREEN; DRAWTEXT(TJ3,65,'安'),COLORRED;DRAWTEXT(TJ3,60,'买'),COLORRED;DRAWTEXT(TJ4,85,'逃顶'),COLORBLUE;STICKLINE(TJ4,100,80,2,0),COLORGREEN;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O; STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'财神到'),COLORRED;★遵守纪律★:100,COLORRED,NODRAW;★交易之魂★:100,COLORRED,NODRAW;。

通达信共振点出击指标公式

通达信共振点出击指标公式

通达信共振点出击指标公式N:=5; N1:=21;VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;VARO1:=LLV(LOW,27);VARO2:=HHV(HIGH,34);CD1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(L,9))-0.7;CD2:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));CD3:=SMA(SMA(CD2,3,1),3,1);CD4:=(CD3-SMA(CD1,9,1))-0.5;CD5:=IF(CD4>0.00,CD4,0.00);CD6:=REF(CD5,1);VAR81:=MA(C,9),COLORRED;VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2A:=SMA(VAR1A,9,1)+100;VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4A:=SMA(VAR3A,3,1);VAR5A:=SMA(VAR4A,3,1)+100;VAR6A:=VAR5A-VAR2A;出击1:=IF(VAR6A>N1,VAR6A-N1,0),COLORLIRED;出击:IF(CROSS(出击1,0.01),60,0),COLOR0000CC,COLORCYAN;DRAWICON(出击>0,63,26),COLORCYAN;DRAWTEXT(出击,78,'出击'),COLORCYAN;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);共振2号:=3*VAR300-2*VAR400;A1:=CROSS(共振2号,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR00FFFF;STICKLINE(A1,30,0,3,0),COLORFFFF00;STICKLINE(A1,30,0,4,0),COLOR00FFFF;STICKLINE(A1,30,0,2,0),COLOR0099FF;STICKLINE(A1,30,0,1,0),COLOR0000FF;DRAWTEXT(A1,43,'共振2号'),COLORYELLOW;RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:=SMA(KK,3,1),COLOR00FFFF;DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),51,'共振1号'),COLOR00FFFF,COLORLIBLUE;共振1号:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振1号>0,0,40,2,0),COLOR33FF33;STICKLINE(共振1号>0,0,40,1.5,0),COLORFF6633;STICKLINE(共振1号>0,0,40,0.8,0),COLORFFCC33;STICKLINE(共振1号>0,0,40,0.3,0),COLORFF0066;。

通达信指标公式源码 牛股共振副图指标

通达信指标公式源码 牛股共振副图指标

10,COLORRED;20,COLOR00FF00,LINETHICK3,POINTDOT;40,COLOR00FFFF,LINETHICK3,POINTDOT;50,COLORRED,LINETHICK2;60,COLORRED,LINETHICK3,POINTDOT;80,COLOR00FFFF,LINETHICK3,POINTDOT;90,COLORWHITE;100,COLOR00FF00,LINETHICK1;{进入异动区}{当出现进入异动区提示时需观察买入,最好是第二次KDJ三线相交时介入} VAR7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR8:=EMA(VAR7,30);{好}VAR9:=EMA(VAR8,30);VAR10:=3*VAR8-2*VAR9;势:=EMA(VAR10,5);DRAWTEXT(CROSS(10,势),69,'进'),COLORYELLOW;DRAWTEXT(CROSS(10,势),58,'入'),COLORFF00FF;DRAWTEXT(CROSS(10,势),43,'异'),COLOR00C0FF;DRAWTEXT(CROSS(10,势),31,'动[↓]'),COLORFFFF6F;DRAWTEXT(CROSS(10,势),19,'区'), COLORB47DFF;{长线持股}{含未来函数:DRAWLINE当天出现信号可择机介入,明日买、卖需观察}A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);SHORT:=7; LONG:=19;RMA:=EMA(CLOSE,SHORT);NMA:=EMA(CLOSE,LONG);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);买进:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) ANDCROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1); STICKLINE(买进,0,45,1.3,0),COLOR000088;STICKLINE(买进,0,45,0.9,0),COLOR0000AA;STICKLINE(买进,0,45,0.6,0),COLOR0000CC;STICKLINE(买进,0,45,0.2,0),COLOR0000FF;DRAWTEXT(买进,43,'长线持股'),COLORRED,LINETHICK1;{共振}RV:=(CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;JJ:=SMA(KK,3,1),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,JJ));STICKLINE(共振点>0,0,35,1.3,0),COLOR008888;STICKLINE(共振点>0,0,35,0.9,0),COLOR00AAAA;STICKLINE(共振点>0,0,35,0.6,0),COLOR00DDDD;STICKLINE(共振点>0,0,35,0.2,0),COLOR00FFFF;DRAWTEXT(共振点>0,33,'共振'),COLOR00FF00;{涨}{W }VAR1:=EMA(CLOSE,3);VAR2:=EMA(CLOSE,21);VAR3:=BARSLAST(CROSS(VAR2,VAR1))>15;VAR4:=VOL>MA(VOL,5)*2 AND VOL<MA(VOL,5)*5;VAR5:=CROSS(VAR1,VAR2) AND VAR4 AND VAR3;STICKLINE(VAR5,0,25,1.3,0),COLOR008800;STICKLINE(VAR5,0,25,0.9,0),COLOR00AA00;STICKLINE(VAR5,0,25,0.6,0),COLOR00CC00;STICKLINE(VAR5,0,25,0.2,0),COLOR00FF00;DRAWTEXT(VAR5,23,'★涨'),COLOR00FF00;{KDJ没有未来函}RSV:=(CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33))*100;K:SMA(RSV,3,1),COLOR00FFFF,LINETHICK2;D:SMA(K,3,1),COLORWHITE LINETHICK2;J:3*K-2*D,COLORRED,LINETHICK2;IF(J<REF(J,1),J,DRAWNULL),COLORGREEN,LINETHICK2;{KDJ相交红蓝球}DRAWICON(CROSS(J,D) AND CROSS(J,K),5,13);DRAWICON(CROSS(D,J) AND CROSS(K,J),95,14);{逃}{好}DRAWTEXT(CROSS(80,RSI),95,'★逃'),COLORWHITE LINETHICK1;{顶}VAR22:=1;VAR23:=((((2*CLOSE)+HIGH)+LOW) / 4);VAR24:=LLV(LOW,5);VAR25:=HHV(HIGH,4);B1:=(EMA((((VAR23-VAR24)/(VAR25-VAR24))*100),4)*VAR22);B2:=(EMA(((0.667*REF(B1,1))+(0.333*B1)),2)*VAR22);TJ4:=CROSS(B2,B1) AND REF(B1,1)>80;DRAWTEXT(TJ4,102,'★顶'),COLOR00FFFF LINETHICK1;{今买明卖}MA111:=MA(CLOSE,20);MA112:=MA(CLOSE,40);MA113:=MA(CLOSE,60);A11:=OPEN<MA111 OR OPEN<MA112 OR OPEN<MA113,COLORRED;A12:=C>MAX(MA111,MAX(MA112,MA113)),COLORRED;A13:=V/MA(V,30)>1.2,COLORRED;A14:=C/REF(C,1)>1.049,COLORRED;今买明卖:IF(A11 AND A12 AND A13 AND A14,45,0),COLORWHITE LINETHICK2; DRAWTEXT(今买明卖>0.9,40,'今买明卖'),COLORWHITE LINETHICK1;{短买}你:=MA(CLOSE,1);老:=(LOW+HIGH+CLOSE)/3;老板:= MA(老,5);买卖:=LLV(老板,10);短买:IF(LLV((你<买卖),5),15,0),COLOR00FFFF,LINETHICK2;VAR20:=C-REF(C,1);VAR21:=100*EMA(EMA(VAR20,6),6)/EMA(EMA(ABS(VAR20),6),6);MA5:=EMA(C,5);MA13:=EMA(C,13);UP1:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROS S(MA5,MA13))+1),0),COLOR0000FF;{好}DOWN1:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(C ROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS (MA13,MA5))+1),0),COLOR00FF00;BT:=(LLV(VAR21,2)=LLV(VAR21,7) AND COUNT(VAR21<0,2) ANDCROSS(VAR21,MA(VAR21,2))) ANDREF(DOWN1,1)<REF(DOWN1,2) AND UP1>REF(DOWN1,1);0,COLORFF00FF;DRAWTEXT(BT,30,'短牛'),COLOR00FFFF;TJ1:=REF(DOWN1,1)<REF(DOWN1,2) AND UP1>REF(DOWN1,1) AND C<HHV(H,21)*0.82;DRAWTEXT(TJ1,20,'中牛'),COLOR0000FF;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN1,1)<REF(DOWN1,2) AND UP1>REF(DOWN1,1) AND C<HRY33; DRAWTEXT(TJ2,10,'大牛'),COLORCYAN;。

通达信公式指标源码通达信超级共振副图指标源码.docx

通达信公式指标源码通达信超级共振副图指标源码.docx

通达信超级共振副图指标源码轴1:0,COLORYELLOW;轴2:5,COLORWHITE,POINTDOT;轴3:10,COLORWHITE,POINTDOT;轴4:15Z COLORWHITE,POINTDOT;轴5:20,COLORWHITE,POINTDOT;轴6:25Z COLORWHITE Z POINTDOT;轴7:30,COLORYELLOW;{金兰三宝}N:=9;Nl:=6;M: = 14;AAATYP := (HIGH + LOW + CLOSE)/3;AAAl:=(AAATYP-MA(AAATYP,M))/(0.015*AVEDEV(AAATYP,M)); C1:=SMA(AAA1,3,1);C2:=SMA(C1,3,1);C3:=3*C1-2*C2;CB1:=EMA(C3,5);CB2:=REF(CB1,1);LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),N1Z1)/SMA(ABS(CLOSE-LC)Z N1,1)*100;RSI:=(RSI1-5O)*5;R1:=SMA(RSI,3,1);D1:=SMA(R1,3,1);J1:=3*R1-2*D1;RR1:=EMA(J1,5);RR2:=REF(RR1,1);RR:=RR1>RR2;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,3,1); Kl:=(K-50)*5;K2:=SMA(K1,3,1);D2:=SMA(K2,3,1);J2:=3*K2-2*D2;BB1:=EMA(J2,5);BB2:=REF(BB1Z1);三宝:RR AND NOT(REF(RR」))AND (RRK-100 AND BBK-100) ANDCBl<-100,COLORGREEN,NODRAW;STICKLINE(三宝,5,0,3,0)COLORGREEN;{极地上涨}VA1: = HHV(HIGH Z9)-LLV(LOW,9);VA2: = HHV(HIGH,9)-CLOSE;VA3:=CLOSE-LLV( LOW,9);VA4:=VA2/VAl*100-70;VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH Z60)-LLV(LOW Z60))*100;VA6:=(CLOSE+HIGH+LOW)/3;VA7:=SMA(VA3/VAl*100z3,l);VA8: = LLV(LOW,34);VA9:=SMA(VA7,3,1)-SMA(VA4,9Z1);VARA:=IF(VA9> 100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,l)+0.333*VARC,2);VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF (INDEXC,1))/INDEXC,8,1)*100-25;VARF: = MA(VARE,3);VAR1:=HHV(HIGH Z9)-LLV(LOW Z9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3 :=CLOSE-LLV(LOW,9);VAR4:=((VAR2)/(VARl))*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH Z60)-LLV(LOW,60)))*(100); VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VARl))*(100),3,l);VAR8:=LLV(LOW Z34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100z0);VAR11:=HHV(HIGH,34);Bl:=EMA(((VAR6-VAR8)/(VARll-VAR8))*(100),8);领先:=EMA(B1,5);生命线:=EMA(VARD A1);Vl:=MA(C,5)=HHV(MA(C,5)z20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5) > MA(V,40)* 1.01;V4:=COUNT(MA(C Z1)>REF(C,1)Z2)=2;W:=V1 AND V2 AND V3 AND V4;A1:=EMA(CLOSE,8);A2:=EMA(A1,2O);A3:=CROSS(A1,A2);A4:=A1<EMA(CLOSE Z120);A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)- 2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8, 1);安全位:=20;低位转强:=CROSS(A5,安全位);开始拉升:二CROSS(VARC件命线)AND VAROVARD AND VARC<55 AND C>0;A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,l)>(l+9.8/100);极地上涨:=A6;极地:开始拉升>0 AND开始拉升<400 OR极地上涨>0 AND极地上涨v400OR (低位转强>0 AND低位转强v400) OR (低位转强〉0),COLORYELLOW,NODRAW;STICKLINE(极地,10,15,3,0),COLORYELLOW;{好底}D:=EMA((C*3+H+L+O)/6,5);买卖: = D,COLORGREEN 丄INETHICK2;A 线:=HHV(D Z13兀OLORYELLOW丄INETHICK2;B 线:=LLV(D,13兀OLORYEU_OW丄INETHICK2;日平:=,,MACD.MACD#DAY,,(12z26/9);周平:iMACD.MACD# WEEK n(12,26,9);JC:=(A 线-B 线);S: =COUNT(JC> REF(JC, 1)AND A 线〉REF(A 线」),5)=1 AND JC>REF(JC,1)AND A 线〉REF(A 线J)AND D> = REF(D,1);G1:=FILTER(壹=1,10);G2: = BARSLAST(Gl>0);G3:=IFF(G2>0 AND G2< = 10,l,0)=l AND((C-REF(C z G2))/REF(C,G2))*100>=5;概壹:=(SUM(FILTER(G3,10),0)/SUM(Gl>0,0))*100;力n 1:=COUNT(口平>=0AND 周平>=0,5)=1 AND 口平〉=0 AND 周平>=0;加I 2: = FILTER(D=A 线AND REF(D,l)vREF(A 线,1)AND REF(D,2)vREF(A 线2) 10)・®: = FILTER(加1=1,10);②:二BARSLAST(① >0);③:=IFF(②>0 AND ②v = 10,1,0)=1 AND ((C-REF(C Z②))/REF(C,②))*100>=5; 概加1:=(SUM(FILTER(③,10),0)/SUM(① >0,0))*100;好底:FILTER(COUNT(D=B 线,3)>=2 AND D>B 线RCOLORBLUE,NODRAW; STICKLINE(好底,15,20,3,0),COLORBLUE;{抄底}MMM: = 1;SVOL:=INTPART(SUM(V Z0)/CAPITAL);TJO:=SVOL>REF(SVOL Z1) OR BARSSINCE(CLOSE)=0; Sl:=BARSLAST(TJ0)+l; TJJ2:=S1<REF(S1,1);S2:=IF(TJJ2,REF(S1,1)+1,S1);S3:=SUM(TJJ2,0);ZK1:=H KD.K#WEEK,,(9,3,3);ZD2:=l,KD.D#WEEK,,(9z3/3);ZF1:』MACD・DIF#WEEK”(12,26,9);ZA2:=n MACD.DEA#WEEK n(12z26z9);换手:=V/CAPITAL*100,LINETHICK0;JCD:=CROSS(ZK1,ZD2) AND REF(ZD2,l)<30;抄底:EXIST(JCD,MMM),COLORCYAN,NODRAW;STICKLINE(抄底,20,25,3,0),COLORCYAN;{只做牛市}HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11: = HR *HRY;HRY33:=SQRT(HRY11);WLT1:=EMA(C,3);WLT2:=EMA(C Z5);WLT3:=EMA(WLT2,5);HP:=(HHV(CLOSE,10)-LLV(CLOSE,10))/CLOSE<0.10; LB:=V0L/MA(V0L,5);Xl:=(C+L+H)/3;BB5:=ATAN(EMA(X1Z7)-REF(EMA(X1,7),1))*3.1416*10; EMA3:=EMA(C,3);TT:=FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1Z7),1)Z1O);MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)<REF(WLT1,2);GG1:=CROSS(WLT1Z WLT2);TYP:= (HIGH + LOW + CL0SE)/3; CCIl:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));差值1:=ABS(REF(CCI1Z1)<CI1),LINETHICKO; CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));差值2:=ABS(REF(CCI2Z1)-CCI2)丄INETHICKO;CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP z20));差值3:=ABS(REF(CCI3z l)-CCI3)z LINETHICK0;CCI4:=(TYP-MA(TYP z30))/(0.015*AVEDEV(TYP,30));差值4: = ABS(REF(CCI4,1)-CCI4)丄INETHICKO;CCI5:=(TYP-MA(TYP z60))/(0.015*AVEDEV(TYP,60));差值5:=ABS(REF(CCI5z l)<CI5),LINETHICK0;CCI:=(CCI1+CCI2+CCI3+CCI4+CCI5)/2,COLORRED 丄INETHICK2;WLT91:=HHV(CCI,13);WLT92:=LLV(CCI,13)<-100;WLT95: =COU NT(WLT92Z 13) >=3;WLT93:=CCI>WLT91;WLT96: =CROSS(CCI Z 100);TJ91:=WLT95 AND WLT96;JL P:=FILTER(TJ91,5);超买: = MA(C,1O)*IF(CAPITAL=O Z1.O4,1.1);超卖:=MA(C z10)*IF(CAPITAL=0z0.95z0.9);TEND:=EMA(((SLOPE(CLOSE Z21) * 20) + CLOSE),42);DD:=TEND>REF(TEND,1) AND REF(TEND,1) >REF(TEND,2);GG2:=CROSS(WLT1,TEND);HRY1: = LLV(LOW,55);HRY 2: = HHV(HIGH Z21);GG3:=C<HRY2*0・8 AND C>HRY33;JJ1:=C<HRY1*1.62;TJ1:=GG1;TJ2:=GG2 AND JJ1;TJ3:=GG1 ANDGG3;XG:=TJ1 0RTJ3 ;XG2:=CvHRY2*0・86 OR LB>1;XG1:=XG AND XG2 AND C>HRY33 AND JLP;XG3:=XG AND C<HHV(HIGH,250)*0・3;XG11:=XG1 OR XG3;W8:=XG11 OR XG1;GET: =ZIG(3z5),COLORFFFFFF;PL5:=ZIG(3,5);ENl:=ZIG(3,5)>REF(ZIG(3,5)z l) AND REF(ZIG(3’5),l)v=REF(ZIG(3’5),2)AND REF(ZIG(3z5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5), 1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5)z2)>=REF(ZIG(3,5)z3);PL10:=ZIG(3,10);EN2:=ZIG(3z10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10), 1)<=REF(ZIG(3,10)z2) AND REF(ZIG(3z10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3z10),l) AND REF(ZIG(3,10), 1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3z10)z3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),l) AND REF(ZIG(3,20), 1)<=REF(ZIG(3,20)z2) AND REF(ZIG(3z20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),l) AND REF(ZIG(3,20),l)>=REF(ZIG(3,20),2)AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强l:=BARSLAST(PL5vREF(PL5,l));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,l));走弱2:=BARSLAST(PL10>REF(PL10z l));走强3:=BARSLAST(PL20vREF(PL20,l));走弱3:=BARSLAST(PL20>REF(PL20,l));ZTJZ5:=IF(PL10>REF(PL10z l),COUNT(ENl z走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10z l),COUNT(ENl,走弱2),0);DTJD5:=IF(PL10<REF(PL10Z1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20z l),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20z l),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20Z1),COUNT(EX2,走弱3),0);WLT11:=EN1 AND DTJZ5=1;WLT22:=EN2 AND ZTJZ5=1;WLT33:=WLTU OR WLT22;WLT01:=EN2 AND DTJZ10=l;WLT02:=EN3 AND ZTJZ1O=1;WLT03:=WLT01 OR WLT02;WLT:=WLT33 AND WLT03;未来牛:W8 OR WLT,COLORLIMAGENTA,NODRAW;STICKLINE(未来牛,5,10,3z O),COLORLIMAGENTA;{雨青底}M5:=MA(CLOSE Z5);M4:=MA(CLOSE,4);MA3: = MA(CLOSE,3);VOL5:=MA(VOL,5);雨青底:M5>M4 AND SLOPE(M5Z5)<0 AND SLOPE(M4,4)<0 AND SLOPE(MA3,3) AND REF(M4>MA3Z1) AND CROSS(MA3Z M4) ANDVOL>VOL5,COLORRED,NODRAW;STICKLINE(雨青底,25,30/3,0),COLORRED;。

神准共振主图通达信指标公式源码

神准共振主图通达信指标公式源码

DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLOSTICK;DRAWICON(CROSS(DIF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIF),DEA,2);IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;DD:=C=HHV(C,180);EE:=DEA< RIF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;顶背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);} DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,9,3),COLORYELLOW;D:SMA(K,9,3),COLRWHITE;J:3*K-2*D,COLORMAGENTA;IF(J<D,J,DRAWNULL),COLORFFEE44;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A22+1)>C AED REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORWHITE;DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORFF00FF;{DJ:=CROSS(J,D) AND D<20;DRAWTEXT(DJ,J-0.3,'低金叉'),COLORCYAN;MDJ:=CROSS(DIF,DEA) AND DEA<0;DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORGREEN;DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLOYELLOW;DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORRED;}A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);DRAWICON(A,LOW*0.98,1);B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));。

通达信指标公式源码 漂亮实用的三合一副图指标

通达信指标公式源码 漂亮实用的三合一副图指标

RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRA W;趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW; VAR3:=(量能-趋势);VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);STICKLINE(VAR3>0,100,50,4,0),COLOR990099;STICKLINE(VAR3<0,0,50,4,0),COLOR008800;STICKLINE(VAR3>0,20,10,5,1),COLOR0000FF;STICKLINE(VAR3<0,100,90,10,1),COLOR00FF00;DRAWICON(CROSS(VAR44,VAR55) AND VAR55<30,2,1);DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF; DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振点>0,0,100,2,0),COLOR008888;STICKLINE(共振点>0,0,100,1.5,0),COLOR00AAAA;STICKLINE(共振点>0,0,100,0.8,0),COLOR00DDDD;STICKLINE(共振点>0,0,100,0.3,0),COLOR00FFFF;VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:20,COLORFF00FF,LINETHICK2;高死叉出:90,COLORBLUE,LINETHICK2;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINE THICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETH ICK2;条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),70,'止'),COLORRED;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),60,'跌'),COLORRED;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),65,'买'),COLORRED;DRAWTEXT(条件,20,'买点'),COLORRED;STICKLINE(条件,0,20,2,0),COLORRED;DRAWTEXT(条件0,85,'卖'),COLORBLUE;DRAWTEXT(CROSS(C1,75),70,'险区'),COLORGREEN;DRAWTEXT(TJ3,65,'安'),COLORRED;DRAWTEXT(TJ3,60,'买'),COLORRED;DRAWTEXT(TJ4,85,'逃顶'),COLORBLUE;STICKLINE(TJ4,100,80,2,0),COLORGREEN;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'财神到'),COLORRED;★遵守纪律★:100,COLORRED,NODRAW; ★交易之魂★:100,COLORRED,NODRAW;。

通达信指标公式源码 共振图指标 源码

通达信指标公式源码 共振图指标 源码

一般来说共振越多,概率越大,作为参考使用哦。

MA5:=EMA(C,5);VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:=EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2; VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:=IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;买1:=IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1 00,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1 00,5,1),3,1),10),38,0),COLORYELLOW,NODRAW;{买2}BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);乖离:=CROSS(BIAS,乖离1) AND 乖离1<-9;买2:=IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,NODRAW;{买3}TRJ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TRJ);辅助线:=((DMM * 100) / TRJ);动向趋势线:=(MA(((ABS((辅助线- 神偷线)) / (辅助线+ 神偷线)) * 100),3)); ADXR:=((动向趋势线+ REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);强弱:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);VAR31:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2, 1);VAR32:=8;CC3:=CROSS(VAR31,VAR32);买3:=( IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)) ANDCC3,COLORFF00FF,NODRAW;{买4}VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);V1:=(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));买4:=V1,COLORBLUE,NODRAW;{买5}FX1:=MA(CLOSE,1);FX2:=(LOW+HIGH+CLOSE)/3;FX3:= MA(FX2,5);FX4:=LLV(FX3,10);买5:=LLV((FX1<FX4),5);{买6}A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);MAI1:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); AR1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV (L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);MAI2:=CROSS(AR1,REF(AR1+0.01,1)) AND LLV(AR1,2)=LLV(AR1,8) ANDAR1<20;买6:=MAI1 AND MAI2;{买7}AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击选股:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 ANDREF(C,1)<AA30;买7:=IF(FILTER(MR,10),30,0),COLORYELLOW,NODRAW;{买8}LC8:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC8),0),5,1) / SMA(ABS((CLOSE - LC8)),5,1)) * 100);TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);HD8:=(HIGH - REF(HIGH,1));LD8:=(REF(LOW,1) - LOW);DMP8:=SUM(IF(((HD8 > 0) AND (HD8 > LD8)),HD8,0),10);DMM8:=SUM(IF(((LD8 > 0) AND (LD8 > HD8)),LD8,0),10);PDI8:=((DMP8 * 100) / TR1);MDI8:=((DMM8 * 100) / TR1);ADX:=MA(((ABS((MDI8 - PDI8)) / (MDI8 + PDI8)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));NEWVOL:=(RSI5 - WR10);最佳买入:=(AV + NEWVOL);最佳买入选股:=IF(CROSS(最佳买入,0),1,0),STICK,COLORRED;VARM1:=SMA(最佳买入选股,3,1);VARM2:=SMA(VARM1,3,1),COLOR0000FF;VARM3:=SMA(VARM2,3,1),COLOR00FFFF;买8:=IF(CROSS(VARM2,VARM3) AND(VARM2<40),5,0*10000),COLOR0000FF,NODRAW;{买9}AR1A:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LL V(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);短买:=CROSS(AR1A,REF(AR1A+0.01,1)) AND LLV(AR1A,2)=LLV(AR1A,8) AND AR1A<20,COLORCYAN,NODRAW;买9:=短买;XG11:=买1 AND 买2;XG12:=买1 AND 买3;XG13:=买1 AND 买4;XG14:=买1 AND 买5;XG15:=买2 AND 买3;XG16:=买2 AND 买4;XG17:=买2 AND 买5;XG18:=买3 AND 买4;XG19:=买3 AND 买5;XG110:=买4 AND 买5;XG1:买6,COLORRED,NODRAW;XG2:买9,COLORGREEN,NODRAW;XG3:买8=5,COLORMAGENTA,NODRAW;XG4:买7,COLORCYAN,NODRAW;XG5:XG11 OR XG12 OR XG13 OR XG14 OR XG15 OR XG16 OR XG17 OR XG18 OR XG19 OR XG110,COLORYELLOW,NODRAW;STICKLINE(XG1,0,15,2,0),COLORRED;STICKLINE(XG2,20,35,2,0),COLORGREEN;STICKLINE(XG3,40,55,2,0),COLORMAGENTA;STICKLINE(XG4,60,75,2,0),COLORCYAN;STICKLINE(XG5,80,95,2,0),COLORYELLOW;。

神准共振主图通达信指标公式源码

神准共振主图通达信指标公式源码

DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;DEA:EMA(DIF,9);MACD:(DIF-DEA)*2,COLOSTICK;DRAWICON(CROSS(DIF,DEA),DEA,1);DRAWICON(CROSS(DEA,DIF),DEA,2);IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;DD:=C=HHV(C,180);EE:=DEA< RIF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;顶背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;A2:=BARSLAST(REF(CROSS(DEA,DIF),1));{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);} DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,9,3),COLORYELLOW;D:SMA(K,9,3),COLRWHITE;J:3*K-2*D,COLORMAGENTA;IF(J<D,J,DRAWNULL),COLORFFEE44;A1:=BARSLAST(REF(CROSS(DIF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);A22:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A22+1)>C AED REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORWHITE;DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORFF00FF;{DJ:=CROSS(J,D) AND D<20;DRAWTEXT(DJ,J-0.3,'低金叉'),COLORCYAN;MDJ:=CROSS(DIF,DEA) AND DEA<0;DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORGREEN;DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLOYELLOW;DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORRED;}A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);DRAWICON(A,LOW*0.98,1);B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));。

通达信买点,共振,财神到三合一指标公式

通达信买点,共振,财神到三合一指标公式

25.通达信徐莨苹买卖指标公式 12439536A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);SHORT:=7; LONG:=19;RMA:=EMA(CLOSE,SHORT);NMA:=EMA(CLOSE,LONG);UP:DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NM A,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA ))+1),0);DOWN:DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS( RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,R MA))+1),0);徐莨苹买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);趋势区:=IF((EVERY(DOWN>=REF(DOWN,1),1)),4,2)COLOR0000FF,LINETHICK3;徐莨苹低买:IF(((CROSS(趋势区,2.1))),5,0),STICK,COLORRED,LINETHICK3;高卖:IF(((CROSS(3.9,趋势区))),-5,0),STICK,COLORFF9150,LINETHICK3;A7赋值:收盘价-昨收A8赋值:100*A7的6日指数移动平均的6日指数移动平均/A7的绝对值的6日指数移动平均的6日指数移动平均SHORT赋值:7LONG赋值:19RMA赋值:收盘价的SHORT日指数移动平均NMA赋值:收盘价的LONG日指数移动平均输出UP:当满足条件最低价=上次NMA上穿RMA距今天数+1日内最低价的最低值时,在上次NMA上穿RMA距今天数+1日内最低价的最低值位置画直线起点,当满足条件最高价=上次RMA上穿NMA距今天数+1日内最高价的最高值时,在上次RMA上穿NMA距今天数+1日内最高价的最高值位置画直线终点,0表示是否延长.输出DOWN:当满足条件最高价=上次RMA上穿NMA距今天数+1日内最高价的最高值时,在上次RMA上穿NMA距今天数+1日内最高价的最高值位置画直线起点,当满足条件最低价=上次NMA上穿RMA距今天数+1日内最低价的最低值时,在上次NMA上穿RMA距今天数+1日内最低价的最低值位置画直线终点,0表示是否延长.输出徐莨苹买进:(2日内A8的最低值=7日内A8的最低值 AND 统计2日中满足A8<0的天数 AND A8上穿A8的2日简单移动平均) AND 昨日DOWN<2日前的DOWN AND UP>昨日DOWN趋势区赋值:如果(最近1日一直存在DOWN>=昨日DOWN),返回4,否则返回2COLOR0000FF,LINETHICK3输出徐莨苹低买:如果((趋势区上穿2.1)),返回5,否则返回0,STICK,画红色,LINETHICK3输出高卖:如果((3.9上穿趋势区)),返回-5,否则返回0,STICK,COLORFF9150,LINETHICK3三合一指标公式10-06-28 股旁网分类:通达信公式标签: 买点共振RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW;趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW;VAR3:=(量能-趋势);VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);STICKLINE(VAR3>0,20,10,5,1),COLOR0000FF;STICKLINE(VAR3<0,100,90,10,1),COLOR00FF00;DRAWICON(CROSS(VAR44,VAR55) AND VAR55<30,2,1);DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF;DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振点>0,0,100,2,0),COLOR008888;STICKLINE(共振点>0,0,100,1.5,0),COLOR00AAAA;STICKLINE(共振点>0,0,100,0.8,0),COLOR00DDDD;STICKLINE(共振点>0,0,100,0.3,0),COLOR00FFFF;VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:20,COLORFF00FF,LINETHICK2;高死叉出:90,COLORBLUE,LINETHICK2;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINETHICK 2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETHICK2 ;条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;{股旁网-股票公式网站 }DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),70,'止'),COLORRED;{DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),60,'跌'),COLORRED;} DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR(REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),65,'买'),COLORRED;DRAWTEXT(条件,20,'买'),COLORRED;STICKLINE(条件,0,20,2,0),COLORRED;DRAWTEXT(条件0,85,'卖'),COLORBLUE;DRAWTEXT(CROSS(C1,75),70,'险区'),COLORGREEN;DRAWTEXT(TJ3,65,'安'),COLORRED;DRAWTEXT(TJ3,60,'买'),COLORRED;DRAWTEXT(TJ4,85,'逃顶'),COLORBLUE;STICKLINE(TJ4,100,80,2,0),COLORGREEN;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'财神到'),COLORRED;★遵守纪律★:100,COLORRED,NODRAW;★交易之魂★:100,COLORRED,NODRAW;通达信操盘密码机构专用10-06-02 股旁网分类:通达信公式标签: 操盘机构看均线,青色均线是操盘线,紫色均线是界点线,青线上穿紫线时买入。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

三周期KDJ线。

如果有两条线合拍共振,信号就相当可靠。

如果三条线共振的话,那就是果断行动的时候。

此指标适用于任何周期。

既可用于个股,也可用于大盘。

用于小周期(如30分、60分)的大盘,再结合系统自带的STIX指标,可以准确研判大盘跳水点。

不知以前是否有人发过类似的副图。

如有雷同,纯属巧合。

{
三周期KDJ共振。

仔细揣摩副图,注意三条线最一致的点,也是最可靠的判市点。

此指标可适用于大盘和个股,可以用于任意周期。

用于大盘的小周期(如30分、60分等)可以预先发现大盘跳水点。

N1:3 100 5;
N2 4 200 10;
N3 5 400 20;
}
RSV3:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
K3:SMA(RSV3,4,1),NODRAW;
D3:SMA(K3,4,1),NODRAW;
DRAWBAND(K3,RGB(255,255,0),D3,RGB(0,0,255));
RSV2:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;
K2:SMA(RSV2,3,1),NODRAW;
D2:SMA(K2,3,1),NODRAW;
DRAWBAND(K2,RGB(255,130,0),D2,RGB(0,150,50));
RSV1:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100; K1:SMA(RSV1,2,1),NODRAW;
D1:SMA(K1,2,1),NODRAW;
DRAWBAND(K1,RGB(255,0,0),D1,RGB(0,255,255));。

相关文档
最新文档