首页 > 编程语言 >通达信擒涨停主图指标公式源码副图

通达信擒涨停主图指标公式源码副图

时间:2024-01-27 19:23:58浏览次数:28  
标签:MA ZJ STICKLINE DRAWTEXT 主图 通达信 源码 CLOSE REF

神秘均线75:=ma(CLOSE,75);
ZJ:=EMA(C,13),COLOR0000FF;
HY:=EMA(C,20),COLORFF00FF;
ZJ升:=IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;
ZJ降:=IF(ZJ<=REF(ZJ,1),ZJ,DRAWNULL),COLORBLUE,LINETHICK2;
HY升:=IF(HY>REF(HY,1),HY,DRAWNULL),COLORFF00FF,LINETHICK2;
HY降:=IF(HY<ref(hy,1),hy,drawnull),colorffaa00,linethick2;
stICKLINE(C>ZJ,H,L,0,0),COLORRED;
STICKLINE(C>ZJ,C,O,-1,1),COLORRED;
STICKLINE(C=ZJ,H,L,0,0),COLORFFFFFF;
STICKLINE(C<zj,h,l,0,0),color00ffff;
STICKLINE(C<zj,o,c,-1,1),color00ffff;
STICKLINE(C<hy,o,c,-1,1),colorffff00;
STICKLINE(C<hy,h,l,0,0),colorcyan;
{DRAWTEXT(crOSS(C,ZJ),L,'B'),COLOR00FFFF;
DRAWTEXT(CROSS(C,HY),L*0.99,'B'),COLORFFFF00;
DRAWTEXT(CROSS(ZJ,C),H,'S'),COLOR00FFFF;
DRAWTEXT(CROSS(HY,C),H*1.01,'S'),COLORFFFF00;}
{自适应均线}
DIR1:=Abs(CLOSE-REF(CLOSE,5));
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
ER1:=DIR1/VIR1;
CS1:=ER1*(0.8-2/8)+2/8;
CQ1:=CS1*CS1;
AMA1:=EMA(DMA(CLOSE,CQ1),2) ,COLORWHITE;
DIR2:=ABS(CLOSE-REF(CLOSE,10));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
AMA2:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK1;
{AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORBLUE,LINETHICK3;}
AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK3;
{大阳过平台形态}
N:=5;
大阳:=(C/REF(C,1)-1)*100>=N AND V>REF(V,1);
DRAWICON(大阳,L*0.98,13);
STICKLINE(大阳,O,C,2,0),COLORYELLOW;
DRAWTEXT(大阳,L*0.97,'↖大阳过平台形态'),COLORYELLOW;
{以涨停板或者大阳来突破左侧的高点,5日线和10日线具有上升的攻击角度}
A1:=(MA(C,5)-REF(MA(C,5),1))/MA(C,5)>0.015;
A2:=CLOSE>=REF(HHV(HIGH,30),1);
A3:=C>REF(C,1)*1.07;
XG:=(A1 AND A2 AND A3);
DRAWICON(XG,L*0.96,23);
STICKLINE(XG,O,C,2,0),COLORRED;
DRAWTEXT(XG,L*0.96,'↖大阳来突破左侧的高点'),COLORRED;
TYX2:=MA(REF(HHV((C+L+O+H)/4,10),1),3);
加速k线:=REF(COUNT(C<tyx2,5)=5,1) and="" c="">TYX2 AND C>O;
DRAWICON(加速K线,L*0.95,1);
STICKLINE(加速K线,O,C,2,0),COLORRED;
DRAWTEXT(加速K线,L*0.938,'↖加速K线点'),COLORBLUE;
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
启爆K线:=REF(COUNT(C<tyx3,5)=5,1) and="" c="">TYX3 AND C>O;
DRAWICON(启爆K线,L*0.94,7);
STICKLINE(启爆K线,O,C,2,0),COLORRED;
DRAWTEXT(启爆K线,L*0.928,'↖启爆K线'),COLORBLUE;
{大阳突破:=HHV(C,13)/REF(HHV(C,13),1)>1.018;
DRAWICON(大阳突破,L*0.93,25);
DRAWTEXT(大阳突破,L*0.92,'↖大阳突破'),COLORYELLOW;
多头排列:MA(CLOSE,8)>MA(CLOSE,13) AND MA(CLOSE,5)>MA(CLOSE,8) AND EMA(C,3)>REF(EMA(C,3),1);
DRAWICON(多头排列,L*0.97,1);};
HH0:=CONST(HHV(H,120))*1;
LL0:=CONST(LLV(L,120))*1;
MM0:=CONST((HH0+LL0)/2);
HH1:=IF(CONST(C)<mm0,ll0-(hh0-ll0)*0.4,ll0-(hh0-ll0)*0.4),colorred;
LL1:=LL0;HLMAX:=MAX(HH1,LL1);
HLMIN:=MIN(HH1,LL1);
HLMN1:=(HLMAX+HLMIN)/2;
HLMN2:=(HLMAX-HLMIN);
HLMN3:=HHV(V,250)/2;
HLMN4:=HHV(V,250);
VZ:=(V-HLMN3)*HLMN2/HLMN4+HLMN1;
预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,vol*240/FROMOPEN,VOL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,(0-HLMN3)*HLMN2/HLMN4+HLMN1,(预测量-HLMN3)*HLMN2/HLMN4+HLMN1,2,-1),COLORLIGRAY;
STICKLINE(C>=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,1,0),COLORRED;
STICKLINE(C<o,vz,(0-hlmn3)*hlmn2 hlmn4+hlmn1,1,0),colorgreen;<br=""> MA5:=(MA(V,5)-HLMN3)*HLMN2/HLMN4+HLMN1,COLORFFFFFF;
MA10:=(MA(V,10)-HLMN3)*HLMN2/HLMN4+HLMN1,COLOR00FFFF;
W1:=C=HHV(C,20);
W2:=BArslAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
XG3:=(W4 AND COUNT(W4,5)=1);
DRAWICON(XG3,L*0.93,13);
STICKLINE(XG3,O,C,2,0),COLORYELLOW;
DRAWTEXT(XG3,L*0.90,'↖枪挑小梁王'),COLORYELLOW;
{蓄势待发}
V0:=EMA(C,5);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA30:=EMA(C,30);
EMA60:=EMA(C,60);
M1:=1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975;
M2:=1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60>=980;
M3:=1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60>=985;
M4:=M1 AND M2 AND M3 AND CROSS(V0,EMA10);
M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30);
T1:=1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30>=990;
T2:=1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30>=990;
T3:=T1 AND T2 AND CROSS(V0,EMA10);
T4:=T1 AND T2 AND CROSS(V0,EMA30);
XG1:=(M4 OR M5 OR T3 OR T4);
DRAWICON(XG1,L*0.98,1);
STICKLINE(XG1,O,C,2,0),COLORMAGENTA;
DRAWTEXT(XG1,L*0.97,'↖蓄势待发'),COLORMAGENTA;
{两阳夹阴}
XG2:=(C>O AND REF(C,1)<ref(o,1) and="" ref(c,2)="">REF(O,2)
AND C>REF(O,1) AND C>MA(C,5) AND MA(C,5)>MA(C,10));
DRAWICON(XG2,L*0.98,1);
STICKLINE(XG2,O,C,2,0),COLORMAGENTA;
DRAWTEXT(XG2,L*0.97,'↖两阳夹阴'),COLORMAGENTA;
A81:=REF(C,2)>REF(O,2)*1.03;{确定前天阳线实体大小}
A82:=REF(C,1)<ref(o,1)*1.005 and="" ref(c,1)<ref(c,2);{确定昨天为阴线收盘价低于前天收盘价}<br=""> A83:=C>O*1.023 AND C>REF(C,1)*0.99;{确定今天阳线实体收盘价大于昨天阴线}
两阳夹一阴:=(A81 AND A82 AND A83 );
DRAWICON(两阳夹一阴,L*0.97,13);
STICKLINE(两阳夹一阴,O,C,2,0),COLORYELLOW;
DRAWTEXT(两阳夹一阴,L*0.96,'↖两阳夹一阴'),COLORYELLOW;
AA:=MA(C,5)>MA(C,30) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30);
BB:=C>O AND REF(C,1)<ref(o,1) and="" ref(c,2)="">REF(O,2);
CC:=AMO>REF(AMO,1)*2 OR REF(AMO,2)>REF(AMO,3)*2 AND REF(AMO,1)<ref(amo,2) and="" ref(amo,1)<amo;<br=""> XG6:=(AA AND BB AND CC);
DRAWICON(XG6,L*0.90,7);
DRAWTEXT(XG6,L*0.89, '↖两阳一阴擒涨停 '),COLORYELLOW;
两阳夹一阴1:=COUNT(C>O,3)=2 AND REF(C<o,1) and="" c="" ref(c,1)="">=1.05;
DRAWTEXT(两阳夹一阴1,L*0.89, '↖两阳夹一阴1');

 

