通达信指标——新OBV(副图)

合集下载

通达信指标——买卖盘比(副图)

通达信指标——买卖盘比(副图)

{虚拟成交量}V AR1:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,V AR1,1 , 2 , 1 ) , COLORWHITE ; {彩色成交量柱线}VOLUME:VOL,VOLSTICK;{黄金地量}地量:=VOL< LLV(VOL,14)*1.001;STICKLINE(地量>0,0,V,2,0),COLORWHITE;{立桩成立}V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); T12:=V2>= 1;T0:=BARSLAST(T12);L1:=REF(L,T0);H1:=REF(H,T0);L11:=MIN(REF(L,1),L);L10:=MIN(L11,REF(L,2));L21:=MAX(REF(L,1),L);L20:=MAX(L21,REF(L,2));T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1) OR (L>H1));T11:=T111 AND REF(T111,1)=0;STICKLINE(V2>= 1,0,VOL,1.5,0),COLOR44FFFF;STICKLINE(T11,O,VOL,1.5,0),COLORLIRED;{牛年奔牛}V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(V AR2,3,1),3,1)/28.57;V AR4:=EMA(VAR3,5);V AR5:=3*VAR3-2*V AR4;牛:=CROSS(VAR5,V AR3) AND V AR3< 2.1 AND C> O;{逃顶提示}V ARA2:=LLV(LOW,10);V ARA3:=HHV(HIGH,25);动力线:= EMA((CLOSE-V ARA2)/(V ARA3-V ARA2)*4,4);{涨跌停}C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);{顶背离与底背离}LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);顶背离:=CROSS(88,RSI);底背离:=CROSS(FF,MA15);STICKLINE(牛,0,VOL,1,0),COLORRED;STICKLINE(动力线>=3.2,0,VOL,0.5,0),COLOR238E23;STICKLINE(涨停,V*0.8,VOL,4,0),COLORRED;STICKLINE(跌停,VOL*0.8,VOL,4,0),COLORBLUE;STICKLINE(顶背离,VOL*0.8,VOL,0.5,0),COLOR7F017F;STICKLINE(底背离,0,VOL*0.2,0.5,0),COLOR7F017F;STICKLINE(地量,0,V/3,6,0),COLOR003333;STICKLINE(地量,0,V/3,5,0),COLOR116666;STICKLINE(地量,0,V/3,4,0),COLOR229999;STICKLINE(地量,0,V/3,3,0),COLOR33CCCC;STICKLINE(地量,0,V/3,2,0),COLOR44FFFF;{买卖盘比}V AR0:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,V AR0*(HIGH-LOW),IF(CLOSE< OPEN,V AR0*((HIGH-OPEN) +(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;主动卖盘:=IF(CLOSE>OPEN,0-V AR0*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE< OPEN,0-V AR0*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;买卖盘比:-(主动买盘/主动卖盘),COLORYELLOW;换手率%: VOL/CAPITAL*100,COLORGREEN,NODRAW;{三线开花}【3】:MA(VOLUME,135),COLORBLUE,LINETHICK1;【2】:MA(VOLUME,35),COLORCY AN,LINETHICK1;【1】:MA(VOLUME,5),COLORWHITE,LINETHICK1;买入1:DRAWICON(CROSS(【1】,【2】),V*0.1,5);买入2:DRAWICON(CROSS(【1】,【3】),V*0.05,9);买入3:DRAWICON(CROSS(【2】,【3】),V*0.01,135);{抛物转向}抛物:MA((3*C+L+O+H)/6,3),,LINETHICK2,COLORBLUE;持币:IF((抛物< REF(抛物,1) OR C< REF(C,1)),抛物,DRAWNULL),LINETHICK2,COLORCYAN;持股:IF((抛物> REF(抛物,1) OR C> REF(C,1)),抛物,DRAWNULL),LINETHICK2,COLORRED;。

【股票指标公式下载】-【通达信】猎庄OBV(获利比例)

【股票指标公式下载】-【通达信】猎庄OBV(获利比例)

【通达信】猎庄OBV(获利比例)-指标公式源码十日换:SUM(VOL,10)/CAPITAL*100,COLOR999999,NODRAW;换手:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤日换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;获利比例:WINNER(CLOSE)*100,NODRAW;VA:=IF(CLOSE>O,VOL,IF(C<O,-VOL,IF(C<REF(C,1),-VOL,VOL))); OBVQ:=SUM(VA,0),NODRAW;MID : MA(OBVQ,30),COLORRED;UPPER: MID + 1*STD(OBVQ,20);LOWER: MID - 1*STD(OBVQ,20),COLOR00FFFF;STICKLINE(REF(OBVQ,1)>=OBVQ ,OBVQ ,REF(OBVQ,1),2,0 ),COLOR00CC00; STICKLINE(REF(OBVQ,1)>=OBVQ ,OBVQ ,REF(OBVQ,1),2,0 ),COLOR00DD00; STICKLINE(REF(OBVQ,1)>=OBVQ ,OBVQ ,REF(OBVQ,1),2,0 ),COLOR00EE00; STICKLINE(REF(OBVQ,1)>=OBVQ ,OBVQ ,REF(OBVQ,1),1,0 ),COLOR00FF00; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),0,0) ,COLORFFBBFF; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),2,0) ,COLORFF00FF; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),2,0) ,COLORFF22FF; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),2,0) ,COLORFF44FF; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),2,0) ,COLORFF66FF; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),2,0) ,COLORFF88FF; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),2,0) ,COLORFF99FF; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),2,0) ,COLORFFAAFF; STICKLINE(OBVQ>REF(OBVQ,1),OBVQ,REF(OBVQ,1),1,0) ,COLORFFBBFF;【通达信】猎庄OBV(获利比例)-指标公式效果图(文档来源:若水财经社区)。

最新OBV解盘指标通达信指标公式源码

最新OBV解盘指标通达信指标公式源码

