首页 > 编程语言 >通达信秘线主图指标公式源码副图

通达信秘线主图指标公式源码副图

时间:2024-03-08 21:00:28浏览次数:27  
标签:MA HHV 主图 通达信 源码 CLOSE 100 REF BARSLAST

{ 通达信秘线主图指标公式源码副图 }

M1:=3;
M2:=6;
M3:=12;
M4:=24;
VARAB:(ma(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4,COLORMAGENTA;
IF(VARAB>REF(VARAB,1),VARAB,DRAWNULL),DOTLINE, COLORYELLOW;
IF(VARAB< REF(bbi,1),VARAB,DRAWNULL),DOTLINE,COLORGRAY;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),1,0);
stICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
ZT:=C/REF(C,1)>1.099 AND C=H;
AA:=REF(C,BArslAST(ZT AND CURRBARSCOUNT< 60));
ABA:=REF((C/REF(C,1)>=1.095 AND C=H),1) AND O>REF(C,1) AND C< O AND O=H AND V=HHV(V,34);
BAB:=REF(O,BARSLAST(ABA AND CURRBARSCOUNT< 60));
SAT:=(AMOUNT/C)/(HHV(AMOUNT,120)/HHV(C,120));
量能饱和:=IF(SAT>1,1,SAT)*100;
倒灌:=REF((C/REF(C,1)>=1.099 AND C=H),1) AND 量能饱和>75 AND O>REF(C,1) AND C< O AND O< H ;
BAB1:=REF(H,BARSLAST(倒灌 AND CURRBARSCOUNT< 90));
DD:=Abs((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100)>=10;
ZTCS:=COUNT(涨停,BARSLAST(涨停+1));
ZTCS90:=COUNT(涨停,90);
个线:=EMA(EMA(CLOSE,30),9);
大线:=EMA(EMA(INDEXC,45),9);
个股1:=CLOSE/个线*100;
大盘1:=INDEXC/大线*100;
GGQD:=(个股1-大盘1);
N1:=REF(BARSLAST((C-REF(C,1))/REF(C,1)*100>9.6 AND C=H),1)+1;
回光返照:=COUNT(crOSS(MA(C,15),MA(C,5)),N1)=0 AND HHV(GGQD,20)>23 AND MA(C,5)>MA(C,30) AND GGQD< HHV(GGQD,30) AND GGQD>5 AND (C-REF(C,1))/REF(C,1)*100>9.6 AND C=H,;
ZT9:=(C-REF(C,1))/REF(C,1)*100>9.5,COLORWHITE;
开盘:=IF(REF(ZT9,1)>0 ,(O-REF(C,1))/REF(C,1)*100,0),NODRAW;
bias1 :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIA:=(BIAS1-BIAS2);
BIS:=LLV(BIAS1,3);
超跌涨停:=ZT9>0 AND BIS< 0 AND BIA>5 AND MA(C,5)< MA(C,60);
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20) ;
MA30:=MA(C,30);
MA60:=MA(C,34);
F1:=(MA5-MA10)/MA10*100;
F2:=(MA10-MA20)/MA10*100;
F3:=(MA20-MA60)/MA10*100;
拉升涨停:=F1>1 AND F2>3 AND F3>0 AND ZT>0;
A1:=REF(C,20)=HHV(C,2*20+1);
B1:=FILTER(A1,20);
C1:=BacKSET(B1,20+1);
HD:=FILTER(C1,20);
A:=REF(H,BARSLAST(HD));
rsi1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;
钝化涨停:=ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80;
钝化涨停1:=GGQD>15 AND ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80 AND REF(GGQD>15 AND ZT>0 AND RSI1=HHV(RSI1,5) AND RSI1>80,1)=0;
新股首次:=COUNT(ZT>0,BARSCOUNT(C))=1 AND ZT>0 AND FINANCE(42)< 100;
突破涨停:=CROSS(C,A) AND ZT>0;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(涨停)),REF(HIGH,BARSLAST(涨停)),2,0),COLORLIGREEN;
STICKLINE(CLOSE,REF(LOW,BARSLAST(涨停)),REF(LOW,BARSLAST(涨停)),2,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
倒拔杨柳:DRAWLINE(ABA,O,1,REF(BAB,1),1),COLORLIGRAY;
普通倒灌:DRAWLINE(倒灌,H,1,REF(BAB1,1),1),COLORLIGRAY;
AA11:=REF(C,30)=HHV(C,2*30+1);
BB11:=FILTER(AA11,30);
CC11:=BACKSET(BB11,30+1);
HD1:=FILTER(CC11,30);
AA2:=REF(C,10)=LLV(C,2*10+1);
BB2:=FILTER(AA2,10);
CC2:=BACKSET(BB2,10+1);
LD1:=FILTER(CC2,10);
起拔:REF(C,BARSLAST(HD1)),COLORRED;
DRAWICON(CROSS(C,起拔),起拔*1,11);
T1:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1));
CCVV:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T1)) AND (HIGH>T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T2)) AND (HIGH>T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3));
秘线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK2,COLORFF0099;
DRAWICON(CROSS(C,秘线),秘线*1,11);

 

