VAR1:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*1000000-10;
VAR2:=(C-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1000000;
VAR3:=SMA(VAR2,13,8);
多方: SMA(VAR3,13,8),COLORRED,LINETHICK2;
空方: SMA(VAR1,21,8),COLORGREEN;

V1:=(C*2+H+L)/4*20000;
V2:=EMA(V1,10)-EMA(V1,20);
V3:=EMA(V2,5);

V4:=2*(V2-V3)*5.5;
机构方向B: IF(V4<=0,V4,0),COLORRED,LINETHICK3;
机构方向A: IF(V4>=0,V4,0),COLORRED,LINETHICK3;

B3:=机构方向B>REF(机构方向B,1);
IF(B3-1,机构方向B,NULL),COLORLIGHTGREEN,LINETHICK5;

B2:=机构方向A>REF(机构方向A,1);
IF(B2-1,机构方向A,NULL),COLORBLUE,LINETHICK5;

Q00:=SUMBARS(DAYBARPOS=1,1);
XP00:=SUM(AVPRICE*V,Q00)/SUM(V,Q00);
SS00:=REF(XP00,Q00),NODRAW;
DRAWCOLORLINE(C<=MIN(SS00,XP00), 机构方向B,COLORLIGHTGREEN,COLORRED),LINETHICK7;
DRAWLINE3(C>MIN(SS00,XP00)&&C<MAX(SS00,XP00),机构方向B,0,1,REF(机构方向B,1),1,0),COLORWHITE,LINETHICK5;

Q0:=SUMBARS(DAYBARPOS=1,1);
XP0:=SUM(AVPRICE*V,Q0)/SUM(V,Q0);
SS0:=REF(XP0,Q0),NODRAW;
DRAWCOLORLINE(C<=MIN(SS0,XP0), 机构方向A,COLORLIGHTGREEN,COLORRED),LINETHICK7;
DRAWLINE3(C>MIN(SS0,XP0)&&C<MAX(SS0,XP0),机构方向A,0,1,REF(机构方向A,1),1,0),COLORWHITE,LINETHICK5;

DRAWLINE1(DATE>320630,机构方向B,DATE>320630,机构方向A,1);
DRAWLINE1(DATE>320630,V1,DATE>320630,V2,1);
DRAWLINE1(DATE>320630,V2,DATE>320630,V3,1);
DRAWLINE1(DATE>320630,V3,DATE>320630,V4,1);
DRAWLINE1(DATE>320630,V1,DATE>320630,V3,1);
DRAWLINE1(DATE>320630,V1,DATE>320630,V4,1);
DRAWLINE1(DATE>320630,V2,DATE>320630,V4,1);

DRAWTEXT(REFX(V4>=0&&REF(V4<=0,1),1)&&BACKSET(ISLASTBAR,BARSLAST(REFX(V4>=0&&REF(V4<=0,1),1)||REFX(V4<=0&&REF(V4>=0,1),1))+1),机构方向A,’多’),FONTSIZE30;
DRAWTEXT(REFX(V4<=0&&REF(V4>=0,1),1)&&BACKSET(ISLASTBAR,BARSLAST(REFX(V4>=0&&REF(V4<=0,1),1)||REFX(V4<=0&&REF(V4>=0,1),1))+1),机构方向A,’空’),FONTSIZE30;

NN:=BARSLAST(DATE<>REF(DATE,1))+1;

KH:=HHV(NN,300);

QQ10:=OPI-REF(OPI,1);

K1:=IF(CLOSE>OPEN AND QQ10>=0,QQ10,0);

KK1:=IF(CLOSE<OPEN AND QQ10<0,QQ10,0);

KKK1:=IF(CLOSE=OPEN,QQ10*0.5,0);

K2:=IF(CLOSE<OPEN AND QQ10>=0,QQ10,0);

KK2:=IF(CLOSE>OPEN AND QQ10<0,QQ10,0);

DO:=SUM(K1,NN)+SUM(KK1,NN)+SUM(KKK1,NN);

KO:=SUM(K2,NN)+SUM(KK2,NN)+SUM(KKK1,NN);

N4:=IF(NN<=4,NN,4);

VK1:=IF(CLOSE>=OPEN,VOL,0);

VK2:=IF(CLOSE<=OPEN,VOL,0);

VDO:=SUM(VK1,N4);

VKO:=SUM(VK2,N4);

VDK:=VDO-VKO;

//STICKLINE(VDK>=0,VDK,0,COLORRED,0);

//STICKLINE(VDK<=0,VDK,0,COLORCYAN,0);

//CC:=SUM(QQ,NN);

//DRAWNUMBER(ISLASTBAR AND CC>0,0,CC,0,COLORMAGENTA);

//DRAWNUMBER(ISLASTBAR AND CC<0,0,CC,0,COLORGREEN);

//POLYLINE(CLOSE>0,DO,COLORRED),LINETHICK1;

//POLYLINE(CLOSE>0,KO,COLORGREEN),LINETHICK1;

W:=MOD(NN,5);

J10:=BACKSET(ISLASTBAR,5);

DRAWSHIFTNUMBER(ISLASTBAR,DO,DO,0,COLORYELLOW,1,2),FONTSIZE50,VALIGN0,ALIGN0;

DRAWSHIFTNUMBER(ISLASTBAR,KO,KO,0,COLORGREEN,1,2),FONTSIZE50,VALIGN2,ALIGN0;PJJ:=DMA((H + L + C * 2) / 4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL / ((H – L) * 2 – ABS(C – O));
XVL:=IF(C > O,QJJ * (H – L),IF(C < O,QJJ * (H – O + (C – L)),VOL / 2)) + IF(C > O,0 – QJJ * (H – C + (O – L)),IF(C < O,0 – QJJ * (H – L),0 – VOL / 2));

HSL:=XVL / 20 / 1.15;
攻击流量:=HSL * 0.55 + REF(HSL,1) * 0.33 + REF(HSL,2) * 0.22;
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
资金流量:LLJX,COLORC875B7,NODRAW,NOTEXT;
流量基线:GJJ,COLOR00BBBB,NODRAW,NOTEXT;

Z1:=LLV(L,21);
Z2:=HHV(H,21);
VAR21:=(C-Z1)/(Z2-Z1)*100;
VAR22:=REVERSE(VAR21);
VAR23:=SMA(VAR21,3,1);
K:=SMA(VAR23,3,1);
D:=SMA(K,3,1);

ZJ:=(C+C+H+L)/4;
ZJ5:=MA(ZJ,5);
VAR81:=ZJ5/MA(C,20);
VAR82:=ZJ5/MA(C,50);
Z3:=REF(MA(C,10),1);
B0:=MA(C,12)>=Z3;
B11:=MA(C,3)>=Z3;
后援:=IF(VAR82>1,1,1.005);

VAR83:=REF(MA(ZJ,5),1);
A81:=SMA(MAX(C-VAR83,0),9,1)/SMA(ABS(C-VAR83),9,1)*100;
Z4:=HHV(H,14);
B81:=100*(Z4-C)/(Z4-LLV(L,14));
DRAWBMP(A81-B81>0,0.1,’大红.BMP’);
DRAWBMP(后援=1 AND B11,0.5,’中黄.BMP’);
T11:=EMA(EMA(C,18),9);
控盘:=(T11-REF(T11,1))/REF(T11,1);
T12:=EMA(EMA(C,1),5);
控盘1:=(T12-REF(T12,1))/REF(T12,1);
DRAWBMP(控盘<0 AND K-D<0,0.8,’小灰.BMP’);
DRAWBMP(控盘1<0 ,1,’大绿.BMP’);
T13:=EMA(EMA(C,7),7);
控盘2:=(T13-REF(T13,1))/REF(T13,1);
DRAWBMP(控盘2<0,0.5,’中蓝.BMP’);

DIF00 : =EMA(CLOSE,10) – EMA(CLOSE,20),LINETHICK3;
DEA00 := EMA(DIF00,5),LINETHICK3;
VERTLINE(DEA00>REF(DEA00,1)&&DEA00>REFX(DEA00,1)&&BACKSET(ISLASTBAR,SUMBARS(DEA00>REF(DEA00,1)&&DEA00>REFX(DEA00,1),1)),COLORRED),LINETHICK7;
VERTLINE(DEA00<REF(DEA00,1)&&DEA00<REFX(DEA00,1)&&BACKSET(ISLASTBAR,SUMBARS(DEA00<REF(DEA00,1)&&DEA00<REFX(DEA00,1),1)),COLORGREEN),LINETHICK7;

N9:=100;
STICKLINE( 流量基线*N9<0 AND 资金流量*N9>0 ,资金流量*N9,1,6,0),COLORYELLOW;
STICKLINE( 流量基线*N9>0 AND 资金流量*N9>0 AND 资金流量*N9>流量基线*N9 ,资金流量*N9,流量基线*N9,6,0),COLORYELLOW;

STICKLINE( 流量基线*N9>0 AND 资金流量*N9<0 ,资金流量*N9,1,6,0),COLORBLUE;
STICKLINE( 流量基线*N9<0 AND 资金流量*N9<0 AND 资金流量*N9<流量基线*N9,资金流量*N9,流量基线*N9,6,0),COLORBLUE;
力度:=HSL / 1000,COLOR9B37FF,COLORRED;
资金净流入(黄色柱体):=IF((流量基线<0 AND 资金流量>0) OR (流量基线>0 AND 资金流量>0 AND 资金流量>流量基线),资金流量-流量基线,0),COLORYELLOW;
资金净流出(蓝色柱体):=IF((流量基线>0 AND 资金流量<0 ) OR (流量基线<0 AND 资金流量<0 AND 资金流量<流量基线),资金流量-流量基线,0),COLORRED;
YY:=资金净流入(黄色柱体)<>0;
BB0:=资金净流出(蓝色柱体)<>0;

文华财经机构多空方向幅图指标公式源码

指标下载声明:1、指标下载前请认真阅读详情内容,不提供具体使用方法,自行学习研究;2、您已下载代表对本指标认可,虚拟物品不予退款和调换;3、下载后如需修改或者定制编写指标,另收取费用;4、指标仅是分析辅助工具,不可依赖,理性使用,盈亏自负! 转载文章声明:本网站转载文章仅为传播更多期货行业信息,并不代表本网站赞同其观点,本网站也不保证文章内容的真实性、准确性和可靠性、完整性。 文章解释权归原作者所有,依次操作,所有后果自行承担,与本站无任何关系。如该文章涉及作品内容、版权或禁止转载的,请及时联系,我们将在第一时间处理。