未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
指标源码:
原理解析:
套盘赋输出值:(1-C计算的获利盘比例)*100,COLORGREEN,NODRAW
TOTAL赋输出值:IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))))
MTIME赋输出值:MOD(FROMOPEN,TOTAL)
如果MTIME<0.5返回TOTAL否则返回MTIME
如果CURRBARSCOUNT=1返回成交量*TOTAL/CTIME否则返回DRAWNULL
如果CURRBARSCOUNT=1返回成交量*TOTAL/CTIME/当前流通股本*100否则返回DRAWNULL
输出换手:成交量/当前流通股本*100,POINTDOT,NODRAW,COLORMAGENTA
超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
输出净流入:(超B+大B+中B+小B)-(超S+大S+中S+小S),NODRAW
N赋输出值:30
ZJD赋输出值:N日内净流入最高值
ZJX赋输出值:N日内净流入最低值
CJ赋输出值:N日内V最高值
BEIS赋输出值:CJ/(ZJD-ZJX)
值赋输出值:CONST(CJ+ZJX的绝对值*BEIS)
当满足条件净流入>0 时,在值和值+净流入*BEIS之间画柱状线
当满足条件净流入<=0 时,在值和值+净流入*BEIS之间画柱状线
当满足条件ISLASTBAR=1 AND 净流入<=0时,在值*1.12和' 净流入'位置书写文字
当满足条件ISLASTBAR=1 AND 净流入>0时,在值*0.88和' 净流入'位置书写文字
输出VOLUME:成交量,成交量STICK
V1赋值:VOLUME的5日简单移动平均
V2赋值:VOLUME的10日简单移动平均
V3赋值:VOLUME的30日简单移动平均
{空中加油}
STICKLINE(C
如果CURRBARSCOUNT=1 AND PERIOD=5返回成交量*240/FROMOPEN否则返回DRAWNULL
当满足条件CURRBARSCOUNT=1 AND PERIOD=5时,在虚拟成交和0之间画柱状线
输出【手】:成交量,NODRAW,成交量STICK
输出标准:100日内V最高值*0.382,NODRAW
输出量倍:V/1日前的V,NODRAW,COLOR0000DD
STICKLINE(IF(V>REF(239日内V最高值,1),0.99,1)<1,V,0,-1,1),COLORDD00DD
STICKLINE(IF(V>REF(239日内V最高值,1),0.99,1)<1 AND O>C,V,0,-1,0),COLORDD00DD
STICKLINE(IF(V
STICKLINE(IF(V
STICKLINE(V/1日前的V>2 ,0,V/2,2,0),COLORDDDDDD
DRAWICON(LAST(V>1日前的V,2,0),V/3,1)
DRAWICON(LAST(V>标准,2,0) AND C>O,0,38)
DRAWBAND(标准,RGB(250,250,0),标准,RGB(0,0,0))
{}
DRAWRECTREL(0,0,225,999.2,IF(120,RGB(0,10,10),0))
TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0)
超大单赋值:(超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)),35,930,IF(CONST(净流入)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(39,CONST(880-(超大单的绝对值*500/DAZHI)),82,930,IF(CONST(超大单)>0,RGB(102,0,204),RGB(23,125,255)))
DRAWRECTREL(85,CONST(880-(大单的绝对值*500/DAZHI)),129,930,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(133,CONST(880-(中单的绝对值*500/DAZHI)),175,930,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(180,CONST(880-(小单的绝对值*500/DAZHI)),222,930,IF(CONST(小单)>0,RGB(255,0,0),RGB(0,128,0)))
当满足条件CURRBARSCOUNT=1时,在横轴0.002纵轴1位置书写文字
当满足条件CURRBARSCOUNT=1时,在横轴0.046纵轴1位置书写文字
当满足条件CURRBARSCOUNT=1时,在横轴0.099纵轴1位置书写文字
当满足条件CURRBARSCOUNT=1时,在横轴0.141纵轴1位置书写文字
当满足条件CURRBARSCOUNT=1时,在横轴0.191纵轴1位置书写文字
{M赋值:0.53
M1赋值:0.33
}M赋值:0.58
M1赋值:0.39
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.001,0.790,0,CEILING(净流入))
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.054,0.790,0,CEILING(超大单))
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.093,0.790,0,CEILING(大单))
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.137,0.790,0,CEILING(中单))
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.194,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/AMOUNT,NODRAW
大宗净流入赋输出值:(超B+大B)-(超S+大S),NODRAW
大宗流入比赋值:大宗净流入*1000000/AMOUNT,NODRAW
主买A赋值:ACTIN成交量,画红色,NODRAW
主卖A赋值:ACTOUT成交量,COLORGREEN,NODRAW
输出主买:主买A*100/(主买A+主卖A),NODRAW,画红色
输出主卖:主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN
XX赋值:CONST(主买*500/(主买+主卖)+50),NODRAW
DRAWRECTREL(50,0,CONST(主买*500/(主买+主卖)+0),60,RGB(230,35,0))
DRAWRECTREL(50,70,CONST(主卖*500/(主买+主卖)+0),130,RGB(0,104,0))
当满足条件CURRBARSCOUNT=1时,在横轴0.005纵轴0位置书写文字
当满足条件CURRBARSCOUNT=1时,在横轴0.005纵轴0.070位置书写文字
DRAWNUMBER_FIX(CURRBARSCOUNT=1,CONST(主买*500/(主买+主卖)+05)/1000,0.001,0,ROUND(主买))
DRAWNUMBER_FIX(CURRBARSCOUNT=1,CONST(主卖*500/(主买+主卖)+05)/1000,0.070,0,ROUND(主卖))
成交总量赋值:(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW
机构参与度赋值:(超B+超S+大B+大S)/成交总量*100,画黄色,NODRAW
DRAWRECTREL(00,150,225,236,RGB(0,250,50))
DRAWRECTREL(00,150,225,236,RGB(200,0,50))
DRAWRECTREL(00,150,50+CONST(大宗流入比*160/100),236,RGB(175,50,250))
DRAWTEXT_FIX(1,0.22,0.14,1,STRCAT(STRCAT('主力介入度 ',CON2STR(大宗流入比,0)),' ')),画黄色
DRAWRECTREL(00,245,225,329,RGB(200,0,50))
DRAWRECTREL(00,245,225,329,RGB(200,0,50))
DRAWRECTREL(00,245,50+CONST(流入比*160/100),329,RGB(175,50,250))
DRAWTEXT_FIX(1,0.22,0.25,1,STRCAT(STRCAT('资金介入度 ',CON2STR(流入比,0)),' ')),画黄色