未来函数检测结果如下:
该公式包含未来函数:DVOL
指标源码:
原理解析:
超B赋值:L2_AMO(0,2)/10000.0
大B赋值:L2_AMO(1,2)/10000.0
中B赋值:L2_AMO(2,2)/10000.0
小B赋值:L2_AMO(3,2)/10000.0
超S赋值:L2_AMO(0,3)/10000.0
大S赋值:L2_AMO(1,3)/10000.0
中S赋值:L2_AMO(2,3)/10000.0
小S赋值:L2_AMO(3,3)/10000.0
TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0)
输出净流入:(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW
超大单赋值:(超B)-(超S)
大单赋值:(大B)-(大S)
中单赋值:(中B)-(中S)
小单赋值:(小B)-(小S)
DAZHI赋值:CONST(MAX(净流入的绝对值,MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW
DRAWRECTREL(0,CONST(880-(净流入的绝对值*500/DAZHI)),50,930,IF(CONST(净流入)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(58,CONST(880-(超大单的绝对值*500/DAZHI)),108,930,IF(CONST(超大单)>0,RGB(102,0,204),RGB(23,125,255)))
DRAWRECTREL(116,CONST(880-(大单的绝对值*500/DAZHI)),166,930,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(174,CONST(880-(中单的绝对值*500/DAZHI)),224,930,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(232,CONST(880-(小单的绝对值*500/DAZHI)),282,930,IF(CONST(小单)>0,RGB(255,0,0),RGB(0,128,0)))
当满足条件 到最后交易的周期=1时,在横轴0.002纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.060纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.126纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.181纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.241纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.0纵轴0.001位置书写文字
}
DRAWTEXT_FIX( 到最后交易的周期=1,0,0,0,'资金博弈今日分类持仓 单位(万元)'),画黄色
{M赋值:0.53
M1赋值:0.33
}M赋值:0.58
M1赋值:0.39
{股票指标网}
DRAWNUMBER_FIX( 到最后交易的周期=1,0.001,0.790,0,CEILING(净流入))
DRAWNUMBER_FIX( 到最后交易的周期=1,0.059,0.790,0,CEILING(超大单))
DRAWNUMBER_FIX( 到最后交易的周期=1,0.116,0.790,0,CEILING(大单))
DRAWNUMBER_FIX( 到最后交易的周期=1,0.175,0.790,0,CEILING(中单))
DRAWNUMBER_FIX( 到最后交易的周期=1,0.232,0.790,0,CEILING(小单))
大宗进赋值:(超B)+(大B),NODRAW
大宗出赋值:(超S)+(大S),NODRAW
非大宗进赋值:(中B)+(小B),NODRAW
非大宗出赋值:(中S)+(小S),NODRAW
总流入比赋值:(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW
总流出比赋值:(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW
大宗进限制:=IF((超B+大B)=0,0,大宗进),NODRAW
大宗出限制:=IF((超S+大S)=0,0,大宗出),NODRAW
如果中B+小B=0返回0否则返回非大宗进
如果中S+小S=0返回0否则返回非大宗出
资金流向买赋值:大宗进限制+非大宗进限制
资金流向卖赋值:大宗出限制+非大宗出限制
流入比赋值:净流入*1000000/成交额,NODRAW
大宗净流入赋值:(超B+大B)-(超S+大S),NODRAW
大宗流入比赋值:大宗净流入*1000000/成交额,NODRAW
DRAWRECTREL(50,110,285,55,RGB(0,100,0))
DRAWRECTREL(50,110,160,55,RGB(0,250,50))
DRAWRECTREL(50,110,50+CONST(总流入比*160/100),55,RGB(175,50,250))
DRAWTEXT_FIX(1,0.00,0.06,0,STRCAT(STRCAT('资金流向图 ',CON2STR(资金流向买,0)),' ')),画黄色
DRAWTEXT_FIX(1,0.24,0.06,0,STRCAT(STRCAT(' ',CON2STR(资金流向卖,0)),' ')),画黄色
大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW
大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入)
{大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW
大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比)
}
大单买比:=LARGEINTRD成交量*100/(LARGEINTRD成交量+LARGEOUTTRD成交量),NODRAW
大单卖比:=LARGEOUTTRD成交量*100/(LARGEINTRD成交量+LARGEOUTTRD成交量),NODRAW
DRAWRECTREL(50,175,285,120,RGB(0,100,0))
DRAWRECTREL(50,175,285,120,RGB(0,250,50))
DRAWRECTREL(50,175,90+CONST(大单买比*160/100),120,RGB(200,0,50))
DRAWTEXT_FIX(1,0.00,0.12,0,STRCAT(STRCAT('逐笔大单比 ',CON2STR(大单买比,0)),' ')),画黄色
DRAWTEXT_FIX(1,0.24,0.12,0,STRCAT(STRCAT(' ',CON2STR(大单卖比,0)),' ')),画黄色
成交总量赋值:(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW
机构参与度赋值:(超B+超S+大B+大S)/成交总量*100,画黄色,NODRAW
DRAWRECTREL(50,240,285,191,RGB(0,250,50))
DRAWRECTREL(50,240,285,191,RGB(200,0,50))
DRAWRECTREL(50,240,50+CONST(大宗流入比*160/100),191,RGB(175,50,250))
DRAWTEXT_FIX(1,0.27,0.19,1,STRCAT(STRCAT('机构介入度 ',CON2STR(大宗流入比,0)),' ')),画黄色
DRAWRECTREL(50,305,285,255,RGB(200,0,50))
DRAWRECTREL(50,305,160,255,RGB(200,0,50))
DRAWRECTREL(50,305,50+CONST(流入比*160/100),255,RGB(175,50,250))
DRAWTEXT_FIX(1,0.27,0.25,1,STRCAT(STRCAT('资金介入度 ',CON2STR(流入比,0)),' ')),画黄色