标签:MA,HHV,主图,通达信,源码,CLOSE,100,REF,BARSLAST
From: https://www.cnblogs.com/zhibiao/p/18061853

相关文章

  • 通达信凤凰底轴主图指标公式源码
    {通达信凤凰底轴主图指标公式源码}TS:=500;N:=95;M1:=5;M2:=10;DA1:=IF(TS>TOTALBARSCOUNT,TOTALBARSCOUNT,TS);DA:=IF(CURRBARSCOUNT>DA1,0,DA1);HI:=REFDATE(HHV(H,DA),DATE);{最高价}LO:=REFDATE(LLV(L,DA),DATE);C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);GZ:=EXP(L......
  • 通达信牛选指标公式源码副图
    {通达信牛选指标公式源码副图}趋势:(Ema(((CLOSE-LLV(LOW,36))/(HHV(HIGH,30)-LLV(LOW,36)))*(4),4))*(25),COLORGREEN;上限:87.5,COLOR00FF00;减1:IF(FILTER(crOSS(趋势,86)ANDC>=MA(C,60),10),72,87.5),COLORWHITE;DRAWTEXT(FILTER(CROSS(趋势,86)ANDC>=MA(C,60),10),......
  • 通达信黄金启动指标公式源码副图
    {通达信黄金启动指标公式源码副图}启动买入:=DYNAINFO(4)>0ANDHHV(HIGH,10)/LLV(LOW,10)<1.25ANDREF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)ANDCLOSE>OPENANDCLOSE>=HHV(HIGH,10);AA:=Ema(C,5),COLORBLUE;BB:=EMA(C,10),COLORBLUE;CC:=EMA(C,1......
  • 通达信筹码抢庄博弈指标公式源码
    {通达信筹码抢庄博弈指标公式源码}PER:=14;X_1:=POW(10,6)+241230-DATE;X_2:=IF(X_1>0,1,0);X_3:=SUM(maX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),10);X_4:=HIGH-REF(HIGH,1);X_5:=REF(LOW,1)-LOW;X_6:=SUM(IF(X_4>0ANDX_4>X_5,X_4,0),20);X_......
  • 通达信龙头追涨指标公式源码副图
    {通达信龙头追涨指标公式源码副图}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(X_2*10,3);X_4:=LLV(LOW,13);X_5:=HHV(X_3,13);X_6:=EMA(IF(LOW<=X_4,(X_3+X_5*2)/2,0),3)/618;X_7:=IF(X_6>500,500,X_6);stICKLINE(X_7>1ANDkd......
  • 通达信趋势箱体主图指标公式源码
    {通达信趋势箱体主图指标公式源码}上收:=C;上开:=O;上高:=H;上低:=L;上箱顶:ma(REF(HHV(上收,21),1),4),COLORFF00FF,LINETHICK2;下箱底:MA(REF(LLV(上收,21),1),5),COLOR00FF00,LINETHICK2;趋势生命线:MA(CLOSE,55),LINETHICK0,COLORFF0000;FF:=EMA(CLOSE,2);MA15:......
  • 通达信经典分价图主图指标公式源码
    {通达信经典分价图主图指标公式源码}N:=120;M:=3;最高A:=REF(HHV(H,N),M);最低A:=REF(LLV(L,N),M);H1:=最高A-(最高A-最低A)*0.191;H中:=最高A-(最高A-最低A)*0.5;H5:=最高A-(最高A-最低A)*0.809;安全:(H1),COLORFF8900;中枢:(H中),COLORF00FF0;警惕:(H5),COLORYELLO......
  • 通达信巡阳雷达选股指标公式源码
    {通达信巡阳雷达选股指标公式源码}VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1)ANDCLOSE<......
  • 通达信三元主图指标公式源码
    {通达信三元主图指标公式源码}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)ANDC<o;高开:=(O-REF(C,1))/REF(C,1)*100;倍量:=V>REF(V,1)*1.69ANDV......
  • 通达信指路灯选股指标公式源码副图
    {通达信指路灯选股指标公式源码副图}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......