通达信指标公式源码 天使唇吻副图指标

合集下载

通达信指标公式源码好厉害的MACD背离(通达信副图指标)

通达信指标公式源码好厉害的MACD背离(通达信副图指标)

通达信指标公式源码好厉害的MACD背离
(通达信副图指标)
MACD背离是一种通达信副图指标,它可以帮助我们更
好地判断市场走势。

DIF和DEA是MACD指标中的两个重要
参数,其中DIF表示短期EMA(12日)和长期EMA(26日)的差值,DEA表示DIF的9日EMA。

我们可以通过改变DIF
和DEA的数值来调整MACD指标的敏感度。

持仓段和空仓段是两个重要的标志,它们可以帮助我们更好地判断市场走势。

当DIF大于DEA时,我们可以认为市场
处于持仓段,此时我们可以考虑建仓或加仓;当DIF小于
DEA时,我们可以认为市场处于空仓段,此时我们应该考虑
减仓或空仓。

在MACD指标中,我们还可以使用STICKLINE函数来
绘制柱状图。

当MACD小于前一天的MACD并且大于0时,
我们可以使用COLORLIBLUE来表示;当MACD大于前一天
的MACD并且小于0时,我们可以使用COLORFF00FF来表示。

二次金叉和底背离是MACD指标中的两个重要信号。

当DIF和DEA交叉两次并且DEA小于0时,我们可以认为出现了二次金叉。

当收盘价比前一天低并且DIF高于前一天的DIF 时,我们可以认为出现了底背离。

在绘制底背离时,我们可以使用STICKLINE函数来绘制绿色的柱状图,同时使用DRAWLINE函数来绘制红色的线条。

通达信指标公式源码 天使唇吻副图指标

通达信指标公式源码 天使唇吻副图指标

百钻抄底指标X_1:=CLOSE;X_2:=(X_1-MA(X_1,25))/MA(X_1,45)*123;百钻抄底:CROSS(X_2,(-25)),COLORYELLOW;LC:=REF(C,1);RSV34:=100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34));K34:=SMA(RSV34,3,1);BIAS34:=((C-MA(C,34))/MA(C,34)*100+10)*5;KB34:=(K34+BIAS34)/4+10;BB1:=IF((K34<10 OR (K34<15 AND HHV(H,5)/LLV(C,5)>1.15)) AND KB34<=-0.5,1,0); 抢反弹:BB1=1 AND C=LLV(C,10) AND C<L*1.045 AND V<HHV(V,10) AND C>LC*0.9015,COLORRED;牛股基因指标RSV89:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;K89:=SMA(RSV89,13,1);D89:=SMA(K89,3,1);J89:=3*K89-2*D89;长:=EMA(J89,5);RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;K1:=SMA(RSV1,3,1);D1:=SMA(K1,3,1);J1:=3*K1-2*D1;中:=EMA(J1,5),COLORYELLOW;RSV2:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;K2:=SMA(RSV2,3,1);{好}D2:=SMA(K2,3,1);J2:=3*K2-2*D2;短:=EMA(J2,5),COLORWHITE;{个股涨幅跟沪深两大盘对比}ZF5:=(CLOSE-REF(CLOSE,4))/REF(CLOSE,4)*100;ZF5D1:=("999999$CLOSE"-REF("999999$CLOSE",4))/REF("999999$CLOSE",4)*100;ZF5D2:=("399001$CLOSE"-REF("399001$CLOSE",4))/REF("399001$CLOSE",4)*100; DPDB:=MA(ZF5-MAX(ZF5D1,ZF5D2),5);{成本重心}CBZX:=AMOUNT/VOL/100;斜率:=SLOPE(CBZX,3)+SLOPE(CBZX,5);{相对强度}相对强度:=DPDB,COLORWHITE;TJ1:=SLOPE(DPDB,3)>0 AND 斜率>0;TJ2:=中<20 AND 短<20 AND 长<60;条件1:=相对强度>REF(相对强度,1) AND REF(相对强度,1)>REF(相对强度,2) AND REF(相对强度,2)<REF(相对强度,3)AND REF(相对强度,1)<-4 AND TJ1 AND REF(TJ1,1);条件2:=相对强度>REF(相对强度,1) AND REF(相对强度,1)>REF(相对强度,2) AND REF(相对强度,2)>REF(相对强度,3) AND REF(相对强度,3)<REF(相对强度,4)AND REF(相对强度,1)<-4 AND TJ1 AND REF(TJ1,1);条件3:=相对强度>REF(相对强度,1) AND REF(相对强度,1)<REF(相对强度,2)AND 相对强度<-4 AND TJ1;因子:=ABS(LLV(相对强度,5));牛股基因: ((条件 1 OR 条件 2 OR 条件3) AND EXIST(TJ2,5))*因子,COLORRED,LINETHICK2;牛魔王选股指N:=8;M:=20;GC1:=EMA((C+L+H)/3,6);GC2:=EMA(EMA((C+L+H)/3,6),5);FY1:=CROSS(GC1,GC2);FY2:=COUNT(FY1,2)>0;KUA:=100-100*(HHV(HIGH,5*N)-CLOSE)/(HHV(HIGH,5*N)-LLV(LOW,5*N));CFL:=(VOL/REF(VOL,1)>1 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>2);ERC1:=CROSS(KUA,M) AND CFL AND CROSS(V,MA(V,5));ERC2:=COUNT(BETWEEN(KUA,20,50),5)>=3 AND CROSS(KUA,50);ERC3:=COUNT(BETWEEN(KUA,50,70),5)>=3 AND CROSS(KUA,70);CROSS(MA(V,3),MA(V,5)) AND FY2 AND (ERC1 OR ERC2 OR ERC3);。

通达信副图指标公式源码大全

通达信副图指标公式源码大全

