机构通道净买卖资金统计占比 精品主图指标 源码无未来
AAV:=VOL/((H-L)*2-ABS(C-O));
KKPU1:=IF(C>OPEN,AAV*(HIGH-LOW),IF(C<OPEN,AAV*((HIGH-OPEN)+(C-LOW)),VOL/2)),NODRAW;
KKPU2:=IF(C>OPEN,0-AAV*((HIGH-C)+(OPEN-LOW)),IF(C<OPEN,0-AAV*(HIGH-LOW),0-VOL/2)),NODRAW;
净流入:=(KKPU1+KKPU2)/99,NODRAW;
KKPU3:=(C/REF(C,1)-1)*100;
DRAWTEXT(净流入>=300 AND KKPU3>=4,L*0.995,VARCAT(VARCAT('净买:',VAR2STR(净流入,0)),'万')),COLORCYAN;
DRAWICON(净流入>=300 AND KKPU3>=4,L,1);
DRAWICON(净流入<-300 AND KKPU3<=-3,H,2);
DRAWTEXT(净流入<-300 AND KKPU3<=-3,H*1.01,VARCAT(VARCAT('流出:',VAR2STR(净流入,0)),'万')),COLORGREEN;
AP:=AMOUNT/10000;占比:=净流入/AP*100,NODRAW;
DRAWTEXT(净流入>=200 AND KKPU3>=3 AND 占比>=15 ,L*0.965,VARCAT(VARCAT('占比:',VAR2STR(占比,0)),'%')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.92,0.85,0,' '),COLORWHITE;
DRAWTEXT_FIX(1,0.94,0.9,0,''),COLORWHITE;
DRAWTEXT_FIX(1,0.92,0.95,0,''),COLORBLUE;
A:=(C/REF(C,1)-1)*100>9.82 AND H=C AND H<>L,NODRAW;
B:=BARSLAST(A),NODRAW;B1:=REF(BARSLAST(A),1),NODRAW;
AO:=REF(C,B),NODRAW;XX2:=CROSS(C,AO) AND C>O AND C>REF(C,1) AND B1>=3 AND B1<=10 NODRAW;
XX2A:=FILTER(XX2,30);
KMJNHB1:=AO-0.01,NODRAW;
XX2B:=CROSS(C,KMJNHB1) AND C>O AND C>REF(C,1) AND B1>=3 AND B1<=10 AND H=C;
KMJNHB2:=FILTER(XX2B,30),COLORMAGENTA;
A3P:=REF(O,B);
A3A:=A3P+(AO-A3P)*0.7,NODRAW;
XX2C:=CROSS(C,A3A) AND C>O AND C>REF(C,1) AND B1>=3 AND B1<=10 ;
KMJNHBP:=FILTER(XX2C,30),COLORMAGENTA;
有资金才有买点:XX2A OR KMJNHB2 OR KMJNHBP,NODRAW;
UUJ:=COUNT(A,10)>=2;
DRAWTEXT_FIX(C>0,0.004,0,0,HYBLOCK),COLORYELLOW,LINETHICK2;
DRAWTEXT_FIX(C>0,0.080,0,0,DYBLOCK),COLOR8000FF,LINETHICK2;
DRAWTEXT_FIX(C>0,0.16,0,0,GNBLOCK),COLORLIBLUE,LINETHICK2;
DRAWTEXT_FIX(1,0,0.10,0,FGBLOCK),COLORCC99CC,LINETHICK2;
DRAWTEXT_FIX(1,0.00,0.18,0,':')COLORWHITE;
DRAWTEXT_FIX(1,0.09,0.18,0,EXTERNSTR(0,1))COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.26,0,':')COLORFF00FF;
DRAWTEXT_FIX(1,0.09,0.26,0,EXTERNSTR(0,2))COLORFF00FF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
AAV赋值:成交量/((H-L)*2-C-O的绝对值)
KKPU1赋值:IF(C>开盘价,AAV*(最高价-最低价),IF(C<开盘价,AAV*((最高价-开盘价)+(C-最低价)),成交量/2)),NODRAW
KKPU2赋值:IF(C>开盘价,0-AAV*((最高价-C)+(开盘价-最低价)),IF(C<开盘价,0-AAV*(最高价-最低价),0-成交量/2)),NODRAW
净流入赋值:(KKPU1+KKPU2)/99,NODRAW
KKPU3赋值:(C/1日前的C-1)*100
DRAWTEXT(净流入>=300 AND KKPU3>=4,L*0.995,VARCAT(VARCAT('净买:',VAR2STR(净流入,0)),'万')),COLORCYAN
当满足条件净流入>=300 AND KKPU3>=4时,在L和1之间画图标
当满足条件净流入<-300 AND KKPU3<=-3时,在H和2之间画图标
DRAWTEXT(净流入<-300 AND KKPU3<=-3,H*1.01,VARCAT(VARCAT('流出:',VAR2STR(净流入,0)),'万')),画绿色
AP赋值:AMOUNT/10000
占比赋值:净流入/AP*100,NODRAW
DRAWTEXT(净流入>=200 AND KKPU3>=3 AND 占比>=15 ,L*0.965,VARCAT(VARCAT('输出占比:',VAR2STR(占比,0)),'%')),COLORMAGENTA
当满足条件1时,在横轴0.92纵轴0.85位置书写文字
当满足条件1时,在横轴0.94纵轴0.9位置书写文字
当满足条件1时,在横轴0.92纵轴0.95位置书写文字
A赋值:(C/1日前的C-1)*100>9.82 AND H=C AND H<>L,NODRAW
B赋值:上次A距今天数,NODRAW
B1:=REF(上次A距今天数,1),NODRAW
AO:=B日前的C,NODRAW
XX2赋值:C上穿AO AND C>O AND C>1日前的C AND B1>=3 AND B1<=10 NODRAW
XX2A赋值:XX2的30过滤
KMJNHB1:=AO-0.01,NODRAW
XX2B赋值:C上穿KMJNHB1 AND C>O AND C>1日前的C AND B1>=3 AND B1<=10 AND H=C
KMJNHB2:=XX2B的30过滤,COLORMAGENTA
A3P:=B日前的O
A3A赋值:A3P+(AO-A3P)*0.7,NODRAW
XX2C:=C上穿A3A AND C>O AND C>1日前的C AND B1>=3 AND B1<=10
KMJNHBP:=XX2C的30过滤,COLORMAGENTA
输出有资金才有买点:XX2A OR KMJNHB2 OR KMJNHBP,NODRAW
UUJ赋值:统计10日满足A的天数>=2
当满足条件C>0时,在横轴0.004纵轴0位置书写文字
当满足条件C>0时,在横轴0.080纵轴0位置书写文字
当满足条件C>0时,在横轴0.16纵轴0位置书写文字
当满足条件1时,在横轴0纵轴0.10位置书写文字
当满足条件1时,在横轴0.00纵轴0.18位置书写文字
DRAWTEXT_FIX(1,0.09,0.18,0,EXTERNSTR(0,1))画白色
当满足条件1时,在横轴0.00纵轴0.26位置书写文字
DRAWTEXT_FIX(1,0.09,0.26,0,EXTERNSTR(0,2))COLORFF00FF