最新OBV解盘指标VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),COLORAAAAAA;MAOBV:MA(OBV,15),COLOR000099;MAOBV2:MA(OBV,30),COLOR00AAAA;{箱顶:HHV( OBV,21),COLOR0000FF;箱底:LLV( OBV,21),COLOR00FF00;}UPPER:MAOBV+2*STD(OBV,30),COLORFFFF00,POINTDOT;LOWER:MAOBV-2*STD(OBV,30),COLORFF0000,POINTDOT;TT:=240/FROMOPEN;比:=TT;促进指数MFL:=(HIGH-LOW)*1000000/(VOL*比),COLORRED;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) +IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));ZGD3:=ZGD2;ZDD3:=ZDD2;ZGD4:=ZGD2;情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >=DSLX1)),1,0));情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0)); 情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0)); 情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >=DSLX1)),1,0));情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0)); 情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)); 情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0)); 情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));情况16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));大盘5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >=YYV2)),1,0));大盘6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0)); 大盘7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0)); 大盘8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0)); MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);MMM1:=CONST(绿灯);衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);MMM2:=CONST(衰退);伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);MMM3:=CONST(伪装);蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);MMM4:=CONST(蛰伏);TS1:=IF(情况1=1,0.06+0.06,0.06);TS2:=IF(情况2=1,TS1+0.18,TS1);TS3:=IF(情况3=1,TS2+0.18,TS2);TS4:=IF(情况4=1,TS3+0.18,TS3);TS5:=IF(情况5=1,TS4+0.18,TS4);TS6:=IF(情况6=1,TS5+0.18,TS5);TS7:=IF(情况7=1,TS6+0.18,TS6);TS8:=IF(情况8=1,TS7+0.18,TS7);TS9:=IF(情况9=1,TS8+0.18,TS8);TS10:=IF(情况10=1,TS9+0.18,TS9);TS11:=IF(情况11=1,TS10+0.18,TS10);TS12:=IF(情况12=1,TS11+0.18,TS11);TS13:=IF(情况13=1,TS12+0.18,TS12);TS14:=IF(情况14=1,TS13+0.18,TS13);TS15:=IF(情况15=1,TS14+0.18,TS14);TS16:=IF(情况16=1,TS15+0.18,TS15);TS17:=IF(大盘1=1,TS16+0.18,TS16);TS18:=IF(大盘2=1,TS17+0.18,TS17);TS19:=IF(大盘3=1,TS18+0.18,TS18);TS20:=IF(大盘4=1,TS19+0.18,TS19);TS21:=IF(大盘5=1,TS20+0.18,TS20);TS22:=IF(大盘6=1,TS21+0.18,TS21);TS23:=IF(大盘7=1,TS22+0.18,TS22);TS24:=IF(大盘8=1,TS23+0.18,TS23);TS25:=IF(MMM1=1,TS24+0.18,TS24);TS26:=IF(MMM2=1,TS25+0.18,TS25);TS27:=IF(MMM3=1,TS26+0.18,TS26);TS28:=IF(MMM4=1,TS27+0.18,TS27);DRAWTEXT_FIX(情况1=1 ,0.06,TS1,0,'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF;DRAWTEXT_FIX(情况2=1 ,0.06,TS2,0,'走势趋强量能不足,短线进场,仓位在1/2左右'),COLORFF00FF;DRAWTEXT_FIX(情况3=1 ,0.06,TS3,0,'量价良好,并没有明显走强,短线进场,仓位1/2左右。

通达信指标——绝对底部出击(副图)

通达信指标——绝对底部出击(副图)

A1:=EMA(CLOSE,12) - EMA(CLOSE,26);B1:=EMA(A1,9);C1:=A1-B1;中线强势区:STICKLINE(C1>0 AND A1>0,10*C1,0,4,10*C1),COLORRED;{中线强势中的强势} STICKLINE(C1>0 AND A1<0,10*C1,0,4,10*C1),COLORMAGENTA;{中线弱势中的强势}A2:=EMA(CLOSE,5)-EMA(CLOSE,13);B2:=EMA(A2,3);C2:=A2-B2;D2:=A1>0 AND C2>0;{中线处于强势中的调整,短线强势}E2:=A2>0 AND C1>0 AND C2>0;{中短线强势,短线处于强势中的强势}F2:=A1>REF(A1,1)AND A2>REF(A2,1)AND B1>REF(B1,1)AND B2>REF(B2,1);{四线同时向上}G2:=C1>0 AND C2>0;Z2:=D2 OR E2 OR F2 AND G2;V AR1A:=(H+L+2*C+2*O)/6;V AR2A:=HHV(V AR1A,10);V AR3A:=LLV(V AR1A,10);V AR4A:=V AR2A-V AR3A;快速:MA((V AR1A-V AR3A)/V AR4A,2),COLORRED;V AR5A:=HHV(V AR1A,23);V AR6A:=LLV(V AR1A,23);V AR7A:=V AR5A-V AR6A;慢速:MA((V AR1A-V AR6A)/V AR7A,2),COLORCY AN;短线关注区:STICKLINE(C2>0 AND A1-B1<0,10*C2,0,4,10*C2 ),COLORWHITE;短线操作区:STICKLINE(Z2,10*C2,0,4,0*C2 ),COLORGREEN;短线减仓区:STICKLINE(C2>0 AND A1>0 AND C2短线加速:STICKLINE(CROSS(A2,0),10*C2,0,4,10*C2),COLORFF9966;中线加速:STICKLINE(CROSS(A1,0),10*C1,0,4,10*C1),COLOR0099FF;{绝对底部出击}V AR1:=INDEXC;V AR2:=MA(V AR1,6);V AR3:=MA(V AR1,24);V AR4:=MA(V AR1,32);V AR5:=MA(V AR1,62);V AR6:=MA(V AR1,105);V AR7:=V AR5V AR8:=V AR4>VAR2*1.11 AND V AR3>VAR2*1.095;V AR9:=V AR2>VAR1*0.95;会员用:0;百发百中:V AR7 AND V AR8 AND V AR9 AND CLOSE/COST(8)<=0.8 AND(CLOSE>OPEN OR CLOSEREF(OPEN,1) ORREF(CLOSE,1)V AR1N:=MA(CLOSE,5),;V AR2N:=MA(CLOSE,10);V AR3N:=(V AR1N-CLOSE)/CLOSE>3/100;V AR4N:=(V AR2N-V AR1N)/V AR1N>0.03;V AR5N:=LLV(CLOSE,30)=LLV(CLOSE,120);底部:V AR3N AND V AR4N AND V AR5N,COLOR00FF00;绝对底部2:=COUNT(百发百中=1,5)=1 AND 底部,LINETHICK2,COLORRED;绝对底部:STICKLINE( FILTER(绝对底部2=1,5),0 ,1.5,5 , 0.8),COLORRED;底部出击:百发百中=1 AND 底部=1 ,COLORRED;COUNT(C/MA(C,48)<0.67,3) AND H>L*1.06 AND C/COST(8)<0.8;。

通达信2指标——选股指标B(副图)

通达信2指标——选股指标B(副图)

{天天涨停}T:=IF((BARSCOUNT(C) > 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);N:=IF((T > 0.35),6,65);W:=((-((100)*(HHV(H,N) - C))/(HHV(HIGH,N) - LLV(L,N))));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(CLOSEBB:=MA(SUM(J1-J2,22),3);修改1:=DYNAINFO(8)*240/FROMOPEN;修改2:=IF(CLOSE>QJ,修改1,0);修改3:=IF(CLOSE修改4:=MA(SUM(修改2-修改3,22),3);累加:=21*修改4+20*REF(BB,1)+19*REF(BB,2)+18*REF(BB,3)+17*REF(BB,4)+16*REF(BB,5)+15*REF(BB,6)+14*REF(BB,7)+13*REF(BB,8)+12*REF(BB,9)+11*REF(BB,10)+10*REF(BB,11)+9*REF(BB,12)+8*REF(BB,13)+7*REF(BB,14)+6*REF(BB,15)+5*REF(BB,16)+4*REF(BB,17)+3*REF(BB,18)+2*REF(BB,19)+REF(BB,20);WMA:=累加/(21+1)/21*2;CC:=WMA;V AR3:=(BB-CC);VAR4:=SMA(RV,3,1);V AR5:=SMA(V AR4,3,1);KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:=SMA(KK,3,1),COLOR00FFFF;天天涨停:CROSS(W,-2) AND CROSS(VAR4,V AR5) AND CROSS(KK,DD);======================================================{超跌+主升}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;M3:=MA(C,3);M10:=MA(C,10);M55:=MA(C,55);M89:=MA(C,89);RSV:=(CLOSE-LLV(LOW,196))/(HHV(HIGH,196)-LLV(LOW,196))*100;快线:=SMA(RSV,30,1);慢线:=SMA(快线,15,1);RSV1:=(CLOSE-LLV(LOW,23))/(HHV(HIGH,23)-LLV(LOW,23))*100;参照快线:=SMA(RSV1,6,1),COLORRED;参照慢线:=SMA(参照快线,3,1),COLORFFFFFF;TJ1:=CROSS(快线,慢线) AND 快线<50;TJ2:=FILTER(CROSS(参照快线,参照慢线) AND 快线<50 AND M55>=REF(M55,1)AND 参照快线<50,5);TJ3:=CROSS(参照快线,10) AND 参照快线<20;XG:TJ1 OR TJ2 OR TJ3;======================================================{5日选股}MA5:=MA(C,5);MA10:=MA(C,10);AA:=FILTER(CROSS(MA5,MA10),8);XG:AA;======================================================{大牛}MA89:=MA(C,89);MA55:=MA(C,55);MA13:=MA(C,13);TJ1:=CROSS(MA13,MA55);TJ2:=CROSS(MA55,MA89);XG :TJ1 OR TJ2;======================================================{转强}N1:=5;N2:=10;N3:=20;N4:=30;P:=2;MA1:=EMA(CLOSE,N1);MA2:=EMA(CLOSE,N2);MA3:=EMA(CLOSE,N3);MA4:=EMA(CLOSE,N4);TJ1:=CROSS(MA1,MA2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA1,MA4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA2,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA1,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018; TJ2:=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/MIN(MA1,MIN(MA2,MA3))*100<=P;XG:=TJ1 AND TJ2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD:=2*(DIFF-DEA);ZQ:=MACD<0 AND K>D AND V>1;XG2:=FILTER(ZQ,8);W18:XG OR XG2;====================================================== {起底}V AR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2:=SMA(V AR1,9,1)+100;V AR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1)+100;V AR6:=V AR5-V AR2;趋势:=IF(VAR6>45,V AR6-45,0);XG:FILTER(REF(趋势,1)< 趋势AND REF(趋势,1)<1,5);====================================================== {DDE强势}JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=QJ0*(MIN(OPEN,CLOSE)-LOW);QJ2:=QJ0*(JJ-MIN(CLOSE,OPEN));QJ3:=QJ0*(HIGH-MAX(OPEN,CLOSE));QJ4:=QJ0*(MAX(CLOSE,OPEN)-JJ);DDX:=IF(HIGH=LOW,4*QJ0,((QJ1+QJ2)-(QJ3+QJ4)))/SUM(VOL,10)*100; DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;DDZ:=((QJ1+QJ2)-(QJ3+QJ4))/((QJ1+QJ2)+(QJ3+QJ4))*100*17;预警:DDX>2 AND DDZ>100 AND DDY>3 AND VOL/CAPITAL*100>3;====================================================== {起筹}{N-9;M1-9;M2-3;P-9;}V AR2:=REF(LOW,1);V AR3:=SMA(ABS(LOW-V AR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100; V AR4:=EMA(IF(CLOSE*1.3,V AR3*10,V AR3/10),3);V AR5:=LLV(LOW,13);V AR6:=HHV(V AR4,13);V AR7:=IF(MA(CLOSE,34),1,0);V AR8:=EMA(IF(LOW<=V AR5,(V AR4+V AR6*2)/2,0),3)/618*V AR7;V AR9:=IF(VAR8>100,100,V AR8);吸筹:=V AR9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA(快线,M1,1);TJ1:=吸筹>0.01;TJ2:=CROSS(快线,慢线) AND 慢线<50;BUY:FILTER(TJ1 AND TJ2,5);======================================================{底背离}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;DIF底:=LLV(DIF,120);最底价:=L=LLV(L,120);距今:=BARSLAST(最底价);偏离:=IF((距今=0 AND DIF>DIF底),1,0);DDD:=EXIST(偏离,20) AND SLOPE(DEA,2)>=0;HRY:=FILTER(DDD,10);TJ1:=HRY;A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("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));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,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));KDJ底背:=FILTER(IF(B2>0,-1,0),13);TJ2:=KDJ底背;RSI底背:=FILTER(IF(B3>0,-1,0),13);TJ3:=RSI底背;XG:TJ1 OR TJ2 OR TJ3;======================================================{共振}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量能:=IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3));趋势:=IF(CAPITAL<1,EMA(量能,360),EMA(量能,21));V AR3:=(量能-趋势);V AR44:=SMA(RV,3,1);V AR55:=SMA(VAR44,3,1);KK:=EMA(SMA(RG,3,1),2);DD:=SMA(KK,3,1);共振点:=(CROSS(V AR44,V AR55) AND CROSS(KK,DD));XG:共振点;======================================================{快赢}T:=(CLOSE*4.0+LOW*1.0+HIGH*1.0)/6;SL:=(T/REF(T,1)-1)*1000;快短势:=XMA(XMA(XMA(SL,3),3),3);慢短势:=XMA(XMA(XMA(XMA(XMA(SL,5),5),5),5),5);X:=XMA(XMA(XMA(SL,3),3),3)-XMA(XMA(XMA(XMA(XMA(SL,5),5),5),5),5); 增速1:=X;Y:=X,COLOR00FFFF;{增速2:Y,COLORSTICK;}中势:=XMA(XMA(XMA(SL,13),13),13),LINETHICK1,COLORFF00FF;短势:=XMA(XMA(XMA(SL,9),9),9),LINETHICK1,COLOR00FF00;长势:=XMA(XMA(XMA(SL,72),72),72),LINETHICK1,COLORRED;分界:=0,COLORWHITE,LINETHICK2;TJ1:=CROSS(短势,0);TJ2:=CROSS(短势,长势);TJ3:=CROSS(Y,0);TJ4:=CROSS(短势,中势);XG:TJ1 OR TJ2 OR TJ3 OR TJ4;======================================================{红三兵N-3}AA:=EVERY(C>O,N);BB:=EVERY(C>REF(C,1),N);CC:=EVERY(C/REF(C,1)<1.03,N);TJ1:=AA AND BB AND CC;V AR0:=REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5);V AR1:=V AR0/5;LB:=V/V AR1;TJ2:=LB>1.3;XG:TJ1 AND TJ2;======================================================{股道共振}FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);TYP:= (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*A VEDEV(TYP,5));差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;CCI2:=(TYP-MA(TYP,10))/(0.015*A VEDEV(TYP,10));差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;CCI3:=(TYP-MA(TYP,20))/(0.015*A VEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;CCI4:=(TYP-MA(TYP,30))/(0.015*A VEDEV(TYP,30));差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;CCI5:=(TYP-MA(TYP,60))/(0.015*A VEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAA:=(3*C+H+L+O)/6;V AR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;V AR2:=(HHV(V AR1,5)+HHV(VAR1,10)+HHV(V AR1,20))/3;V AR3:=(LLV(V AR1,5)+LLV(V AR1,10)+LLV(VAR1,20))/3;V AR4:=(HHV(V AR2,5)+HHV(V AR2,10)+HHV(V AR2,20))/3;V AR5:=(LLV(V AR3,5)+LLV(V AR3,10)+LLV(VAR3,20))/3;V AR6:=(LLV(V AR1,2)+LLV(V AR1,4)+LLV(V AR1,6))/3;短线:=V AR1;中线:=V AR6;下跌:=IF(VAR1=V AR6,V AR6, DRAWNULL);TJ1:=CCI1>差值4;立桩量:=FILTER(TJ1,0);TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);成立1:=TJ2=1;条件成立1:=FILTER(成立1,5);TJ011:= CCI1<-差值4 ;立桩量2:=FILTER(TJ011,0);TJ022:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量2)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量2)=3 AND CLOSE>REF(HIGH,3),1,0)));TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);成立2:=TJ=1;条件成立2:=FILTER(成立2,5);TJ111:=(ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5))OR (VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>V AR1);立桩量3:=FILTER(TJ111,5);TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0))); 成立:=TJ3=1;条件成立:=FILTER(成立,5);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;V AR01:=CLOSE=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) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}V AR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}V AR03:=CLOSE=LLV(C,4) AND (REF(C,1)REF(C,1)=LLV(C,4) AND CREF(C,1)=HHV(C,4) AND CC{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}V AR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}V AR05:=REF(C,1)=HHV(C,4) AND CREF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) ANDREF(C,2)>=REF(C,4) AND C{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}V AR06:=V5>REF(V5,1) AND REF(V5,1){今日V5向上形成拐点}V AR07:=LOWHHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;V AR08:=V AR07 AND COUNT(V AR06,2);V AR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);V AR10:=EMA(MA(C,13),13);V AR11:=FILTER((LLV(V AR09,2)=LLV(V AR09,7) AND COUNT(V AR09<0,2) AND CROSS(VAR09,MA(V AR09,2)))=1,5);V AR12:=FILTER((HHV(V AR09,2)=HHV(V AR09,7) AND COUNT(V AR09>50,2) AND CROSS(MA(VAR09,2),V AR09))=1,1);V AR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;V AR14:=FILTER(((CROSS(V AR13,0) OR CROSS(C,V AR10)) AND V AR11)=1,3);V AR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));V AR16:=V AR08 AND NOT(REF(VAR08,1));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(V AR14 OR V AR15) AND V AR11;买2:=(V AR14 OR V AR15) AND V AR04;买3:=(V AR14 OR V AR15) AND V AR02;买4:=(V AR02 AND V AR11) OR (V AR04 AND V AR11);买5:=(金叉AND V AR04) OR (金叉AND V AR02) OR (金叉AND V AR11);TTJ0:=V AR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;TTJ3:=条件成立AND 下跌!= V AR6;XG3:=TTJ0 AND TTJ3;XG11:=XG0 OR XG1 OR XG3;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10DTJD5:=IF(PL10ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20DTJD10:=IF(PL20TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;XG:=XG11 AND XG22;W18:EXIST(XG,1);======================================================{底弹升}TEND:=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);TJ0:=IF(TEND<=10,12,0);V AR1:=HHV(HIGH,9)-LLV(LOW,9);V AR2:=HHV(HIGH,9)-CLOSE;V AR3:=CLOSE-LLV(LOW,9);V AR4:=V AR2/VAR1*100-70;V AR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));V AR6:=(2*CLOSE+HIGH+LOW)/4;V AR7:=SMA(V AR3/V AR1*100,3,1);V AR8:=LLV(LOW,34);V AR9:=SMA(V AR7,3,1)-SMA(V AR4,9,1);V AR10:=IF(VAR9>100,V AR9-100,0);V AR11:=HHV(HIGH,34);V AR12:=EMA((V AR6-V AR8)/(V AR11-V AR8)*100,13);V AR13:=EMA(0.667*REF(V AR12,1)+0.333*V AR12,2);A1:=HHV(HIGH,50)/LLV(LOW,100)>1.5;A2:=(HHV(HIGH,50)-LOW)/(HHV(HIGH,50)-LLV(LOW,100));A3:=(LOW-LLV(LOW,100))/(HHV(HIGH,50)-LLV(LOW,100));A4:=HHVBARS(HIGH,50)A5:=A1 AND A2>0.5 AND A3>0.3 AND A4;A6:=COUNT(A5,20)=1;TJ1:=A6 AND A5;V AR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)); MW:= EMA(V AR2W,3);V AR3W:=EMA(V AR2W,7);M1:= EMA(V AR3W,5);MB1:=CROSS(MW,M1) AND M1<20;TJ2:=IF((MB1),20,0);XG:=TJ0 AND TJ2;TJ3:=CROSS(TEND,V AR12) AND V AR12<60;W188: TJ1 OR XG OR TJ3;====================================================== {好机会}N:=14;N1:=36;G:=15;Z:=5;ROC:=100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12);MAROC:=MA(ROC,6);变动速率:=ROC/MAROC*Z;P:=(HIGH+LOW+CLOSE)/3;CCI1:=(P-MA(P,N))*1000/(G*A VEDEV(P,N));CCI2:=(P-MA(P,N1))*1000/(G*A VEDEV(P,N1));B1:=BARSLAST(CCI1=LLV(CCI1,60));DD:=CREF(CCI1,B1);机会难得:=CROSS(CCI1,CCI2) AND REF(CCI1,1)=LLV(CCI1,70); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);KD:=CROSS(K,D);XG:机会难得AND KD;====================================================== {股神M1-55}HR:=HHV(HIGH,M1);HRY:=LLV(LOW,M1);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD:=2*(DIFF-DEA);做多:=K>D AND MACD>0 AND V>1;TEND:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42);WLT1:=EMA(C,3);WLT2:=EMA(C,5);WLT3:=EMA(WLT2,5);QQ:= CMM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)MM0:=WLT1REF(WLT1,2) ;WL:=CROSS(WLT1,WLT2);WL1:=CROSS(WLT2,WLT1);WL2:=CROSS(WLT1,TEND);WL3:=LLV(LOW,55);WL6:=HHV(HIGH,21);WL8:=LLV(LOW,21);XG:=WL2 AND C>TEND AND C2;W18:EXIST(XG,1);======================================================{五里2号}{双信号"全仓"选股原码}FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;V AR01:=CLOSE=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) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}V AR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}V AR03:=CLOSE=LLV(C,4) AND (REF(C,1)REF(C,1)=LLV(C,4) AND CREF(C,1)=HHV(C,4) AND CC{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}V AR04:=REF(C,1)=LLV(C,4) 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);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}V AR05:=REF(C,1)=HHV(C,4) AND CREF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}V AR06:=V5>REF(V5,1) AND REF(V5,1){今日V5向上形成拐点}V AR07:=LOWHHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;V AR08:=V AR07 AND COUNT(V AR06,2);V AR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);V AR10:=EMA(MA(C,13),13);V AR11:=FILTER((LLV(V AR09,2)=LLV(V AR09,7) AND COUNT(V AR09<0,2) AND CROSS(VAR09,MA(V AR09,2)))=1,5);V AR12:=FILTER((HHV(V AR09,2)=HHV(V AR09,7) AND COUNT(V AR09>50,2) AND CROSS(MA(VAR09,2),V AR09))=1,1);V AR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;V AR14:=FILTER(((CROSS(V AR13,0) OR CROSS(C,V AR10)) AND V AR11)=1,3);V AR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));V AR16:=V AR08 AND NOT(REF(VAR08,1));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(V AR14 OR V AR15) AND V AR11;买2:=(V AR14 OR V AR15) AND V AR04;买3:=(V AR14 OR V AR15) AND V AR02;买4:=(V AR02 AND V AR11) OR (V AR04 AND V AR11);买5:=(金叉AND V AR04) OR (金叉AND V AR02) OR (金叉AND V AR11);TTJ0:=V AR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG11:XG0 OR XG1;======================================================{股道}FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);TYP:= (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*A VEDEV(TYP,5));差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;CCI2:=(TYP-MA(TYP,10))/(0.015*A VEDEV(TYP,10));差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;CCI3:=(TYP-MA(TYP,20))/(0.015*A VEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;CCI4:=(TYP-MA(TYP,30))/(0.015*A VEDEV(TYP,30));差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;CCI5:=(TYP-MA(TYP,60))/(0.015*A VEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;AAA:=(3*C+H+L+O)/6;V AR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;V AR2:=(HHV(V AR1,5)+HHV(VAR1,10)+HHV(V AR1,20))/3;V AR3:=(LLV(V AR1,5)+LLV(V AR1,10)+LLV(V AR1,20))/3;V AR4:=(HHV(V AR2,5)+HHV(VAR2,10)+HHV(V AR2,20))/3;V AR5:=(LLV(V AR3,5)+LLV(V AR3,10)+LLV(VAR3,20))/3;V AR6:=(LLV(V AR1,2)+LLV(V AR1,4)+LLV(V AR1,6))/3;短线:=V AR1;中线:=V AR6;下跌:=IF(VAR1=V AR6,V AR6, DRAWNULL);TJ1:=CCI1>差值4;立桩量:=FILTER(TJ1,0);TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);成立1:=TJ2=1;条件成立1:=FILTER(成立1,5);TJ011:= CCI1<-差值4 ;立桩量2:=FILTER(TJ011,0);TJ022:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量2)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量2)=3 AND CLOSE>REF(HIGH,3),1,0)));TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);成立2:=TJ=1;条件成立2:=FILTER(成立2,5);TJ111:=(ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5))OR (VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>V AR1);立桩量3:=FILTER(TJ111,5);TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0))); 成立:=TJ3=1;条件成立:=FILTER(成立,5);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;V AR01:=CLOSE=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) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}V AR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}V AR03:=CLOSE=LLV(C,4) AND (REF(C,1)REF(C,1)=LLV(C,4) AND CREF(C,1)=HHV(C,4) AND CC{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}V AR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}V AR05:=REF(C,1)=HHV(C,4) AND CREF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) ANDREF(C,2)>=REF(C,4) AND C{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}V AR06:=V5>REF(V5,1) AND REF(V5,1){今日V5向上形成拐点}V AR07:=LOWHHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;V AR08:=V AR07 AND COUNT(V AR06,2);V AR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);V AR10:=EMA(MA(C,13),13);V AR11:=FILTER((LLV(V AR09,2)=LLV(V AR09,7) AND COUNT(V AR09<0,2) AND CROSS(VAR09,MA(V AR09,2)))=1,5);V AR12:=FILTER((HHV(V AR09,2)=HHV(V AR09,7) AND COUNT(V AR09>50,2) AND CROSS(MA(VAR09,2),V AR09))=1,1);V AR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;V AR14:=FILTER(((CROSS(V AR13,0) OR CROSS(C,V AR10)) AND V AR11)=1,3);V AR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));V AR16:=V AR08 AND NOT(REF(VAR08,1));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(V AR14 OR V AR15) AND V AR11;买2:=(V AR14 OR V AR15) AND V AR04;买3:=(V AR14 OR V AR15) AND V AR02;买4:=(V AR02 AND V AR11) OR (V AR04 AND V AR11);买5:=(金叉AND V AR04) OR (金叉AND V AR02) OR (金叉AND V AR11);TTJ0:=V AR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;TTJ3:=条件成立AND 下跌!= V AR6;XG3:=TTJ0 AND TTJ3;XG11:=XG0 OR XG1 OR XG3;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10DTJD5:=IF(PL10ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20DTJD10:=IF(PL20TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;XG:=XG11 OR XG22;W18:EXIST(XG,1);======================================================{三宝}P:=5;N:=9;N1:=6;M:=14;TYP := (HIGH + LOW + CLOSE)/3;CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),COLORFF00FF;C1:=SMA(CC1,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),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;RSI:=(RSI1-50)*5,LINETHICK2,COLORFFFFFF;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);K1:=(K-50)*5,COLOR00FF00;K2:=SMA(K1,3,1);D2:=SMA(K2,3,1);J2:=3*K2-2*D2;BB1:=EMA(J2,5);BB2:=REF(BB1,1);买入:=RR AND NOT(REF(RR,1)) AND (RR1<-100 AND BB1<-100) AND CB1<-100,LINETHICK0;XG:EXIST(买入,P);======================================================★★含DATA等句需作修改★★。

四量图副图指标通达信指标公式源码.doc

四量图副图指标通达信指标公式源码.doc

12 63 -12.92寸8引OLTDX(5.10) WOL 914811 94 VOLUME 914811.94 MA5: 480524 81机构、主力、散户还是游资让你一目了然,仅供参考。

指标源码:MID9:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线l:=(20*MID9+19*REF(MID9,l)+18*REF(MID9,2)+17*REF(MID9,3)+16*REF(MID9,4)+l 5*REF(MID9,5)+14*REF(MID9,6)+13*REF(MID9,7)+12*REF(MID9,8)+11*REF(MID9,9) +10*REF(MID9,10)+9*REF(MID9,ll)+8*REF(MID9,12)+7*REF(MID9,13)+6*REF(MID9, 14)+5*REF(MID9,15)+4*REF(MID9,16)+3*REF(MID9,17)+2*REF(MID9,18)+REF(MID9, 20))/210,COLORGREEN{COLORRED};马线1:=MA(牛线1,6),COLORMAGENTA{COLORYELLOW};STICKLINE(C> 牛线1广1.9广0.4,4,0),COLOR000099{COLOR017700},LINETHICK2; STICKLINE(Cv 马线1,-1.9,-0.4,4,0),COLOR017700{COLOR000099),LINETHICK2; STICKLINE(牛线1>=C AND C> =马线L・1.9,-0.4,8,0)〃COLOR017700{COLOR000099},LINETHICK2;DRAWTEXT(ISLASTBAR=LIF(V>=O 广1广0.4),‘ 机构,)Z COLORWHITE;时间:DATE+1900/00/00,NODRAW ,COLORWHITE;牛线:=(2O*MID1+19*REF(MID1,1)+18*REF(MID1,2)+17*REF(MID1,3)+16*REF(MID1,4)+ 15*REF(MID1,5)+14*REF(MID1,6)+13*REF(MID1,7)+12*REF(MID1,8)+11*REF(MID1,9) +1O*REF(MID1,1O)+9*REF(MID1,11)+8*REF(MID1,12)+7*REF(MID1,13)+6*REF(MID1, 14)+5*REF(MID1,15)+4*REF(MID1,16)+3*REF(MID1,17)+2*REF(MID1,18)+REF(MID1, 20))/210,COLORGREEN{COLORRED};马线:=MA(牛线,3),COLORMAGENTA{COLORYELLOW};GB:=(C-牛线);换手:=V*100/CAPITAL;主:=MA(换手,5);大:=MA(换手,12);中:=MA(换手,34);散:=MA(换手,55);均:=(主+大+中+散)/4;GBB:=(主•散);GB1:=GB+GBB;STICKLINE(GB1>=0Z2.5,43Z0)Z COLOR000099{COLOR017700),LINETHICK2; STICKLINE(GBlv0,2.5,4,4,0),COLOR017700{COLOR000099},LINETHICK2; DRAWTEXT(ISLASTBAR=1,IF(V>=0Z3.2,0);散户 ,),COLORWHITE;AA:=MAX(MA(C,60),MA(C,120));BB:=MIN(MA(C,60),MA(C,120));成交量:=V,COLORWHITE,LINETHICKO;Q:=EMA(V,5);Ql: = EMA(V,50);OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSEvREF(CLOSE,l),-VOL,0)),0);OBV1:=EMA(OBV,5);OBV2:=EMA(OBV,50);W:=(Q-Ql)*0.00001;W1:=(OBV1-OBV2)*O.OOOOD1;W2:=W+W1;STICKLINE(W2>=0,0.3,1-8,4,0)Z COLOR000099{COLOR017700},LINETHICK2; STICKLINE(W2<0,0.3,1.8,4,0),COLOR017700{COLOR000099),LINETHICK2; DRAWTEXT(ISLASTBAR=1,IF(V>=0,1,0);游资')Z COLORWHITE;J:=MAX(MA(C,30),MA(C,60));K:=MIN(MA(C,30)z MA(C,60));DKX:=(20*MID+19*REF(MID,l)+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,ll)+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; MADKX: = MA(DKX,6);MDD:=(DKX-MADKX)*1.2;Vl:=(C*2+H+L)/4*10;V2:=EMA(V1,6)・EMA(V1,55);V3:=EMA(V2,6);V4:=2*(V2・V3)*5.5;V5:=(V2・V3)*0.06;V6:=MDD+V5;STICKLINE(V6>=0广4.1 广2.6,4,0),COLOR000099{COLOR017700},LINETHICK2; STICKLINE(V6<0Z-4.1,-2.6Z4,0),COLOR017700{COLOR000099},LINETHICK2; DRAWTEXT(ISLASTBAR=1,IF(V>=O,-3.4,0);主力,),COLORWHITE;BQIUV:(GB1),COLORWHITE,NODRAW;BQIUSV:(W2),COLORYELLOW,NODRAW;WWW:(C-牛线1),COLORYELLOW,NODRAW;XEV:(V6),COLORGREEN,NODRAW;。

通达信指标公式源码 探庄底部出击副图指标

通达信指标公式源码 探庄底部出击副图指标

STICKLINE(C>0,-130,190,100,0),COLOR334400;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);K:SMA(RSV,3,1),COLORFFFFFF;D:SMA(K,3,1),COLOR00FFFF;J:3*K-2*D,COLOR33FF33;AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);80,POINTDOT,COLOR00FF00,LINETHICK4;VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);底部1:IF(VAR6 ,20,0),POINTDOT,COLORFFFF00,LINETHICK4;STICKLINE((CROSS(J,K) AND (底部1 >= 20)),100,0,2,0),COLORFFFFFF; DRAWICON((CROSS(J,K) AND (底部1 >= 20)),100,1);DRAWTEXT((CROSS(J,K) AND (底部1 >= 20)),98,'--全仓');DRAWTEXT((VAR6 <= (0 - 15)),80,'买'),COLORFFFFFF;IF((K>D),K,DRAWNULL),COLORFF00FF;IF((J>D),J,DRAWNULL),LINETHICK2,COLOR0000FF;VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) <REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5));VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100); VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17)); VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35); VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0)); VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31)); VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100); VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100); VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND (VAR58 <= 11.7)) AND (VAR5A <= (0 - 145))); VAR5C:=9.999999884842+026;VAR5D:=(COST(10) * 0);VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0); 胡涂出击:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),120,0),LINETHICK2,COLOR0000FF;VAR68:=0;MACD:(VAR6 * 6),COLORSTICK,LINETHICK2;{柱体}STICKLINE((CROSS(K,D) AND (BB10 > 1)),70,0,2,0),COLORCC99FF;DRAWTEXT((CROSS(K,D) AND (BB10 > 1)),64,'--短买'),COLOR00FF00;DRAWTEXT_FIX(1,0.0,0.00,0,'均线多头市场时,MACD回撤零轴意味着产生一个买点,提示一定要同步参考均线系统'),COLORGREEN,LINETHICK4;DRAWTEXT_FIX(1,0.0,0.08,0,'均线空头市场时,MACD返回零轴意味着产生一个卖点'),COLORMAGENTA,LINETHICK4;。

