您的位置:股票站 > 查股公式 > 通达信股市12金钗副图源码[查股公式]
股票行情消息数据:

通达信股市12金钗副图源码[查股公式]

2022/9/9 7:57:31

{十二指金叉优化版}
N1:=3;N2:=5;N3:=9;N4:=13;N5:=21;N6:=34;
 DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
 DEA:=EMA(DIFF,N2);
 DRAWICON(DIFF>DEA,1,1);
 X1:DRAWICON(DIFF<DEA,1,2);
 DRAWTEXT(ISLASTBAR=1,1,'.MACD'),COLORFFFFFF;
 A1:=DIFF>DEA;
 RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
 K:=SMA(RSV1,N1,1);
 D:=SMA(K,N1,1);
 DRAWICON(K>D,2,1);
 X2:DRAWICON(K<D,2,2);
 DRAWTEXT(ISLASTBAR=1,2,'.KDJ'),COLORFFFFFF;
 A2:=K>D;
 LC:=REF(CLOSE,1);
 RSI1:=(SMA(MAX(CLOSE-LC,0),N2,1))/(SMA(ABS(CLOSE-LC),N2,1))*100;
 RSI2:=(SMA(MAX(CLOSE-LC,0),N4,1))/(SMA(ABS(CLOSE-LC),N4,1))*100;
 DRAWICON(RSI1>RSI2,3,1);
 X3:DRAWICON(RSI1<RSI2,3,2);
 DRAWTEXT(ISLASTBAR=1,3,'.RSI'),COLORFFFFFF;
 A3:=RSI1>RSI2;
 RSV:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
 LWR1:=SMA(RSV,N1,1);
 LWR2:=SMA(LWR1,N1,1);
 DRAWICON(LWR1>LWR2,4,1);
 X4:DRAWICON(LWR1<LWR2,4,2);
 DRAWTEXT(ISLASTBAR=1,4,'.LW&R'),COLORFFFFFF;
 A4:=LWR1>LWR2;
 BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
 DRAWICON(CLOSE>BBI,5,1);
 X5:DRAWICON(CLOSE<BBI,5,2);
 DRAWTEXT(ISLASTBAR=1,5,'.BBI'),COLORFFFFFF;
 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);
 DRAWICON(MMS>MMM,6,1);
 X6:DRAWICON(MMS<MMM,6,2);
 DRAWTEXT(ISLASTBAR=1,6,'.ZLMM'),COLORFFFFFF;
 A6:=MMS>MMM;
 BIAS:=(C-MA(C,N2))/MA(C,N2);
 DIF:=(BIAS-REF(BIAS,16));
 DBCD:=SMA(DIF,76,1);
 MM:=MA(DBCD,5);
 DRAWICON(DBCD>MM ,7,1);
 X7:DRAWICON(DBCD<MM,7,2);
 DRAWTEXT(ISLASTBAR=1,7,'.DBCD'),COLORFFFFFF;

A7:=DBCD>MM;
持股:=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,COLORRED;
支撑:=LLV(持股,3),LINETHICK0,COLOR00FFFF;
下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;{上面三行去了等号指标上面就有参数但图形去变了样}
转向:=CROSS(持股,下跌){ AND 下跌<30};
 MA1:=MA(持股,5);
向下:=CROSS(MA1,持股) AND MA1>80;
 DRAWICON(持股>下跌 ,8,1);
 X8:DRAWICON(持股<下跌,8,2);
 DRAWTEXT(ISLASTBAR=1,8,'.CGZ'),COLORFFFFFF;

A8:=持股>下跌;
MT:=C-REF(C,1);
 ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);
 MAZL:=MA(ZLGJ,5);
 DRAWICON(ZLGJ>MAZL,9,1);
 X9:DRAWICON(ZLGJ<MAZL,9,2);
 A9:=ZLGJ>MAZL;
 DRAWTEXT(ISLASTBAR=1,9,'.ZLGJ'),COLORFFFFFF;

{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));
 HSL:=(XVL/20)/1.15;
攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
 {GJJ:=EMA(攻击流量,8);}
 LLJX:=EMA(攻击流量,3);
资金流量:=LLJX,LINETHICK0,COLOR0000FF;
 DRAWICON(资金流量>0,10,1);
 X10:DRAWICON(资金流量<0,10,2);
 A10:=资金流量>0;
 DRAWTEXT(ISLASTBAR=1,10,'.ZJL'),COLORFFFFFF;


 {MACD金叉:IF(A1,1,0),COLORRED;
 KDJ金叉:IF(A2,2,0),COLORRED;
 RSI金叉:IF(A3,3,0),COLORRED;
 LWR金叉:IF(A4,4,0),COLORRED;
 BBI金叉:IF(A5,5,0),COLORRED;
 MTM金叉:IF(A6,6,0),COLORRED;
 DBCD金叉:IF(A7,7,0),COLORRED;
 CGZ金叉:IF(A8,8,0),COLORRED;
 ZLGJ金叉:IF(A9,9,0),COLORRED;
 ZJL金叉:IF(A10,10,0),COLORRED;}


 WJ:=(H+L+C)/3;
 V1:=IF(H=L,1,H-MAX(O,C));
 V2:=IF(H=L,1,MAX(C,O)-WJ);
 V3:=IF(H=L,1,MIN(O,C)-L);
 V4:=IF(H=L,1,WJ-MIN(C,O));
 V5:=VOL/IF(H=L,4,H-L);
 V6:=(V1*V5);
 V7:=(V2*V5);
 V8:=(V3*V5);
 V9:=(V4*V5);