副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;V AR1:=REF(CLOSE,1);标尺: SMA(MAX(CLOSE-V AR1,0),5,1)/SMA(ABS(CLOSE-V AR1),5,1)*100;V AR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;V AR3:=SMA(V AR2,3,1);V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1);浪: V AR3,COLORBLUE;波: V AR4, COLORRED;段: V AR5 ,COLORYELLOW;V AR6:=CROSS(V AR3,VAR4) AND V AR4<25;STICKLINE(V AR6,0,V AR4+15,5,0), COLORGREEN;V AR7:=CROSS(V AR4,VAR5) AND V AR4<25;V AR8:=V AR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2; STICKLINE(V AR7,0,V AR4+55,5,0),COLORWHITE;DRAWTEXT(V AR7 AND COUNT(V AR7,10)=1,V AR4+25,'抄底'),COLORYELLOW; STICKLINE(V AR8,0,V AR4+15,5,0),COLORBLUE;DRAWTEXT(V AR8 AND COUNT(V AR8,10)=1,V AR4-1,'放量'),COLORGREEN;V AR9:=CROSS(V AR3,VAR4) AND V AR4>80 AND V AR4>VAR5;STICKLINE(V AR9 AND COUNT(V AR9,5)=1,V AR4-5,100,5,0),COLORYELLOW;V ARA:=CROSS(V AR5,V AR4) AND REF(V AR4,1)>80;STICKLINE(V ARA,V AR4-15,100,15,0), COLORYELLOW;DRAWTEXT(V ARA AND COUNT(V ARA,10)=1,V AR4-25,'逃顶'), COLORYELLOW; V AR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;V AR1B:=SMA((SMA(V AR1A,4,1)-50)*2,3,1);V AR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; V AR1D:=SMA(V AR1C,4,1);V AR1E:=SMA(V AR1D,3,1);V AR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;V ARE:=REF(LOW,1)*0.9;V ARF:=LOW*0.9;V AR10:=(V ARF*VOL+V ARE*(CAPITAL-VOL))/CAPITAL;V AR11:=EMA(V AR10,30);V AR12:=CLOSE-REF(CLOSE,1);V AR13:=MAX(V AR12,0);V AR14:=ABS(V AR12);V AR15:=SMA(VAR13,7,1)/SMA(V AR14,7,1)*100;V AR16:=SMA(VAR13,13,1)/SMA(V AR14,13,1)*100;V AR17:=BARSCOUNT(CLOSE);V AR18:=SMA(MAX(V AR12,0),6,1)/SMA(ABS(V AR12),6,1)*100;V AR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;V AR20:=V AR18<=25 AND V AR19<-95 AND V AR1F>20 AND V AR1B<-30 AND V AR1E<30 AND V AR11-CLOSE>=-0.25 AND V AR15<22 AND V AR16<28 AND V AR17>50; STICKLINE(V AR20,0,50,10,0),LINETHICK2,COLORBLUE;DRAWTEXT(CROSS(V AR20,0.5) AND COUNT(V AR20=1,10)=1,60,'百万导弹?'),LINETHICK7,COLORWHITE;2、分类资金A:=IF((CLOSE>126.32),(AMOUNT)/(100000),VOL);主力:MA(A,4),LINETHICK0,COLORYELLOW;游资:MA(A,8),LINETHICK0,COLOR00FF00;大户:MA(A,16),LINETHICK0,COLORRED;散户:MA(A,32),LINETHICK0,COLORF0F000;主比:ABS(((主力)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORYELLOW;游比:ABS(((游资)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLOR00FF00;大比:ABS(((大户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORRED;散比:ABS(((散户)/(主力+ 游资+ 大户+ 散户))*(100)),LINESTICK,COLORF0F000;警戒线:MA(A,180),COLORFF66FF,LINETHICK1;STICKLINE((主力> 0),0,主力,3,0),COLOR009CFF;STICKLINE((主力> 0),0,主力,2.8,0),COLOR009CFF;STICKLINE((主力> 0),0,主力,2.5,0),COLOR00C0FF;STICKLINE((主力> 0),0,主力,1.5,0),COLOR00D1FF;STICKLINE((主力> 0),0,主力,1,0),COLOR00EAFF;STICKLINE((主力> 0),0,主力,0.7,0),COLORYELLOW;STICKLINE((游资> 0),0,游资,3,0),COLOR00C100;STICKLINE((游资> 0),0,游资,2.8,0),COLOR00CA00;STICKLINE((游资> 0),0,游资,2.5,0),COLOR00D300;STICKLINE((游资> 0),0,游资,1.5,0),COLOR00DB00;STICKLINE((游资> 0),0,游资,1,0),COLOR00EA00;STICKLINE((游资> 0),0,游资,0.7,0),COLORGREEN;STICKLINE((大户> 0),0,大户,3,0),COLOR1020AA;STICKLINE((大户> 0),0,大户,2.8,0),COLOR1020BB;STICKLINE((大户> 0),0,大户,2.5,0),COLOR1020CC;STICKLINE((大户> 0),0,大户,1.5,0),COLOR1020DD;STICKLINE((大户> 0),0,大户,1,0),COLOR1020EE;STICKLINE((大户> 0),0,大户,0.7,0),COLORRED;STICKLINE((散户> 0),0,散户,3,0),COLORFF7700;STICKLINE((散户> 0),0,散户,2.8,0),COLORFF8800;STICKLINE((散户> 0),0,散户,2.5,0),COLORFF9900;STICKLINE((散户> 0),0,散户,1.5,0),COLORFFAA00; STICKLINE((散户> 0),0,散户,1,0),COLORFFBB00;STICKLINE((散户> 0),0,散户,0.7,0),COLORLIBLUE;3、黑马起爆点V AR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;V AR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;V AR3:=SMA(V AR2,2,1);天:100+(-ABS(V AR1)),COLORRED;下:SMA(V AR3,2,1);无:ABS(V AR1),COLORGREEN;敌:50,COLORFFAA00,LINETHICK3;A:80;B:20;买:STICKLINE(CROSS(下,无),3,20,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(下,无),30,' '),COLORFFFFCC;卖:STICKLINE(CROSS(下,天),70,90,2,0),COLORRED,LINETHICK1;STICKLINE(CROSS(下,天),90,99,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS(下,天),70,' '),COLORFFFFCC;选股2:IF(CROSS(下,20),1,0);DRAWICON((CROSS(下,20) ),20,1);DRAWICON((CROSS(下,20) ),-20,25);4、宁波绝密(相传为宁波涨停敢死队的绝密指标)WOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF; VOLUME:VOL,VOLSTICK;V5:MA(VOLUME,5);V10:MA(VOLUME,10);V135:MA(VOLUME,135);V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;主卖:IF(CLOSE>OPEN,V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,V AR1*(HIG H-LOW),VOL/2)),COLOR00FF00,POINTDOT;STICKLINE(主买>0,0,主买,2,0),COLORRED;{STICKLINE(主卖>0,主买,VOL,2,1),COLOR00FF80;}STICKLINE(主买<REF(主买,1)AND 主买>0,0,主买,2,0),COLOR00FFFF;换手:VOL/CAPITAL*100,POINTDOT;二十日换手:SUM(换手,20);5、起涨点换手率%:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;VVOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;虚拟量比:VVOL/(REF(MA(V,5),1)),LINETHICK0,COLORRED;获利比例%:WINNER(C)*100,COLORLIBLUE;涨幅%:(C-REF(C,1))/REF(C,1)*100,LINETHICK0;换手率%1:=换手率%>5;量比1:=量比>1.5 OR 虚拟量比>1.5;获利比例%1:=获利比例%>70;涨幅%1:=涨幅%>3;启动:=换手率%1 AND 量比1 AND 获利比例%1 AND 涨幅%1 ;起涨点:IF(启动,101,0)COLORRED,LINETHICK2;6、庄家建仓V AR1:=REF(LOW,1);V AR2:=SMA(ABS(LOW-V AR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;V AR3:=EMA(VAR2,13);V AR4:=LLV(LOW,34);V AR5:=EMA(IF(LOW<=V AR4,V AR3,0),3);主力进场:STICKLINE(V AR5>REF(V AR5,1),0,V AR5,7,0 ),COLORRED;7、出色超赢JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;V AR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));V AR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V ARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V ARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));V ARE:=(REF(V ARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V ARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); V AR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); V AR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));V AR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));V AR19:=((REF(VARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,1)) AND V AR1);V AR1A:=((REF(VAR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,1)) AND V ARD);红色持股:V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;青色观望:V ARD OR V ARE OR V ARF OR VAR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;黄色低买:V AR19,COLOR33AACC,NODRAW;洋红离场:V AR1A,COLORMAGENTA,NODRAW;急跌关注:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW;上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急跌关注,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急跌关注,O,C-CO/2,2,0),COLOR888888;STICKLINE(急跌关注,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急跌关注,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急跌关注,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(黄色低买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(黄色低买,O,O+CO/3,2,0),COLOR338888;STICKLINE(黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(黄色低买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(黄色低买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(洋红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(洋红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(洋红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(洋红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(洋红离场,O,O+CO/3,0.5,0),COLOREE00EE;压力:MA(REF(HHV(C,30),1),2),POINTDOT,COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),POINTDOT,COLORABFF46;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X, 6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK2;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2;A:=(PMA>多空线);IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,30,0);DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.98,'★'),COLORYELLOW;8、彩色成交量STICKLINE(VOL > 0,VOL,0,3,0),COLOR333333;STICKLINE(VOL > 0,VOL,0,2.5,0),COLOR998855;STICKLINE(VOL > 0,VOL,0,1.7,0),COLORBBAA77;STICKLINE(VOL > 0,VOL,0,0.9,0),COLORDDCC99;STICKLINE(VOL > 0,VOL,0,0.04,0),COLORFFEEBB;换手:=VOL/CAPITAL*100,COLORRED;STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,3,0),COLOR00AAAA; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,2.5,0),COLOR00CCCC; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,1.7,0),COLOR00EEEE; STICKLINE(换手>2 ,VOL ,CAPITAL*0.02,0.08,0),COLOR00FFFF; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,3,0 ),COLOR009900; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,2.5,0 ),COLOR00BB00; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,1.7,0 ),COLOR00DD00; STICKLINE(换手>4 ,VOL ,CAPITAL*0.04,0.8,0 ),COLOR00FF00; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,3,0),COLORBROWN; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,2.5,0),COLOR0000AA; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,1.7,0),COLOR0000CC; STICKLINE(换手>7 ,VOL ,CAPITAL*0.07,0.8,0),COLOR0000DD;五天均量:MA(VOL,5),COLORRED,LINETHICK0.01;廿天均量:MA(VOL,20),COLORWHITE,LINETHICK0.01;HSS:=V/CAPITAL*100,NODRAW;{显示当日换手}五天换手率:SUM(HSS,5),NODRAW;廿天换手率:SUM(HSS,20),NODRAW;抛压:STICKLINE(CROSS(84,RSI),0 ,VOL,1.5,0),COLORBLUE,LINETHICK5; V24:MA(VOL,24),COLORLIBLUE;V10:MA(VOL,10),COLORRED;V3:MA(VOL,3),COLORLIGRAY;9、涨停回马枪(有主图)均价线:=AMOUNT/V/100;C2:=REF(C,1);涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);STICKLINE(涨停,0,5,6,0),COLORYELLOW;DRAWTEXT(涨停,8,'涨停'),COLORYELLOW;MA13:=MA(C,13),COLORGRAY;MA21:=MA(C,21),COLORWHITE;支撑线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100; 震仓线:=45;震仓线2:=50;逃命线:=80;抄底线:=20;绝底线:=5;PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;PP:=操作线<震仓线AND REF(操作线,1)>震仓线;PP3:=操作线<抄底线AND REF(操作线,1)>抄底线;HH:=COUNT(涨停,13)>=1;STICKLINE(PP2 AND HH,0,5,3,0),COLORRED;STICKLINE(PP AND HH,0,5,3,0),COLORRED;STICKLINE(PP3 AND HH,0,5,3,0),COLORRED;DRAWTEXT(PP2 AND HH,8,'预警'),COLORRED;DRAWTEXT(PP AND HH,8,'预警'),COLORRED;DRAWTEXT(PP3 AND HH,8,'预警'),COLORRED;A:=SMA(L,4,3) ;绿色买入:IF (((A AND REF(PP,1) AND HH) OR (A AND REF(PP3,1) AND HH)),1,0 ); STICKLINE(A AND REF(PP,1) AND HH ,0,10,1,0),COLORGREEN;DRAWICON(A AND REF(PP,1) AND HH,12,1);STICKLINE(A AND REF(PP3,1) AND HH ,0,10,1,0)COLORGREEN;DRAWICON(A AND REF(PP3,1) AND HH,12,1);10、海风3号M1:=MA(CLOSE,1);M2:=(LOW+HIGH+CLOSE)/3;M3:= MA(M2,5);M4:= HHV(M3,10);Z:=HHV((M1<M4),10) OR HHV((M1<M4),10);S:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,35)-LLV(LOW,34)),3); DRAWTEXT( FILTER(CROSS(S ,60 ),20),L*0.98,'▲'),COLORYELLOW ; {DRAWTEXT(FILTER( Z,9),H*1.028,'★') ,COLORBLUE;STICKLINE( S>60,O,C,4,0) ,COLORFF9BFB;}STICKLINE( S>60,O,C,2,0) ,COLORRED;{STICKLINE( S>60,O,C,1.5,0) ,COLORFD9BFB; }STICKLINE( S>60,H,L,0,0) ,COLORRED;{STICKLINE( S<60,O,C,4,0) ,COLOR01DC38;STICKLINE( S<60,O,C,2.5,0) ,COLOR01FE41;}STICKLINE( S<60,O,C,2,0) ,COLORGREEN;STICKLINE( S<60,H,L,0,0) ,COLORGREEN;V AR1:MA(CLOSE,5);V AR2:MA(CLOSE,10);V AR3:MA(CLOSE,20);V AR60:MA(CLOSE,60);V AR120:MA(CLOSE,120);V AR4:=OPEN<V AR1 OR OPEN<V AR2 OR OPEN<V AR3;V AR5:=CLOSE>MAX(V AR1,MAX(V AR2,MAX(V AR3,V AR60)));V AR6:=VOL/MA(VOL,30)>1.2;V AR7:=CLOSE/REF(CLOSE,1)>1.049;V AR8:=V AR4 AND V AR5 AND V AR6 AND V AR7;V AR9:=V AR8 AND (REF(BARSLAST(V AR8),1)>60 OR BARSSINCE(V AR8)=0); DRAWICON(V AR9 ,L*0.98,1) ;STICKLINE( VAR9,O,C,6,0) ,COLORYELLOW;STICKLINE( VAR9,H,L,0.6,0) ,COLORYELLOW;11、涨停时间窗(通达信金融终端副图)N:=13;WR大于80考虑买:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),LINETHICK0;均价:AMOUNT/(VOL*100),LINETHICK0,COLORYELLOW;ZT:=C/REF(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);STICKLINE(ZT,0,L*1,3,0),COLORYELLOW;DRAWTEXT(ZT,L*1.1,'涨停'),COLORF00FF0;V ARZT:=BARSLAST(C/REF(C,1)>1.097);AA:=BETWEEN(C,REF(L,BH)*1.01,REF(L,BH)*0.987);STICKLINE(AA,0,L*0.5,2,0),COLORBLUE;DRAWTEXT(AA,L*0.6,'警戒'),COLORWHITE;STICKLINE(AA AND V ARZT=2,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=2,L*0.9,'时间窗'),COLORWHITE;STICKLINE(AA AND V ARZT=4,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=4,L*0.9,'时间窗'),COLORWHITE;STICKLINE(AA AND V ARZT=7,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=7,L*0.9,'时间窗'),COLORWHITE;STICKLINE(AA AND V ARZT=12,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=12,L*0.9,'时间窗'),COLORWHITE;STICKLINE(AA AND V ARZT=20,0,L*0.8,2,0),COLORRED;DRAWTEXT(AA AND V ARZT=20,L*0.9,'时间窗'),COLORWHITE;。

