首页 > 编程语言 >通达信三元主图指标公式源码

通达信三元主图指标公式源码

时间:2024-03-08 20:34:16浏览次数:31  
标签:FIX DRAWTEXT 主图 V1 通达信 源码 EVERY 100 REF

{ 通达信三元主图指标公式源码 }

DRAWGBK(O>C,RGB(0,30,0),RGB(0,0,60),0,'01',0);
DRAWKLINE(H,O,L,C);
MV10:=ma(V,10);
AVG_V:=(V-MV10)/MV10*100;
量差:=AVG_V-REF(AVG_V,1);
假阴:=C>REF(C,1) AND C<o;
高开:=(O-REF(C,1))/REF(C,1)*100;
倍量:=V>REF(V,1)*1.69 AND V>REF(HHV(V,20),1);
振幅:=(H-L)/REF(C,1)*100;
ZF:=(C-REF(C,1))/REF(C,1)*100;
涨停:=C/REF(C,1)>1.095 ;
三元:=EVERY(涨停,3) OR EVERY(涨停,2);
XG1:=REF(三元,1) AND 倍量;
XG2:=三元 AND 倍量;
XG0610:=三元 AND 量差>REF(HHV(量差,20),1);
XG2265:=REF(EVERY(涨停,2),1) AND 振幅>15 AND ZF>0.5 AND 倍量;
XG600352:=高开>=6 AND 假阴 AND REF(EVERY(涨停,2),1) AND 倍量;
XG3:=XG2 OR XG1 OR XG0610 OR XG2265 OR XG600352;
XGOK:=FILTER(XG3,2);
DRAWICON(XGOK>0,L*0.98,4);
T:BArslAst(XGOK),NODRAW;
支撑1:REF(C,T+1),NODRAW;
支撑2:REF(C,T+2),NODRAW;
支撑:REF(C,T),NODRAW;
STICKLINE(O,支撑1,支撑1,5,-1),COLOR22B4EE;
STICKLINE(O,支撑2,支撑2,5,-1),COLOR0000FF;
STICKLINE(O,支撑,支撑,5,-1),COLORGREEN;
V1:=BARSLAST(XGOK>0);V2:=REF(C,V1);
V12:=crOSS(C,V2);
V13:=C>V2 AND REF(L,1) V15:=REF(C,V1+1); V16:=REF(C,V1+2);
V11:=C>REF(C,1) AND L<ref(c,1) and="" xgok="0" ref(xgok,1)="">0;
V14:=V12>0 OR V13>0 OR V11>0;
X11:=V1>0 AND C/REF(C,1)>1.085 AND V14>0;
X12:=V11>0 OR X11>0;
买3:=FILTER(X12>0,2);
DRAWTEXT(买3>0,L*0.97,'3'),COLORGREEN;
买2:=V1>0 AND C/REF(C,1)>1.01 AND CROSS(C,V15) AND V1<9;
DRAWTEXT(买2>0,L*0.95,'2'),COLORGREEN;
买1:=V1>0 AND C/REF(C,1)>1.01 AND CROSS(C,V16) AND V1<9;
DRAWTEXT(买1>0,L*0.90,'1'),COLORGREEN;
Z1:=BARSLAST(CROSS(C,REF(C,T)));
PZ:=Z1>0 AND COUNT(MAX(C,O)>REF(C,T),Z1)=Z1 AND Z1<20 AND C/REF(C,1)>1.085;
PZ1:=FILTER(PZ>0,10);
PZ2:=FILTER(T>1 AND COUNT(MAX(C,O)>REF(C,T),T)=T AND T<20 AND C/REF(C,1)>1.085,10);
P3:=PZ1 OR PZ2;
DRAWICON(P3>0,L*0.98,23);
流通市值:FINANCE(40)/100000000,NODRAW,COLORYELLOW;
XA8:=REF(C,1)/REF(C,3)>=1.2 AND O/REF(C,1)<=1.01 AND L<ref(c,1) and="" c="" ref(c,1)="">1.05;
启动8:=XA8 AND COUNT(XA8,4)=1;
DRAWTEXT(启动8,L*1.06,'风'),COLORGREEN;
A11111:=O>C AND C>REF(C,1) AND O/REF(C,1)>1.03;
A21111:=REF(HHV(V,15),1);
A31111:=A11111 AND V>A21111;
STICKLINE(A31111,O,C,2.5,0),COLORGREEN;
N2:=14;
A17:=(vol=HHV(VOL,N2));
K0:=CURRBARSCOUNT=CONST(SUMBARS(A17,1));
K17:=BARSLAST(A17);
K27:=REF(MAX(C,O),K17);
K21:=REF(L,K17);
K3:=CURRBARSCOUNT=CONST(SUMBARS(A17,2));
K4:=BARSLAST(K3);
K5:=REF(MAX(C,O),K4);
NOTEXT1:=IF(CURRBARSCOUNT<const(sumbars(a17,1)),const(k27),drawnull), colorred;<br=""> NOTEXT2:=IF(CURRBARSCOUNT<const(sumbars(a17,2)),const(k5),drawnull),colorred;
NOTEXT3:IF(CURRBARSCOUNT<const(sumbars(a17,1)),const(k21),drawnull),colorgreen,linethick1;
{梯量3}
涨幅:=(C-REF(C,1))/REF(C,1)*100;
梯量9:=EVERY(C>O,3) AND EVERY(C>REF(C,1),2) AND EVERY(V>REF(V,1),2) AND SUM(涨幅,3)<15;
梯量4:=REF(梯量9,1) AND C>=REF(C,1);
DRAWTEXT(FILTER(梯量9,2),H,'T3'),COLOR888888;
BK5:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(FILTER(梯量9,2)))+1),COLORD355BA;
T35:REF(H,BK5),LINETHICK1,COLORD355BA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.9,0.1,1,EXTERNSTR(0,9997)); { 涨停原因}
DRAWTEXT_FIX(1,0.01,0.05,0,'板块:')COLOR0066BB;
DRAWTEXT_FIX(1,0.03,0.05,0,STRCAT(STRCAT(STRCAT(STRCAT(HYBLOCK,'_____'),GNBLOCK),'__'),DYBLOCK))COLOR0066BB; {板块信息}
DRAWTEXT_FIX(1,0.01,0.10,0,'同花:')COLORLIGREEN; {同花顺}
DRAWTEXT_FIX(1,0.03,0.10,0,EXTERNSTR(0,9886))COLORYELLOW;
DRAWTEXT_FIX(1,0.03,0.25,0,EXTERNSTR(0,9601))COLOR70DB93 ;
DRAWTEXT_FIX(1,0.01,0.15,0,'游资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.03,0.15,0,EXTERNSTR(0,9701))COLOR0000FF; {游资协战席位};
U11:=5;
U21:=11;
U31:=9;
UPPER:=(1+U21/100)*MA(CLOSE,U11);
LOWER:=(1-U31/100)*MA(CLOSE,U11);
ene1:=(UPPER+LOWER)/2;
出轨:=CROSS(C,UPPER) AND H=C COLORCYAN;
{竞价龙头副图}
A14:=FINANCE(7)<120000000;
B14:=FINANCE(7)<300000000 AND FINANCE(7)>120000000;
C14:=FINANCE(7)<500000000 AND FINANCE(7)>300000000;
D14:=FINANCE(7)<800000000 AND FINANCE(7)>500000000;
E19:=FINANCE(7)<1300000000 AND FINANCE(7)>800000000;
A88:=DYNAINFO(14)<0.03 AND DYNAINFO(14)>0.006 AND DYNAINFO(17)>10 AND V*200/FROMOPEN/REF(MA(V,5),1)>3;
B:=DYNAINFO(9);
S19:=LOW>(REF(HIGH,2)+0.001) AND C>REF(C,1) AND C>MA(C,20)*1.20 AND V*200/FROMOPEN/REF(MA(V,5),1)>3;
竞价龙头:=S19 OR (A14 AND A88=1 AND B>1200) OR (B14 AND A88=1 AND B>3000)OR (C14 AND A88=1 AND B>5000)OR (D14 AND A88=1 AND B>8000)OR (E19 AND A88=1 AND B>13000) COLORRED;
GK1:=O>REF(C,1);
FD:=O/REF(C,1);
ZT33:=C/REF(C,1)>1.09 OR C/REF(C,1)>1.19;
GK2:=IF(GK1>0 AND FD>REF(FD,1) AND REF(ZT33,1)>0 AND REF(GK1,1)>0,1,0);
GK3:=GK2>0 AND GK1>0 AND ZT33>0 AND COUNT(ZT33
>0,4)<4;
墨轩寻牛:=出轨 AND (竞价龙头 OR GK3);
墨轩寻牛1:=出轨 AND 竞价龙头;
DRAWICON(墨轩寻牛,L*0.96,25);
DRAWICON(墨轩寻牛1,L*0.94,24);

 

标签:FIX,DRAWTEXT,主图,V1,通达信,源码,EVERY,100,REF
From: https://www.cnblogs.com/zhibiao/p/18061788

相关文章

  • 通达信指路灯选股指标公式源码副图
    {通达信指路灯选股指标公式源码副图}XA_1:=ma(INDEXC,34);XA_2:=(55*XA_1+34*REF(XA_1,1)+21*REF(XA_1,2)+13*REF(XA_1,3)+8*REF(XA_1,4)+5*REF(XA_1,5)+3*REF(XA_1,6)+2*REF(XA_1,7)+REF(XA_1,8)+REF(XA_1,9))/143;XA_3:=REF(XA_2,1);XA_4:=0.5*(XA_2+XA_3);XA_5:=MA(CLO......
  • 通达信凤凰底部指标公式源码副图
    {通达信凤凰底部指标公式源码副图}LC:=REF(CLOSE,1);rsi1:=SMA(maX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;CP1:=crOSS(RSI1,25);CP2:=(C-REF(C,1))/REF(C,1)*100<5;X2:=CP1ANDCP2;stICKLINE(X2>0,0,X2,4,0),COLOR9B37FF;STICKLINE(X2>0,0,X2,4,0),COLOR6300C6......
  • 通达信抄底三合一指标公式源码副图
    {通达信抄底三合一指标公式源码副图}VAR111:=(C-Dma(C,V/MA(V,4)/4))/DMA(C,V/MA(V,4)/4)*100<-8AND(DMA(C,V/MA(V,4)/4)-DMA(C,V/MA(V,32)/32))/DMA(C,V/MA(V,32)/32)*100<-21AND(O-REF(C,1))/REF(C,1)>-0.05ANDCOUNT(C=O,3)=0;VAR112:=SMA(SMA((INDEXC-LLV(INDEXL,27......
  • 通达信超牛全仓出击指标公式源码副图
    {通达信超牛全仓出击指标公式源码副图}BB:=ma(C,1);持币阶段:=SMA(SMA(SMA(BB,2,1),2,1),2,1);主升持股波段:=HHV(MA(持币阶段,1),13);双线合一关注:=主升持股波段;涨幅:=(C-REF(C,1))/REF(C,1)*100;VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);VAR1E:=EMA(VAR1D,30);VAR1F:=2*......
  • 通达信八仙互动共振指标公式源码副图
    {通达信八仙互动共振指标公式源码副图}X_1:=Ema(CLOSE,12/4)-EMA(CLOSE,26/4);X_2:=EMA(X_1,9/4);stICKLINE(X_1>=X_2,42,46,5,0),COLORWHITE;STICKLINE(X_1<x_2,42,46,5,1),color696969;X_3:=EMA(CLOSE,6)-EMA(CLOSE,80);X_4:=EMA(X_3,40);STICKLINE(X_3>=X_4,36,40,5,......
  • 通达信【主力资金突破】主图图选股公式 监控分析资金的动向 资金趋势选股实战秘技 源
    {股票指标} 主力资金突破全套指标主要通过监控分析资金的动向,通过分析主力资金的流入流出方向跟随主力吃肉的指标。主力资金是指在股票市场中能够影响股市、甚至控制股市中短期走势的资金。股市中个股有资金推动才上涨,主力资金对个股和板块影响都十分重大,主力资金的流入流......
  • 通达信凤凰K线主图指标公式源码副图
    {通达信凤凰K线主图指标公式源码副图}ma5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60);AA1:=(C-REF(C,1))/REF(C,1)>=0.058AND(C-REF(C,1))/REF(C,1)<0.095;AA2:=(C-REF(C,1))/REF(C,1)>=0.098;stICKLINE(AA1,O,C,0,1),COLOR9B37FF;STIC......
  • 通达信浴火出局指标公式源码副图
    {通达信浴火出局指标公式源码副图}LC:=REF(CLOSE,1);rsi1:=SMA(maX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CL......
  • 通达信凤凰成交量柱指标公式源码副图
    {通达信凤凰成交量柱指标公式源码副图}{Vvol:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;stICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;}VOLUME:VOL,VOLSTICK;JUma:=COUNT(CLOSE>REF(CLOSE,1),2)=2ANDCOUNT(VOL<ref(vol,......
  • 通达信价格资金趋势指标公式源码
    {股票指标}X_1:=REF(LOW,1);X_2:=SMA(Abs(LOW-X_1),3,1)/Sma(MAX(LOW-X_1,0),3,1)*100;X_3:=EMA(IF(CLOSE*1.2,X_2*10,X_2/10),3);X_4:=LLV(LOW,38);X_5:=HHV(X_3,38);X_6:=1971101;X_7:=1971201;X_8:=IF(DATE>X_6,IF(CLOSE<80,1,0),0);X_9:=IF(DATE>X_7,1,X......