通达信黄金成交量副图公式通达信指标公式源码
成交量副图指标 通达信 源码通达信指标公式源码
成交量副图指标通达信源码使用说明:1、主动买卖区分:当天收市价高过昨日收市价,成交量画红色实体加绿色实体(红色为当天主动买入量,绿色为当天主动卖出量);如果当天收市价低于昨天收市价则画绿色实体加红色实体如果当天收市价低于昨天收市价则画蓝色实体加红色实体(红色为当天主动买入量,蓝色为当天主动卖出量)3、均换手%表示近阶段周期内平均换手率。
2、在成交量柱体中心如果看到暗红色竖线为成交资金异动。
4、MA5是5日的量能值,MA55是55日的量能值,ma5和ma55金叉在成交量柱状提上用图标标示。
均换手率:MA(VOL/CAPITAL*100,5),COLORFFFFFF,NODRAW;虚拟成交量:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*210/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟成交量,0,2,-1),COLOR00C0C0;总量:VOL,NODRAW;TJ1:=H=L AND C>REF(C,1) OR C>REF(C,5) OR C>REF(C,9) OR C>REF(C,17); TJ2:=H=L AND C<REF(C,1) OR C<REF(C,5) OR C<REF(C,9) OR C<REF(C,17); EE:=IF(TJ1,0.0001,IF(TJ2,-0.0001,0)){对付一字涨停,并求极限};JGL_DTC:=(C-OPEN+EE)/(2*(H-L)+ABS(C-O)+3*0.0001);主买:VOL*(1+JGL_DTC)/2,COLORRED,NODRAW{主动买};主卖:VOL*(1-JGL_DTC)/2,COLORFFFF80,NODRAW{主动卖};MAVOL1:MA(V,5)COLORWHITE;MAVOL2:MA(V,55)COLORYELLOW;MAVOL3:MA(V,135)COLORGREEN;DG1:=(CROSS(MAVOL1,MAVOL2));DG2:=(CROSS(MAVOL1,MAVOL3)); DRAWICON(DG1,VOL*1.05,1);DRAWICON(DG2,VOL*1.1,13);STICKLINE(C>=REF(C,1) AND MAVOL1<MAVOL3 ANDV<MAVOL1,VOL,0,7,0),COLOR333333;STICKLINE(C<REF(C,1) AND MAVOL1<MAVOL3 ANDV<MAVOL1,VOL,0,7,0),COLOR333333;STICKLINE(IF(BARSCOUNT(C)=1,C<O,C<REF(C,1)),0,VOL,2,0),COLOR88000 0;STICKLINE(IF(BARSCOUNT(C)=1,C<O,C<REF(C,1)),0,VOL,1,0),COLORBB000 0;STICKLINE(IF(BARSCOUNT(C)=1,C<O,C<REF(C,1)),0,VOL,0.5,0),COLORDD0 000;STICKLINE(IF(BARSCOUNT(C)=1,C<O,C<REF(C,1)),0,VOL,0.25,0)COLORFF0 000;STICKLINE(IF(BARSCOUNT(C)=1,C>=O,C>=REF(C,1)),0,VOL,2,0),COLOR008800;STICKLINE(IF(BARSCOUNT(C)=1,C>=O,C>=REF(C,1)),0,VOL,1,0),COLOR00A A00;STICKLINE(IF(BARSCOUNT(C)=1,C>=O,C>=REF(C,1)),0,VOL,0.5,0),COLOR0 0DD00;STICKLINE(IF(BARSCOUNT(C)=1,C>=O,C>=REF(C,1)),0,VOL,0.25,0),COLOR 00FF00;STICKLINE(主买>0,0,主买,2,0),COLOR000088;STICKLINE(主买>0,0,主买,1,0),COLOR0000AA;STICKLINE(主买>0,0,主买,0.5,0),COLOR0000DD;STICKLINE(主买>0,0,主买,0.25,0),COLOR0000FF;IF(VOL/MA(VOL,60)*100>100,VOL,VOL/0),STICK,COLORWHITE;量增价平转阳:=VOL>REF(V,1) AND ABS(C-REF(C,1))/REF(C,1)<=0.005;量增价升买入:=VOL>REF(V,1) AND C>REF(C,1);量平价升续买:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05 AND C>REF(C,1); 量减价升持有:=VOL<REF(V,1) AND C>REF(C,1);量减价平警戒:=VOL<REF(V,1) AND ABS(C-REF(C,1))/REF(C,1)<=0.005;量减价跌卖出:=VOL<REF(V,1) AND C<REF(C,1);量平价跌续卖:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05 AND C<REF(C,1); 量增价跌弃卖:=VOL>REF(V,1) AND C<REF(C,1);量梯级递增上:=VOL>REF(V,1) AND REF(V,1)>REF(VOL,2);量梯级递减下:=VOL<REF(V,1) AND REF(V,1)<REF(VOL,2);ZGD:=HHV(V,80)*1;ZGD2:=CONST(ZGD);情况1:=CONST(IF(量增价平转阳,1,0));情况2:=CONST(IF(量增价升买入,1,0));情况3:=CONST(IF(量平价升续买,1,0));情况4:=CONST(IF(量减价升持有,1,0));情况5:=CONST(IF(量减价平警戒,1,0));情况6:=CONST(IF(量减价跌卖出,1,0));情况7:=CONST(IF(量平价跌续卖,1,0));情况8:=CONST(IF(量增价跌弃卖,1,0));情况9:=CONST(IF(量梯级递增上,1,0));情况10:=CONST(IF(量梯级递减下,1,0));DRAWTEXT(情况1=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.1),'量增价平'),COLORMAGENTA;DRAWTEXT(情况2=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.4),'量增价升'),COLORMAGENTA;DRAWTEXT(情况3=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.2),'量平价升'),COLORMAGENTA;DRAWTEXT(情况4=1 AND CURRBARSCOUNT=70,ZGD2-(ZGD2*0.3),'量减价升'),COLORMAGENTA;DRAWTEXT(情况5=1 AND CURRBARSCOUNT=70,ZGD2-(ZGD2*0.1),'量减价平'),COLORMAGENTA;DRAWTEXT(情况6=1 AND CURRBARSCOUNT=70,ZGD2-(ZGD2*0.3),'量减价跌'),COLORMAGENTA;DRAWTEXT(情况7=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.2),'量平价跌'),COLORMAGENTA;DRAWTEXT(情况8=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.4),'量增价跌'),COLORMAGENTA;DRAWTEXT(情况9=1 AND CURRBARSCOUNT=60,ZGD2-(ZGD2*0.5),'量梯递增'),COLORMAGENTA;DRAWTEXT(情况10=1 AND CURRBARSCOUNT=70,ZGD2-(ZGD2*0.5),'量梯递减'),COLORMAGENTA;。
通达信指标公式源码 黄金副图指标
VAR1:=EMA(WINNER((LOW+HIGH)/2),10)*100;VAR2:=EMA(WINNER(CLOSE),21)*100;VAR3:=EMA(WINNER(CLOSE),34)*100;VAR4:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;X1: SMA(VAR4,5,1),COLOR00FF00 ,LINETHICK2 ;X2: SMA(X1,3,1),,COLORYELLOW ,LINETHICK2 ;X3: 3*X1-2*X2, ,COLORF00FF0 ,LINETHICK2 ;VAR5:=EMA(CLOSE,26)-EMA(CLOSE,12);VAR6:=EMA(VAR5,9)*8;VAR7:=2*(VAR5-VAR6);80,,COLORGREEN ,POINTDOT;20, ,COLORGREEN,POINTDOT;VAR8:=CLOSE*50/100;VAR9:=MA(VAR8,30)*0.83;VARA:=MA(VAR8/VAR9,3);IF(VARA<103/100,20,0),LINETHICK2,COLOR23ACFF;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,1)*100;顶部雷达:CROSS(80,RSI)*100,,LINETHICK2, COLORF0F000; {DRAWTEXT(CROSS(80,RSI) , 100,1)COLORGREEN;}VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; VARC:=SMA(MAX(CLOSE-LC,0),10,1)/SMA(ABS(CLOSE-LC),10,1)*100;VARD:=BARSCOUNT(CLOSE);底部雷达:(VARB< 20 AND VARC< 25 AND VARD> 50)*100, ,LINETHICK2 ,COLORYELLOW; {DRAWTEXT(CROSS(100,底部雷达) ,100,2), , LINETHICK1 COLORMAGENTA;}VAR11:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE < REF(CLOSE,1),0-VOL,0)),0);VAR12:=SUMBARS(VOL,CAPITAL);VAR13:=IF(CLOSE>LLV(CLOSE,VAR12),1,-1)*IF(VAR11>LLV(VAR11,VAR12),1,-1);VAR14:=IF(VAR13=-1,1,0);VAR15:=COUNT(VAR14=1,8)>2;VAR16:=SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100;VAR17:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/VAR16);VAR18:=(CLOSE-VAR17)/VAR17*100<-15;VAR19:=(CLOSE-MIN(REF(CLOSE,5)*0.865,REF(CLOSE,21)*0.772))/CLOSE<0.05; RSW: VAR18 AND VAR19 AND VAR15,COLORRED;DRAWTEXT(RSW>0 AND REF(RSW,1)=0,50,3),COLORRED;VAR88:=MA(CLOSE,27);VAR98:=(CLOSE-VAR88)/VAR88*100;VARA8:=MA(VAR98,2);VARB8:=BARSLAST(CROSS(-10,VARA8)=1);VARC8:=BARSLAST(CROSS(VARA8,10)=1);VARD8:=VARA8<-10 AND VARB8>3;VARE8:=VARA8>10 AND VARC8>3;黄金坑: IF(VARD8,VARA8,0),LINESTICK ,LINETHICK2, COLORYELLOW;A1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;波段介入点:IF(A2<19,19,0);LC5:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(CROSS(RSI,11),LOW,4),COLORRED;VAR78:=EMA(AMOUNT/VOL/100,3);BB10:=100*(C-COST(10))/COST(10);BB1:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;BB2:=SMA(BB1,4,1);BB3:=SMA(BB2,2,1);BB4:=VOL/CAPITAL*34;BB5:=REF(BB4,1);主力建仓提醒: IF(BB3<8.5 AND BB2<11,-10,0),COLORRED;VARO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;VARO3:=SMA(SMA(VARO2,3,1),3,1);VARO4:=EMA(VARO3,5);VARO5:=LLV(LOW,26);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;STICKLINE(CROSS(VARO4,10) AND VARO4>10,25,0,8,0),COLORYELLOW;建仓区: IF((VARO7<6),80,100),LINETHICK2, COLOR00CCFF;。
通达信指标公式源码黄金超短副图
X_1:=1151230;X_2:=IF(DATE<X_1,1,0);X_3:=1;X_4:=MA((2*CLOSE+HIGH+LOW)/4,5);X_5:=X_4*1.02;X_6:=X_4*0.98;X_7:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);X_8:=DMA(CLOSE,X_7);X_9:=1.07*X_8;X_10:=0.93*X_8;X_11:=(X_5-REF(X_5,5))/REF(X_5,5)*1000;X_12:=(X_9-REF(X_9,5))/REF(X_9,5)*1000;X_13:=MA(CLOSE,9);X_14:=X_5>X_9;X_15:=COUNT(X_12>=REF(X_12,1),2)>=2;X_16:=MA(VOL,10)>=MA(VOL,55);X_17:=COUNT(CLOSE>OPEN,7)>=4;X_18:=X_14 AND X_15 AND X_16 AND X_17;X_19:=LLV(LOW,10);X_20:=HHV(HIGH,25);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*4,4);X_22:=(LOW+HIGH+CLOSE*2)/4;X_23:=EMA(X_22,14);X_24:=(X_6-X_13)/X_13*100;X_25:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;X_26:=REF((X_6-X_25)/X_25*100,1);X_27:=REF(X_18,1) OR REF(X_18,2);X_28:=REF(COUNT(VOL>MA(VOL,5) OR VOL>MA(VOL,20) OR VOL>MA(VOL,135) AND CLOSE>OPEN,10),1)>=6;X_29:=REF(X_5>REF(X_5,1) AND X_9>REF(X_9,1) AND X_5>X_9 ANDCOUNT(CLOSE>OPEN,7)>=4,1);X_30:=X_5>X_9 AND X_9>=REF(X_9,1);X_31:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1) AND MA(CLOSE,55)>=REF(MA(CLOSE,55),1);X_32:=LOW<X_6*1 AND LOW<X_13*1.006;X_33:=X_24<=1.5 OR (X_24>1.5 AND LOW<X_23);X_34:=X_26<=1 OR (X_26>1 AND LOW<X_23);X_35:=CLOSE>DTPRICE(REF(CLOSE,1),0.09);X_36:=X_27 AND X_30 AND X_28 AND X_31 AND X_32 AND X_29 AND X_33 AND X_34 AND X_35;X_37:=IF(REF(EXIST(REF(X_36,1) AND HIGH>ZTPRICE(REF(LOW,1),0.04),4),1),0,1);X_38:=IF(NAMELIKE(55) OR NAMELIKE(56) OR NAMELIKE(10),0,1);X_39:=IF(CODELIKE(57),0,1);阶段卖出:3.2,COLORCYAN;顶部清仓:3.5,COLORGREEN;强弱分界:1.85,DOTLINE,COLORYELLOW;重点关注:0.5,COLORRED;底部介入:0.2,COLORGREEN;乖离1:X_24,NODRAW,COLORYELLOW;乖离2:X_26,NODRAW,COLORYELLOW;STICKLINE(X_21>REF(X_21,1),X_21,REF(X_21,1),3,1),COLORRED;STICKLINE(X_21<=REF(X_21,1),X_21,REF(X_21,1),3,1),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(顶部清仓,X_21),20),X_21+0.02,2);DRAWICON(FILTER(CROSS(X_21,底部介入),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(阶段卖出,X_21),20),X_21+0.02,2);DRAWNUMBER(ISLASTBAR,2.5,X_21),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(0.5,X_21),20),0.6,2);STICKLINE(X_21>REF(X_21,1),X_21,REF(X_21,1),3,1),COLORRED;STICKLINE(X_21<=REF(X_21,1),X_21,REF(X_21,1),3,1),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(顶部清仓,X_21),20),X_21+0.02,2);DRAWICON(FILTER(CROSS(X_21,底部介入),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(阶段卖出,X_21),20),X_21+0.02,2);DRAWNUMBER(ISLASTBAR,2.5,X_21),COLORGREEN;DRAWICON(FILTER(CROSS(X_21,重点关注),20),X_21+0.02,1);DRAWICON(FILTER(CROSS(0.5,X_21),20),0.6,2);X_40:=X_36 AND X_37 AND X_3;超短:IF(X_40,2.5,0),STICK,COLORMAGENTA,LINETHICK4;X_41:=EXIST(X_40,5) AND EXIST(CROSS(MA(CLOSE,9),X_6),2) AND (CLOSE>REF(CLOSE,1) AND CLOSE>OPEN) AND CLOSE>X_6 AND LOW<MA(CLOSE,9) AND CLOSE/OPEN>1.009;持股:FILTER(X_41,2),NODRAW,COLORYELLOW;DRAWICON(持股,1,23);。
通达信指标公式源码 买卖力度副图指标公式
{买卖力度N=1,100,9 M=1,100,3}LOWV:=LLV(LOW,N);HIGHV:=HHV(HIGH,N);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M); K:=EMA(RSV,M);领涨操盘线:MA(K,M);买卖差:=K-领涨操盘线;STICKLINE(买卖差>=0,(K-买卖差*0.05),(K-买卖差*0.15),1,0) ,COLOR00FFFF;STICKLINE(买卖差>=0,(K-买卖差*0.2),(K-买卖差*0.35),2,0) ,COLOR00CCFF;STICKLINE(买卖差>=0,(K-买卖差*0.4),(K-买卖差*0.55),3,0) ,COLOR0099FF;STICKLINE(买卖差>=0,(K-买卖差*0.6),(K-买卖差*0.75),4,0) ,COLOR0066FF;STICKLINE(买卖差>=0,(K-买卖差*0.8),(K-买卖差*0.95),5,0) ,COLOR0000CC;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.05),(领涨操盘线+买卖差*0.15),5,0) ,COLOR006600;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.2),(领涨操盘线+买卖差*0.35),4,0) ,COLOR009900;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.4),(领涨操盘线+买卖差*0.55),3,0) ,COLOR00CC00;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.6),(领涨操盘线+买卖差*0.75),2,0) ,COLOR00FF00;STICKLINE(买卖差<0,(领涨操盘线+买卖差*0.8),(领涨操盘线+买卖差*0.95),1,0) ,COLOR66FF00;。
通达信指标公式源码主力资金副图指标
通达信指标公式源码主力资金副图指标通达信是一款常用的股票分析软件,其指标公式源码被广大投资者广泛使用。
主力资金副图指标是一种衡量市场主力资金流向的指标,通过计算买方力量与卖方力量之间的差异,从而判断市场的主力资金流入或流出情况。
以下是通达信主力资金副图指标的公式源码:```//主力资金指标公式AA:=C>REF(C,1)?(V-C):C<REF(C,1)?(V+C):V;//AA表示根据成交量和价格计算得到的主力资金V1:=SUM(V,5);//V1表示5日内的成交量合计V2:=SUM(V,10);//V2表示10日内的成交量合计AA1:=SUM(AA,5);//AA1表示5日内的主力资金合计AA2:=SUM(AA,10);//AA2表示10日内的主力资金合计MAV1:=MA(V,5);//MAV1表示成交量5日均线MAV2:=MA(V,10);//MAV2表示成交量10日均线MAAA1:=MA(AA,5);//MAAA1表示主力资金5日均线MAAA2:=MA(AA,10);//MAAA2表示主力资金10日均线COLORAA:IF(AA>0,4,7);//若主力资金大于0,则显示为绿色,否则显示为灰色COLORAA1:IF(AA1>0,4,7);COLORAA2:IF(AA2>0,4,7);//绘制主力资金副图Plot(AA,"AA",COLORAA,64);Plot(AA1,"AA1",COLORAA1,64);Plot(AA2,"AA2",COLORAA2,64);MAV1,MAV2,BARS,V1,V2,AA,AA1,AA2均为通达信中的基本指标函数,用来计算不同时间段内的成交量、主力资金、均线等数据。
以上的源码描述了主力资金指标的计算过程,包括根据成交量和价格计算得到主力资金、计算不同时间段内的主力资金合计、计算成交量和主力资金的均线等操作。
通达信指标公式源码 经典成交量跟庄抓主升浪副图指标
N1:=3;N2:=5;N3:=9;N4:=13;DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);DEA:=EMA(DIFF,N2);A1:=DIFF>DEA;RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;K0:=SMA(RSV1,N1,1);D0:=SMA(K0,N1,1);A2:=K0>D0;LC0:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC0,0),N2,1))/(SMA(ABS(CLOSE-LC0),N2,1))*100; RSI2:=(SMA(MAX(CLOSE-LC0,0),N4,1))/(SMA(ABS(CLOSE-LC0),N4,1))*100; A3:=RSI1>RSI2;RSV0:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100; LWR1:=SMA(RSV0,N1,1);LWR2:=SMA(LWR1,N1,1);A4:=LWR1>LWR2;BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4; A5:=CLOSE>BBI;MTM:=CLOSE-REF(CLOSE,1);MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1); MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);A6:=MMS>MMM;BIAS:=(C-MA(C,N2))/MA(C,N2);DIF:=(BIAS-REF(BIAS,16));DBCD:=SMA(DIF,76,1);MM1:=MA(DBCD,5);A7:=DBCD>MM1;持股:=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),LINETHICK0,CO LORRED;下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;A8:=持股>下跌;MT:=C-REF(C,1);ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);MAZL:=MA(ZLGJ,5);A9:=ZLGJ>MAZL;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*(HI GH-LOW),0-VOL/2));HSL:=(XVL/20)/1.15;攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击流量,3);资金流量:=LLJX,LINETHICK0,COLOR0000FF;A10:=资金流量>0;指导线:=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),LINETHICK0,COLORFFFF00; 跟庄操作:IF(指导线>6 ,33.38,0),LINETHICK1,COLOR0000FF;{成交量比%}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+( CLOSE-LOW)),VOL /2));量比%:主买/VOL*100,COLOR00FFFF,LINETHICK1,NODRAW;量:=V/CONST(HHV(V,90))*30,LINETHICK0,VOLSTICK;STICKLINE(CLOSE>=OPEN,0,量*1,0.5,0 ),COLOR8080FF;STICKLINE(CLOSE>=OPEN,0,量*1,3.6,0 ),COLOR000033;STICKLINE(CLOSE>=OPEN,0,量*1,2.2,0 ),COLOR000099;STICKLINE(CLOSE>=OPEN,0,量*1,1.5,0 ),COLOR0000D2;STICKLINE(CLOSE>=OPEN,0,量*1,0,0 ),COLOR0000FF;STICKLINE(CLOSE<=OPEN,0,量*1,0.5,0 ),COLORFFFF00; STICKLINE(CLOSE<=OPEN,0,量*1,3.6,0 ),COLOR000000; STICKLINE(CLOSE<=OPEN,0,量*1,2.2,0 ),COLOR6A6A00; STICKLINE(CLOSE<=OPEN,0,量*1,1.5,0 ),COLORDDDD00; STICKLINE(CLOSE<=OPEN,0,量*1,0,0),COLORFFFF00;{立体青色}; {地量买点}STICKLINE(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),量<0,-3,1.2,0),COLORGREEN,LINETHICK2;DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),量<0,'地量'),COLORFFFFFF,LINETHICK1;{倍量}倍量:(量/REF(量,1)>=1.91 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND 量/REF(量,1)>=1.91),NODRAW,COLORYELLOW; STICKLINE(倍量,0,量,0.0001,0),COLOR00FFFF;DRAWTEXT(倍量,量*0.99,'倍'),COLORFFFFFF,LINETHICK1;VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);K:EMA(VAR7,5)*2, , COLORFFFFFF;D:EMA(K,5), , COLOR00FFFF;J:K*3-D*2, ,COLORFFFFFF;DRAWBAND(K,RGB(498,0,0),D,RGB(0,188,198));M2:=EMA(C,5);M18:=EMA(C,18);买点:=IF(CROSS(M18,M2),5,10* 10000),COLORGREEN,LINETHICK1; RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; VARB2:=(RSVV/2+22)*1;Q:=EMA(VOL,13);Y:=EMA(AMOUNT,13);S:=((Y /Q) / 100);X:=(((CLOSE -S) / S) * 100);F:=((X < (0)) AND ZXNH);XQ:=F AND RSVV;阴线买:买点AND XQ STICK,COLOR0000FF;DRAWICON(阴线买>0,阴线买,1);。
【选股秘籍】-黄金共振指标副图——通达信公式源码
【选股秘籍】黄金共振指标副图——通达信公式源码2023年用法:在通达信中,公式管理器-新建公式-副图公式-粘贴公式-保存即可。
源码如下:NOTEXT顶部标线:180,COLORBROWN,LINETHICK3;NOTEXT底部标线:(-40),COLORBROWN,LINETHICK2;X_1:="SH999999$ADVANCE"+"SZ399001$ADVANCE";X_2:="SH999999$DECLINE"+"SZ399001$DECLINE";X_3:=X_1/(X_2+X_1)*100;X_4:="880006$CLOSE";X_5:="880006$OPEN";X_6:=X_4/(X_4+X_5)*100;X_7:=X_6>=90;X_8:=X_6<90 AND X_6>=80;X_9:=X_6>=20 AND X_6<80;X_10:=X_6<20;STICKLINE(X_8,153,155,3,0),COLORRED;STICKLINE(X_7,153,155,3,0),COLORMAGENTA;STICKLINE(X_9,153,155,3,0),COLORWHITE;STICKLINE(X_10,153,155,3,0),COLORGREEN;X_11:=X_3>=80;X_12:=X_3<80 AND X_3>=50;X_13:=X_3<50 AND X_3>=20;X_14:=X_3<=20;STICKLINE(X_11,148,150,3,0),COLORMAGENTA;STICKLINE(X_12,148,150,3,0),COLORRED;STICKLINE(X_13,148,150,3,0),COLORWHITE;STICKLINE(X_14,148,150,3,0),COLORGREEN;DRAWTEXT(ISLASTBAR,175,'市场'),COLORGREEN;DRAWTEXT(ISLASTBAR,155,'情绪'),COLORGREEN;X_15:=(X_7 OR X_8)+(X_11 OR X_12)>=2;X_16:=X_8 AND X_13 OR (X_12 AND X_9);X_17:=(X_10 OR X_9)+(X_14 OR X_13)>=2;DRAWTEXT(X_15,170,'↑'),COLORLIRED;DRAWTEXT(X_17,170,'↓'),COLOR80FF00;X_18:=LLV(LOW,21);X_19:=HHV(HIGH,21);X_20:=EMA((CLOSE-X_18)/(X_19-X_18)*100,6);X_21:=EMA(0.667*REF(X_20,1)+0.333*X_20,2);X_22:=LLV(LOW,55);X_23:=HHV(HIGH,34);X_24:=EMA((CLOSE-X_22)/(X_23-X_22)*100,3);X_25:=(X_20+X_24)/2;X_26:=EMA(0.667*REF(X_24,1)+0.333*X_20,2);X_27:=EMA(X_25,5);X_28:=EMA(0.667*REF(X_27,1)+0.333*X_27,2);X_29:=LONG cr OSS(X_21,X_20,0.1);X_30:=LONGCROSS(X_20,X_21,0.1);X_31:=X_20>X_21;STICKLINE(X_20<X_21,99,100,3,0),COLORGREEN;STICKLINE(X_20>X_21,99,100,3,0),COLORMAGENTA;DRAWTEXT(ISLASTBAR,100,'短1'),COLORGREEN;X_32:=(MA(CLOSE,13)+MA(CLOSE,20))/2;X_33:=(MA(CLOSE,80)+MA(CLOSE,100))/2;X_34:=X_33+2*STD(CLOSE,80);X_35:=(X_32+X_34)/2;STICKLINE(CLOSE>=X_35,84,85,3,0),COLORMAGENTA;STICKLINE(CLOSE<X_35,84,85,3,0),COLORGREEN;DRAWTEXT(ISLASTBAR,85,'本2'),COLORGREEN;X_36:=CLOSE>=X_35;X_37:=25;X_38:=6;X_39:=6;X_40:=(1+X_38/100)*MA(CLOSE,X_37);X_41:=(1-X_39/100)*MA(CLOSE,X_37);X_42:=(X_40+X_41)/2;X_43:=CLOSE>=X_40;STICKLINE(CLOSE>=X_40,69,70,3,0),COLORMAGENTA;STICKLINE(CLOSE<X_40 AND CLOSE>=X_42,69,70,3,0),COLORRED; STICKLINE(CLOSE<X_42,69,70,3,0),COLORGREEN;DRAWTEXT(ISLASTBAR,70,'轨3'),COLORGREEN;X_44:=X_43;X_45:=EMA(EMA(CLOSE,13),13);X_46:=(X_45-REF(X_45,1))/REF(X_45,1)*1500;X_47:=X_46>REF(X_46,1) AND X_46>0;X_48:=100*WINNER(CLOSE*0.95);X_49:=X_46<REF(X_46,1) AND X_46>0;X_50:=X_48>50 AND COST(85)<CLOSE AND X_46>0;X_51:=BA rsl AST(CROSS(X_46,50));STICKLINE(X_47,54,55,3,0),COLORRED;STICKLINE(X_49,54,55,3,0),COLORGREEN;STICKLINE(X_50,54,55,3,0),COLORMAGENTA;STICKLINE(NOT(X_49) AND NOT(X_47) ANDNOT(X_50),54,55,3,0),COLORGREEN;DRAWTEXT(ISLASTBAR,55,'高4'),COLORGREEN;X_52:=X_50;X_53:=(HHV(HIGH,35)-CLOSE)/(HHV(HIGH,35)-LLV(LOW,35))*100-35;X_54:=SMA(X_53,35,1)+100;X_55:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;X_56:=SMA(X_55,3,1);X_57:=SMA(X_56,3,1)+100;X_58:=X_57-X_54;X_59:=(X_58-1)*2.5;STICKLINE(X_59>=REF(X_59,1),38.5,40,3,0),COLORRED;STICKLINE(X_59<REF(X_59,1),38.5,40,3,0),COLORGREEN;STICKLINE(X_59>REF(X_59,1) AND X_59>100,38.5,40,3,0),COLORMAGENTA; DRAWTEXT(ISLASTBAR,40,'控5'),COLORGREEN;X_60:=X_59>REF(X_59,1) AND X_59>100;X_61:=(3*CLOSE+OPEN+HIGH+LOW)/6;X_62:=EMA(X_61,12);X_63:=EMA(X_61,36);X_64:=EMA(X_61,108);X_65:=EMA(X_61,250);。
通达信软件指标公式源码通达信量学成交量指标公式源码.docx
通达信量学成交量指标公式源码{VOLUME:VOL Z VOLSTICK;MAV5:MA(VOLUME,M1);MAV20:MA(VOLUME,20);MAV60:MA(VOLUME,20);MAV120:MA(VOLUME Z M2);}绿低量: = 13;蓝低量:=55;灰低量: = 100;{ ------- VOL •量能饱和---- }Nl:=21;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和:IF(SAT>1,1,SAT)*100,COLOROOAAFF,NODRAW;中点:二REFDATE(HHV(V,180)*0.5QATE);STICKLINE(CURRBARSCOUNT=N1,中点*1・9,中点*1.5,100,1),COLOROOAAFF; STICKLINE(CURRBARSCOUNT=N1Z中点*1.88,中点*1.52,量能饱和,0),COLOR0077FF;DRAWTEXT(CU RRBARSCOUNT= N1+3,中点*1.8;饱和度COLORYELLOW;=======}H_L:=0.1*CONST(HHV(VOL,240));{MAV10:MA(V,10),COLORYELLOW;}启动5:=MA(V,5),COLORWHITE;洗盘40:=MA(V,40),COLORBLUE;异动135:=MA(V,135),COLORMAGENTA;WOL:=IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,O z l,-l),COLOROOCOCO;量:VOL, VOLSTICK;换手:VOL*10000/FINANCE(7),NODRAW; {DYNAINFO(37)*100}换10T:=SUM(换手,10),NODRAW;倍数: = 1・9;倍量:VOL> = REF(V,1)*倍数AND(IF(C<O Z C>REF(C,1),1)),COLORYELLOW,NODRAW;倍缩:REF(V,1)>=VOL*倍数,COLORMAGENTA,NODRAW;平量:RANGE(V/REF(V,1),0.97,1.03) ANDBARSCOUNT(V)>=2,COLORWHITE,NODRAW;彳氐量10: VOL=LLV(VOL,绿彳氐量)AND BARSCOUNT(V)>=绿彳氐量Z COLORGREEN,NODRAW;低量50: VOL=LLV(VOL,蓝低量)AND BARSCOUNT(V)>=蓝低量,COLORBLUE,NODRAW;地量:VOL=LLV(VOL,灰彳氐量)AND BARSCOUNT(V)>二灰彳氐量,COLORGRAY,NODRAW;V1:=VOL*0.9;{图标位置}V2:=VOL*0.8;STICKLINE(倍量/ 0,VI, 1,0),COLORYELLOW;STICKLINE(平量,O z VI, l z0),COLORWHITE;STICKLINE(低量10,0, V2,1,0),COLORLIGREEN;STICKLINE(低量50,0,V2,1,0),COLORBLUE;STICKLINE(地量z O,V2,l z O),COLORGRAY;STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA;均价:=AMOUNT/VOL/100;TJ01:=C<0 AND 均价>REF(CJ){ AND BARSCOUNT(C)>=240};{假阴真阳}; TJ02:=C<0 AND C>REF(C,1);STICKLINE(TJ01 OR TJ02,0,V,0,0),COLORRED;{假阴柱}真阳或假阴:=C>0 OR C>REF(C,1);收阳匸REF(真阳或假阴,3);倍量1:=REF(倍量Q);高量:=REF(V,3)>=H HV(V,7);三日不破:二LLV(C,3)>=REF(L,3);价升:二COUNT(C>=REF(C,1),3)=3;{收盘价逐升}量缩:=COUNT(Vv=REF(V」),3)=3;连阳:=COUNT(真阳或假阴,3)=3;倍量将军柱:二倍量1AND三日不破AND收阳;高量将军柱:二高量AND三日不破AND收阳;将军柱:二倍量将军柱OR高量将军柱;黄金柱:=将军柱AND价升AND量缩AND连阳;STICKLINE(黄金柱Z0.3*V,0.7*V Z1Z0),COLORRED; {红柱}DRAWICON(黄金柱,V*1.5,1);V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)> = 100; 百口地量群:=COUNT(V100,5)>=3;DRAWTEXT(FILTER(百R 地量群,4),V+3*H_L,地量群'),COLORGRAY;长阴短柱:=C/REF(C,l)<=0.96 AND V<HHV(V,30)/1.9;{DRAWTEXT(长阴短柱,V+1.6*H_L;! ^^OLORLICYAN};DRAWLINE(V=LLV(V,3)Z V,V=HHV(V,3),V,0),COLOR9A90FF;DRAWLINE(V=HHV(V Z7),V Z V=LLV(V Z7),V,0),COLOR9AFF89;DRAWLINE(L=LLV(L, 7),V Z H=HHV(H Z7),V Z0),COLOR9AFF89;DRAWLINE(V=HHV(V Z21)Z V,V=LLV(V,21)Z V,0)Z COLORC100FF;DRAWLINE(V=LLV(V,21)Z V,V=HHV(V Z21),V Z0)Z COLORC100FF;DRAWLINE(V=HHV(V/35),V,V=LLV(V,35)/V,0),COLORC1005B;DRAWLINE(V=LLV(V,35)Z V,V=HHV(V Z35),V,0),COLORC1005B;DRAWLINE(V=HHV(V,49)Z V Z V=LLV(V,49),V z0),COLORYELLOW;DRAWLINE(V=LLV(V,49)MV=HHV(V,49)M0),COLOR YELLOW;rT 1 79 地更 0 00 地里群 姬群 停 10^1 oroo 少• 「 倍g ooo 平更:aoo 氐虽M ow。
通达信量价趋势副图源码指标公式
本副图为图形指标,根据量价关系编程,经多时验证直观且准确,图中有趋势提示,可配合K线主图判断操作A:=EMA(EMA(AMOUNT/10000000,5),10);N1:=A;最高:N1,LINETHICK1;最低:N1,LINETHICK1;收盘:N1,LINETHICK1;开盘:REF(收盘,1),LINETHICK1;均量10:=MA(A,10);B:=收盘>开盘;D:=收盘<开盘;F:=EMA(EMA(C,5),10);N2:=F;收盘1:=N2;开盘1:=REF(收盘1,1);G:=收盘1>开盘1;I:=收盘1<开盘1;DRAWTEXT_FIX(1,0.9,0.42,0,'【量价趋势】'),COLORYELLOW;DRAWTEXT_FIX(收盘1>开盘1 AND ISLASTBAR,0.94,0.58,0 ,'价涨'),COLORRED; DRAWTEXT_FIX(收盘1<开盘1 AND ISLASTBAR,0.94,0.58,0 ,'价跌'),COLORGREEN; DRAWTEXT_FIX(收盘>开盘AND ISLASTBAR,0.91,0.58,0 ,'量增'),COLORMAGENTA; DRAWTEXT_FIX(收盘<开盘AND ISLASTBAR,0.91,0.58,0 ,'量缩'),COLORLIRED;K:=B AND G;{}P:=D AND G;高:=REF(HHV(N1,130),3);上部:REFDATE(高,DATE),COLORWHITE,LINETHICK1;STICKLINE(K,上部,上部*1.05,4,0),COLOR3333FF;STICKLINE(P,上部,上部*1.05,4,0),COLOR3CFFFF;DRAWBAND(开盘,RGB(0,255,100),最高,RGB(255,00,100));DRAWTEXT_FIX(1,0.29,0.1,0,'上部红色为价涨量升,上升趋势;'),COLOR3333FF; DRAWTEXT_FIX(1,0.485,0.1,0,'黄色为价跌量减,量价背离,注意顶部!'),COLOR3CFFFF; DRAWTEXT_FIX(1,0.35,0.25,0,'没有标记的区域包括放量下跌和无量阴跌,都不参与'),COLOR66FF33。
金股分时副 成交额 机构买卖 散户买卖 强势拉升通达信指标公式源码
A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-VOL/C APITAL*100,0)),0);成交额:=V*C/100,NODRAW;{万元}A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR),((100*A2)/A6),0);A8:=IF((ISLASTBAR),((100*A3)/A6),0);A9:=IF((ISLASTBAR),((100*A4)/A6),0);A10:=IF((ISLASTBAR),((100*A5)/A6),0);机构买:(A2),LINETHICK6,COLORRED;机构卖:(A3),LINETHICK6,COLORGREEN;机构进出:机构买-机构卖,NODRAW;散户买:(A4),COLOR5555FF;散户卖:(A5),COLOR55FF55;强势:((100*A2)/A6>50);STICKLINE(强势,机构买*1.02,机构买*1.1,1,0),COLORYELLOW;拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18; STICKLINE(拉升,机构买*1.1,机构买*1.2,1,0),COLORRED;DRAWTEXT(ISLASTBAR=1,机构买*0.95,''),LINETHICK2,COLORRED;DRAWTEXT(ISLASTBAR=1,机构卖*0.95,''),LINETHICK2,COLORFFFF55;Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05, 0.95);Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BAR SCOUNT(C))));{理}DRAWICON(CROSS((C/Q2),1.03),机构买,5);DD1:=1;AAA1:=STRCAT(STRCAT('机构买入',CON2STR((100*A2)/A6,0)),'%');AAA2:=STRCAT(STRCAT('机构卖出',CON2STR((100*A3)/A6,0)),'%');AAA0:=STRCAT(STRCAT('机构总买入',CON2STR((100*(A2-A3))/A6,0)),'%');AAA3:=STRCAT(STRCAT('散户买入',CON2STR((100*A4)/A6,0)),'%');AAA4:=STRCAT(STRCAT('散户卖出',CON2STR((100*A5)/A6,0)),'%');AAA5:=STRCAT(STRCAT('散户总买入',CON2STR((100*(A4-A5))/A6,0)),'%'); DRAWTEXT_FIX(DD1=1,0.001,0.05,0,AAA1),COLORRED;DRAWTEXT_FIX(DD1=1,0.001,0.15,0,AAA2),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.001,0.25,0,AAA3),COLORRED;DRAWTEXT_FIX(DD1=1,0.001,0.35,0,AAA4),COLORGREEN;DRAWTEXT_FIX(DD1=1,0.001,0.45,0,AAA0),LINETHICK5,COLORCYAN; DRAWTEXT_FIX(DD1=1,0.001,0.55,0,AAA5),LINETHICK5,COLORCYAN;。
通达信指标公式源码量能趋势 副图源码
用法:跟随趋势,柱短关注,越短越好;柱长小心,量柱缩小小心变盘,简单明了。
{N:5,K:1}量能:EMA(400*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)),K)/4,STICK,L INETHICK5,COLORRED;Z:=DRAWTEXT(量能>23,量能*0.92,'○'),COLORYELLOW;DRAWICON(量能>23,量能*0.7,17);生命分水岭: 34;强势: 84;DRAWICON(量能<1,4,15);DRAWICON(量能<2,10,13);J:=DRAWICON(量能<3,17,1);买入线:20;卖出线:72;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2;K0:SMA(RSV,3,1),LINETHICK1;D:=SMA(K,3,1),LINETHICK1;J0:=3*K-2*D,COLORFF00FF,LINETHICK1;DRAWICON(CROSS(J0,1),J0,1);DRAWICON(K0>80 AND D>80 AND CROSS(D,K),D,2);KY:IF(K0>REF(K0,1),K0,DRAWNULL),COLORFF8000,LINETHICK1;KX:IF(K0<REF(K0,1),K0,DRAWNULL),COLORYELLOW,LINETHICK1;DY:IF(D<REF(D,1),D,DRAWNULL),COLORGREEN,LINETHICK1;DX:IF(D>REF(D,1),D,DRAWNULL),COLORRED,LINETHICK1;JY探升:=IF(J0>REF(J0,1),J0,DRAWNULL),COLORFF00FF,LINETHICK1;JX探跌:=IF(J0<REF(J0,1),J0,DRAWNULL),COLORFFFF00,LINETHICK1;{周赚10%}A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);SHORT:=7;LONG:=19;RMA:=EMA(CLOSE,SHORT);NMA:=EMA(CLOSE,LONG);UP1:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAS T(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV( H,BARSLAST(CROSS(RMA,NMA))+1),0);DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BA RSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),L LV(L,BARSLAST(CROSS(NMA,RMA))+1),0);买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)<REF(DOWN,2) ANDUP1>REF(DOWN,1),COLORYELLOW,STICK,LINETHICK7;顶:(HHV(A8,2)=HHV(A8,7) AND COUNT(A8<40,2) AND CROSS(MA(A8,2),A8)) AND REF(UP1,1)<REF(UP1,2) ANDDOWN>REF(UP1,1),COLORWHITE,STICK,LINETHICK7;抄底:CROSS("KDJ.J",1)*5,COLORWHITE;。
通达信指标公式源码 精确买卖 副图源码
VAR3:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR4:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR5:=(CLOSE-MA(CLOSE,0))/MA(CLOSE,0)*100;VAR6:=(VAR3+VAR4+VAR5)/3;VAR7:=EMA(VAR6,5);ZHIB: EMA(EMA(VAR3,5),5)*3, COLORSTICK;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VAR8,10);STICKLINE(VAR8=10,20,10,3,0),COLORRED;VARA:=IF(VAR9 && CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);K:EMA(VAR7,5)*2,COLORGREEN;D:EMA(K,5), COLORWHITE;J:K*3-D*2, COLORYELLOW;VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) && J>10;DRAWTEXT(VARA=20,15,'底部');STICKLINE((VARA=20),0,10,3,0),COLORWHITE;VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) && (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) && (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));VARD:=(ZIG(3,5)<REF(ZIG(3,5),1)) && (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) && (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));STICKLINE((VARC=1),(-14),0,3,0),COLORMAGENTA;DRAWTEXT((VARC=1),(-14),'买');STICKLINE((VARD=1),14,0,3,0),COLORGREEN;DRAWTEXT((VARD=1),18,'卖');VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11:=VARF<REF(VAR10,1) && VOL>REF(VOL,1) && CLOSE>REF(CLOSE,1); DRAWTEXT(VAR11 && COUNT(VAR11,30)=1,15,'大资金活动');STICKLINE(VAR11 && COUNT(VAR11,30)=1,1,10,3,0),COLORCYAN;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 && VAR13<200 && VAR14>=150 && VAR14<200,10,0);VAR16:=IF(VAR13<=-150 && VAR13>-200 && VAR14<=-150 && VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 && VAR13>=150,15,IF(VAR14<=-200 && VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 && VAR1B>60 && VAR19<100;DRAWTEXT(VAR1C && COUNT(VAR1C,30)=1,15,'大笔出货');STICKLINE(VAR1C && COUNT(VAR1C,30)=1,0,10,3,0),COLORYELLOW;。
通达信副图指标公式源码大全
实用标准文档副图指标公式源码1、百万踏浪(相传为杨百万看图公式)N1:=9;N:=3;VAR1:=REF(CLOSE,1);标尺 : SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100;VAR2:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1);浪: VAR3,COLORBLUE;波: VAR4, COLORRED;段: VAR5 ,COLORYELLOW;VAR6:=CROSS(VAR3,VAR4) AND VAR4<25;STICKLINE(VAR6,0,VAR4+15,5,0), COLORGREEN;VAR7:=CROSS(VAR4,VAR5) AND VAR4<25;VAR8:=VAR7 AND VOL>REF(VOL,1)*2 AND VOL>REF(MA(VOL,5),1)*2;STICKLINE(VAR7,0,VAR4+55,5,0),COLORWHITE;DRAWTEXT(VAR7 AND COUNT(VAR7,10)=1,VAR4+25,' 抄底 '),COLORYELLOW; STICKLINE(VAR8,0,VAR4+15,5,0),COLORBLUE;DRAWTEXT(VAR8 AND COUNT(VAR8,10)=1,VAR4-1,' 放量 '),COLORGREEN; VAR9:=CROSS(VAR3,VAR4) AND VAR4>80 AND VAR4>VAR5;STICKLINE(VAR9 AND COUNT(VAR9,5)=1,VAR4-5,100,5,0),COLORYELLOW;实用标准文档VARA:=CROSS(VAR5,VAR4) AND REF(VAR4,1)>80;STICKLINE(VARA,VAR4-15,100,15,0), COLORYELLOW;DRAWTEXT(VARA AND COUNT(VARA,10)=1,VAR4-25,' 逃顶'), COLORYELLOW;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR11-CL0SE>=-0.25 AND VAR15<22 AND VAR16<28 ANDVAR17>50;STICKLINE(VAR20,0,50,10,0),LINETHICK2,COLORBLUE;弹?')丄 INETHICK7,C0L0RWHITE;2、分类资金A:=IF((CL0SE>126.32),(AM0UNT)/(100000),V0L);主力 :MA(A,4),LINETHICK0,C0L0RYELL0W;游资 :MA(A,8),LINETHICK0,C0L0R00FF00;大户 :MA(A,16),LINETHICK0,C0L0RRED;散户 :MA(A,32),LINETHICK0,C0L0RF0F000;警戒线 :MA(A,180),C0L0RFF66FF,LINETHICK1; 主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0,主力 > 0),0, 主力 ,3,0),C0L0R009CFF;STICKLINE(( 主力 ,2.8,0),C0L0R009CFF; STICKLINE(( 主力 ,2.5,0),C0L0R00C0FF; STICKLINE(( 主力 ,1.5,0),C0L0R00D1FF; STICKLINE(( 主力 ,1,0),C0L0R00EAFF; STICKLINE(( 主力 ,0.7,0),C0L0RYELL0W;STICKLINE(( DRAWTEXT(CROSS(VAR20,0.5)AND C0UNT(VAR20=1,10)=1,60,' 百万导主比:ABS (((主力)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0RYELL0W; 游比:ABS (((游资)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0R00FF00; 大比:ABS (((大户)/(主力 游资 大户 散户 ))*(100)),LINESTICK,C0L0RRED;散比:ABS (((散户)/(主力 游资大户 散户 ))*(100)),LINESTICK,C0L0RF0F000;STICKLINE(( 游资> 0),0,游资,3,0),COLOR00C100;STICKLINE(( 游资> 0),0,游资,2.8,O),COLOROOCAOO;STICKLINE(( 游资> 0),0,游资,2.5,O),COLOROOD3OO;STICKLINE(( 游资> 0),0,游资,1.5,0),COLOROODBOO;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),COLORFFBBOO;STICKLINE(( 散户 > 0),0, 散户 ,0.7,0),COLORLIBLUE;3、黑马起爆点VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;VAR3:=SMA(VAR2,2,1);天:100+(-ABS(VAR1)),COLORRED;下:SMA(VAR3,2,1);无:ABS(VAR1),C0L0RGREEN;敌:50,COLORFFAA00 ,L INETHICK3;A:80;B:20;买:STICKLINE(CROSS(下,无),3,2O,2,O),COLORRED,LINETHICK1;STICKLINE(CROSS(下,无),20,25,2,0),COLORFF9900,LINETHICK1;DRAWTEXT(CROSS( 下,无),30,' '),COLORFFFFCC;卖:STICKLINE(CROSS(下,天),7O,9O,2,O),COLORRED,LINETHICK1;STICKLINE(CROSS(下,天),9O,99,2,O),COLORFF99OO,LINETHICK1;DRAWTEXT(CROSS( 下,天),70,' '),COLORFFFFCC;选股 2:IF(CROSS( 下,20),1,0);DRAWICON((CROSS( 下,20) ),20,1);DRAWICON((CROSS( 下,20) ),-20,25);4、宁波绝密(相传为宁波涨停敢死队的绝密指标)AND WOL:IF(CURRBARSCOUNT=1PERIOD=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);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,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-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),COLOROOFFFF;换手:VOL/CAPITAL*100,POINTDOT;二十日换手 :SUM( 换手 ,20);5、起涨点换手率 %:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;量比:V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;AND VVOL:=IF(CURRBARSCOUNT=1PERIOD=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:= 量比 >1.5 OR 虚拟量比 >1.5;换手率 %1:= 换手率 %>5;获利比例 %1:= 获利比例 %>70;涨幅 %1:= 涨幅 %>3;启动 := 换手率 %1 AND 量比 1 AND 获利比例 %1 AND 涨幅 %1 ;起涨点:IF(启动,101,0)COLORRED,LINETHICK2;6、庄家建仓VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;VAR3:=EMA(VAR2,13);VAR4:=LLV(LOW,34);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 ),COLORRED;7、出色超赢JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));实用标准文档VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR实用标准文档VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股 :VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场 :=IF( 红色持股 ,JRL,DRAWNULL);明离场价 :=离场 ,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOROOOOFF,NODRAW;青色观望 :VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFFOOOO,NODRAW;黄色低买 :VAR19,COLOR33AACC,NODRAW;洋红离场 :VAR1A,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,COLORFFOOFF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOROOFFFF;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,3O,1),COLOROOOOFF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,3O,1),COLOROOFFOO;实用标准文档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,2.5,0 ),COLOR00BB00;STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,1.7,0 ),COLOR00DD00;STICKLINE( 换手 >4 ,VOL ,CAPITAL*0.04,3,0 ),COLOR009900;实用标准文档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;VAR1:MA(CLOSE,5);VAR2:MA(CLOSE,10);VAR3:MA(CLOSE,20);VAR60:MA(CLOSE,60);VAR120:MA(CLOSE,120);VAR4:=OPEN<VAR1 OR OPEN<VAR2 OR OPEN<VAR3;VAR5:=CLOSE>MAX(VAR1,MAX(VAR2,MAX(VAR3,VAR60)));VAR6:=VOL/MA(VOL,30)>1.2;VAR7:=CLOSE/REF(CLOSE,1)>1.049;VAR8:=VAR4 AND VAR5 AND VAR6 AND VAR7;VAR9:=VAR8 AND (REF(BARSLAST(VAR8),1)>60 OR BARSSINCE(VAR8)=0); DRAWICON(VAR9 ,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))丄 INETHICKO; 均价:AMOUNT/(VOL*100),LINETHICK0,COLORYELLOW;ZT:=C/REF(C,1)>1.O97;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);STICKLINE(ZT,0,L*1,3,0),COLORYELLOW;DRAWTEXT(ZT,L*1.1,' 涨停 '),COLORF00FF0;VARZT:=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 VARZT=2,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=2,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=4,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=4,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=7,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=7,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=12,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=12,L*0.9,' 时间窗 '),COLORWHITE; STICKLINE(AA AND VARZT=20,0,L*0.8,2,0),COLORRED; DRAWTEXT(AA AND VARZT=20,L*0.9,' 时间窗 '),COLORWHITE;。
通达信黄金精准买卖拐点主图指标公式副图源码
通达信黄金精准买卖拐点主图指标公式副图源码SHORT:=12;LONG:=26;M:=12;DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,M);MACD:=2*(DIF-DEA);KK:=IF(DIF>DEA,5,-5);JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));{计算出金叉死叉时的DIFF 值}DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));{计算出明日MACD=MACD时的DIFF值}DIF拐头价:=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,S HORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1)))COLORGREEN,POINTDOT;金死叉价:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C, SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1))),NODRAW;柱变向价:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,S HORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(S HORT+1))),COLORYELLOW,POINTDOT;黄铢消失见顶:=IF(柱变向价>=DIF拐头价,柱变向价,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;上拐:IF(DIF拐头价<柱变向价,DIF拐头价,DRAWNULL),COLORRED,LINETHICK4;下拐:IF(DIF拐头价>=柱变向价,DIF拐头价,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;ZJ:=上拐,COLOR0000FF;HY:=金死叉价,COLORFF00FF;IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;IF(HY>REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK2, NODRAW;IF(HY<REF(HY,1),HY,DRAWNULL),COLORBLUE,LINETHICK2,NOD RAW;STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;STICKLINE(CLOSE=ZJ,H,L,3,0),COLORWHITE;STICKLINE(CLOSE<ZJ,H,L,0,0),COLORYELLOW;STICKLINE(CLOSE<ZJ,O,C,2.5,0),COLORYELLOW;STICKLINE(C<HY AND C>O,H,C,0,0),COLORCYAN;STICKLINE(C<HY AND C>O,O,L,0,0),COLORCYAN;STICKLINE(C<HY AND C>O,O,C,2.8,1),COLORCYAN;STICKLINE(C<HY AND C<=O,H,L,0,0),COLORCYAN;STICKLINE(C<HY AND C<=O,O,C,2.8,0),COLORCYAN;HD0:=CROSS(DIF,DEA);DRAWTEXT_FIX(C>O,0.005,0.92,0,' 众'),COLORWHITE;DRAWTEXT_FIX(C>O,0.01,0.92,0,' 号:代码部徵'),COLORWHITE;DRAWTEXT_FIX(C>O,0.09,0.92,0,'信:CXH99CXH99'),COLORWHITE;DRAWTEXT_FIX(C>O,0.01,0.75,0,'代编写或想要好指标选股公式模型'),COLORWHITE;DRAWTEXT_FIX(C>O,0.005,0.92,0,'公'),COLORWHITE;金收:REF(L,BARSLAST(HD0)),COLORYELLOW,DOTLINE;LD0:=CROSS(DEA,DIF);死收:REF(H,BARSLAST(LD0)),COLOR00FF00,DOTLINE;买入准备:DRAWICON(CROSS(柱变向价,DIF拐头价),上拐,34);卖出准备:DRAWICON(CROSS(DIF拐头价,柱变向价),下拐,35);SBL:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FG BLOCK),GNBLOCK),ZDBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.01,0.005,0,SBL),COLORCYAN;。
通达信副图指标淘金(附源码)
通达信副图指标淘金(附源码)通达信副图指标淘金(附源码)M:=34;N:=7;ZX:=MA(CLOSE,M);阻力线:(ZX + N*STD(CLOSE,M)),POINTDOT,LINETHICK2,COLORFFFF20;拉升力:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,47))*0.6*CLOSE;拉升力A:=SMA(拉升力,6.3,1);波峰波谷:=SMA(拉升力A,3,1),COLOR09FFFF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1* 拉升力A;多空:IF(空方>拉升力B,拉升力B,空方)*4.5,LINETHICK2,COLOR00FF00;IF(多空>REF(多空,1),多,DRAWNULL),COLORLIMAGENTA,LINETHICK2;IF(多空<=REF(多空,1),多空,DRAWNULL),COLORWHITE,LINETHICK2;短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*10,LINETHICK0,COLORYELLOW;中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*10,LINETHICK0,COLORWHITE;红柱:SMA(短线,3,1)*4.5,LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1)*4.5,COLORSTICK,COLORFFFF00;STICKLINE(红柱<REF(红柱,1)ND 红柱>0,0,红柱,8,0),COLOR00C400;STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,6,0),COLOR00EC00;STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,4,0),COLOR33FF33;STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,8,0),COLOR0000C4;STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,6,0),COLOR0000F7;STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,4,0),COLOR2D2DFF;STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,8,0),COLOR00CACA;STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,6,0),COLOR00F2F2;STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,4,0),COLOR26FFFF;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,8,0),COLORC600C6;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,6,0),COLORF900F9;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,4,0),COLORFF33FF;STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,8,0),COLORCECE00;STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,6,0),COLORFBFB00;STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,4,0),COLORFFFF37;STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,10,0),COLOR00DBDB;STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,6,0),COLOR02FFFF;STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,4,0),COLOR2DFFFF;。