通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
通达信动态筹码主图指标公式
N:=5;M:=20;
VAR1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR3:=(SMA(VAR2,3,1)-18)*1.55;
VAR4:=SMA(VAR3,3,1);
VAR5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
VAR6:=SMA(VAR5,10,1);
VAR7:=(EMA(SMA(VAR6,8,1),34)-25)*2.6;
VAR8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VAR9:=POW(MA(LOW,5),2)+MA(LOW,5);
VARA:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARB:=((VAR8-LLV(VAR9,64))/(HHV(VARA,64)-LLV(VAR9,64))*150+65-10)/2;
VARC:=SMA(VARB,3,1)*1.5-46;
VARD:=SMA(VARC,3,1);
VARE:=3*VARC-2*VARD;
VARF:=(VAR1+VAR2+VAR5)/3;
VAR10:=((VAR3+VAR3+VAR6+VARC)/4-15)*1.67;
VAR11:=((VAR4+VAR4+VAR7+VARD)/4-15)*1.67;
VAR12:=((VAR1+VAR5*2+VARF+VAR10+VAR11+VARB+VARC+VARD+VARE)/10-15)*1.67;
VAR13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;
VAR14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;
VAR15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;
VAR16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;
VAR17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;
VAR18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;
VAR19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;
VAR1A:=((VAR13*8+VAR14*8+VAR15*8+VAR16+VAR17+VAR18+VAR19)/28-0.1)*185;
VAR1B:=SMA(VAR1A,3,1);
VAR1C:=(SMA(VAR1B,8,1)-8)*1.18;
浮动筹码:(VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/13;
浮动筹码1:(VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/21;
浮动筹码2:(VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/34;
获利筹码:(VAR3+VAR6+VAR1B*2)/4,COLOR0000FF,LINETHICK2;
40;
20;
0;
VARA1:=(CLOSE-LLV(LOW,60.13547854))/(HHV(HIGH,60.13547854)-LLV(LOW,60))*80;
VARB1:=SMA(VARA1,7,1);
VARC1:=SMA(VARB1,5,1);
英雄:IF(CROSS(VARB,VARC)ANDVARB20,100,0),LINETHICK2,COLORRED;
VAR2N:=LLV(LOW,3)=LLV(LOW,60);
VAR3N:=COAND(C/O1.03ORC1.03*REF(C,1));
绝地反击:IF(VAR2NANDVAR3N,90,0),COLORYELLOW,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
快:SMA(RSV,3,1),COLORGREEN,NODRAW;
慢:SMA(快,3,1),NODRAW;
极强:80,COLORRED,NODRAW;
中线:50,COLORLIBLUE,NODRAW;
极弱:20,COLORGREEN,NODRAW;
强势:IF(快慢,快,DRAWNULL),LINETHICK2,COLORRED,NODRAW;
快慢比:快/慢,NODRAW;
介入:IF(快M,30,0),COLORLIRED;
K:=(C+H+L)/3;
D:=MA(K,4);
操作:D,COLORWHITE,LINETHICK2;
拉升:HHV(D,13),COLORRED,LINETHICK2;
阻力:HHV(D,55),COLORRED;
买卖:LLV(D,8),COLORYELLOW,LINETHICK2;
顶部:HHV(H*0.98,55),COLORYELLOW;
DRAWTEXT(REF(C,1)DANDCDANDDREF(D,1),H*1.02,'卖出');
DRAWTEXT(REF(C,1)DANDCDANDDREF(D,1),L*0.98,'次日买'),COLORWHITE;
通达信筹码突破主图指标公式
DA1:=IF(130TOTALBARSCOUNT,TOTALBARSCOUNT,130);
DA:=IF(CURRBARSCOUNTDA1,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)/10);
LH1:=SUM(IF(C1=(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1=(HI/POW(GZ,2))ANDC1(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1=(HI/POW(GZ,3))ANDC1(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1=(HI/POW(GZ,4))ANDC1(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1=(HI/POW(GZ,5))ANDC1(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1=(HI/POW(GZ,6))ANDC1(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1=(HI/POW(GZ,7))ANDC1(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1=(HI/POW(GZ,8))ANDC1(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1=(LO*GZ)ANDC1LO*POW(GZ,2),V,0),DA);
LH10:=SUM(IF(C1=LOANDC1LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;
L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
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);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
STICKLINE(CEILING(DA*L1/SS)*3=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L2/SS)*3=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L3/SS)*3=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L4/SS)*3=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L5/SS)*3=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L6/SS)*3=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L7/SS)*3=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L8/SS)*3=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L9/SS)*3=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L10/SS)*3=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
DRAWKLINE(H,O,L,C);
起始线:MA(CLOSE,9),COLORGRAY;
二九线:MA(CLOSE,18),COLORRED;
三九线:MA(C,27),LINETHICK2,COLORYELLOW;
神奇数字线:MA(C,73),LINETHICK2,COLOR000999;
季度线:MA(C,91.25),LINETHICK3,COLORGREEN;
割肉线:MA(C,160),COLORGREEN;
地球公转线:MA(C,365),COLOR0000FF,LINETHICK3;
金星绕太阳线:MA(C,584.92),LINETHICK3,COLORFFCC66;
地量:=FILTER(LLV(AMOUNT,120)=AMOUNT,10);
STICKLINE(地量,CLOSE,OPEN,8,0),COLORFFFFFF;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWTEXT(地量,LOW,'地量'),COLOR999999;
预测量:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
放量阴柱:=IF(FROMOPEN220,预测量,VOL)2*REF(VOL,1)ANDCO;
STICKLINE(放量阴柱,CLOSE,OPEN,6,0),COLOR004400;
STICKLINE(放量阴柱,CLOSE,OPEN,4,0),COLOR006600;
STICKLINE(放量阴柱,CLOSE,OPEN,2,0),COLOR008800;
STICKLINE(放量阴柱,CLOSE,OPEN,1,0),COLOR009900;
STICKLINE(放量阴柱,CLOSE,OPEN,0,0),COLOR00FF00;
放量阳柱:=FILTER(IF(FROMOPEN220,预测量,VOL)2*((REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4))/4)ANDCO,5);
STICKLINE(放量阳柱,CLOSE,OPEN,6,0),COLOR004444;
STICKLINE(放量阳柱,CLOSE,OPEN,4,0),COLOR006666;
STICKLINE(放量阳柱,CLOSE,OPEN,2,0),COLOR008888;
STICKLINE(放量阳柱,CLOSE,OPEN,1,0),COLOR009999;
STICKLINE(放量阳柱,CLOSE,OPEN,0,0),COLOR00FFFF;
MA(C,5),COLOR00FF00;
X1A:=30;
X1B:HHV(C,X1A),COLORFF5500;
X1C:=IF(ISLASTBAR,BARSLAST(C=CONST(X1B))+1,1/0);
X1D:=IF(X1C=1,'1',IF(X1C=2,'2',IF(X1C=3,'3',IF(X1C=4,'4',IF(X1C=5,'5',
IF(X1C=6,'6',IF(X1C=7,'7',IF(X1C=8,'8',IF(X1C=9,'9',IF(X1C=10,'10',
IF(X1C=11,'11',IF(X1C=12,'12',IF(X1C=13,'13',IF(X1C=14,'14',IF(X1C=15,'15',
IF(X1C=16,'16',IF(X1C=17,'17',IF(X1C=18,'18',IF(X1C=19,'19',IF(X1C=20,'20',
IF(X1C=21,'21',IF(X1C=22,'22',IF(X1C=23,'23',IF(X1C=24,'24',IF(X1C=25,'25',
IF(X1C=26,'26',IF(X1C=27,'27',IF(X1C=28,'28',IF(X1C=29,'29',IF(X1C=30,'30','0'))))))))))))))))))))))))))))));
X1E:DRAWTEXT(ISLASTBAR,X1B,X1D),COLORFF5500;
X2A:=30;
X2B:LLV(C,X2A),COLORFF00FF;
X2C:=IF(ISLASTBAR,BARSLAST(C=CONST(X2B))+1,1/0);
X2D:=IF(X2C=1,'1',IF(X2C=2,'2',IF(X2C=3,'3',IF(X2C=4,'4',IF(X2C=5,'5',
IF(X2C=6,'6',IF(X2C=7,'7',IF(X2C=8,'8',IF(X2C=9,'9',IF(X2C=10,'10',
IF(X2C=11,'11',IF(X2C=12,'12',IF(X2C=13,'13',IF(X2C=14,'14',IF(X2C=15,'15',
IF(X2C=16,'16',IF(X2C=17,'17',IF(X2C=18,'18',IF(X2C=19,'19',IF(X2C=20,'20',
IF(X2C=21,'21',IF(X2C=22,'22',IF(X2C=23,'23',IF(X2C=24,'24',IF(X2C=25,'25',
IF(X2C=26,'26',IF(X2C=27,'27',IF(X2C=28,'28',IF(X2C=29,'29',IF(X2C=30,'30','0'))))))))))))))))))))))))))))));
X2E:DRAWTEXT(ISLASTBAR,X2B,X2D),COLORFF00FF;
评论(0)