买卖趋势(指标、源码、副图)

合集下载

通达信主力筹码一目了然副图指标

通达信主力筹码一目了然副图指标

通达信主力筹码一目了然副图指标这是一个用来监控主力动向很优秀的指标,有100线上下的柱线显示资金进出情况,20线上灰白柱线提示散户筹码,彩色柱线提示主力筹码运行,从吸货拉升到出货(由蓝-黄-红-绿),散兵坑予示底部,20线下深蓝柱提示关注,亮红柱提示建仓。

三根线与柱线综合观察分析,就可以获得极隹的买卖点。

指标源码:{价量线主线快线}价量: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),COLOR00CCFF,NODRAW;主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25),COLORCYAN,NODRAW;快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25),COLOR55AAFF,NODRAW;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;{变异KD风险系数}TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}{红}XXX(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000A A;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022C C;STICKLINE(TGLXS>0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF ;{粉}XXX(XXX<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00B B;STICKLINE(TGLXS<0 ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22B B;STICKLINE(TGLXS<0 AND TGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55B B;{黄}XXX(TGLXS>0 ANDXXX<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00A AFF;XXX(TGLXS>0 ANDXXX<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00C CFF;XXX(TGLXS>0XXX<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF; {蓝}XXX(XXX<0XXX<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700; XXX<0XXX<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22 ;STICKLINE(TGLXS<0XXX<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55; STICKLINE(TGLXS=0 ANDREF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN;STI CKLINE(TGLXS=0 AND REF(TGLXS,1)<0,100,TGLXS+100,8,0),COLORWHITE;ZLCM: =EMA(WINNER(CLOSE)*70,3);{主力筹马预算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{散户套牢筹码系数} ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{主力控盘筹码系数} ZSHJJ:=EMA(ZSHTL,55);{散户警戒}ZZLJJ:=EMA(ZZLKP,55);{主力警戒}散兵坑:IF(ZZLKP<=10,ZZLKP,ZZLKP),COLORMAGENTA,NODR AW;{散户套牢筹码}XXX(C>0,ZSHTL,ZZLKP,2,0),COLOR;{散户筹码警戒}XXX(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;{主力控盘筹码}{粉}STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORAA00BB;STICKLINE(ZZ LKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORCC22BB;STICKLINE(ZZ LKP>REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5,0 ),COLOREE44BB;{蓝}XXX(ZZLKP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,2.5,0 ),COLORFF7700;STICKLINE(ZZL KP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,1.5,0 ),COLORFFAA22;STICKLINE(ZZL KP<=REF(ZZLKP,1) AND ZZLKP>20,ZZLKP,20,0.5 ,0 ),COLORFFFF55;{亮红} STICKLINE(ZZLKP>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLOR131FFD;STICKLINE(ZZLK P>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLOR5050FF;STICKLINE(ZZLK P>REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5,0 ),COLOR7E7EFF;{深蓝}XXX(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,2.5,0 ),COLORAA0000;STICKLINE(ZZLKP<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,1.5,0 ),COLORCC0000;STICKLINE(ZZLK P<=REF(ZZLKP,1) AND ZZLKP<20,ZZLKP,0,0.5 ,0 ),COLORFF0000;{主力筹马警卫} {黄}STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0 ),C OLOR00AAFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0 ),C OLOR00CCFF;STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0 ),C OLOR00FFFF;{红}XXX(ZZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,2.5,0 ),COLOR0000AA;STICKLINE(Z ZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,1.5,0 ),COLOR0022CC;STICKLINE(Z ZLKP>ZZLJJ AND ZZLJJ>50,ZZLKP,ZZLJJ,0.5 ,0 ),COLOR0055FF;{红} XXX(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0 ),COLOR0000AA;XXX(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50 ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0 ),COLOR0022CC;XXX(ZZLKP>ZZLJJ AND ZZLJJ<50 AND ZZLKP>50 ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,0.5 ,0 ),COLOR0055FF;{铸顶风险区}{绿}STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;{散兵坑}XXX(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;100,COLORGREEN;80,COLORGREEN;{0,COLORGREEN;}{主线快线}价量,COLOR0CC0FF,LINETHICK2;主线,COLOR00FFAA,LINETHICK2;快线,LINESTICK,COLORFF68DD;100线高低的柱线,表现资金收支情形。

变盘买卖指标公式源码

变盘买卖指标公式源码

变盘买卖指标公式源码
绿色线:MA(C,N)
红色线:MA(C,M)
其中,C表示收盘价,N表示均线的周期数,M表示指示线周期数。

计算方法:
1、计算MA(C,N):
MA(C,N)=(C1+C2+C3+…+CN)/N
其中,C1、C2、C3、…、CN表示N日收盘价。

2、计算MA(C,M):
MA(C,M)=(C1+C2+C3+…+CM)/M
其中,C1、C2、C3、…、CM表示M日收盘价。

3、计算变盘买卖指标:
VPMM(C,N,M)=MA(C,N)-MA(C,M)
该指标表示均线和指示线之间的距离,当收盘价上涨时,它也会上涨;当收盘价下跌时,它也会下跌。

交易信号:
1、若VPMM(C,N,M)>0,表示收盘价追赶指示线,此时可考虑买入;
2、若VPMM(C,N,M)<0,表示收盘价下跌,属于调整行情,此时可考虑卖出。

投资者应根据自己的风险偏好,以及资金状况等实际情况,结合个股基本面和技术面分析,合理参考变盘买卖指标公式,作出投资决策。

通达信副图指标精准买卖(附源码)

通达信副图指标精准买卖(附源码)

通达信副图指标精准买卖(附源码)V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤: IF(V4<=0,V4,0),COLORBLUE;主力进: IF(V4>=0,V4,0),COLORFF00FF;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),COLORRED;大盘资金撤走:IF(VB<=0,VB,0),COLORGREEN;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55) -LLV(L,55))*100,5,1),3,1);趋势线: EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);DRAWTEXT (AA,30,'准备现金'),COLORCC9900;买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF;BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;卖临界: STICKLINE(趋势线>90 AND 趋势线>REF(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:FILTER(趋势线>90 AND 趋势线<REF(趋势线,1) AND 主力进<REF(主力进,1),8); DRAWTEXT( 见顶清仓,90,'逃顶'),COLORYELLOW;CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);STICKLINE(大盘资金进场AND 趋势线<13,0,30,10,0),COLORRED;STICKLINE(大盘资金撤走AND 趋势线>90,0,30,10,0),COLORGREEN;STICKLINE(主力进AND 趋势线<13,0,40,10,0),COLORFF00FF;STICKLINE(主力撤AND 趋势线>90,0,40,10,0),COLORBLUE;。

量趋势副图指标 通达信 源码

量趋势副图指标 通达信 源码

量趋势副图指标通达信源码量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;总量:买量+卖量,LINETHICK0;净量:买量-卖量,LINETHICK0;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN )+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;{卖盘:-IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPE N,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORCYAN,POINTDOT;}卖盘:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN, 0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;震动调整:=(买盘+ 卖盘);STICKLINE((震动调整< 1),1,震动调整,3,0),COLOR70DB93;买卖量差%:((买盘)+(卖盘))/100000,COLORFF00FF;STICKLINE((买卖量差% < 0),0,买卖量差%,3,0),COLORWHITE,LINETHICK0; {成交量}买比%:买盘/VOL*100,COLORWHITE,NODRAW;MA5:MA(VOL,5),COLORRED;MA35:MA(VOL,35),COLORGREEN;DRAWTEXT(CROSS(MA5,MA35),(V *1.05),'★'),COLORRED;MAA:=MA( CLOSE ,2) ;STICKLINE(C>MAA,总量,1,4,1 ),COLOR00FFFF;STICKLINE(C<MAA,总量,1,4,1 ),COLORFF00FF;STICKLINE(净量<0,1,总量,4,1),COLORFFFF00;STICKLINE(C<MAA AND 净量>0,净量,1,4,1 ),COLOR0000FF;STICKLINE(V>=2*REF(V,1),1,总量,4,1),COLOR0000FF;STICKLINE(总量>1,总量,0,3,0),COLORFF3300;STICKLINE(总量>1,总量,0,2,0),COLORFF7700;STICKLINE(总量>1,总量,0,1,0),COLORFFAA00;STICKLINE(总量>1,总量,0,0.1,0),COLORFFFF00;STICKLINE(买量>0,0,买量,3,0),COLOR000099;STICKLINE(买量>0,0,买量,2,0),COLOR0000AA;STICKLINE(买量>0,0,买量,1,0),COLOR0000FF;STICKLINE(买量>0,0,买量,0.1,0),COLORCC00FF;STICKLINE(净量>0,0,净量,3,0),COLOR0033FF;STICKLINE(净量>0,0,净量,2,0),COLOR0077FF;STICKLINE(净量>0,0,净量,1,0),COLOR00BBFF;STICKLINE(净量>0,0,净量,0.1,0),COLOR00FFFF; STICKLINE(净量<0,1,净量,4,1),COLORFFFF00;STICKLINE(净量<0,0,净量,3,0),COLOR005500;STICKLINE(净量<0,0,净量,2,0),COLOR009900;STICKLINE(净量<0,0,净量,1,0),COLOR00BB00; STICKLINE(净量<0,0,净量,0.1,0),COLOR00FF00; STICKLINE(C<MAA AND 净量>0,净量,0,3,0 ),COLOR777777; STICKLINE(C<MAA AND 净量>0,净量,0,2,0 ),COLOR999999; STICKLINE(C<MAA AND 净量>0,净量,0,1,0 ),COLORBBBBBB; STICKLINE(C<MAA AND 净量>0,净量,0,0.1,0 ),COLORFFFFFF; {倍量成交拐点横线}STICKLINE(V>=3*REF(V,1),V/3,V/3,3.9,0),COLORWHITE; STICKLINE(V>=2*REF(V,1),V/2,V/2,3.9,0),COLORYELLOW; MA5,COLORYELLOW ;MA35,COLORRED;。

主力买卖 资金进出(副图 指标)通达信指标公式源码

主力买卖 资金进出(副图 指标)通达信指标公式源码

主力买卖资金进出(副图指标)DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(230,65,0)); DRAWRECTREL(100,60,90+CONST(主卖*300/100),100,RGB(0,104,0)); DRAWRECTREL(100,120,390,160,RGB(0,0,100));DRAWRECTREL(100,120,90+CONST(【量能饱和】*300/100),160,RGB(250,104,0));大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;T1:=IF (大单动向>0 AND REF(大单动向,1)<0,1,0);T2:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)<0,2,T1);T3:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)<0,3,T2);T4:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)<0,4,T3);T5:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)<0,5,T4);T6:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)<0,6,T5); T7:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)<0,7,T6);T8:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)<0,8,T7);T9:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)<0,9,T8);T:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)>0,10,T9);D:=COUNT(大单动向>0,10),NODRAW;DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT(STRCAT('【主买比】:',CON2STR(主买,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT(STRCAT('【主卖比】:',CON2STR(主卖,1)),' %')),COLORGREEN;DRAWTEXT_FIX(1,0.005,0.13,0,STRCAT(STRCAT('【量能饱和】:',CON2STR(【量能饱和】,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.19,0,STRCAT(STRCAT('【主力资金差】: ',CON2STR(主力资金差,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.19,0,STRCAT(STRCAT('【大宗净流入】: ',CON2STR(大宗净流入,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.25,0,STRCAT(STRCAT('【主力净买量】: ',CON2STR(主力净买量,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.25,0,STRCAT(STRCAT('【主动买卖差】: ',CON2STR(主动买卖差,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.31,0,STRCAT(STRCAT('【DDX连红天数】: ',CON2STR(T,0)),' 天')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.31,0,STRCAT(STRCAT('【DDX两周红天数】: ',CON2STR(D,0)),' 天')),COLORYELLOW;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2))))); ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FFFF; STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;资金进出:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),资金流量,0,3,0),COLOR0000FF;STICKLINE((资金流量< 0),资金流量,0,3,0),COLORFF3300;黄柱初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);X:=(3*C+2*L+O+H)/7;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*RE F(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;长黄柱:= 资金流入>300 AND CROSS(C,多空线);DRAWTEXT(黄柱初出蓝,-30,'★'),COLORFF00FF;DRAWTEXT(长黄柱,((HSL * 0.4) * 1.5)*1.4 ,'★'),COLORRED;。

买卖趋势(指标、源码、副图)

买卖趋势(指标、源码、副图)

买卖趋势(指标、源码、副图)(2012-04-04 16:36:30){KKDD大趋势}LOWV1:=EMA(LLV(LOW,34),3);HIGHV1:=EMA(HHV(HIGH,34),3);RSV1:=EMA((CLOSE-LOWV1)/(HIGHV1-LOWV1)*100,3);KK:=SMA(RSV1,8,1),COLOR4080FF,LINETHICK1;DD:=SMA(KK,6,1),COLOR008000,LINETHICK1;DRAWBAND(KK,RGB(200,0,200),DD,RGB(100,100,100));{盘整突破}突破角度:=(ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.14115926)>55; {>45 数字可调整为你喜欢的任何角度}去除停牌:=DYNAINFO(17)!=0;VARR:=(C+H+O+L)/4;上轨:=EMA(VARR,10)*1.09;盘整突破:=LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*1.5 ANDC>REF(C,1)*1.03AND "DMI.PDI">"DMI.MDI" AND"DMI.ADXR">"DMI.MDI"AND "DMI.PDI">"DMI.ADX" AND(CROSS("DMI.ADX","DMI.ADXR")OR("DMI.ADX">"DMI.ADXR"))AND"KDJ.D">REF("KDJ.D",1) AND"KDJ.D"<75 AND C<上轨 AND 突破角度 AND 去除停牌;STICKLINE(盘整突破,0,45,1.2,0),COLORWHITE;DRAWTEXT(盘整突破,45,'突破'),COLORWHITE,LINETHICK1;{财神到}XXBB:= EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*4,5)*100;财神到:=REF(XXBB,1)<50 AND XXBB-REF(XXBB,1)>25;STICKLINE(财神到,33,50,3,0),COLOR2222AA;STICKLINE(财神到,16.5,33,3,0),COLOR11AA88;STICKLINE(财神到,0,16.5,3,0),COLORAAAA00;DRAWTEXT(财神到,55,'财'),COLORYELLOW;DRAWTEXT(财神到,35,'神'),COLORYELLOW;DRAWTEXT(财神到,20.5,'到'),COLORYELLOW;{短线买点选股}DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);短线买点:=CROSS(((DIFF1-EMA(DIFF1,9))*10-REF((DIFF1-EMA(DIFF1,9))*10,1)),1) AND (DIFF1-EMA(DIFF1,9))*10>1;IF(短线买点,60,0),LINETHICK2,COLOR00FFFF;DRAWTEXT(短线买点>0,35,'短买'),LINETHICK1,COLOR00FFFF;{今买明卖}MA20:=MA(C,20);MA30:=MA(C,30);QSXS:=MA20>MA30 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);ZF:=(C/REF(C,1)-1)*100;N1:=BARSLAST(CROSS(C,MA(C,5)));N2:=BARSLAST(CROSS(MA(C,5),C));HM:=IF(N1<N2,N1+1,0)*QSXS;Z2:=HM=1 AND ZF>=0 AND C>O AND QSXS;KX1:=ZF<=-3 AND C<O;XDSJ:=BARSLAST(KX1);KX2:=ZF>=3 AND C>O;JBY:=KX2 AND XDSJ<=2 AND C>=REF(O*0.99,XDSJ) ANDZF>ABS(REF(ZF,XDSJ)*0.99);Z3:=IF(FILTER(JBY,1) AND QSXS,5,0);今买明卖:=Z2 AND Z3;IF(今买明卖,35,0),LINETHICK2,COLORGREEN;DRAWTEXT(今买明卖>0,30,'买卖'),LINETHICK1,COLORGREEN;{横盘启动突破}LOWV:=LLV(LOW,15); {15天内的最低价}HIGHV:=HHV(HIGH,15); {15天内的最高价}HIGHVV:=HHV(HIGH,40); {40天内的最高价}V0:=V; {当天的成交量}V1:=REF(V,1); {一天前的成交量} V2:=REF(V,2); {两天前的成交量} V3:=REF(V,3); {三天前的成交量} HV22:=HHV(V,35); {35天内的最大成交量} D0U:=C>O; {今天是阳线}D1U:=REF(C,1)>=REF(C,2); {昨天是阳线}横盘:=((HIGHV-LOWV)/HIGHV)<0.15; {半个月内价格波动小于15%} 放量1:=V0>=(1.8*((V1+V2+V3)/3)); {今天量是前三天均量的1.8倍}放量2:=V0<=(3.8*V1); { 今天的量在昨天量的四倍范围内}今天阳线:=D0U; {今天是阳线}昨天阳线:=D1U; {昨天是阳线}今天中阳:=(C-REF(C,1))/REF(C,1)>=0.018; {今天涨幅大于1.8%}开盘非最高价:=C<=HIGHVV; {收盘非40天内最高价}收盘非最高价:=O<=HIGHVV; {开盘非40天内最高价}非最大成交量:=V0<HV22; {非一个月内最高成交量}启动突破:=(横盘 AND 放量1 AND 放量2 AND 今天阳线 AND 昨天阳线 AND 今天中阳 AND 开盘非最高价 AND 收盘非最高价 AND非最大成交量) AND 盘整突破;IF(启动突破>0,40,0),COLORWHITE,LINETHICK2;DRAWTEXT(启动突破>0,30,'启动'),COLORFFFFFF;{中顶大顶}X:=MA(AMOUNT,5)/MA(V,5)/100;VAR9:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;VAR11:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);VAR12:=C/MA(C,60)-1;中顶:IF(CROSS(VAR11,-95) AND VAR12<0.35 ANDVAR12>=0.2,-60,0),COLORMAGENTA,LINETHICK2;DRAWTEXT(中顶<0,-30,'中顶'),COLORMAGENTA,LINETHICK1;大顶:IF(CROSS(VAR11,-95) AND VAR12>=0.35,-60,0),COLORFF7F00,LINETHICK2; DRAWTEXT(大顶<0,-30,'大顶'),COLORFF7F00,LINETHICK1;0,COLORRED,LINETHICK2;DIF:(EMA(CLOSE,5)-EMA(CLOSE,27))/((EMA(CLOSE,5)+EMA(CLOSE,27))/2)*100 0,COLOR00FFFF;DEA1:=EMA(DIF,9),COLORWHITE;MACD:2*(DIF-DEA1),NODRAW,COLORRED;{红绿箭头}DRAWICON(CROSS(DIF,DEA1),DEA1,1);DRAWICON(CROSS(DEA1,DIF),DEA1,2);{DIF变色线没有未来函数}DEA:EMA(DIF,9),COLORWHITE,LINETHICK2;DIF,IF(DEA,DIF,DRAWNULL),COLOR00FFFF,LINETHICK2;IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN,LINETHICK2;IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;8,COLOR00FFFF,POINTDOT,LINETHICK2;80,COLOR008000,POINTDOT,LINETHICK2;。

通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式

通达信指标公式源码主力动向副图(主买主卖副图) 傻买傻卖公式

DRAWRECTREL(0,0,400,988,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));【量能饱和】:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;大宗净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLORCYAN,NO DRAW;DRAWRECTREL(100,0,90+CONST(主买*300/100),40,RGB(230,65,0)); DRAWRECTREL(100,60,90+CONST(主卖*300/100),100,RGB(0,104,0));DRAWRECTREL(100,120,390,160,RGB(0,0,100));DRAWRECTREL(100,120,90+CONST(【量能饱和】*300/100),160,RGB(250,104,0));大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;T1:=IF (大单动向>0 AND REF(大单动向,1)<0,1,0);T2:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)<0,2,T1);T3:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)<0,3,T2);T4:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)<0,4,T3);T5:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)<0,5,T4);T6:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)<0,6,T5); T7:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)<0,7,T6);T8:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)<0,8,T7);T9:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)<0,9,T8);T:=IF (大单动向>0 AND REF(大单动向,1)>0 AND REF(大单动向,2)>0 AND REF(大单动向,3)>0 AND REF(大单动向,4)>0 AND REF(大单动向,5)>0 AND REF(大单动向,6)>0 AND REF(大单动向,7)>0 AND REF(大单动向,8)>0 AND REF(大单动向,9)>0,10,T9);D:=COUNT(大单动向>0,10),NODRAW;DRAWTEXT_FIX(1,0.005,0.01,0,STRCAT(STRCAT('【主买比】: ',CON2STR(主买,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.07,0,STRCAT(STRCAT('【主卖比】: ',CON2STR(主卖,1)),' %')),COLORGREEN;DRAWTEXT_FIX(1,0.005,0.13,0,STRCAT(STRCAT('【量能饱和】: ',CON2STR(【量能饱和】,1)),' %')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.19,0,STRCAT(STRCAT('【主力资金差】: ',CON2STR(主力资金差,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.19,0,STRCAT(STRCAT('【大宗净流入】: ',CON2STR(大宗净流入,1)),' 万元')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.25,0,STRCAT(STRCAT('【主力净买量】: ',CON2STR(主力净买量,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.25,0,STRCAT(STRCAT('【主动买卖差】: ',CON2STR(主动买卖差,1)),' 手')),COLORYELLOW;DRAWTEXT_FIX(1,0.005,0.31,0,STRCAT(STRCAT('【DDX 连红天数】: ',CON2STR(T,0)),' 天')),COLORYELLOW;DRAWTEXT_FIX(1,0.2,0.31,0,STRCAT(STRCAT('【DDX两周红天数】: ',CON2STR(D,0)),' 天')),COLORYELLOW;PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2))))); ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FFFF; STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) +LLJX),0,3,0),COLOR00FF00;资金流入:=IF((HSL*0.4+LLJX)>0,(HSL*0.4+LLJX),DRAWNULL),COLORRED;资金流出:=IF((HSL*0.4+LLJX)<0,(HSL*0.4+LLJX),DRAWNULL),COLOR00FF00;资金进出:=(HSL*0.4+LLJX),LINETHICK0;万元:=AMOUNT/10000{0000},VOLSTICK,COLORFF00FF;资金净进出:IF((HSL*0.4+LLJX)>0,资金流入,资金流出),COLORWHITE,POINTDOT;进出比例%:IF((HSL*0.4+LLJX)>0,资金流入/万元*100,资金流出/万元*100),COLORYELLOW;连红天1:=BARSLASTCOUNT(资金净进出>0),,COLORA20FFD,NODRAW;连红天2:=IF(连红天1=0,REF(连红天1,1),连红天1),,COLORA20FFD,NODRAW;连红天3:=IF(连红天2=0,REF(连红天1,2),连红天2),,COLORA20FFD,NODRAW;连红天4:=IF(连红天3=0,REF(连红天1,3),连红天3),,COLORA20FFD,NODRAW;近期连红天:IF(连红天4=0,REF(连红天1,4),连红天4),,COLORYELLOW,NODRAW;最多连红天1:=MAX(REF(近期连红天,1),近期连红天),COLORYELLOW,NODRAW;最多连红天2:=MAX(最多连红天1,REF(近期连红天,2)),COLORYELLOW,NODRAW;最多连红天3:=MAX(最多连红天2,REF(近期连红天,3)),COLORYELLOW,NODRAW;最多连红天4:=MAX(最多连红天3,REF(近期连红天,4)),COLORYELLOW,NODRAW;最多连红天5:=MAX(最多连红天4,REF(近期连红天,5)),COLORYELLOW,NODRAW;最多连红天:MAX(最多连红天5,REF(近期连红天,6)),COLORYELLOW,NODRAW;三日资金:SUM(资金进出,3),COLORWHITE,NODRAW;五日资金:SUM(资金进出,5),COLORFF00FF,NODRAW;十日资金:SUM(资金进出,10),COLOR0000FF,NODRAW;资金流量:=LLJX,LINETHICK0,COLOR0000FF;STICKLINE((资金流量> 0),资金流量,0,3,0),COLOR0000FF;STICKLINE((资金流量< 0),资金流量,0,3,0),COLORFF3300;黄柱初出蓝:=REF(资金流出,1)<0 AND 资金流入>30 AND C>O AND C>REF(C,1) AND C>MA(C,3);X:=(3*C+2*L+O+H)/7;多空线:=(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;长黄柱:= 资金流入>300 AND CROSS(C,多空线);DRAWTEXT(黄柱初出蓝,-30,'★'),COLORFF00FF;DRAWTEXT(长黄柱,((HSL * 0.4) * 1.5)*1.4 ,'★'),COLORRED;ARE4:=MA(C,20); ARE5:=(C>MA(C,5)); ARE6:=(MA(C,5)>MA(C,10)); ARE7:=(C>MA(C,10));ARE8:=(MA(C,5)>MA(C,20)); ARE9:=(C>MA(C,20)); ARE10:=REF(ARE4,1); ARE11:=(ARE4>ARE10);AVX:=(((((IF(ARE5,10,(0-10))+IF(ARE6,10,(0-10)))+IF(ARE7,10,(0-10)))+IF(ARE8,10,(0 -10)))+IF(ARE9,10,(0-10)))+IF(ARE11,10,(0-10)));DSLX:=(C/INDEXC); DSLX1:=MA(DSLX,5); DSLX2:=MA(DSLX,10); VRE1:=MA(V,5); VRE2:=MA(V,10);阻力位:=IF((C>200),(C*1.01),(C*1.07)); 阻力位1:=IF((C<10),(C*1.05),阻力位);止损位:=IF((C>200),(C*0.99),(C*0.93)); 止损位1:=IF((C<10),(C*0.95),止损位); TJTS1:=ISLASTBAR AND C<500; TJTS2:=ISLASTBAR AND C>500;KDAT:=REFDATE(HHV(H,45)/0.097,DATE);{解盘位置}解盘1:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘2:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘3:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 > VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘4:=CONST(IF(TJTS1 AND ((CROSS(AVX,1) AND (VRE1 <= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘5:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘6:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘7:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘8:=CONST(IF(TJTS1 AND ((CROSS(1,AVX) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘9:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘10:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘11:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘12:=CONST(IF(TJTS1 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘13:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >=VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘14:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) AND (DSLX >= DSLX1)) ,1,0));解盘15:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘16:=CONST(IF(TJTS1 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) AND (DSLX < DSLX1)) ,1,0));解盘17:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 >= VRE2)) ,1,0));解盘18:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 >= VRE2)) ,1,0));解盘19:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 < VRE2)) ,1,0));解盘20:=CONST(IF(TJTS2 AND (CROSS(AVX,1) AND (VRE1 < VRE2)) ,1,0));解盘21:=CONST(IF(TJTS2 AND (CROSS(1,AVX) AND (VRE1 >= VRE2)) ,1,0));解盘22:=CONST(IF(TJTS2 AND (CROSS(1,AVX) AND (VRE1 < VRE2)) ,1,0));解盘23:=CONST(IF(TJTS2 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 >= VRE2)) ,1,0));解盘24:=CONST(IF(TJTS2 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (VRE1 < VRE2)) ,1,0));解盘25:=CONST(IF(TJTS2 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 >= VRE2)) ,1,0));解盘26:=CONST(IF(TJTS2 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (VRE1 < VRE2)) ,1,0));解盘文字1:=IF(解盘1=1,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右',IF(解盘2=1,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右', IF(解盘3=1,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右',IF(解盘4=1,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右',IF(解盘5=1,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望',IF(解盘6=1,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓',IF(解盘7=1,'该股放量下跌,走势明显偏弱,离场观望',IF(解盘8=1,'该股缩量下跌,走势偏弱,离场观望',IF(解盘9=1,'该股形态良好,强势明显,量能充足,可以继续持有',IF(解盘10=1,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险',IF(解盘11=1,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓',IF(解盘12=1,'该股走势趋弱,量能不足,减持大部分筹码',IF(解盘13=1,'该股形态不佳,注意成交量的变化,但目前不适合参与',IF(解盘14=1,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与',IF(解盘15=1,'该股有走强迹象,但量能不足,趋势不明,不适合操作',IF(解盘17=1,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右',IF(解盘19=1,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌',IF(解盘21=1,'大盘形态走坏,重仓者可以减去大部分仓位',IF(解盘22=1,'大盘缩量调整,注意风险,短线清仓观望',IF(解盘23=1,'大盘走势良好,量能理想,可以继续持有强势股',IF(解盘24=1,'大盘形态良好,但量能稍显不足,随时准备减仓',IF(解盘25=1,'大盘趋势不明,注意成交量变化,目前不适宜进场',IF(解盘26=1,'大盘趋势向下,量能萎缩,不适合进场',DRAWNULL)))))))))))))))))))))));解盘文字2:=IF(解盘16=1,'该股走势太弱,没有参与价值',IF(解盘18=1,' 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎',IF(解盘20=1,' 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入',DRAWNULL)));DRAWTEXT(CURRBARSCOUNT=70{位置} AND (解盘1=1 OR 解盘2=1 OR 解盘3=1 OR 解盘4=1 OR 解盘5=1 OR 解盘6=1 OR 解盘7=1 OR解盘8=1 OR 解盘9=1 OR 解盘10=1 OR 解盘11=1 OR 解盘12=1 OR 解盘13=1 OR 解盘14=1 OR 解盘15=1 OR 解盘17=1 OR解盘19=1 OR 解盘21=1 OR 解盘22=1 OR 解盘23=1 OR 解盘24=1 OR 解盘25=1 OR 解盘26=1),(KDAT*0.99),解盘文字1),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=70{位置} AND (解盘16=1 OR 解盘18=1 OR 解盘20=1),IF(解盘18=1 OR 解盘20=1,KDAT*0.98,KDAT*0.96),解盘文字2),COLOR00FFFF; 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)));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));WJ:=(H+L+C)/3;VV1:=IF(H=L,1,H-MAX(O,C));VV2:=IF(H=L,1,MAX(C,O)-WJ);VV3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));VV5:=VOL/IF(H=L,4,H-L);V6:=(VV1*VV5);V7:=(VV2*VV5);V8:=(VV3*VV5);V9:=(V4*VV5);买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);{买卖差:=买盘-卖盘;}MFI:=(HIGH-LOW)*1000000/(VOL*比);绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);M1:=CONST(绿灯);衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);M2:=CONST(衰退);伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);M3:=CONST(伪装);蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);M4:=CONST(蛰伏);量大:=(卖盘+买盘)/REF(VOL,1)>2;M5:=CONST(量大);量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;M6:=CONST(量缩);卖量大:=(卖盘-买盘)/买盘>0.4;M7:=CONST(卖量大);买量大:=(买盘-卖盘)/卖盘>0.4;M8:=CONST(买量大);TS1:=IF(M1=1,1.99+4.99,0.91);TS2:=IF(M2=1,TS1+4.99,TS1);TS3:=IF(M3=1,TS2+4.99,TS2);TS4:=IF(M4=1,TS3+4.99,TS3);TS5:=IF(M5=1,TS4+4.99,TS4);TS6:=IF(M6=1,TS5+4.99,TS5);TS7:=IF(M7=1,TS6+4.99,TS6);TS8:=IF(M8=1,TS7+4.99,TS7);DRAWTEXT(M1 AND CURRBARSCOUNT=50,ZGD2-(ZGD2*TS1),'[绿灯]实计交易量增加。

精准买卖主图指标通达信指标公式源码

精准买卖主图指标通达信指标公式源码

K线图的另类呈现,很漂真的指标。

低位出现大红柱可狈极关注。

DRAWGBK(V>1,STRIP(RGB(60,100,255),RGB(180,180,255),1));量:=(CLOSE - LLV(LOW,14)) / (HHV(HIGH,14) - LLV(LOW,14)) * 1.2 * CLOSE; 量1:=EMA(量,3);量2:=EMA(量,6);量3:=EMA(量,9);STICKLINE(量1 >= 量2,量3,量1,8,0),color0000AA;STICKLINE(量1 >= 量2,量3,量1,7,0),color0000BB;STICKLINE(量1 >= 量2,量3,量1,6,0),color0000CC;STICKLINE(量1 >= 量2,量3,量1,5,0),color0000DD;STICKLINE(量1 >= 量2,量3,量1,4,0),color0000EE;STICKLINE(量1 >= 量2,量3,量1,3,0),color0000FF;STICKLINE(量1 <= 量2,量3,量1,8,0),colorFF0000;STICKLINE(量1 <= 量2,量3,量1,7,0),colorFF3300;STICKLINE(量1 <= 量2,量3,量1,6,0),colorFF5500;STICKLINE(量1 <= 量2,量3,量1,5,0),colorFF7700;STICKLINE(量1 <= 量2,量3,量1,4,0),colorFF9900;STICKLINE(量1 <= 量2,量3,量1,3,0),colorFFBB00; STICKLINE(量1 <= 量2,量3,量1,2,0),colorFFDD00; STICKLINE(量1 <= 量2,量3,量1,1,0),colorFFFF00; T1:=量2 >= 量3 AND 量1 < REF(量1,1);T2:=量2 < 量3 AND 量1 > REF(量1,1); STICKLINE(T1,量1,量3,8,0),colorFFBB11; STICKLINE(T1,量1,量3,7,0),colorFFCC22; STICKLINE(T1,量1,量3,5,0),colorFFDD33; STICKLINE(T1,量1,量3,3,0),colorFFEE44; STICKLINE(T1,量1,量3,1,0),colorFFFF55; STICKLINE(T2,量1,量3,10,0),color338FDD; STICKLINE(T2,量1,量3,8,0),colorFF00FF; STICKLINE(T2,量1,量3,1,0),color00DDFF; STICKLINE(T2,量1,量3,8,0),color00AAFF; STICKLINE(T2,量1,量3,6.6,0),color00BBFF; STICKLINE(T2,量1,量3,4.4,0),color00CCFF; STICKLINE(T2,量1,量3,3.3,0),color00DDFF; STICKLINE(T2,量1,量3,2.2,0),color00EEFF; STICKLINE(T2,量1,量3,1,0),color00FFFF;。

买卖趋势指标公式

买卖趋势指标公式

买卖趋势指标公式1. 移动平均线(Moving Average)移动平均线是一种计算指标,它根据一段时间内的价格平均值来反映市场的趋势。

最常见的是简单移动平均线(Simple Moving Average, SMA)和指数移动平均线(Exponential Moving Average, EMA)。

SMA的公式为:SMA=(X1+X2+...+Xn)/n其中,X为每日的收盘价,n为计算的天数。

这个公式会把过去n天的收盘价加总,然后除以n得到平均值,从而判断市场的趋势。

EMA的公式为:EMA=α*X+(1-α)*EMAy其中,α为平滑系数,X为当日的收盘价,EMAy为前一日的指数移动平均线。

EMA的计算加入了平滑系数,可以更快地反应市场价格的变动。

2. 相对强弱指数(Relative Strength Index,RSI)RSI是一种衡量市场买卖力度的指标,它的数值范围在0到100之间。

当RSI值处于70以上时,意味着市场处于超买状态,可能会出现价格回调;当RSI值处于30以下时,意味着市场处于超卖状态,可能会出现价格反弹。

RSI的公式为:RSI=100-[100/(1+RS)]RS=(平均上涨日的收盘价总和/上涨日的数量)/(平均下跌日的收盘价总和/下跌日的数量)3. 随机指标(Stochastic Oscillator)随机指标是一种衡量市场超买超卖的指标,它的数值在0到100之间。

当随机指标的数值超过80时,表示市场超买;当数值低于20时,表示市场超卖。

随机指标的主要公式为:%K=(今日收盘价-最低价)/(最高价-最低价)*100%D=SMA(%K,N)其中,%K为当前的随机指标值,N为计算的天数,SMA为简单移动平均线。

4. 平均动向指数(Average Directional Index,ADX)ADX是一种衡量趋势强度的指标,它的数值范围在0到100之间。

当ADX值高于25时,表示市场处于趋势状态;当ADX值低于20时,表示市场处于盘整状态。

文华财经指标公式超准买卖点指标买卖一绝指标公式源码

文华财经指标公式超准买卖点指标买卖一绝指标公式源码

文华财经指标公式超准买卖点指标买卖一绝指标公式源码指标源码://指标变量VAR1:=REF(C,1);//昨收VAR2:=LLV(LOW,9);//最低价VAR3:=HHV(HIGH,9);//最高价VAR4:=50;//云图均线(可设定)VAR5:=MA(C,20);//20日均线VAR6:=MA(C,80);//80日均线VAR7:=EMA(CLOSE,10);//10日指数平均线VAR8:=EMA(CLOSE,20);//20日指数平均线VAR9:=(EMA(CLOSE,20)-EMA(CLOSE,40))/EMA(CLOSE,40);//短线与长线变形指标(可设定)VAR10:=LOW-REF(HIGH,1);//本周期最低价与上周期最高价差VAR11:=EMA((OPEN+HIGH+LOW+CLOSE)/4,13);//13日指数平均线//指标公式{新华证券超精准买卖额外指标公式V1.0}模式A:VAR1<VAR2ANDVAR3<VAR4ANDVAR5>VAR6ANDVAR7>VAR8ANDVAR9<0ANDVAR10<VAR11ANDC<REF(C,1);模式B:VAR1>VAR2ANDVAR3>VAR4ANDVAR5<VAR6ANDVAR7<VAR8ANDVAR9>0ANDVAR10>VAR11ANDC>REF(C,1);//版权信息STICKLINE(模式A,O,C,2,0);STICKLINE(模式B,O,C,2,0);DRAWICON(模式A,H*0.99,4);DRAWICON(模式B,L*1.01,3);{新华证券超精准买卖额外指标公式V1.0}//相关解释文华财经指标公式超准买卖点指标,是一种股票技术分析的重要指标,由新华证券提供。

该指标利用了多少技术指标,如最高价、最低价、50日云图均线,20日、80日均线,以及10日、20日、40日指数平均线和本周期最低价与上周期最高价差等,经过严谨细致的研判,最后给出了买卖点的判断。

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

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

通达信指标公式源码缠式买卖点副图源码{N1:1,100,10;N2:1,100,10;DISP:=1,3,2}; N1:=10;N2:=10;DISP:=2;K:=IF(PERIOD=5,1,{⽇}IF(PERIOD=6,1,{周}IF(PERIOD=7,1,{⽉}IF(PERIOD=8,1,{多分钟}IF(PERIOD=9,1,{多⽇}IF(PERIOD=10,1,{季}IF(PERIOD=11,2,{年}IF(PERIOD=4,1,{60F}IF(PERIOD=3,1,{30F}IF(PERIOD=2,1,{15F}IF(PERIOD=1,1{5F},1{1F})))))))))))/10; P1:=PEAK(1,K*N1,1);P2:=PEAK(1,K*N1,2);WP1:=PEAKBARS(1,K*N1,1);WP2:=PEAKBARS(1,K*N1,2);T1:=TROUGH(2,K*N2,1);T2:=TROUGH(2,K*N2,2);WT1:=TROUGHBARS(2,K*N2,1);WT2:=TROUGHBARS(2,K*N2,2);TJ1:=P1>T1 AND P2>T2 ;ZD:=MAX(T1,T2);ZG:=MIN(P1,P2);LL:=MIN(T1,T2);HH:=MAX(P1,P2);TJ2:=FILTER(ZG>ZD,2);TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));TJ4:=TJ1&&TJ2&&NOT(TJ3);TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST( TJ4),1)));TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZDTJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);ZSD:=IF(TJ8,ZD,DRAWNULL);ZSG:=IF(TJ8,ZG,DRAWNULL);ZSH:=IF(TJ8,HH,DRAWNULL);ZSL:=IF(TJ8,LL,DRAWNULL);STICKLINE(TJ8,ZSH,ZSL,0,-1),COLORMAGENTA;STICKLINE(TJ8,ZSD,ZSG,IF(DISP=1,3,0),1),COLORMAGENTA;局部低点预选A:=BACKSET(LLV(L,5)局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0); 局部⾼点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部⾼点预选B:=BACKSET(局部⾼点预选A=0 AND REF(局部⾼点预选A,1)=1,2);局部⾼点预选C:=IF(局部⾼点预选B=1 AND REF(局部⾼点预选B,1)=0,1,0); 缺⼝判断:=IF(L>REF(H,1),1,IF(H距前⾼天:=BARSLAST(局部⾼点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);⼩值周期:=LOWRANGE(L);⼤值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前⾼天,1)>REF(距前低天,1) AND LLV(L,距前⾼天+1)低保留AB:=IF(局部低点预选C=-1 AND REF(距前⾼天,1)<=REF(距前低天,1) AND (距前⾼天>=4 OR LLV(缺⼝判断,距前⾼天)=-1 OR LLV(L,距前低天+2)低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺⼝判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部⾼点预选C=1 AND REF(距前低天,1)<=REF(距前⾼天,1) AND 预判=1 AND ⼤值周期>REF(⼩值周期,距前低天+1) AND ⼤值周期>REF(⼩值周期,距前低天) AND ⼤值周期>REF(⼤值周期,距前⾼天),1,0);⾼保留A:=IF(局部⾼点预选C=1 AND REF(距前低天,1)>REF(距前⾼天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);⾼保留B:=IF(局部⾼点预选C=1 AND REF(距前低天,1)<=REF(距前⾼天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺⼝判断,距前低天)=1),1,0);⾼保留:=IF((⾼保留A=1 OR ⾼保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前⾼天<4 AND HHV(缺⼝判断,距前⾼天)!=1) OR REF(⾼保留,距前⾼天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前⾼天,1)<=REF(距前低天,1) AND 预判A=1 AND ⼩值周期>REF(⼤值周期,距前⾼天+1) AND ⼩值周期>REF(⼤值周期,距前⾼天) AND ⼩值周期>REF(⼩值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前⾼天,1)>REF(距前低天,1) AND LLV(L,距前⾼天+1)低保留B:=IF(局部低点预选C=-1 AND REF(距前⾼天,1)<=REF(距前低天,1) AND (距前⾼天>=4 OR LLV(缺⼝判断,距前⾼天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺⼝判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部⾼点预选C=1 AND REF(距前低天A,1)<=REF(距前⾼天A,1) AND 预判X=1 AND ⼤值周期>REF(⼩值周期,距前低天A+1) AND ⼤值周期>REF(⼩值周期,距前低天A) AND ⼤值周期>REF(⼤值周期,距前⾼天A),1,0); ⾼保留XA:=IF(局部⾼点预选C=1 AND REF(距前低天A,1)>REF(距前⾼天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);⾼保留XB:=IF(局部⾼点预选C=1 AND REF(距前低天A,1)<=REF(距前⾼天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺⼝判断,距前低天A)=1),1,0);⾼保留X:=IF((⾼保留XA=1 OR ⾼保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);预判XA:=IF((距前⾼天A<4 AND HHV(缺⼝判断,距前⾼天A)!=1) OR REF(⾼保留XA,距前⾼天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前⾼天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND ⼩值周期>REF(⼤值周期,距前⾼天A+1) AND ⼩值周期>REF(⼤值周期,距前⾼天A) AND ⼩值周期>REF(⼩值周期,距前低天A),-1,0); 低保留XA:=IF(局部低点预选C=-1 AND REF(距前⾼天A,1)>REF(距前低天A,1) AND LLV(L,距前⾼天A+1)低保留XB:=IF(局部低点预选C=-1 AND REF(距前⾼天A,1)<=REF(距前低天A,1) AND (距前⾼天A>=4 OR LLV(缺⼝判断,距前⾼天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND LA+1),-1,0);距前⾼天YA:=BARSLAST(⾼保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺⼝判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部⾼点预选C=1 AND REF(距前低天YA,1)<=REF(距前⾼天YA,1) AND 预判YX=1 AND ⼤值周期>REF(⼩值周期,距前低天YA+1) AND ⼤值周期>REF(⼩值周期,距前低天YA) AND ⼤值周期>REF(⼤值周期,距前⾼天YA),1,0);⾼保留YXA:=IF(局部⾼点预选C=1 AND REF(距前低天YA,1)>REF(距前⾼天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);⾼保留YXB:=IF(局部⾼点预选C=1 AND REF(距前低天YA,1)<=REF(距前⾼天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺⼝判断,距前低天YA)=1),1,0);⾼保留YX:=IF((⾼保留YXA=1 OR ⾼保留YXB=1 OR 判断YX=1) ANDH>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前⾼天YA<4 AND HHV(缺⼝判断,距前⾼天YA)!=1) ORREF(⾼保留YXA,距前⾼天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前⾼天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND ⼩值周期>REF(⼤值周期,距前⾼天YA+1) AND⼩值周期>REF(⼤值周期,距前⾼天YA) AND ⼩值周期>REF(⼩值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前⾼天YA,1)>REF(距前低天YA,1) AND LLV(L,距前⾼天YA+1)低保留YXB:=IF(局部低点预选C=-1 AND REF(距前⾼天YA,1)<=REF(距前低天YA,1) AND (距前⾼天YA>=4 OR LLV(缺⼝判断,距前⾼天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND LAAAD:=IF(⾼保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前⾼天YA,1)+2),1,IF(⾼保留YX=1 AND 低保留YX=-1 AND L极点保留:=IF(AAAD=0,⾼保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)) CIRCLEDOT COLORYELLOW;DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED; DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORYELLOW; DD1:=BARSLAST(ABS(极点保留)!=1);DRAWTEXT(极点保留=1,局部极点,'卖'),COLORGREEN;DRAWTEXT(极点保留=-1,局部极点,'买'),COLORRED;MA5:MA(CLOSE,5),COLORFF00FF,LINETHICK2;判:IF(MA5。

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

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

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;。

【图】趋势★转强(源码、副图)

【图】趋势★转强(源码、副图)

【图】趋势★转强(源码、副图)趋势:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);FILLRGN(趋势>40,趋势,40),COLOR32329B;FILLRGN(40>趋势,趋势,40),COLOR326400;PARTLINE(趋势>40,趋势),COLORRED;PARTLINE(趋势<40,趋势),COLORGREEN;A:=(3*C+L+O+H)/6;X:=(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*REF(A,12)+7*REF(A,13)+6*R EF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+R EF(A,20))/210;中线★:=EMA(X,13);短线成本★:=EMA(CLOSE,17);危险:BARSLAST(短线成本★>中线★),COLORGREEN;安全:BARSLAST(短线成本★<中线★),COLORRED;VAR2:=LLV(LOW,33);VAR3:=HHV(HIGH,21);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20)*0.998;短线通道:20,COLORGREEN;短线:EMA(0.667*REF(VAR4,1)+0.333*VAR4,1);STICKLINE(短线通道>短线,短线通道,短线,0,0),COLORGREEN,LINETHICK1;STICKLINE(短线通道<短线,短线通道,短线,10,0),COLORFF00FF,LINETHICK1;DRAWTEXT(CROSS(短线,短线通道) ,短线,'←★买不亏'),COLORYELLOW;STICKLINE(CROSS(短线,短线通道),20,0,2,0) ,COLORRED;买不亏:CROSS(短线,短线通道),COLORRED;PARTLINE(短线>REF(短线,1) AND 短线>=0,短线),COLORRED,LINETHICK2;PARTLINE(短线<REF(短线,1) AND 短线>0,短线),COLORGREEN,LINETHICK1;WEN:=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);趋势线: WEN,LINETHICK2,COLORFF84FF;DRAWTEXT(CROSS(趋势线,49),47,'转★强'),ALIGN0,COLORYELLOW;STICKLINE(CROSS(趋势线,49),40,0,2,0) ,COLORYELLOW;转★强:CROSS(趋势线,49),COLORRED;PARTLINE(趋势线>REF(趋势线,1) AND 趋势线>=0,趋势线),COLORYELLOW,LINETHICK2;RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;财神:SMA(RSV1,5,1),COLORYELLOW,LINETHICK1;出现:SMA(财神,10,1),COLORGREEN,LINETHICK1;STICKLINE(财神>出现,财神,出现,4,0),COLORYELLOW;STICKLINE(财神<=出现,财神,出现,0,0),COLORGREEN;PARTLINE(财神>REF(财神,1) AND 财神>=0,财神),COLORRED,LINETHICK1;PARTLINE(出现>REF(出现,1) AND 出现>=0,出现),COLORRED,LINETHICK1;RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;K1:=SMA(RSV1,13,1);D1:=SMA(K1,13,1);中线浪:ema(d1,3),COLORRED;PARTLINE(中线浪>REF(中线浪,1) AND 中线浪>=0,中线浪),COLORRED,LINETHICK2;PARTLINE(中线浪<REF(中线浪,1) AND 中线浪>0,中线浪),COLORGREEN,LINETHICK1;DRAWTEXTEX(1,1,0,880,' 耐心等待 '),COLORYELLOW;VAR2BMM:=IF(MONTH<12,1,1);VAR3BMM:=(2*CLOSE+HIGH+LOW)/4;VAR4BMM:=LLV(LOW,34);VAR5BMM:=HHV(HIGH,34);主力:=EMA((VAR3BMM-VAR4BMM)/(VAR5BMM-VAR4BMM)*100,13)*VAR2BMM{,,LINETHICK1,COLORWHITE};散户:=EMA(0.667*REF(主力,1)+0.333*主力,2){,LINETHICK1,COLORFF9933;};坚决清仓:IF(CROSS(散户,主力) AND 散户>75,70,80),LINETHICK1,COLORCYAN;VAR10MM:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);B5MM:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;VAR2AMM:=LLV(LOW,10);VAR3AMM:=HHV(HIGH,25);B6MM:=MA(B5MM,10);AAA:= 25*(EMA((CLOSE-VAR2AMM)/(VAR3AMM-VAR2AMM)*4,4));BBB:=10*(SMA(B6MM,3,1)/10);DRAWTEXT( CROSS(BBB,A AA) AND BBB>56 ,80 ,'▼\n跑' ),COLORYELLOW,LINETHICK4;[本帖最后由志志于 2011-12-4 16:34 编辑]短线趋势线趋势散户。

趋势指标源码

趋势指标源码

趋势指标源码趋势指标是技术分析中的一种常用工具,它用于分析价格走势的长期趋势,并提供买入或卖出的信号。

下面是一个趋势指标的源码示例。

```class TrendIndicator:def __init__(self, data):self.data = datadef calculate(self):trend = []for i in range(1, len(self.data)):if self.data[i] > self.data[i-1]:trend.append(1) # 上涨趋势elif self.data[i] < self.data[i-1]:trend.append(-1) # 下跌趋势else:trend.append(0) # 横盘趋势return trenddef generate_signals(self):signals = []trend = self.calculate()for i in range(1, len(trend)):if trend[i] > trend[i-1]:signals.append(1) # 买入信号,趋势由下跌转为上涨elif trend[i] < trend[i-1]:signals.append(-1) # 卖出信号,趋势由上涨转为下跌else:signals.append(0) # 无信号,趋势继续return signalsdata = [100, 110, 120, 130, 120, 110, 100]indicator = TrendIndicator(data)signals = indicator.generate_signals()print(signals)```这个趋势指标的源码示例是一个简单的实现,它根据输入的价格数据数组,计算出价格的趋势,并生成相应的买入或卖出信号。

在计算趋势时,如果当前价格高于前一个价格,则被视为上涨趋势;如果当前价格低于前一个价格,则被视为下跌趋势;如果当前价格与前一个价格相等,则被视为横盘趋势。

趋势指标源码

趋势指标源码

趋势指标源码趋势指标是一种技术分析工具,用于研究和预测市场中的趋势走势。

它可以通过图表和计算来量化市场价格和交易量的变化,从而帮助投资者做出明智的投资决策。

本文将从以下几个方面介绍趋势指标的相关概念、计算方法以及如何应用于实际交易中。

首先,我们来了解一下趋势指标的概念和分类。

趋势指标是一种衡量市场走势的工具,通过分析价格和交易量的变化来判断市场是处于上涨、下跌还是横盘阶段。

常见的趋势指标包括移动平均线(Moving Average)、相对强弱指标(Relative Strength Index,简称RSI)和平均趋向指数(Average Directional Index,简称ADX)等。

移动平均线是一种基本的趋势指标,它通过计算一段时间内的平均价格来呈现市场的趋势走势。

常见的移动平均线有简单移动平均线(SMA)和指数移动平均线(EMA)。

SMA将每个时间周期的价格加总,并除以时间周期的数量,得到平均值。

而EMA则给予了较大的权重给最近的价格。

相对强弱指标则主要衡量市场的超买和超卖情况,从而判断市场的买卖力量是否失衡。

RSI的计算方法是通过比较一段时间内的上涨和下跌幅度来判断市场的强弱程度,其取值范围在0到100之间,一般认为70以上为超买,30以下为超卖。

平均趋向指数是一种衡量市场趋势强度的指标,其计算方法可以分为DI+和DI-两个部分。

DI+代表上涨力量,DI-代表下跌力量,而ADX则根据DI+和DI-的比值来判断市场走势的强弱程度。

当ADX逐渐上升时,表示市场趋势正在加强,而当ADX逐渐下降时,表示市场趋势正在减弱。

接下来,我们将介绍如何应用趋势指标进行实际交易。

首先,投资者可以利用趋势指标判断市场的主要趋势,然后根据趋势的方向选择合适的交易策略。

例如,在上涨趋势中,投资者可以选择做多策略,即买入股票或期货;而在下跌趋势中,投资者可以选择做空策略,即卖出股票或期货。

其次,趋势指标还可以用于确认市场的转折点。

强势趋势买卖——(主图指标源码原创)-指标公式交流区-理想论坛

强势趋势买卖——(主图指标源码原创)-指标公式交流区-理想论坛
EMA60:MA(C,60),COLORFFFFFF,LINETHICK1;
VAR1:=(O+H+C)/3;
持股线:= EMA(VAR1,3),COLORYELLOW,LINETHICK1;
VAR2:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
趋势线:=EMA(((VAR2 / 10) + EMA(CLOSE,10)),3);
A1:=持股线,COLOR00FFFF,LINETHICK2;
B1:=趋势线,COLOR00FF00,LINETHICK2;
AA:=A1>=B1;
BB:=B1>A1;
买入:DRAWICON(CROSS(AA,BB),L,1);
STICKLINE(AA,CLOSE,OPEN,1.4,0),COLORFF88FF;
STICKLINE(AA,CLOSE,OPEN,1,0),COLORFF99FF;
STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORFFAAFF;
STICKLINE(AA,CLOSE,OPEN,0.1,0),COLORFFBBFF;
STICKLINE(AA,CLOSE,OPEN,3.0,0),COLORFF00FF;
STICKLINE(AA,CLOSE,OPEN,2.6,0),COLORFF22FF;
STICKLINE(AA,CLOSE,OPEN,2.2,0),COLORFF44FF;
STICKLINE(AA,CLOSE,OPEN,1.8,0),COLORFF66FF;
STICKLINE(BB,CLOSE,OPEN,1.4,0),COLOR00CC00;
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

买卖趋势(指标、源码、副图)
(2012-04-04 16:36:30)
{KKDD大趋势}
LOWV1:=EMA(LLV(LOW,34),3);
HIGHV1:=EMA(HHV(HIGH,34),3);
RSV1:=EMA((CLOSE-LOWV1)/(HIGHV1-LOWV1)*100,3);
KK:=SMA(RSV1,8,1),COLOR4080FF,LINETHICK1;
DD:=SMA(KK,6,1),COLOR008000,LINETHICK1;
DRAWBAND(KK,RGB(200,0,200),DD,RGB(100,100,100));
{盘整突破}
突破角
度:=(ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.14115926)>55; {>45 数字可调整为你喜欢的任何角度}
去除停牌:=DYNAINFO(17)!=0;
VARR:=(C+H+O+L)/4;
上轨:=EMA(VARR,10)*1.09;
盘整突破:=LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*1.5 AND
C>REF(C,1)*1.03
AND "DMI.PDI">"DMI.MDI" AND"DMI.ADXR">"DMI.MDI"AND "DMI.PDI">"DMI.ADX" AND(CROSS("DMI.ADX","DMI.ADXR")OR("DMI.ADX">"DMI.ADXR"))
AND"KDJ.D">REF("KDJ.D",1) AND"KDJ.D"<75 AND C<上轨 AND 突破角度 AND 去除停牌;
STICKLINE(盘整突破,0,45,1.2,0),COLORWHITE;
DRAWTEXT(盘整突破,45,'突破'),COLORWHITE,LINETHICK1;
{财神到}
XXBB:= EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*4,5)*100;
财神到:=REF(XXBB,1)<50 AND XXBB-REF(XXBB,1)>25;
STICKLINE(财神到,33,50,3,0),COLOR2222AA;
STICKLINE(财神到,16.5,33,3,0),COLOR11AA88;
STICKLINE(财神到,0,16.5,3,0),COLORAAAA00;
DRAWTEXT(财神到,55,'财'),COLORYELLOW;
DRAWTEXT(财神到,35,'神'),COLORYELLOW;
DRAWTEXT(财神到,20.5,'到'),COLORYELLOW;
{短线买点选股}
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
短线买
点:=CROSS(((DIFF1-EMA(DIFF1,9))*10-REF((DIFF1-EMA(DIFF1,9))*10,1)),1) AND (DIFF1-EMA(DIFF1,9))*10>1;
IF(短线买点,60,0),LINETHICK2,COLOR00FFFF;
DRAWTEXT(短线买点>0,35,'短买'),LINETHICK1,COLOR00FFFF;
{今买明卖}
MA20:=MA(C,20);
MA30:=MA(C,30);
QSXS:=MA20>MA30 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
ZF:=(C/REF(C,1)-1)*100;
N1:=BARSLAST(CROSS(C,MA(C,5)));
N2:=BARSLAST(CROSS(MA(C,5),C));
HM:=IF(N1<N2,N1+1,0)*QSXS;
Z2:=HM=1 AND ZF>=0 AND C>O AND QSXS;
KX1:=ZF<=-3 AND C<O;
XDSJ:=BARSLAST(KX1);
KX2:=ZF>=3 AND C>O;
JBY:=KX2 AND XDSJ<=2 AND C>=REF(O*0.99,XDSJ) AND
ZF>ABS(REF(ZF,XDSJ)*0.99);
Z3:=IF(FILTER(JBY,1) AND QSXS,5,0);
今买明卖:=Z2 AND Z3;
IF(今买明卖,35,0),LINETHICK2,COLORGREEN;
DRAWTEXT(今买明卖>0,30,'买卖'),LINETHICK1,COLORGREEN;
{横盘启动突破}
LOWV:=LLV(LOW,15); {15天内的最低价}
HIGHV:=HHV(HIGH,15); {15天内的最高价}
HIGHVV:=HHV(HIGH,40); {40天内的最高价}
V0:=V; {当天的成交量}
V1:=REF(V,1); {一天前的成交量} V2:=REF(V,2); {两天前的成交量} V3:=REF(V,3); {三天前的成交量} HV22:=HHV(V,35); {35天内的最大成交量} D0U:=C>O; {今天是阳线}
D1U:=REF(C,1)>=REF(C,2); {昨天是阳线}
横盘:=((HIGHV-LOWV)/HIGHV)<0.15; {半个月内价格波动小于15%} 放量1:=V0>=(1.8*((V1+V2+V3)/3)); {今天量是前三天均量
的1.8倍}
放量2:=V0<=(3.8*V1); { 今天
的量在昨天量的四倍范围内}
今天阳线:=D0U; {今天是阳线}
昨天阳
线:=D1U; {昨天是阳线}
今天中阳:=(C-REF(C,1))/REF(C,1)>=0.018; {今天涨幅大于1.8%}
开盘非最高价:=C<=HIGHVV; {收盘非40天内最高价}
收盘非最高价:=O<=HIGHVV; {开盘非40天内最高价}
非最大成交量:=V0<HV22; {非一个月内最高成交量}
启动突破:=(横盘 AND 放量1 AND 放量2 AND 今天阳线 AND 昨天阳线 AND 今天中阳 AND 开盘非最高价 AND 收盘非最高价 AND
非最大成交量) AND 盘整突破;
IF(启动突破>0,40,0),COLORWHITE,LINETHICK2;
DRAWTEXT(启动突破>0,30,'启动'),COLORFFFFFF;
{中顶大顶}
X:=MA(AMOUNT,5)/MA(V,5)/100;
VAR9:=(X-MA(AMOUNT,125)/MA(V,125)/100)/X;
VAR11:=MA((LLV(L,45)-C)/(HHV(H,45)-LLV(L,45))*100,3);
VAR12:=C/MA(C,60)-1;
中顶:IF(CROSS(VAR11,-95) AND VAR12<0.35 AND
VAR12>=0.2,-60,0),COLORMAGENTA,LINETHICK2;
DRAWTEXT(中顶<0,-30,'中顶'),COLORMAGENTA,LINETHICK1;
大顶:IF(CROSS(VAR11,-95) AND VAR12>=0.35,-60,0),COLORFF7F00,LINETHICK2; DRAWTEXT(大顶<0,-30,'大顶'),COLORFF7F00,LINETHICK1;
0,COLORRED,LINETHICK2;
DIF:(EMA(CLOSE,5)-EMA(CLOSE,27))/((EMA(CLOSE,5)+EMA(CLOSE,27))/2)*100 0,COLOR00FFFF;
DEA1:=EMA(DIF,9),COLORWHITE;
MACD:2*(DIF-DEA1),NODRAW,COLORRED;
{红绿箭头}
DRAWICON(CROSS(DIF,DEA1),DEA1,1);
DRAWICON(CROSS(DEA1,DIF),DEA1,2);
{DIF变色线没有未来函数}
DEA:EMA(DIF,9),COLORWHITE,LINETHICK2;
DIF,IF(DEA,DIF,DRAWNULL),COLOR00FFFF,LINETHICK2;
IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLORGREEN,LINETHICK2;
IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
8,COLOR00FFFF,POINTDOT,LINETHICK2;
80,COLOR008000,POINTDOT,LINETHICK2;。

相关文档
最新文档