通达信四量图副图指标公式详解

通达信四量图副图指标公式详解

通达信四量图副图指标公式详解本文将详细解释通达信软件中的四量图副图指标公式。

一、MACD指标MACD指标是一种趋势跟踪指标,由快速线(DIF)和慢速线(DEA)组成。

其计算公式如下:DIF = EMA(CLOSE, 12) - EMA(CLOSE, 26)DEA = EMA(DIF, 9)MACD = (DIF - DEA) * 2其中,EMA为指数移动平均线,CLOSE为收盘价。

二、KDJ指标KDJ指标是一种用于判断超买超卖情况的指标,由K线、D线和J线组成。

其计算公式如下:RSV = (CLOSE - LOWEST(CLOSE, 9)) / (HIGHEST(CLOSE, 9) - LOWEST(CLOSE, 9)) * 100K = SMA(RSV, 3, 1)D = SMA(K, 3, 1)J = 3 * K - 2 * D其中,SMA为简单移动平均线,CLOSE为收盘价,LOWEST 为最低价,HIGHEST为最高价。

三、RSI指标RSI指标是一种用于判断市场买卖力量的指标,其计算公式如下:RSI = SMA(MAX(CLOSE - REF(CLOSE, 1), 0), 6, 1) /SMA(ABS(CLOSE - REF(CLOSE, 1)), 6, 1) * 100其中,SMA为简单移动平均线,CLOSE为收盘价,REF为引用前一周期的数据,MAX为取最大值,ABS为取绝对值。