通达信指标公式源码 筹码趋势 副图源码

通达信指标公式源码 筹码趋势 副图源码

庄筹:=WINNER(CLOSE)*100,COLORRED, LINETHICK2;
筹码集中度:EMA(庄筹,20),COLORRED, LINETHICK1;
筹码集中警戒线:EMA(筹码集中度,5),COLORYELLOW, LINETHICK1;
筹码集中生命线:EMA(筹码集中警戒线,5),COLORBLUE, LINETHICK1;
STICKLINE(筹码集中度>筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORRED; STICKLINE(筹码集中度<筹码集中警戒线,筹码集中度,筹码集中警戒线,2,0),COLORGREEN; STICKLINE(筹码集中警戒线>筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORFF00FF;
STICKLINE(筹码集中警戒线<筹码集中生命线,筹码集中警戒线,筹码集中生命线,2,0),COLORFFFF00;
A:=CROSS(筹码集中度,筹码集中警戒线);
B:=CROSS(筹码集中警戒线,筹码集中度);
DRAWICON(A,筹码集中度-0.1,10);
DRAWICON(B,筹码集中度+0.1,12);。

通达信软件指标公式源码精准买卖副图源码.docx

通达信软件指标公式源码精准买卖副图源码.docx

精准买卖副图源码通达信贴图系统自带KDJ灵敏度让人有点无所适从,本人自编多周期KDJ的J线3D柱比较好解决了这个问题,有需要拿去。

DRAWGBK(OPEN>0Z RGB(185Z135,0),RGB(85,55,0),0/02*,0);NOTEXT 顶:100,DOTLINE Z COLORLIGRAY;NOTEXT 底:0,DOTLINE,COLORLIGRAY;NOTEXT 分界线:50,DOTLINE,COLORLIGRAY; 均价:=(3*CLOSE+HIGH+LOW+OPEN)/6;MA1:=EMA(均价,5);RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV1,3,1),COLORWHITE,NODRAW;D:SMA(K,3,1),COLORYELLOW,NODRAW; J:=3*K・2*D;MJ1:=EMA(J,3);RSV2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH Z15)-LLV(LOW,15))*100;KB:=SMA(RSV2,3,1);DB:=SMA(KB,3,1);JB:=3*KB-2*DB;MJ2:=EMA(JB,3);RSV3:=(CLOSE-LLV(LOW,31))/(HHV(HIGH Z31)-LLV(LOW,31))*100;KC:=SMA(RSV3,3,1);DC:=SMA(KC,3,1);兀:=3*KC・2*DC;MJ3:=EMA(JC,3);RSV4:=(CLOSE-LLV(LOW,55))/(HHV(HIGH Z55)-LLV(LOW,55))*100;KD:=SMA(RSV4,3,1);DD:=SMA(KD,3,1);JD:=3*KD-2*DD;MJ4:=EMA(JD,3);JSl:=(3*MJl+3*MJ2+2*MJ3+MJ4)/9;过滤:=JS1>REF(JS1,1) AND MJ3>=REF(MJ3,1);STICKLINE(il ^,O z JSl,3,0)z COLOR993333;STICKLINE(过滤Z0Z JS1,2.7.5,0),COLOR995533;STICKLINE(过滤,0,JS1,2.4,0),COLOR996633;STICKLINE(过滤z O,JSl,2.1z O),COLOR998833;STICKLINE(过滤,O Z JS1Z1.8Z O),COLOR999966;STICKLINE(过^,0,JS1,1.5,0)Z COLOR999933;STICKLINE(过滤z O z JSl,1.2z O),COLOR999966;STICKLINE(过滤,0,JS1,0.9,0),COLOR999988;STICKLINE(过滤,0Z JS1,0.6,0)Z COLORLIGRAY;STICKLINE(过滤,0Z JS1,0.3,0)Z COLORCCCCCC;VAR1:=EMA(EMA(CLOSE Z9),9);控盘:=(VAR1-REF(VAR1Z1))/REF(VAR1Z1)*1OOO;开始控盘:二过滤AND 控盘>0 AND JS1>REF(JS1’1) AND MJ3>REF(MJ3,1) AND KB>REF(KB,1) AND DB>REF(DB,1);STICKLINE(开始控盘,0,JSl,3,0),COLOR0000FF;STICKLINE(开始控盘,O,JS1,2.7,0),COLOROOIBFF;STICKLINE(开始控盘,O,JS1,2.4,0),COLOR0025FF;STICKLINE(开始控盘Z0Z JS1Z2.1,0),COLOR0039FF;STICKLINE(开始控盘,0,JS1,1.8Z0),COLOR0052FF;STICKLINE(开始控盘,0,JS1,1.5,0)Z COLOR006AFF;STICKLINE(开始控盘,O,JS1,1.2,0),COLOR0089FF;STICKLINE(开始控盘,O,JS1,0.9,0),COLOR009CFF;STICKLINE(开始控盘z O z JSl z0.6z O),COLOROOCOFF;STICKLINE(开始控盘OJSl』・3,0),C0L0R00CAFF;趋势:二MA1>=REF(MA1,1) AND MJ2>REF(MJ2,1) AND MJ4>REF(MJ4,1); STICKLINE(开始控盘AND 趋势z O z JSl,0.6z O)z COLOR99A9FF; STICKLINE(开始控盘AND 趋势,O,JS1,0.3,0),COLOR9999FF; STICKLINE((CLOSE<OPEN OR CLOSEvREF(CLOSE,l)) AND 过滤OJS1*0.5Z1.2Z0)Z COLOR668899;STICKLINE((CLOSE<OPEN OR CLOSE<REF(CLOSE,1)) AND 过滤,0,JS1*0.5,0.9,0)Z COLOR99CC99;STICKLINE((CLOSE<OPEN OR CLOSEvREF(CLOSE,l)) AND 过滤AJS1*0.5,0.6,0)Z COLOR66FF66;STICKLINE((CLOSE<OPEN OR CLOSEvREF(CLOSEJ)) AND 过滤OJSl*0・5Q3,0),C0L0R00FF00;J1: J,COLORWHITE,LINETHICK1;J2:JS1,COLORFFOOFF 丄INETHICK2;J3: MJ4,COLORYELLOW 丄INETHICK1;3 08 元卜616SMI 2 95 元O K2317; D 32091JI 5 34* 1 J3 3 3719R ■・ »:t H。

