通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

主力洗盘指标公式源码 

P:=7;

VAR1:=(C*2+H+L+O)/5;

CZ1:=SUM(MAX(0,HIGH-REF(VAR1,1)),P)/SUM(MAX(0,REF(VAR1,1)-LOW),P)*100;

CZ:=EMA(CZ1,4);

CA1:=SUM(MAX(0,HIGH-REF(VAR1,1)),63)/SUM(MAX(0,REF(VAR1,1)-LOW),63)*100;

CA:=EMA(CA1,4);

AA:= REF(MA(CZ,10),5);

BB:= REF(MA(CZ,20),9);

CC:= REF(MA(CZ,40),17);

AA1:=OBV;

XX:=IF(AABB,IF(AACC,AA,CC),IF(BBCC,BB,CC));

QQ:=IF(AABB,IF(AACC,AA,CC),IF(BBCC,BB,CC));

顶:=XX;

底:=QQ;

主力动向:CZ COLORRED;

ZZ1:=(XX+QQ)/2;

VAR5:=CZ;

VAR3:=1;

MM:=EMA(SLOPE(VAR5,21)*20+VAR5,55)*VAR3;

趋势:=MM;

SS:=EMA(VAR5,5);

SS1:=EMA(SS,5)*VAR3;

先知者:SS;

MM1:=REF(SS,1);

空:=SS1 ;

KL:=VAR5-MM;

{STICKLINE(KL=0,VAR5,MM,0.5,0) COLORRED; }

{STICKLINE(KL0,VAR5,MM,0.5,0) COLORGREEN; }

后知者:MA(SS,13);

P:=7;

VAR1:=(C*2+H+L+O)/5;

CZ1:=SUM(MAX(0,HIGH-REF(VAR1,1)),P)/SUM(MAX(0,REF(VAR1,1)-LOW),P)*100;

CZ:=EMA(CZ1,4);

CA1:=SUM(MAX(0,HIGH-REF(VAR1,1)),63)/SUM(MAX(0,REF(VAR1,1)-LOW),63)*100;

CA:=EMA(CA1,4);

AA:= REF(MA(CZ,10),5);

BB:= REF(MA(CZ,20),9);

CC:= REF(MA(CZ,40),17);

AA1:=OBV;

XX:=IF(AABB,IF(AACC,AA,CC),IF(BBCC,BB,CC));

QQ:=IF(AABB,IF(AACC,AA,CC),IF(BBCC,BB,CC));

顶:=XX;

底:=QQ;

主力动向:CZ COLORRED;

ZZ1:=(XX+QQ)/2;

VAR5:=CZ;

VAR3:=1;

MM:=EMA(SLOPE(VAR5,21)*20+VAR5,55)*VAR3;

趋势:=MM;

SS:=EMA(VAR5,5);

SS1:=EMA(SS,5)*VAR3;

先知者:SS;

MM1:=REF(SS,1);

空:=SS1 ;

KL:=VAR5-MM;

{STICKLINE(KL=0,VAR5,MM,0.5,0) COLORRED; }

{STICKLINE(KL0,VAR5,MM,0.5,0) COLORGREEN; }

后知者:MA(SS,13);

image.png

 洗盘指标公式函数源码

资金存量1:MA(WINNER(CLOSE*0.93)*100*CLOSE,3),COLORGREEN,LINETHICK1;

资金存量2:=WINNER(CLOSE*0.85)*100*CLOSE;

资金存量3:=WINNER(CLOSE*0.86)*100*CLOSE;

主力建仓:MA(资金存量2,43),COLORFFAA66,LINETHICK2;

主力部队建仓:MA(资金存量3,70),COLORRED,LINETHICK2;

JJZ:=(HIGH+LOW+CLOSE)/3;QJ0Z:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);

买1:=QJ0Z*(MIN(OPEN,CLOSE)-LOW);

买2:=QJ0Z*(JJZ-MIN(CLOSE,OPEN));

卖1:=QJ0Z*(MAX(CLOSE,OPEN)-JJZ);

卖2:=QJ0Z*(HIGH-MAX(OPEN,CLOSE));

DTZ:=((买1+买2)-(卖1+卖2))/10000;

主力持仓:SUM(DTZ,66),COLORWHITE,LINETHICK1;

STICKLINE(DTZ0,主力持仓,主力持仓+DTZ,1,0),COLOR0000FF;

STICKLINE(DTZ0,主力持仓+DTZ,主力持仓,1,0),COLOR00FF00;

JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);

TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW);

DD1:=QJ0*(JJ-MIN(CLOSE,OPEN));

DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE));

TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ);

TD:=TD1-TD2;DA:=DD1-DD2;

XD1:=1-(TD1+DD1);XD2:=1-(TD2+DD2);

TZ:=V/SUM(V,60)*100;

DT:=((XD1-XD2)/10000)/TZ;

散户持仓:SUM(DT,22),COLOR888888,LINETHICK1;

STICKLINE(DT0,散户持仓,散户持仓+DT,1,0),COLORFF00FF;

STICKLINE(DT0,散户持仓+DT,散户持仓,1,0),COLORFF8800;

QJJ:=(VOL / (((HIGH – LOW) * 2) – ABS((CLOSE – OPEN))));

XVL:=(IF((CLOSE  OPEN),(QJJ * (HIGH – LOW)),

IF((CLOSE  OPEN),(QJJ * ((HIGH – OPEN) + (CLOSE – LOW))),

(VOL / 2))) + IF((CLOSE  OPEN),(0 – (QJJ * ((HIGH – CLOSE) + (OPEN – LOW)))),

IF((CLOSE  OPEN),(0 – (QJJ * (HIGH – LOW))),(0 – (VOL / 2)))));

HSL:=((XVL / 20) / 1.15);

攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));

LLJX:EMA(攻击流量,3),LINETHICK0;

力度:(HSL / 1000),LINETHICK0;

ZJLL:=REF(LLJX,1);

QZJJ:=(((LLJX – ZJLL) / ZJLL) * 100);

资金流量:LLJX+LLJX*0.03,LINETHICK0;

流量增幅:IF(((LLJX  0) AND (ZJLL  0)),ABS(QZJJ),

IF((((LLJX  0) AND (ZJLL  0)) AND (LLJX  ZJLL)),(0 – QZJJ),QZJJ)),LINETHICK0;

流量递增:REF(LLJX,1)REF(LLJX,2) AND LLJXREF(LLJX,1) AND LLJX0,COLOR0000FF,POINTDOT;

STICKLINE(((HSL * 4)  0),((HSL * 4) * 1.5),0,3,0),COLOR00FFFF;

STICKLINE(((HSL * 4)  0),((HSL * 4) * 1.5),0,3,0),COLORFFFF00;

STICKLINE((LLJX  0),LLJX*10,0,2,0),COLORFF00FF;

STICKLINE((LLJX  0),LLJX*10,0,2,0),COLORFF0000;

image.png

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。