首页 > 编程语言 >通达信凤凰底轴主图指标公式源码

通达信凤凰底轴主图指标公式源码

时间:2024-03-08 21:00:11浏览次数:31  
标签:STICKLINE OPEN DA 通达信 源码 底轴主图 CLOSE C1 REF

{ 通达信凤凰底轴主图指标公式源码 }

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(LN(HI/LO)/15); {对数格值}
LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1>=(HI/POW(GZ,9)) AND C1<lo*pow(gz,7),v,0),da);
LH10:=SUM(IF(C1>=(LO*POW(GZ,5)) AND C1<lo*pow(gz,6),v,0),da);
LH11:=SUM(IF(C1>=(LO*POW(GZ,4)) AND C1<lo*pow(gz,5),v,0),da);
LH12:=SUM(IF(C1>=(LO*POW(GZ,3)) AND C1<lo*pow(gz,4),v,0),da);
LH13:=SUM(IF(C1>=(LO*POW(GZ,2)) AND C1<lo*pow(gz,3),v,0),da);
LH14:=SUM(IF(C1>=(LO*GZ) AND C1<lo*pow(gz,2),v,0),da);
LH15:=SUM(IF(C1>=LO AND C1<lo*gz,v,0),da);
L1:=REFDATE(HHV(LH1,DA),DATE);
L2:=REFDATE(HHV(LH2,DA),DATE);
L3:=REFDATE(HHV(LH3,DA),DATE);
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
L11:=REFDATE(HHV(LH11,DA),DATE);
L12:=REFDATE(HHV(LH12,DA),DATE);
L13:=REFDATE(HHV(LH13,DA),DATE);
L14:=REFDATE(HHV(LH14,DA),DATE);
L15:=REFDATE(HHV(LH15,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10+L11+L12+L13+L14+L15);
stICKLINE(CEILING(DA*L15/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*N/100,6,1),COLORRED,LINETHICK3;
DRAWKLINE(H,O,L,C);
快线:(SUM(Ema((CLOSE+LOW)/2,1)/3,3)),COLORRED,LINETHICK1;
中线:EMA(快线,3),COLOR00FFFF,LINETHICK1;
慢线:EMA(中线,3),COLORFF00FF,LINETHICK1;
{MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA30:MA(CLOSE,30);
MA60:MA(CLOSE,60);}
STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR000055;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000088;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR0000AA;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000EE;
STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLOR666600;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555500;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR888800;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORAAAA00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBB00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORCCCC00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOREEEE00;
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555555;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
AA1:=(C-REF(C,1))/REF(C,1)>=0.058 AND (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;
STICKLINE(AA1,OPEN,CLOSE,3,0 ),COLOR6300C6;
STICKLINE(AA1,OPEN,CLOSE,2.7,0 ),COLOR6D00DB;
STICKLINE(AA1,OPEN,CLOSE,2.1,0 ),COLOR7800F0;
STICKLINE(AA1,OPEN,CLOSE,1.5,0 ),COLOR8000FF;
STICKLINE(AA1,OPEN,CLOSE,0.9,0 ),COLOR8F20FF;
STICKLINE(AA1,OPEN,CLOSE,0.3,0 ),COLOR9B37FF;
DRAWTEXT(AA1,L*0.96,'大阳'),COLOR9B37FF;
STICKLINE(AA2,C,O,3,0 ),COLOR00AAFF;
STICKLINE(AA2,C,O,2.1,0 ),COLOR00BBFF;
STICKLINE(AA2,C,O,1.5,0 ),COLOR00CCFF;
STICKLINE(AA2,C,O,1,0 ),COLOR00ddfF;
STICKLINE(AA2,C,O,0.6,0 ),COLOR00EEFF;
STICKLINE(AA2,C,O,0.2,0 ),COLOR00FFFF;
DRAWTEXT(AA2,L*0.98,'涨停'),COLOR00DDDD;
DRAWICON( AA2,L*0.98,1);

 

标签:STICKLINE,OPEN,DA,通达信,源码,底轴主图,CLOSE,C1,REF
From: https://www.cnblogs.com/zhibiao/p/18061855

相关文章

  • 通达信牛选指标公式源码副图
    {通达信牛选指标公式源码副图}趋势:(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......
  • 通达信凤凰底部指标公式源码副图
    {通达信凤凰底部指标公式源码副图}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......