好主图的副图指标通达信指标公式源码.doc

好主图的副图指标通达信指标公式源码.doc

好主图的副图指标布林轨:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORRED,LINETHICK2;倍量攻击:=V>REF(V,1)*2 AND (C>=0 OR C>REF(C Z1)),COLORRED,NODRAW;角线:=(ATAN((MA(C Z5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);角线MA:=MA(角线,5);ANA:=PLOYLINE(CROSS(角线,角线MA),角线MA),COLORRED;ANB:=PLOYLINE(CROSS(角线MA,角线),角线MA)Z COLORFFOOFF ;角买点:=CROSS(角线,角线MA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND 角线MA<=0) OR((角线MA<=-45 OR CROSS(角线MA,・45)) AND (ANB<-60 OR LLV(“KDJ.J“,3)v=・49) ANDANB>0)),COLORGREEN;角买入:IF(角买点,1,0),COLORRED,LINETHICK2;角起涨:=COUNT(CROSS(角线,角线MA),ANAvREF(ANA,5) AND ANB>REF(ANB,5));起涨点:IF(角起涨,1,0),COLORLIRED,LINETHICK2;角卖点:=(CROSS(角线MA,角线)AND (ANB>REF(ANB,1) OR ANA<REF(ANA,1)) AND ANB>ANA{AND ANB>0} AND 角线MA>0)*l;角卖出:IF(角卖点z l,0),COLORGREEN,LINETHICK2;角始跌:=COUNT(CROSS(角线MA,角线),ANAvREF(ANA,5) AND ANB>REF(ANB,5));起跌点:IF(角始跌,1,0),COLORLIBLUE,LINETHICK2;。

通达信指标公式源码 乖离韵律(副图 源码)

通达信指标公式源码 乖离韵律(副图 源码)

说明:背离只有发生在高位(MBN大于10)或低位(MBN小于-10)时才有较好的操作指导意义如果短时间内,连续发出顶(底)背离信号,则往往预示后市将有一波强劲而快速的下跌(上涨).N:=55;B5:(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;B10:(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;MB10:MA((CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100,3);BN:(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100;MBN: MA(((CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100),8);Z:0;STICKLINE(MBN>0 AND MBN>REF(MBN,1),MBN,0,2,0),COLORRED;STICKLINE(MBN<0 AND MBN<REF(MBN,1),MBN,0,2,0),COLORBLUE;STICKLINE(MBN>0 AND MBN<REF(MBN,1),MBN,0,2,0),COLORYELLOW;STICKLINE(MBN<0 AND MBN>REF(MBN,1),MBN,0,2,0),COLORGREEN;A1:=BARSLAST(REF(CROSS(BN,MBN),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND BN>REF(BN,A1+1) AND CROSS(BN,MBN); STICKLINE(底背离,0,0.008,8,0),COLORRED,LINETHICK3;DRAWLINE(A1=0,MBN,底背离,MBN,0),COLORRED,LINETHICK3;A2:=BARSLAST(REF(CROSS(MBN,BN),1));顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(MBN,A2+1)>BN AND CROSS(MBN,BN); DRAWLINE(A2=0,MBN,顶背离,MBN,0),COLORGREEN,LINETHICK3;。

通达信指标公式源码百发百中(副图 源码 通达信)

通达信指标公式源码百发百中(副图 源码 通达信)

百发百中(副图源码通达信)BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),17,0), COLOR6B238E,LINETHICK3;IF(MN<-4 ,12,0),COLORBLACK,LINETHICK3;IF((VAR26>90),12,0), COLORBLACK,LINETHICK3;DRAWTEXT(底背离,6,'底背离'),COLORA67D3D;DRAWTEXT(顶背离,6,'顶背离'),COLORGREEN;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1;趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;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;下单:IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA (SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STI CK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,38,'下单!'),COLORGREEN;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);{}乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2;STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,6,0),COLORYELLOW; DRAWTEXT(乖离,18,'低买'),COLORRED;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); 快买:( IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)),LINETHICK1,COLORFF00FF; ( IF(((动向趋势线> 88) AND (神偷线< 5.8)),48,0)),LINETHICK1,COLORFF00FF; DRAWTEXT(快买,60,'准备'),COLORFF00FF;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:=EMA(C,30);MA55:=EMA(C,5 5);YCX:=MA5>=REF(MA5,1);H1:=MAX(MAX(MA5,MA13),MA30);L1:=MIN(MIN(MA5,MA1 3),MA30);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;DRAWTEXT(百日地量,-10,'地量'),COLORRED;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00; DRAWTEXT(A1,-10,'W底'),COLORYELLOW;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.05AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(V1,28,0),COLORYELLOW,LINETHICK2;IF(V1,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(V1,28,'买点'),COLORRED;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;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1); (AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1); 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 AND REF(C,1)<AA30;青云直上选股:IF(FILTER(MR,10),30,0),COLORYELLOW,LINETHICK2;IF(FILTER(MR,10),20,0),COLORYELLOW,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100<= -28 AND(CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-19 AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 ANDIF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-L LV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUAN,88,'弱市百发百中'),COLORFFFF00;IF(QUAN,88,0),COLORFFFF00,LINETHICK2;IF(QUAN,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,100,AMOUNT/C/HHV(AMOUNT ,9)/HHV(C,9)*100);DD:=CC/BB;顶部雷达:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN;CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN;DRAWTEXT(CROSS(80,RSI),88,'逃顶'),COLORGREEN;。

最牛底顶指标 副图源码 通达信 贴图

最牛底顶指标 副图源码 通达信 贴图

最牛底顶指标副图源码通达信贴图{通达信附图指标:顶底指标}VARV:=(2*C+H+L)/4;VARU:=LLV(LOW,30);VARA1:=HHV(HIGH,30);B:=EMA((VARV-VARU)/(VARA1-VARU)*100,8);B1:=EMA(B,5);STICKLINE(B-B1>0,B,B1,8,1),COLORRED;STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;低吸:IF(CROSS(RSI,11),70,0),COLORWHITE,POINTDOT;STICKLINE(低吸,70,0,4,0),COLORWHITE;VAR7:=EMA(AMOUNT/VOL/100,3);VAR8:=EMA(VAR7,88);VAR9:=EMA(VAR7,88)*0.85;VARA:=VAR9*0.87;VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;STICKLINE(FILTER(VARB,6),65,0,4,0),COLORFF00FF;坚决买进:IF(FILTER(VARB,6),65,0),COLORFF00FF,POINTDOT;VARF:=(2*CLOSE+HIGH+LOW)/4;VA4:=LLV(LOW,34);VA5:=HHV(HIGH,34);VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);出击:IF(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),60,0),COLORYELLOW,POINTDOT;STICKLINE(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 ANDCOUNT(VA6>VA7,3) ANDREF(LOW,1)=LLV(LOW,120) ANDCLOSE>OPEN,1,0),60,0,4,0),COLORYELLOW;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF( A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*R EF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*RE F(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);波段买入:IF(CROSS(D1,K1),55,0),COLOR0099FF,POINTDOT;STICKLINE(CROSS(D1,K1),55,0,4,0),COLOR0099FF;多方趋势:=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,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1) ,3,1),2,1);天线:=78.89;STICKLINE(CROSS(天线,多方趋势),90,95,6,0),COLOR00FF00;STICKLINE(B>0 AND B-B1>=0,79,80,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,79,80,6,0),COLOR00FF00;STICKLINE(B>0 AND B-B1>=0,49,50,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,49,50,6,0),COLORFF8899;STICKLINE(B>0 AND B-B1>=0,19,20,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,19,20,6,0),COLOR00FF00;STICKLINE(B-B1>0,B,B1,8,1),COLORRED;STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00;地量:DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),L*1,'地量'),COLOR00FFFF;STICKLINE(地量>0,0,30,2,0),COLOR008888;STICKLINE(地量>0,0,30,1.5,0),COLOR00AAAA;STICKLINE(地量>0,0,30,0.8,0),COLOR00DDDD;STICKLINE(地量>0,0,30,0.3,0),COLOR00FFFF;VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)* 100;DRAWICON(CROSS(82,VARR1),10,15);VAR10:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*1 00,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))* 100,20,1),15,1);VAR11:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*10 0,20,1),15,1);VAR12:=VAR10<REF(VAR11,1) AND VOL>REF(VOL,1) ANDCLOSE>REF(CLOSE,1);DRAWTEXT(VAR12 AND COUNT(VAR12,30)=1,40,'有大资金进场迹象,关注!');。