买盘:=(V9+V8);
卖盘:=(V6+V7);
买卖差:=买盘-卖盘;
DDX:=买卖差;
DX:=MA(买卖差,5)*20;
 DDX1:=SMA(DX,3,1);
 DDX2:=SMA(DDX1,3,1);
 DDX3:=(5*DDX2+4*REF(DDX2,1)+3*REF(DDX2,2)+2*REF(DDX2,3)+REF(DDX2,4))/15;
 DRAWICON(DDX1>DDX2,11,1);
 DRAWICON(DDX1<DDX2,11,2);
 DRAWTEXT(ISLASTBAR=1,11,'.DDX'),COLORWHITE;
 A11:=DDX1>DDX2;

量:=V;
换手:=V/CAPITAL*100;
 VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘1:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖盘1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
 DLX:=(买盘1-(-卖盘1))/量*换手;
DLX1:=SUM(DLX,6);
 DLX2:=MA(DLX1,5);
 DRAWICON(DLX1>DLX2,12,1);
 DRAWICON(DLX1<DLX2,12,2);
 DRAWTEXT(ISLASTBAR=1,12,'.动力线'),COLORWHITE;
 A12:=DLX1>DLX2;

STICKLINE((A1+A2 + A3 + A4 + A5 + A6 + A7 + A8 + A9+A10+A11+A12)>11,0,12,0,0),COLORYELLOW;
预选:=IF((DIFF<DEA AND K<D AND RSI1<RSI2 AND LWR1<LWR2 AND CLOSE<BBI AND MMS<MMM AND DBCD<MM AND 持股<下跌 AND ZLGJ<MAZL AND 资金流量<0 AND DDX1<DDX2 AND DLX1<DLX2),1,0),NODRAW,LINETHICK0;
准备买入:IF((CROSS(0.99,预选)),12.5,0),STICK,COLORRED,LINETHICK2;
涨买入:IF((A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND A11 AND A12) AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND A11 AND A12,1)=0,3,0),COLORYELLOW,LINETHICK2;

{预选:=DIFF<DEA AND K<D AND RSI1<RSI2 AND LWR1<LWR2 AND CLOSE<BBI AND MMS<MMM AND DBCD<MM AND 持股<下跌 AND ZLGJ<MAZL AND 资金流量<0,COLOR0000FF,LINETHICK3,STICK;}
 {准备:CROSS(0.99,预选)*10,COLORLIBLUE,LINETHICK2,STICK;}
 {买入:(DIFF>DEA AND K>D AND RSI1>RSI2 AND LWR1>LWR2 AND CLOSE>BBI AND MMS>MMM AND DBCD>MM AND 持股>下跌 AND ZLGJ>MAZL AND 资金流量>0)*10,COLORYELLOW,LINETHICK2;}

{上涨:IF(A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND A11 AND A12,3,0),COLORYELLOW,LINETHICK1;
晴天:BARSLASTCOUNT(A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7 AND A8 AND A9 AND A10 AND A11 AND A12),LINETHICK0;
雨天:BARSLASTCOUNT((MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉+DBCD金叉+CGZ金叉+ZLGJ金叉+ZJL金叉)>0 AND (MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉+DBCD金叉+CGZ金叉+ZLGJ金叉+ZJL金叉)<21 ),LINETHICK0;
雪天:BARSLASTCOUNT((MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉+DBCD金叉+CGZ金叉+ZLGJ金叉+ZJL金叉)=0),LINETHICK0;};
下边:=0;
上边:=12.5;

{涨不停买入:(A1+A2 + A3 + A4 + A5 + A6 + A7 + A8 + A9+A10+A11+A12)>6
 AND REF((A1+A2 + A3 + A4 + A5 + A6 + A7 + A8 + A9+A10+A11+A12)<7,1),COLORYELLOW,LINETHICK3;
 {选股:IF(指导线>6 ,1,0),LINETHICK3,COLORFF00FF;};
 {(A1 AND A2 AND A3 AND A4 AND A5 AND A6),COLORFFFF00;};

{STICKLINE(A1 AND A2 AND A3 AND A4 AND A5 AND A6,0,6,0.1,0),COLORYELLOW;
涨不停买入:A1 AND A2 AND A3 AND A4 AND A5 AND A6=1
 AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,COLORYELLOW,LINETHICK3;
 {0;防止显示字符不全,可不用,也可用黑色BLACK不显示出来};


相关文章列表
天天查股公式列表

股票公式分类

天天查股:股票行情消息 实时DDX在线 资金流向 千股千评 业绩报告 十大股东 最新消息 超赢数据 大小非解禁 停牌复牌 股票分红数据 股票评级报告
广告客服:315126368   843010021
股票站免费查股,本站内容与数据仅供参考,不构成投资建议,据此操作,风险自担,股市有风险,投资需谨慎。 沪ICP备15043930号-29