四、WR指标WR指标是一种用于判断超买超卖情况的指标,其计算公式如下:WR = (HIGHEST(HIGH, 14) - CLOSE) / (HIGHEST(HIGH, 14) - LOWEST(LOW, 14)) * (-100)其中,HIGHEST为最高价,HIGH为当日最高价,CLOSE为收盘价,LOWEST为最低价,LOW为当日最低价。

以上就是通达信软件中四量图副图指标的详细公式解释。

通达信指标公式源码 未来买卖点副图指标

通达信指标公式源码 未来买卖点副图指标

EMA10:EMA(C,10),COLOR0000FF;A1:=REF(HIGH,3)=HHV(HIGH,2*6+1);B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3+1);{高点}A2:=REF(LOW,3)=LLV(LOW,2*6+1);B2:=FILTER(A2,3+1);C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点}E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT(D1 AND E1<E2));H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1)); G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1);{过滤后低点}L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1);{过滤后高点}DRAWLINE(LD,L,HD,H,0),COLORWHITE;DRAWLINE(HD,H,LD,L,0),COLORWHITE;J1:=BACKSET(BARSTATUS=2 ,MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);DRAWLINE(J2,IF(HD,H,L),BARSTATUS=2 ,IF(BARSLAST(HD)>BARSLAST(LD), H,L),0),COLORWHITE;C点:=BARSLAST(LD);DRAWTEXT(LD AND BARSLAST(HD)<BARSLAST(REF(LD,1)) ,L*0.992,'买入'),COLORRED;DRAWTEXT(HD,H*1.005,'卖点'),COLORYELLOW;A11:=REF(L,BARSLAST(LD));B11:=REF(H,BARSLAST(HD));TA11:=BARSLAST(LD);TB11:=BARSLAST(HD);KF:=SQRT(B11/A11);ZKF:=SQRT(SQRT(B11/A11));C测低1:=B11/(KF+ZKF-1);C测高1:=B11/ZKF;C测中1:=B11/KF;选C31:=L>0.93*C测低1 AND L<1.03*C测低1 AND LLV(L,3)=LLV(L,10) AND B1>1.1*C AND B1>1.1*A1 AND L>1.1*A1 ;选C21:=L>0.93*C测中1 AND L<1.03*C测中1 AND LLV(L,3)=LLV(L,10) AND B1>1.1*C AND B1>1.1*A1 AND L>1.1*A1 ;选C11:=L>0.9*C测高1 AND L<1.05*C测高1 AND LLV(L,5)=LLV(L,10) AND B1>1.1*C AND B1>1.1*A1 AND L>A1 AND COUNT(选C21,30)>=1;选C2:=COUNT(选C21,3)>=1 AND C>1.02*C测中1 AND C>1.02*REF(C,1) AND LLV(L,3)>=0.93*C测中1;C1预选:=L>0.96*C测高1 AND L<1.04*C测高1;C2预选:=L>0.96*C测中1 AND L<1.04*C测中1;C3预选:=L>0.96*C测低1 AND L<1.04*C测低1;N:=8;HHD:=FILTER(BACKSET(FILTER(REF(H,N)=HHV(H,2*N+1),N),N+1),N); LLD:=FILTER(BACKSET(FILTER(REF(L,N)=LLV(L,2*N+1),N),N+1),N); DRAWNUMBER(HHD,1.025*HIGH,HIGH),COLORFF00FF,LINETHICK6; DRAWNUMBER(LLD,0.98*LOW,LOW),COLORGREEN,LINETHICK6; DRAWNUMBER(ISLASTBAR,C测高1,C测高1),COLOR0000FF,LINETHICK7; DRAWNUMBER(ISLASTBAR,C测中1,C测中1),COLOR0000FF,LINETHICK7; DRAWNUMBER(ISLASTBAR,C测低1,C测低1),COLOR0000FF,LINETHICK7; STICKLINE(C/REF(C,1)>=1.096 AND H=C,O,C,1,0),COLORYELLOW;上趋势线:"CYX.NOTEXT1"DOTLINE,COLOR0000FF;下趋势线:"CYX.NOTEXT2"DOTLINE,COLOR00FFFF;。