通达信指标公式源码软件筹码锁定副图指标公式.docx

通达信指标公式源码软件筹码锁定副图指标公式.docx

筹码锁定副图指标公式N 2 100 9Ml 2100 3M2 2 100 3VARR:=MA(CLOSE Z194);VART:二VARR+2 *STD(CLOSE,170);顶:(CLOSE>VART)*13*10,COLORBLUE 丄INETHICK2;主筹估算: = EMA(WINNER(C)*70,3)丄INETHICK2,COLORRED;散筹估算: = EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3),LINETHICK1Z COLORGREE N;筹码锁定:散筹估算■主筹估算,COLORGREEN丄INETHICK3;涨:CROSS(主筹估算,筹码锁定LCOLORWHITE;强:CROSS(主筹估算,散筹估算LCOLORYELLOW;STICKLINE(涨O 筹码锁定,4,0),COLORWHITE;STICKLINE(强O 散筹估算,4,0),COLORYELLOW;DRAWICON(CROSS(主筹估算,散筹估算),散筹估算,5);DRAWICON(CROSS(主筹估算,筹码锁定),主筹估算-0.2,5);STICKLINE(主筹估算〉散筹估算,主筹估算散筹估算+1,3,0) COLORYELLOW; VARl:=MA(100*(CLOSE-LLV(CLOSE z34))/(HHV(HIGH z34)-LLV(LOW,34))z5)-2 0;VAR2:=2*ABS(VAR1);VAR3: = 100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA( SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L Z75))*100,20,1),15,1);VAR4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW Z75))*100Z20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)- LLV(LOW,75))*100,20,1),15,1); VAR5:=(HIGH+LOW+CLOSE)/3;VAR6:=(VAR5・MA(VAR5J4))/(0.015*AVEDEV(VAR5,14));VAR7:=(VAR5-MA(VAR5,70))/(0.015*AVEDEV(VAR5,70));VAR8:=IF(VAR6> = 150 AND VAR6<200 AND VAR7> = 150 ANDVAR7<200z10,0);VAR9:=IF(VAR6<=-150 AND VAR6>-200 AND VAR7<=-150 AND VAR7>-200,-10,VAR8);VARA:=(CLOSE-MA(CLOSE Z13))/MA(CLOSE,13)*100;VARB: = 100-ABS(VARA);VARC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL Z75) )*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);VARD:=3*SMA((INDEXO-LLV(INDEXL Z75))/(HHV(INDEXH Z75)-LLV(INDEXL,75))*100Z20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL Z75))/ (HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VARll:=EMA(VAR10,30);VAR12:=VAR11-CLOSE;VAR13:=REF(CLOSE,1);VAR14:=SMA(MAX(CLOSE-VAR13z O)z7/l)/SMA(ABS(CLOSE-VAR13),7,l)*100; VAR15:=SMA(MAX(CLOSE-VAR13z O),13,l)/SMA(ABS(CLOSE-VAR13),13,1)*10 0;VAR16:=BARSCO U NT(CLOSE);VAR17:=SMA(MAX(CLOSE-REF(CLOSE,l)z O),6,l)/SMA(ABS(CLOSE-REF(CLOSE ,1)),6,1)*100;VAR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))4-50) *2; VAR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1A:=(SMA(VAR19,4Z1)-5O)*2;VAR1B:=SMA(VAR1A,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C Z4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=IF(VAR17<=25 AND VAR18<-95 AND VARlF>20 AND VARlB<-30 ANDVARlE<30 AND VAR12>=-0.25 AND VAR14<22 AND VAR15<28 ANDVAR16>50,80,0);战斗100-VAR3,COLORRED Z LINETHICK3;云端:IF(VARBv90,VARB,100兀OLORGREEN丄INETHICK4;野战部队:IF(VAR1>0,VAR1,0),COLORRED Z LINESTICK;茨林:IF(VARlv0,VAR2,0),COLORGREEN丄INESTICK;探空火箭:VAR20,COLORMAGENTA;前沿雷达:IF(VAR7>=200 AND VAR6> = 150,15z IF(VAR7<=-200 ANDVAR6<=-150/-15,VAR9))+60;VAR21:=CLOSE>MA(CLOSE Z20) AND MA(CLOSE,20)>=REF(MA(CLOSE Z20)Z 1);VAR22: =CLOSE<MA(CLOSE,20) AND MA(CLOSE Z20)<REF(MA(CLOSE,20),1);VAR23:=野战部队>50 AND前沿雷达〉60 AND云端=100;VAR24:=野战部队>48 AND前沿雷达〉60 AND云端V100;VAR25:=次林>38 AND前沿雷达<55;VAR26:=探空火箭>50 AND云端v90;VAR27:=VAR3<REF(VAR4Z1) AND VOL>REF(VOL,1) ANDCLOSE>REF(CLOSE,1);VAR28: = VAR3> = REF(VAR4Z1) AND CLOSEvREF(CLOSE’l) AND 前沿雷达=60 AND探空火箭=0 AND欢林> = REF(欢林」)AND VARCvREF(VARD,1);DRAWTEXT(VAR21 AND COUNT(VAR21,30)=1Z100Z'A,);DRAWTEXT(VAR22 AND COUNT(VAR22,30)=1,90Z,! *);DRAWTEXT(VAR23 AND COUNT(VAR23,30)=1,70;/ ! \ ');DRAWTEXT(VAR24 AND COUNT(VAR24,30)=1,80/0 I \ ');DRAWTEXT(VAR25 AND COUNT(VAR25Z30)=1,50;V,);DRAWTEXT(VAR26 AND COUNT(VAR26,30)=1Z30/U,);DRAWTEXT(VAR27 AND COUNT(VAR27,30)== ▲ *);DRAWTEXT(VAR28 AND COUNT(VAR28,30)=1,20; ¥ \AVAR1:=((CLOSE-LLV(LOW,20))/(HHV(HIGH Z20)-LLV(LOW,20)))*(100);AVAR2:=SMA(AVAR1Z2O,1);AVAR3:=SMA(AVAR2,15,1);AVAR4: = 100・(3)*(AVAR2)+(2)*(AVAR3);AVAR5:=((3)*(AVAR2)+(2)*(AVAR3))/(4);AVAR6:=ABS(ABS(AVAR5)・ABS(AVAR4));AVAR7: =ABS(ABS(AVAR5)-ABS(AVAR6));AVAR8: = REF(AVAR5,1);阴跌区:=AVAR4-AVAR7,;顶区域:=IF((阴跌区vO),阴跌区,0),;顶部:=(100),;RSA:=((SMA(MAX(AVAR5・AVAR8,O)21))/(SMA(ABS(AVAR5・AVAR8)21)))*(1 00);RSB:=MA(RSA Z1O);介入:IF(CROSS(RSA,RSB),58,0),COLORRED,STICK 丄INETHICK2;加仓:IF(CROSS(RSB,90),70,OJCOLOROOFFFF,STICK 丄INETHICK2; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K Z M2,1);DPYJ:(K+D)/2,COLORWHITE,LINETHICK2 ;顶3:95Z COLORFFOOFF;STICKLINE(DPYJ>95,100,95,1,0),COLORFFOOFF;顶1:=70,COLOR0254FD;STICKLINE(DPYJ>70,80,70,1,0),COLOR0254FD;顶2:=80,COLOROOOOFF;STICKLINE(DPYJ>80z95,80,l,0)z COLOR0000FF;底1:30,COLOROOFFOO;STICKLINE(DPYJ<30,20,30,l,0),COLOR00FF00;上太空3:IF(CROSS(,,MACD.DIF n(12,25,6),,,MACD.DEA H(12,25,6))AND ,,MACD.DIF,,(12z25/6)>0 AND ,,MACD.DEA H(12z25,6)>0,50z0)z COLOR0000FF; DRAWTEXT(上太空3 /前沿雷达*0.97;太空JCOLORYELLOW丄INETHICK2 ; 过江龙:EMA((CLOSE-REF(CLOSE,21))/REF(CLOSE Z21)*100,4),COLORRED;弱能量:EMA(过江龙,30)〃LINETHICK0,COLORBLUE;强能量:IF(VAR1>弱能量O弱能量),LINETHICKO,COLORYELLOW;江面QCOLOR99FF99;STICKLINE((过江龙 >强能量)'过江龙,强能量,3,0),COLORRED;STICKLINE((过江龙v强能量)/过江龙,强能量,3z O),COLORD4FF7F;MAIRU:= CROSS(KQ) AND K<20;MAICHU:= CROSS(D’K) AND D>80;BVAR2:=REF(LOW,1);BVAR3:=SMA(ABS(LOW-BVAR2),3,l)/SMA(MAX(L0W-BVAR2,0),3,1)*100;BVAR4:=EMA(IF(CLOSE*1.3Z BVAR3*10Z BVAR3/10)Z3);BVAR5:=LLV(LOW,30);BVAR6:=HHV(BVAR4,30);BVAR7: =IF(MA(CLOSE,58),1,0);BVAR8:=EMA(IF(LOW<=BVAR5,(BVAR4+BVAR6*2)/2,0),3)/618*BVAR7;BVAR9:=IF(BVAR8>100z100,BVAR8);快线:(CLOSE-LLV(LOW/N))/(HHV(HIGH Z N)-LLV(LOW,N))*100Z COLORFF937F;拉升资金:VAR25,COLORBLUE丄INETHICK4;VAR29:=POW(VAR28,3)*0.1+POW(VAR28Z1);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. l,VAR29,0)*5;。

通达信绝佳卖点指标公式(源码副图贴图)

通达信绝佳卖点指标公式(源码副图贴图)

通达信绝佳卖点指标公式(源码副图贴图)VAR11:=9999999999999;VAR21:=LLV(LOW,60);VAR31:=HHV(HIGH,60);VAR41:=EMA((CLOSE-VAR21)/(VAR31-VAR21)*100,5);VAR5:=EMA(0.667*REF(VAR41,1)+0.333*VAR41,2);VAR6:=OPEN=1.06 AND CLOSE/OPEN>1.12 AND HIGH/ CROSS(VAR41,VAR5) AND VAR41<13;顶:CROSS(VAR5,VAR41) AND VAR41>85,STICK,LINETHICK2,COLORRED;{N 2 200 21}VAR1:=EMA(EMA(CLOSE,5),9);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE,COLORCYAN;A10:=CROSS(控盘,0.5);无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;开始控盘:IF(A10,3,0),LINETHICK2,COLORYELLOW,COLORFFFFFF;STICKLINE(C>0,0,0,50,1),COLORGREEN,COLORCYAN;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED;有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF;高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00;主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;大盘是水: (INDEXC-REF(INDEXC,N))/REF(INDEXC,N)*80,COLORRED,LINETHICK3;个股是舟: (CLOSE-REF(CLOSE,N))/REF(CLOSE,N)*80,COLORYELLOW,LINETHICK2;自用标注量价K线找强股(主图原码图)A01:=MIN(O,C);B01:=ABS(O-C);倍量:=(V/REF(V,1)>=1.91 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>=1.91),NODRAW,COLORYELLOW,COLORFF00FF;STICKLINE(C>1.0399*REF(C,1),C,O,1,0),COLOR38B0DE;STICKLINE(C>1.0599*REF(C,1),C,O,1,0),COLOR4D4DFF;C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLOR7F00FF;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,1,0),COLORGREEN;{立桩量}JJ:=(3*C+H+L+O)/6;VARL:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4) +3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VARL AND C>REF(C,1);LJL:=FILTER(TJ1,5);STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSL AST(LJL)),0.1,0),COLORFFFFFF,NODRAW;STICKLINE(CLOSE,REF(CLOSE,BARSLAST(LJL)),REF(CLOSE,BA RSLAST(LJL)),0.1,0),COLORRED,NODRAW;STICKLINE(LJL,OPEN,CLOSE,0.5,1),COLORWHITE;地量:=V<=REF(LLV(V,100),1),NODRAW;STICKLINE(地量,A01+B01,A01+B01/1.5,2.5,0),COLORFF0000;STICKLINE(倍量,A01+B01/4,A01+B01/2,2.5,0),COLOR7F017F,COLORFF00FF;换手:=VOL*100/CAPITAL,STICK;带量:=C=C AND 换手>=5{ AND 换手<8};放量:=C=C AND 换手>=8 AND 换手<15,COLOR32CD32;STICKLINE(放量,A01,A01+B01/4,2.5,0),COLOR32CD32,COLORYELLOW;巨量:=C=C AND 换手>=15 AND 换手<25,COLORYELLOW;STICKLINE(巨量,A01,A01+B01/4,2.5,0),COLOR32CD32;怪异:=C=C AND 换手>=25,COLOR8E236B;STICKLINE(怪异,A01,A01+B01/4,2.5,0),COLOR8E236B;顶底捕捉-(副图,源码,贴图,无未来){顶底捕捉}n:=3;e2:=10;e3:15;e4:-15;MAn:=MA(C,n);MA10:=MA(C,10);MA20:=MA(C,20);MA30:= MA(C,30);MA60:=MA(C,60);d1=(MAn-MA10)/MIN(MAn,MA10);d2=(MAn-MA20)/MIN(MAn,MA20);d3=(MAn-MA30)/MIN(MAn,MA30);d5=(MA20-MA10)/MIN(MA20,MA10);d6=(MA30-MA10)/MIN(MA30,MA10);d8=(MA20-MA30)/MIN(MA20,MA30);da:=WMA(MAX(MAX(MAX(d1,d2),MAX(d3,d5)),MAX(d6,d8)) *100,2);db:=WMA(MIN(MIN(MIN(d1,d2),MIN(d3,d5)),MIN(d6,d8))*1 00,2);gj:=(2*C+H+L)/4;顶:=da>10 AND gj>MA30 AND REF(da,1)>MAX(REF(da,2),da);底:=db<-10 AND gj<MA30 AND REF(db,1)<MIN(REF(db,2),db);DRAWTEXT(底 AND COUNT(底,BARSLAST(NOT(db<-10 ANDgj<MA30)))=1,db*1.1,'底1'),colormagenta;DRAWTEXT(底 AND COUNT(底,BARSLAST(NOT(db<-10 AND gj<MA30)))=2,db*1.1,'底2'),colormagenta;DRAWTEXT(底 AND COUNT(底,BARSLAST(NOT(db<-10 AND gj<MA30)))=3,db*1.1,'底3'),colormagenta;DRAWTEXT(底 AND COUNT(底,BARSLAST(NOT(db<-10 AND gj<MA30)))=4,db*1.1,'底4'),colormagenta;DRAWTEXT(底 AND COUNT(底,BARSLAST(NOT(db<-10 AND gj<MA30)))=5,db*1.1,'底5'),colormagenta;DRAWTEXT(底 AND COUNT(底,BARSLAST(NOT(db<-10 AND gj<MA30)))=6,db*1.1,'底6'),colormagenta;DRAWTEXT(顶AND COUNT(顶,BARSLAST(NOT(da>10 AND gj>MA30)))=1,da*1.1,'顶1'),colorcyan;DRAWTEXT(顶AND COUNT(顶,BARSLAST(NOT(da>10 AND gj>MA30)))=2,da*1.1,'顶2'),colorcyan;DRAWTEXT(顶AND COUNT(顶,BARSLAST(NOT(da>10 AND gj>MA30)))=3,da*1.1,'顶3'),colorcyan;DRAWTEXT(顶AND COUNT(顶,BARSLAST(NOT(da>10 AND gj>MA30)))=4,da*1.1,'顶4'),colorcyan;DRAWTEXT(顶AND COUNT(顶,BARSLAST(NOT(da>10 AND gj>MA30)))=5,da*1.1,'顶5'),colorcyan;DRAWTEXT(顶AND COUNT(顶,BARSLAST(NOT(da>10 AND gj>MA30)))=6,da*1.1,'顶6'),colorcyan;STICKLINE(db<-10 AND gj<MA30,db,-5,1,0),RGB(0,255,0);STICKLINE(da>10 AND gj>MA30,da,5,1,0),RGB(255,0,0);STICKLINE(C,5,-5,15,0),RGB(80,80,80);。