标签:MA,ZJ,STICKLINE,DRAWTEXT,主图,通达信,源码,CLOSE,REF
From: https://www.cnblogs.com/zhibiao/p/17991815

相关文章

  • 通达信十战功成选股指标公式源码副图
    ma111:=MA(CLOSE,20);MA112:=MA(CLOSE,40);MA113:=MA(CLOSE,60);A11:=OPENA12:=C>MAX(MA111,MAX(MA112,MA113));A13:=V/MA(V,30)>1.2;A14:=C/REF(C,1)>1.049;SSSS:=expma(EXPMA(CLOSE,50),1);BBBB:=MA(CLOSE,125);NNNN:=MA(CLOSE,240);ZF:=(C-REF(C,1))/RE......
  • 真正的黄金K线主图源码
    TT2:=DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,......
  • 通达信超级逃顶指标公式明确买卖点,规避风险
    基础线:MA(C,5),LINETHICK3,COLOR00CCFF;刚柔线:MA(C,13),CIRCLEDOT,COLORYELLOW;生命线:MA(C,34),CIRCLEDOT,COLORMAGENTA;MA05:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.141......
  • 通达信回调就买主图指标,一个指标,觉得有帮助就用
    MA5:MA(C,5),COLORFFFFFF;MA10:MA(C,10),COLOR00FFFF;MA20:MA(C,20),COLORLIBLUE;MA60:MA(C,60),COLORLIGREEN;MA120:=MA(C,120),COLOR0000FF;DRAWKLINE(H,O,L,C);BDGD:=C=HHV(C,13);GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;高点:REF(C,GDSJ),COLORFF00FF,POINTDO......
  • 通达信神龙擒庄主图指标公式源码
    ma5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);CY:stICKLINE(CLOSE/REF(CLOSE,1)>=1.1,CLOSE-(CLOSE-OPEN)/3,OPEN,2,0),COLORYELLOW;ZT:STICKLINE(CLOSE/REF(CLOSE,1)>=1.0989ANDCLOSE=HIGH,CLOSE,OPEN,2,0),COLORYELLOW;DY:STICKLINE(CLOSE/REF(CLOSE,1)>=......
  • 通达信涨停宝抄底宝主图指标公式源码副图
    M1:=10;M2:=20;N:=20;二品:(1+M1/100)*ma(CLOSE,N),COLORYELLOW;四品:(1-M2/100)*MA(CLOSE,N),COLORBLUE;三品:(二品+四品)/2,COLORWHITE;一品:8*(二品+四品)/14,COLORRED;五品:6*(二品+四品)/14,COLORGREEN;TM:=1200823;涨停:IF(DATE<tm,ztprice(ref(c,1),if(codelike('......
  • 通达信强弱界限指标公式源码副图
    VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR8:=LLV(LOW,34);VARB:=HHV(HIGH,34);BB:=Ema((VAR6-VAR8)/(VARB-VAR8)*100,13);VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2);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)......
  • 通达信筹码乾坤指标公式源码副图
    显示:=1;A20:WINNER(COst(97))-WINNER((COST(97)-COST(3))/40*38+COST(3));A19:WINNER((COST(97)-COST(3))/40*38+COST(3))-WINNER((COST(97)-COST(3))/40*36+COST(3));A18:WINNER((COST(97)-COST(3))/40*36+COST(3))-WINNER((COST(97)-COST(3))/40*34+COST(3));A17:WINNER(......
  • 通达信行业板块看盘加强版指标公式源码
    创业板:=INBLOCK('创业板');中小企业:=INBLOCK('中小板');上证A股:=INBLOCK('上证A股');深证A股:=INBLOCK('深证A股');INDEH:=IF(中小企业=1,"399005$H",IF(创业板=1,"399006$H",IF(上证A股=1,"999999$H","399001$H"))),NOD......
  • 通达信立量桩选股指标公式源码副图
    均价:=(3*C+H+L+O)/6;VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;TJ1:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>VAR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(......