1、自用经典股票指标320、指标背离(通达信附图MACD、KDJ、RSI顶底背离指标公式。)DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA),COLORSTICK;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1);B1:=REF(C,A1+1)C AND REF(DIFF,A1+1)C AND REF(KDJ.K(9,3,3),A2+1)C AND REF(RSI.RSI1(6,12,24),A3+1)RSI.RSI1(6,12,24) AND CROSS(RSI.RSI1(6,12,24
2、),RSI.RSI2(6,12,24);C1:=BARSLAST(REF(CROSS(DEA,DIFF),1);D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF);C2:=BARSLAST(REF(CROSS(KDJ.D(9,3,3),KDJ.K(9,3,3),1);D2:=REF(C,C2+1)KDJ.K(9,3,3) AND CROSS(KDJ.D(9,3,3),KDJ.K(9,3,3);C3:=BARSLAST(REF(CROSS(RSI.RSI2(6,12,24),RSI.RSI1(6,12,24),1);D3:=REF(C,C3+1)RSI.RSI1(6,
3、12,24) AND CROSS(RSI.RSI2(6,12,24),RSI.RSI1(6,12,24);MACD底背:IF(B10,-0.1,0),COLORRED,POINTDOT;KDJ底背:IF(B20,-0.1,0),COLORFF00FF,POINTDOT;RSI底背:IF(B30,-0.1,0),COLORYELLOW,POINTDOT;MACD顶背:IF(D10,0.1,0),COLOR00FF00,POINTDOT;KDJ顶背:IF(D20,0.1,0),COLORFFCC66,POINTDOT;RSI顶背:IF(D30,0.1,0),COLORWHITE,POINTDOT;
4、STICKLINE(B10,-0.1,0.6,6,0),COLORRED;STICKLINE(B20,-0.1,0.4,5,0),COLORFF00FF;STICKLINE(B30,-0.1,0.2,2,0),COLORYELLOW;STICKLINE(D10,0.1,0.6,6,1),COLOR00FF00;STICKLINE(D20,0.1,0.5,4,1),COLORFFCC66;STICKLINE(D30,0.1,0.4,2,1),COLORWHITE;DRAWICON(CROSS(DIFF,DEA),DEA,1);21、弯弓射箭通达信附图指标MA1:=MA(C,5);MA2:=MA(
5、C,10);MA3:=MA(C,20);MA4:=MA(C,40);MA5:=MA(C,60);MA6:=MA(C,30);M1:=5;M2:=10;M3:=20;M4:=60;M5:=40;P:=VOL;VOLUME:=VOL;量比:=VOL/REF(MA(VOL,5),1)COLORGREEN;LONG:=26;SHORT:=12;M:=9;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);WW:=DEAREF(DEA,1);DD:=CROSS(DIFF,REF(DIFF,1);TT:=WW AN
6、D DD; 底部金叉:=CROSS(DIFF,DEA) AND DIFF0 AND DEA2;反身向上:=WW AND DD AND 量比2,COLORFF00FF,LINETHICK2;空中加油:=IF(DIFF0 AND DEA0 AND CROSS(DIFF,DEA) AND LAST(DIFFREF(MACD,1) AND DIFFREF(DIFF,1) AND 量比1.8 ,0.8,0)COLORRED,LINETHICK2;MACD1:=MACD+100;OZ:=COUNT(CROSS(DIFF,DEA) AND DIFF0,BARSLAST(CROSS(DIFF,DEA) AND
7、 DIFF0);零上二金叉:=IF(CROSS(DIFF,DEA) AND OZ=1,44444,0)COLORFFFF00,LINETHICK4;价金叉:=IF(CROSS(MA1,MA2*0.995),33,0)COLORGREEN,LINETHICK3;量金叉:=IF(CROSS(MA(P,M1),MA(P,M2),22,0)COLORFF33CC,LINETHICK3;MACD金叉:=IF(CROSS(DIFF,DEA) AND DIFFMA(P,M2) AND CMA2 AND MA1MA2*0.995 AND MACDREF(MACD,1) AND MACDREF(MACD,2)
8、AND MACD0 AND DIFF0.3,48,0)COLORRED,LINETHICK5;GOL:=(REF(三金叉见底,11) OR REF(三金叉见底,12)OR REF(三金叉见底,13) OR REF(三金叉见底,14)OR REF(三金叉见底,15) OR REF(三金叉见底,16)OR REF(三金叉见底,17) OR REF(三金叉见底,18)OR REF(三金叉见底,19) OR REF(三金叉见底,20)OR REF(三金叉见底,21) OR REF(三金叉见底,22)OR REF(三金叉见底,23) OR REF(三金叉见底,24)OR REF(三金叉见底,25) OR
9、 REF(三金叉见底,26)AND (三金叉见底 OR 空中加油 OR REF(空中加油,1)OR 零上二金叉 OR 反身向上 OR REF(反身向上,1) OR 底部金叉);弯弓射箭:IF(GOL AND MA1MA5*1.033 AND MA2MA1 AND CMA2 AND MA1MA2*0.99AND DIFFREF(DEA,10) OR DEAREF(DEA,11)OR DEAREF(DEA,13) OR DEAREF(DEA,12)OR DEAREF(DEA,14) OR DEAREF(DEA,15)OR DEAREF(DEA,16) OR DEAREF(DEA,17)OR DEA
10、REF(DEA,18) OR DEAREF(DEA,19)OR DEAREF(DEA,20) OR DEAREF(DEA,21)OR DEAREF(DEA,22) OR DEAREF(DEA,23)OR DEAREF(DEA,25),78,0)COLORYELLOW,LINETHICK5;“弯弓射箭”公式注解:“三金叉见底”:即:5日均线金叉了10日均线,MACD出现金叉, 5日成交量均线金叉10日成交量均线了。当股价远离60日线时,如果出现此信号一般就接近底部了,就会出现一轮反弹。如果在前期下跌时是缩量的,反弹时又是连续放量,就很容易出现“反转”。如果反弹时没有明显的放量(至少超过前期下跌的
11、成交量),一般就会受阻于20日线(或者受阻于60日线)从而出现二次探底。“弯弓射箭”:在股价出现“三金叉见底”以后,股价出现了一波反弹,由于成交量没有剧烈放大,也就没有出现“反转”。出现了“二次探底”。这是有以下几种情况:1,“二次探底”(或者叫“回调”)并没有跌破前期底部,股价又出现了“三金叉见底”或者“MACD底部二金叉”。2,“二次探底”股价跌破了前期底部了,但是MACD死叉后没有低于前期底部就有一次金叉了(这叫MACD背离)。3,“二次探底”后的回落较小,MACD出现“零下反身向上”。4,“二次探底”后的回落很小,MACD出现“空中加油”或者“零上二金叉”。要点:1,出现“弯弓射箭”时
12、,MACD高于前期“三金叉见底”的MACD金叉时。2,突破60日线时成交量连续放大。3,前期跌幅越大,反弹成交量愈大,反弹高度越高!4,阻力在60日线和前期高点!这样就出现了放牛郎所谓的“弯弓射箭”(或者说W底部形成)了。如下图举例所示:上证指数(2009年10月中旬)22、逃顶王(通达信附图有未来)Vv1:=DMA(HIGH-open+close+ LOW) + (CLOSE * 1.01) / 26),0.9);HY1:=REF(EMA(Vv1,136),22);实时线:=MA(CLOSE+open,135);卖:=CROSS(HY1,CLOSE);BMA0:=SMA(MAX(CLOSE-
13、REF(CLOSE,21)+open,0),1,6);BMA1:=SMA(ABS(CLOSE-REF(CLOSE,2),1,6);BMA2:= BMA0/BMA1*100;小顶:(BMA2 REF(BMA2,1) and REF(BMA2,1)70);LC:=REF(CLOSE,1);RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;R:=(CLOSE-LLV(LOW,9)/(HHV(HIGH,9)-LLV(LOW,9)*100;A:=SMA(R,3,1);B:=SMA(A,3,1);CCcC:=(B/2+40)*1.1;D:=
14、SMA(CcCC,3,1);逃顶1:=CROSS(D,RSI5);逃顶2:=CROSS(80,RSI5);全卖:逃顶1 and 逃顶2;k1:=(close-llv(low,80)/(hhv(high,80)-llv(low,80)*200;k2:=sma(k1,3,1);k3:=sma(k2,3,1);k4:=3*k2-2*k3;k5:=llv(low,5);k6:=hhv(high,5);k7:=ema(close-k5)/(k6-k5)*100,4)*2;k8:=ema(0.667*ref(k7,1)+0.333*k7,2);k9:=3*k7-2*k8;ka:=pow(ma(close,
15、5),2)+ma(close,5);kb:=pow(ma(low,5),2)+ma(low,5);kc:=pow(ma(high,5),2)+ma(high,5);kd:=(ka-llv(kb,64)/(hhv(kc,64)-llv(kb,64)*150+65-10;ke:=sma(kd,3,1)*1.5-100;kf:=sma(ke,3,1);k10:=3*ke-2*kf;k11:=(high+low+close*2)/4;k12:=ema(k11,13);k13:=std(k11,13);k14:=(k11-k12)*100/k13;k15:=ema(k14,5);k16:=ema(k15
16、,13);k17:=ema(k15,13)+200-100;k18:=ema(k17,10);k19:=3*k17-2*k18;k1a:=k2+k7+ke+k17;k1b:=k3+k8+kf+k18;k1c:=k4+k9+k10+k19;k1d:=(high+low+close)/3;k1e:=amount/vol/100;k1f:=sum(amount,5)/sum(vol,5)/100;k20:=(k1d-ma(k1d,34)/(0.015*avedev(k1d,34);k21:=dma(amount/vol/100,vol/capital);k22:=(high+low+close+k1
17、d)/4;k23:=ema(k22,24);k24:=std(k22,24);k25:=(k22-k23)/k24*100;k26:=(k1d-ma(k1d,24)/(0.015*avedev(k1d,24);k27:=ema(k25,5);k28:=(k1e-ma(k1e,21)/(0.015*avedev(k1e,21);k29:=(k1f-ma(k1f,90)/(0.015*avedev(k1f,90);k2a:=(k27+k26+k20)/3+165)/4;k2c:=(k1a+k1b+k1c*30)/32/5-15;k2e:=(k2a+k2c)/2/1.1;dxm:= k2e;短a:=
18、ema(dxm,1);顶:=cross(100,短a) or cross(80,短a);坚决清仓: if(全卖 or 顶 or 小顶,85,0),coloryellow,linethick2;drawtext(filter(坚决清仓=85,5),80,坚决清仓),coloryellow;多方:7*SMA(CLOSE- LLV(LOW,27)/(HHV(HIGH,27)-LLV(LOW,27)*30,4,1)-3*SMA(SMA(CLOSE-LLV(LOW,27)/(HHV(HIGH,27)-LLV(LOW,27)*30,4,1),3,1)-SMA(SMA(SMA(CLOSE-LLV(LOW,2
19、7)/(HHV(HIGH,27)-LLV(LOW,27)*30,4,1),3,1),2,1);逃顶:=CROSS(79,多方);drawtext(逃顶,70,逃顶);23、短线高手!(大智慧通达信附图)VAR1:=1;Var2:=(2*CLOSE+HIGH+LOW)/4;Var3:=IF(YEAR=2099 AND MONTH2,0,1);Var4:=LLV(LOW,5);Var5:=HHV(HIGH,4);散户: EMA(Var2-Var4)/(Var5-Var4)*100,4)*Var3;庄家: EMA(0.667*REF(散户,1)+0.333*散户,2)*Var3;DRAWTEXT(C
20、ROSS(散户,庄家) AND 散户50 AND 2940 AND 71散户,50,短快出),COLOR00FFFF;DRAWTEXT(CROSS(散户,庄家) AND 散户70,75,逢高减),COLORFFFF33;DRAWICON(CROSS(散户,庄家) AND 散户70,80,2);Var9:=CLOSE-REF(CLOSE,5);VarA:=EMA(EMA(Var9,5),5)/EMA(EMA(ABS(Var9),5),5)*100;VarC:=EMA(EMA(Var9,20),20)/EMA(EMA(ABS(Var9),20),20)*100;卖出: IF(VarA0 AND C
21、ROSS(VarC,VarA),90,100);DRAWTEXT(VarA0 AND CROSS(VarC,VarA),90,中线逃吧!),COLOR0033FF;DRAWICON(卖出0,0,VAR6,3,0),COLORCYAN;STICKLINE(换手率=3 AND 换手率=7,VAR6, V1, 3,0) ,COLORGREEN;25、操盘密码(通达信、大智慧附图)CP1:HHV(HIGH,60);CP2:HHV(CLOSE,1),colorFFFFFF;底部支撑:LLV(LOW,60),color6666FF;VAR1:=(EMA(CLOSE,240) * 0.75);VAR1,LI
22、NETHICK3;铁底:VAR1;VAR2:=MA(CLOSE,5);VAR3:=MA(CLOSE,30);强势:DRAWTEXT(VAR2 VAR3),VAR3,);弱势:DRAWTEXT(VAR2 = VAR3),VAR3,);VAR4:=MA(CLOSE,20);VAR5:=MA(CLOSE,60);VAR6:=CROSS(VAR4,VAR5);DRAWICON(VAR6,(HIGH * 1.04),2);DRAWTEXT(VAR6,(HIGH * 1.06),卖出),colorFFFFFF;VAR7:=CROSS(VAR2,VAR3);DRAWICON(VAR7 AND (CLOSE
23、VAR1),(LOW - (LOW * 0.04),1);DRAWTEXT(VAR7 AND (CLOSE 0.08);DRAWTEXT(FILTER(VAR8,1),(LOW * 0.99),追);DRAWTEXT(CROSS(底部支撑,铁底),(LOW - (LOW * 0.02),小底);DRAWTEXT(MONTH = 7) AND (DAY = 28),(底部支撑 - (底部支撑 * 0.02),仿操盘密码3.0),colorFFFFFF;卖线:EMA(SLOPE(C,21)*20+C,42),coloryellow;26、决策操盘密码!(通达信主图)MA5:MA(CLOSE,5),
24、LINETHICK1,COLORFFFFFF;MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF;MA30:MA(CLOSE,30),LINETHICK1,COLORFF00FF;MA60:MA(CLOSE,60),LINETHICK1,COLOR0000FF;MA120:MA(CLOSE,120),LINETHICK1,COLORFFFF00;DRAWTEXT(CROSS(EMA(CLOSE,2),EMA(SLOPE(CLOSE,21)*20)+CLOSE),42),(LOW * 0.99), B ),LINETHICK3,COLORF00FF0;DRAWTEX
25、T(CROSS(EMA(SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2),(HIGH * 1.01), S ),LINETHICK3,COLORFFFFFF;STICKLINE(EMA(CLOSE,2) = EMA(SLOPE(CLOSE,21)*20)+CLOSE),42),LOW,HIGH,0.1,0),COLOR0000FF;STICKLINE(EMA(CLOSE,2) = EMA(SLOPE(CLOSE,21)*20)+CLOSE),42),CLOSE,OPEN,3,0),COLOR0000AA;STICKLINE(EMA(CLOSE,2) = E
26、MA(SLOPE(CLOSE,21)*20)+CLOSE),42),CLOSE,OPEN,2,0),COLOR0000CC;STICKLINE(EMA(CLOSE,2) EMA(SLOPE(CLOSE,21)*20)+CLOSE),42),CLOSE,OPEN,2,0),COLORCCCC00;STICKLINE(EMA(CLOSE,2) EMA(SLOPE(CLOSE,21)*20)+CLOSE),42),CLOSE,OPEN,3,0),COLORAAAA00;STICKLINE(EMA(CLOSE,2) EMA(SLOPE(CLOSE,21)*20)+CLOSE),42),LOW,HIGH,0.1,0),COLORFFFF00;STICKLINE(CROSS(EMA(CLOSE,2),EM
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1