通达信指标公式源码 成本乖离副图指标

通达信指标公式源码 成本乖离副图指标

DIF:(EMA(CLOSE,12) - EMA(CLOSE,26)),COLORRED,NODRAW;DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;MACD:8*(DIF-DEA),NODRAW;GLM:COST(50)-COST(20),COLORRED,LINETHICK0;GL50:EMA(C-COST(50),5),COLOR00FFFF,LINETHICK0;GL20:EMA(C-COST(20),5),COLORFF00FF,LINETHICK0;DRAWBAND(GLM,RGB(60,60,60),0,RGB(60,60,60));DRAWBAND(GL20,RGB(100,40,100),GLM,RGB(30,100,30));STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099; STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR888888; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLORBBBBBB; STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLORDDDDDD; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR3377AA; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR3388BB; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR4499CC; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLORFF3300; STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLORFF5500;STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLORFF7700; IF(C,0,DRAWNULL),COLORRED,LINETHICK2;IF(DIF>0 AND MACD<=0,0,DRAWNULL),COLORFFFFFF,LINETHICK2;IF(DIF<=0 AND MACD>0,0,DRAWNULL),COLORFF09FF,LINETHICK2;IF(DIF<=0 AND MACD<=0,0,DRAWNULL),COLORBBB000,LINETHICK2; GLM,COLORRED,LINETHICK1;IF(GLM<REF(GLM,1),GLM,DRAWNULL),COLOR00FF00;STICKLINE(CROSS(GL20,GLM),GLM*2,GLM,2,0),COLORFF00FF;GL50,COLOR00FFFF,LINETHICK1;GL20,COLORFF00FF,LINETHICK1;IF(GL50<=REF(GL50,1),GL50,DRAWNULL),COLORBB0000;IF(GL20<=REF(GL20,1),GL20,DRAWNULL),COLORFFF000;。