最新OBV解盘指标通达信指标公式源码

最新OBV解盘指标通达信指标公式源码

最新OBV解盘指标VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),COLORAAAAAA;MAOBV:MA(OBV,15),COLOR000099;MAOBV2:MA(OBV,30),COLOR00AAAA;{箱顶:HHV( OBV,21),COLOR0000FF;箱底:LLV( OBV,21),COLOR00FF00;}UPPER:MAOBV+2*STD(OBV,30),COLORFFFF00,POINTDOT;LOWER:MAOBV-2*STD(OBV,30),COLORFF0000,POINTDOT;TT:=240/FROMOPEN;比:=TT;促进指数MFL:=(HIGH-LOW)*1000000/(VOL*比),COLORRED;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) +IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));ZGD3:=ZGD2;ZDD3:=ZDD2;ZGD4:=ZGD2;情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >=DSLX1)),1,0));情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0)); 情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0)); 情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >=DSLX1)),1,0));情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0)); 情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)); 情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0)); 情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));情况15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));情况16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));大盘5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >=YYV2)),1,0));大盘6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0)); 大盘7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0)); 大盘8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0)); MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);MMM1:=CONST(绿灯);衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);MMM2:=CONST(衰退);伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);MMM3:=CONST(伪装);蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);MMM4:=CONST(蛰伏);TS1:=IF(情况1=1,0.06+0.06,0.06);TS2:=IF(情况2=1,TS1+0.18,TS1);TS3:=IF(情况3=1,TS2+0.18,TS2);TS4:=IF(情况4=1,TS3+0.18,TS3);TS5:=IF(情况5=1,TS4+0.18,TS4);TS6:=IF(情况6=1,TS5+0.18,TS5);TS7:=IF(情况7=1,TS6+0.18,TS6);TS8:=IF(情况8=1,TS7+0.18,TS7);TS9:=IF(情况9=1,TS8+0.18,TS8);TS10:=IF(情况10=1,TS9+0.18,TS9);TS11:=IF(情况11=1,TS10+0.18,TS10);TS12:=IF(情况12=1,TS11+0.18,TS11);TS13:=IF(情况13=1,TS12+0.18,TS12);TS14:=IF(情况14=1,TS13+0.18,TS13);TS15:=IF(情况15=1,TS14+0.18,TS14);TS16:=IF(情况16=1,TS15+0.18,TS15);TS17:=IF(大盘1=1,TS16+0.18,TS16);TS18:=IF(大盘2=1,TS17+0.18,TS17);TS19:=IF(大盘3=1,TS18+0.18,TS18);TS20:=IF(大盘4=1,TS19+0.18,TS19);TS21:=IF(大盘5=1,TS20+0.18,TS20);TS22:=IF(大盘6=1,TS21+0.18,TS21);TS23:=IF(大盘7=1,TS22+0.18,TS22);TS24:=IF(大盘8=1,TS23+0.18,TS23);TS25:=IF(MMM1=1,TS24+0.18,TS24);TS26:=IF(MMM2=1,TS25+0.18,TS25);TS27:=IF(MMM3=1,TS26+0.18,TS26);TS28:=IF(MMM4=1,TS27+0.18,TS27);DRAWTEXT_FIX(情况1=1 ,0.06,TS1,0,'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF;DRAWTEXT_FIX(情况2=1 ,0.06,TS2,0,'走势趋强量能不足,短线进场,仓位在1/2左右'),COLORFF00FF;DRAWTEXT_FIX(情况3=1 ,0.06,TS3,0,'量价良好,并没有明显走强,短线进场,仓位1/2左右。

OBV指标详解(附图)

OBV指标详解(附图)

累积能量线(OBV)(On Balance Volume )又称能量潮,是美国投资分析家Joe.Granville 于1981年创立的,它的理论基础是"能量是因,股价是果",即股价的上升要依靠资金能量源源不断的输入才能完成,是从成交量变动趋势来分析股价转势的技术指标。

计算OBV,首先要累计上市股票每日的总成交量,逐点连成曲线。

计算公式如下:累积能量线(OBV)=前一天的OBV±当日成交量(当日收盘价高于前日收盘价,成交量定义为正值,取加号;当日收盘价低于前日收盘价,成交量定义为负值,取减号;二者相等时计为0)OBV线需要与股价曲线并列于同一图中相互参照使用应用原则:1.如图所示:OBV线呈N字形波动,当OBV线超越前一次N字形的高点时,则记下一个向上的箭头;当OBV线跌破前一次N的低点时,就记下一个向下的箭头。

2.当OBV线连续形成N字形上涨状态,则上涨的股价将要出现反转。

3.当OBV线在连续小N字形上涨时,又出现大N字形上涨状态,则行情随时可能出现反转。

4.BV线的走向与股价曲线产生"背离"时,说明当时的走势是虚假的,不管当时股价是上涨行情还是下跌行情,都随时有反转的可能,需要格外留心。

5.OBV线如果持续一个月以上横向移动后突然上冲,预示大行情随时可能发生。

如图OBV经过长达一个月的横盘突然上冲,在成交量的配合下,股价一路上扬。

通过对OBV指标的详解,我们都知道了它能够通过统计成交量的变动趋势来推测股价的趋势,对于短线投资者来说是非常重要的参考依据。

但是在众多的参考数据中,这个指标好像并不足以让它得到这么大的关注,那就必然有其可贵之处,让我们来看看OBV指标的妙用在哪吧。

下面便是个炒股高手通过多年的经验总结出来的这个指标的妙用,仅供大家参考。

1、最好的股票应是OBV值在最高位,而股价在较低的位置,这种现象说明有主力被套牢。

2、OBV的趋势一直向上为好,如果中途出现一定幅度的回落,说明主力筹码的集中度不够,这种现象说明有可能会出现原机构建仓或者换庄。

通达信OBV合集指标公式

通达信OBV合集指标公式

通达信OBV合集指标公式Mobv:=OBV-ma(OBV,30);stICKLINE(MOBV>0,0,MOBV,1,0),COLORRED;STICKLINE(MOBV<0,0,MOBV,1,0),COLORCYAN;OBV高:=REF(OBV,BArslAST(FILTER(BacKSET(FILTER(REF(OBV,5)=HHV( OBV,2*5+1),5),5+1),5)));C高:=REF(C,BARSLAST(FILTER(BACKSET(FILTER(REF(C,5)=HHV(C,2 *5+1),5),5+1),5))),NODRAW;量入为主:crOSS(OBV,OBV高) AND H<C高,NODRAW;STICKLINE(量入为主,0,MOBV,1,0),COLORYELLOW;DRAWTEXT(量入为主,3*MOBV,'量'),COLORWHITE;VA:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);OBV30:MA(OBV,30);OBV2:=OBV-OBV30;STICKLINE(OBV2>0,OBV,OBV30,1,0),COLORRED;STICKLINE(OBV2<0,OBV,OBV30,1,0),COLOR00FF00;DRAWICON(CROSS(OBV,OBV30),OBV30,1);DRAWICON(CROSS(OBV30,OBV),OBV30,2);STICKLINE(OBV<REF(OBV,1),OBV30,OBV,1,0),COLORFFFF00;STICKLINE(OBV>REF(OBV,1),OBV30,OBV,1,0),COLORFF00FF;OBV创新高是牛股:PLOYLINE(1,CONST(OBV)),COLOR008888,LINETHICK1;A1A:=BARSLAST(REF(CROSS(OBV,OBV30),1));底背离:=REF(CLOSE,A1A+1)>CLOSE AND OBV>REF(OBV,A1A+1) AND CROSS(OBV,OBV30);STICKLINE(底背离,0,OBV,3,0),COLOR00FF00;底背:DRAWLINE(A1A=0,OBV30,底背离,OBV30,0),COLORYELLOW,LINETHICK4;DRAWTEXT(底背离,OBV30,' 底背离'),COLORWHITE;STICKLINE(底背离,OBV,OBV创新高是牛股,3,0),COLORRED;A2A1:=BARSLAST(REF(CROSS(OBV30,OBV),1));顶背离:=REF(CLOSE,A2A1+1)<CLOSE AND REF(OBV,A2A1+1)>OBV AND CROSS(OBV30,OBV);顶背:DRAWLINE(A2A1=0,OBV30,顶背离,OBV30,0),COLORBLUE,LINETHICK4;DRAWTEXT(顶背离,OBV30,' 顶背离'),COLORWHITE;上榜资金:IF(FINANCE(3)==0,SCJYVALUE(16,1,0)-SCJYVALUE(16,2,0),GPJYVALUE(2,1,0)-GPJYVALUE(2,2,0)),NODRAW,COLORRED;STICKLINE(上榜资金>0,0,588,2,0),COLORRED;STICKLINE(上榜资金<0,0,588,2,0),COLORCYAN;CJJ:=GPJYVALUE(5,1,0);CJJ2:=IF(CJJ>0,CJJ,C);减持:IF(FINANCE(3)==0,(SCJYVALUE(10,1,0)-SCJYVALUE(10,2,0)),(CJJ2*GPJYVALUE(5,2,0))/10000),NODRAW;NOTEXT1:MA(减持,10)*2;STICKLINE(减持>0,0,OBV,2,0),COLORRED;STICKLINE(减持<0,0,OBV,2,0),COLORCYAN;增持:IF(FINANCE(3)==0,SCJYVALUE(11,1,0)+SCJYVALUE(11,2,0),GPJ YVALUE(4,2,0)),NODRAW;溢额:IF(FINANCE(3)==0,SCJYVALUE(11,1,0),0);STICKLINE(增持>0,MOBV,OBV,2,0),COLORBROWN;STICKLINE(溢额>0,MOBV,0,2,0),COLORRED;。

通达信obv指标最佳参数

通达信obv指标最佳参数

“同达信”中的平衡量(OBV)指标是一种动量指标,它使用量来预测未来价格走势。

OBV 指标的计算方法是将收盘价高于前一天收盘价的交易量相加,然后减去收盘价低于前一天的交易量。

同达信OBV 指标的最佳参数将取决于个人交易者的目标和交易风格。

OBV 指标没有单一的“最佳”参数集,因为不同的交易者可能对用于计算指标的时间长度或使用的交易量数据类型(例如,原始交易量、调整后的交易量)有不同的偏好,ETC。

)。

一种常见的方法是试验不同的参数并观察OBV 指标在不同市场条件下的表现。

通过这样做,交易者可以确定最适合他们的交易风格和目标的参数。

值得注意的是,OBV 不应用作独立指标,而应作为考虑价格行为、技术指标和市场情绪等其他因素的更大交易策略的一部分。

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