通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
主力资金多空线指标公式
N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;
三日DDX:SUM (DDX,3), LINETHICK1,COLORMAGENTA;
换手率:100*VOL/(FINANCE(7)/100),VOLSTICK,NODRAW;
DX:=MA(DDX,5)*N;
STICKLINE(DDX0,0,DDX,3,0),COLOR000088;
STICKLINE(DDX0,0,DDX,2.5,0),COLOR0000AA;
STICKLINE(DDX0,0,DDX,1.5,0),COLOR0000CC;
STICKLINE(DDX0,0,DDX,1,0),COLOR0000EE;
STICKLINE(DDX0,0,DDX,3,0),COLOR008800;
STICKLINE(DDX0,0,DDX,2.5,0),COLOR00AA00;
STICKLINE(DDX0,0,DDX,1.5,0),COLOR00CC00;
STICKLINE(DDX0,0,DDX,1,0),COLOR00EE00;
IF(三日DDXREF(三日DDX,1),三日DDX,DRAWNULL),COLORYELLOW,LINETHICK6
VAR1:=1;
VAR2:=CLOSE-REF(CLOSE,1);
VAR3:=IF(CLOSE-REF(CLOSE,1)=0,VAR2,0);
VAR4:=REF(CLOSE,1)-CLOSE;
VAR5:=IF(CLOSE-REF(CLOSE,1)=0,VAR4,0);
VAR6:=SUM(VAR3,55)/SUM(VAR5,55);
VAR7:=100-100/(1+VAR6);
VAR8:=EMA(VAR7,55);
VAR9:=EMA(VAR8,5);
VARA:=EMA(VAR8,3);
牛熊边界: (VAR8-VARA)*VAR1;
牛踪熊影: (VAR9-VARA)*VAR1;
枫林草地: 牛熊边界*VAR1, COLORSTICK;
牛熊界:0,COLORRED LINETHICK1;
多空线主图指标公式
VAR1:=EMA(MA(IF(CLOSEOPEN,(CLOSE-OPEN)*VOL,IF(CLOSEOPEN,(CLOSE-OPEN)*VOL,0)),5),1);
VAR2:=EMA(MA(IF(CLOSEREF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,IF(CLOSEREF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,0)),5),1);
VAR3:=EMA(MA(IF(OPENREF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,IF(OPENREF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,0)),5),1);
VAR4:=EMA(MA(IF(CLOSEOPEN,(OPEN-CLOSE)*VOL,IF(CLOSEOPEN,(OPEN-CLOSE)*VOL,0)),10),1);
VAR5:=EMA(MA(IF(CLOSEREF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,IF(CLOSEREF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1);
VAR6:=EMA(MA(IF(OPENREF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,IF(OPENREF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1);
VAR7:=CLOSEOPEN;
VAR8:=CLOSEREF(CLOSE,1);
VAR9:=OPENREF(CLOSE,1);
多头:(VAR1+VAR2+VAR3)/3/100,COLORWHITE;
空头:(VAR4+VAR5+VAR6)/3/100,COLORYELLOW ;
一次警报:EMA(EMA((VAR1+VAR2+VAR3)/3-(VAR4+VAR5+VAR6)/3,5),5)*1/100,COLORMAGENTA;
二次警报:EMA((COUNT(VAR8,12)/12+COUNT(VAR7,12)/12+COUNT(VAR9,12)/12)/3*MA(多头,5)*2*1.1,2),COLORBLUE;
STICKLINE(空头0,0,空头,1,0),COLORCYAN;
STICKLINE(空头0,0,空头,1,0),COLORRED;
修改:EMA(EMA((VAR1+VAR2+VAR3)/3-(VAR4+VAR5+VAR6)/3,5),5)*1/100,POINTDOT,COLOR9587FF;
VAR1:=EMA(EMA(EMA(CLOSE,5),2),1);
牛熊先知: (VAR1-REF(VAR1,1))/REF(VAR1,1)*1,COLORRED COLORSTICK;
牛熊神经: EXPMA(牛熊先知,13),COLORYELLOW;
牛熊界线: 0, COLORMAGENTA;
VAR2:=AMOUNT/VOL/100;
DRAWTEXT(C=C AND CURRBARSCOUNT=129,0.02,''),COLORD8D8BF;
VAR3:=MAX(ABS(HIGH-VAR2),ABS(VAR2-LOW));
VAR4:=ABS((OPEN+CLOSE)/2-VAR2);
VAR5:=5;
VAR6:=(VAR3+VAR4)/VAR2*50;
牛熊变换: IF(CROSS(VAR6,VAR5),0.008,0),COLORCYAN;
引用:
通达信指标公式源码精准多空点多彩主图指标 – 知乎
评论(0)