比较稳定的通达信指标公式

比较稳定的通达信指标公式

比较稳定的通达信指标公式1. 12日EMA(12日指数移动平均线):的计算公式是:12日EMA=昨天的EMA+今天的收盘价*(2/13)。

2. 26日EMA(26日指数移动平均线):的计算公式是:26日EMA=昨天的EMA+今天的收盘价*(2/27)。

3. MACD(指数平滑异同平均线):的计算公式是:MACD(12,26,9)=12日EMA-26日EMA 、柱状线=MACD-某一周期前的MACD 、离差线=(DIF-DEA)*2 。

4. KDJ(随机指标):的计算公式是:KDJ(9,3,3) = (当日最高价-N日内最低价之差÷N日内最高价-最低价之差)×100 、 D=(K值的M日算术平均值)、 J= 3K-2D 。

5. PSY(心理线):的计算公式是:PSYMA=N日以来,收盘价大于前一日收盘价的天数占总天数的百分比PSY=PSYMA×100 。

6. BOLL(布林线):的计算公式是:中轨线=N日的算术平均值、上轨线=中轨线+两倍的标准差、下轨线=中轨线-两倍的标准差。

7. SAR(停损反向移动点):的计算公式是:SAR = SARn-1 + AF x (EP - SARn-1) 、其中,SARn-1表示上一周期的SAR值,EP表示该周期的极点值,AF是加速因子,在该波段的价格上涨或者下跌时,加速因子AF都会持续增加。

8. RSI(相对强弱指标):的计算公式是:RSI=N日内收盘涨数平均值÷N日内收盘跌数平均值×100 。

9. WR(Williams指标):的计算公式是:%R = (HIGHn - CLOSEn) / (HIGHn - LOWn) * 100 、其中HIGHn、LOWn、CLOSEn都是某一天的最高价、最低价、收盘价。

10. MTM(动量线):的计算公式是:MTM=今日收盘价-N日前的收盘价。

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

百钻抄底指标
X_1:=CLOSE;
X_2:=(X_1-MA(X_1,25))/MA(X_1,45)*123;
百钻抄底:CROSS(X_2,(-25)),COLORYELLOW;
LC:=REF(C,1);
RSV34:=100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34));
K34:=SMA(RSV34,3,1);
BIAS34:=((C-MA(C,34))/MA(C,34)*100+10)*5;
KB34:=(K34+BIAS34)/4+10;
BB1:=IF((K34<10 OR (K34<15 AND HHV(H,5)/LLV(C,5)>1.15)) AND KB34<=-0.5,1,0); 抢反弹:BB1=1 AND C=LLV(C,10) AND C<L*1.045 AND V<HHV(V,10) AND C>LC*0.9015,COLORRED;
牛股基因指标
RSV89:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;
K89:=SMA(RSV89,13,1);
D89:=SMA(K89,3,1);
J89:=3*K89-2*D89;
长:=EMA(J89,5);
RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
J1:=3*K1-2*D1;
中:=EMA(J1,5),COLORYELLOW;
RSV2:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K2:=SMA(RSV2,3,1);{好}
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
短:=EMA(J2,5),COLORWHITE;
{个股涨幅跟沪深两大盘对比}
ZF5:=(CLOSE-REF(CLOSE,4))/REF(CLOSE,4)*100;
ZF5D1:=("999999$CLOSE"-REF("999999$CLOSE",4))/REF("999999$CLOSE",4)*100;
ZF5D2:=("399001$CLOSE"-REF("399001$CLOSE",4))/REF("399001$CLOSE",4)*100; DPDB:=MA(ZF5-MAX(ZF5D1,ZF5D2),5);
{成本重心}
CBZX:=AMOUNT/VOL/100;
斜率:=SLOPE(CBZX,3)+SLOPE(CBZX,5);
{相对强度}
相对强度:=DPDB,COLORWHITE;
TJ1:=SLOPE(DPDB,3)>0 AND 斜率>0;
TJ2:=中<20 AND 短<20 AND 长<60;
条件1:=相对强度>REF(相对强度,1) AND REF(相对强度,1)>REF(相对强度,2) AND REF(相对强度,2)<REF(相对强度,3)
AND REF(相对强度,1)<-4 AND TJ1 AND REF(TJ1,1);
条件2:=相对强度>REF(相对强度,1) AND REF(相对强度,1)>REF(相对强度,2) AND REF(相对强度,2)>REF(相对强度,3) AND REF(相对强度,3)<REF(相对强度,4)
AND REF(相对强度,1)<-4 AND TJ1 AND REF(TJ1,1);
条件3:=相对强度>REF(相对强度,1) AND REF(相对强度,1)<REF(相对强度,2)
AND 相对强度<-4 AND TJ1;
因子:=ABS(LLV(相对强度,5));
牛股基因: ((条件 1 OR 条件 2 OR 条件3) AND EXIST(TJ2,5))*因子,COLORRED,LINETHICK2;
牛魔王选股指
N:=8;
M:=20;
GC1:=EMA((C+L+H)/3,6);
GC2:=EMA(EMA((C+L+H)/3,6),5);
FY1:=CROSS(GC1,GC2);
FY2:=COUNT(FY1,2)>0;
KUA:=100-100*(HHV(HIGH,5*N)-CLOSE)/(HHV(HIGH,5*N)-LLV(LOW,5*N));
CFL:=(VOL/REF(VOL,1)>1 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>2);
ERC1:=CROSS(KUA,M) AND CFL AND CROSS(V,MA(V,5));
ERC2:=COUNT(BETWEEN(KUA,20,50),5)>=3 AND CROSS(KUA,50);
ERC3:=COUNT(BETWEEN(KUA,50,70),5)>=3 AND CROSS(KUA,70);
CROSS(MA(V,3),MA(V,5)) AND FY2 AND (ERC1 OR ERC2 OR ERC3);。

相关文档
最新文档