未来函数检测结果如下:
该公式包含未来函数:COST
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
指标源码:
原理解析:
VAR1赋值:IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1))
VAR2赋值:IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,VAR1)))
VAR3赋值:IF(MOD(FROM开盘价,VAR2)<0.5,VAR2,MOD(FROM开盘价,VAR2))
VAR4赋值:IF(( 到最后交易的周期=1 AND DYNAINFO(8)>1),V*(VAR2+3)/(VAR3+3),V)
VAR5赋值:IF(FINANCE(3)=2,0.3,IF((FINANCE(3)=3 OR FINANCE(3)=4 OR FINANCE(3)=6),0.2,0.1))
VAR6赋值:ZTPRICE(1日前的C,IF(NAMEINCLUDE('ST'),0.05,VAR5))
VAR7赋值:DTPRICE(1日前的C,IF(NAMEINCLUDE('ST'),0.05,VAR5))
VAR8赋值:C>=ZTPRICE(1日前的C,IF(NAMEINCLUDE('ST'),0.05,VAR5)) AND H!=L AND H>0
VAR9赋值:C>=ZTPRICE(1日前的C,IF(NAMEINCLUDE('ST'),0.05,VAR5)) AND H=L AND H>0
VAR10:=C<=DTPRICE(1日前的C,IF(NAMEINCLUDE('ST'),0.05,VAR5)) AND H!=L AND L>0
VAR11:=C<=DTPRICE(1日前的C,IF(NAMEINCLUDE('ST'),0.05,VAR5)) AND H=L AND L>0
VAR12:=EMA(获利盘为85%的成本分布,10)>=REF(EMA(获利盘为85%的成本分布,10),1)
VAR13:=VAR12 AND EMA(获利盘为99%的成本分布,10)>=REF(EMA(获利盘为99%的成本分布,10),1)
VAR14:=上次H>=VAR6 AND C
VAR16:=VAR15+2日前的VAR14+VAR15+2
VAR17:=CROSS(C,VAR14日前的成交额/V/100)
VAR18:=VAR17 OR (VAR14日前的C<=成交额/V/100,1) AND C>VAR14日前的成交额/V/100)
VAR19:=BETWEEN(VAR14,1,8) AND (VAR18) AND REF(COUNT(C>REF(REF(H,VAR14),1),VAR14),1)=0 AND C>O
VAR20:=C>VAR14日前的成交额/V/100,1) AND C>O
VAR21:=VAR14>8 AND 1日前的C<=VAR14日前的成交额/V/100,1) AND VAR20
VAR22:=VAR14>8 AND 1日前的C<=VAR14日前的H,1) AND C>VAR14日前的H,1) AND C>O
VAR23:=1日前的VAR8 OR VAR9 AND C
VAR25:=上次VAR24距今天数
VAR26:=H=C OR (O>=1日前的H AND C>O)
VAR27:=H-O和C较大值
VAR29:=O和C较大值-O和C的较小值>O和C的较小值-L AND O和C较大值-O和C的较小值>H-O和C较大值
VAR30:=IF(VAR26,1,IF(L=O,VAR27,IF(H-O和C较大值>O和C的较小值-L,VAR28,IF(L
VAR31:=开盘价>0 AND BARSLASTCOUNT(C/1日前的C>1.09)=1
VAR32:=上次BARSLASTCOUNT(C>4日前的C距今天数=9>0)
VAR33:=VAR32>4 AND C/1日前的C>1.09 AND C>VAR32日前的H AND VAR31
VAR34:=MAX(MAX((H-L),(1日前的C-H的绝对值)),ABS((1日前的C-L)))
VAR35:=(1日前的收盘价-REF(VAR34的13日简单移动平均,1))
VAR36:=(C-1日前的C)/1日前的C*100<-5.5 OR C/O<=0.955
VAR37:=REF(上次VAR36距今天数,上次VAR36距今天数+1)+上次VAR36距今天数+1
VAR38:=(REF(O,上次VAR36距今天数)+REF(C,上次VAR36距今天数))/2
VAR39:=IF(PERIOD=4,60,IF(PERIOD=5, TOTALFZNUM,1))
VAR40:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,VAR39)))
VAR41:=IF(MOD(FROM开盘价,VAR40)<0.5,VAR40,MOD(FROM开盘价,VAR40))
VAR42:=IF( 到最后交易的周期=1 AND DYNAINFO(8)>1,成交额*(VAR40+3)/(VAR41+3),成交额)
VAR43:=VAR42>=1日前的成交额*1.9 AND (IF(C<=O,C>1日前的C,1))
VAR44:=成交额=120日内成交额最高值 AND VAR43 AND VAR4/REF(V的5日简单移动平均,1)>2 AND (C的有效数据周期数+1)>120
VAR45:=REF(上次VAR44距今天数,上次VAR44距今天数+1)+上次VAR44距今天数+1
VAR46:=REF(DOWNNDAY(C,3),1) AND C>REF(C,1) AND C>=O
VAR47:=IF(C>O,V/((H-L)*2-C-O的绝对值)*(H-L),IF(C
VAR49:=IF(C>O,VAR48,IF(C
VAR51:=STRCAT(STRCAT('总上涨:',CON2STR(DYNAINFO(60),0)),' 只')
VAR52:=STRCAT(STRCAT('总下跌:',CON2STR(DYNAINFO(61),0)),' 只')
VAR53:=(DYNAINFO(60)+DYNAINFO(61))
VAR54:=STRCAT(STRCAT('涨跌比:',CON2STR(DYNAINFO(60)/VAR53*100,2)),' %')
VAR55:=VAR14日前的成交额/V/100
VAR56:=BETWEEN(VAR14,0,8) AND IF(VAR14=0 AND BETWEEN(C,成交额/V/100,VAR14日前的H),1,IF(VAR14>0,COUNT(C
VAR57:=VAR56 AND IF(CODELIKE('43') OR CODELIKE('83') OR CODELIKE('87') OR CODELIKE('88') OR BETWEEN(FINANCE(3),4,8) OR FINANCE(3)=2 OR NAMEINCLUDE('ST') OR NAMELIKE('*'),0,1)
VAR89:=BETWEEN(C,成交额/V/100,VAR14日前的H)
VAR88:=COUNT(C
DRAWTEXT_FIX(1,0.05,0.00,0,STRCAT(STRCAT(STRCAT(STRCAT(HYBLOCK,'__'),GNBLOCK),'__'),DYBLOCK)),画青色
输出今夕比:VAR4/1日前的V,画白色,NODRAW
输出弱分界:EMA(获利盘为85%的成本分布,10),画红色,DOTLINE
输出强分界:EMA(获利盘为99%的成本分布,10),画绿色,DOTLINE
输出八日内不破均突:BETWEEN(VAR14,1,8) AND REF(IF(VAR14=0 AND VAR89,1,IF(VAR14>0,VAR88 AND COUNT(C>REF(REF(H,VAR14),1),VAR14)=0,0)),1)=1 AND C>REF(REF(H,VAR14),1),画洋红色,NODRAW
输出八日内突:VAR19 AND 1日前的统计VAR14日满足VAR19的天数=0,画黄色,NODRAW
输出超八突:VAR21 AND 1日前的统计VAR14日满足VAR21的天数<=2,画红色,NODRAW
输出超八加:VAR22 AND 1日前的统计VAR14日满足VAR22的天数<=2,画白色,NODRAW
输出破倍阴均:1日前的C<=VAR25日前的成交额/V/100,1) AND C>VAR25日前的成交额/V/100,1) AND VAR30,画黄色,NODRAW
输出破倍阴高:1日前的C<=VAR25日前的H,1) AND C>VAR25日前的H,1) AND VAR30,画洋红色,NODRAW
DRAWBAND(弱分界,RGB(20,20,20),强分界,RGB(60,60,8))
如果VAR13返回强分界否则返回弱分界
DRAWKLINE(H,O,L,C)
当满足条件VAR8时,在O和C之间画柱状线
当满足条件VAR8时,在H和L之间画柱状线
当满足条件VAR10时,在O和C之间画柱状线
当满足条件VAR10时,在H和L之间画柱状线
当满足条件VAR9时,在O和C之间画柱状线
当满足条件VAR11时,在O和C之间画柱状线
STICKLINE(H>=VAR6 AND C
当满足条件L<=VAR7 AND C=VAR6时,在O和C之间画柱状线
当满足条件H>=VAR6 AND C
STICKLINE( 到最后交易的周期<=CONST(VAR15)+1 AND VAR14>=0,VAR14日前的H,VAR14日前的H,4.2,-1),画洋红色
STICKLINE( 到最后交易的周期<=CONST(VAR14)+1 AND VAR14>=0,VAR14日前的H,VAR14日前的H,4.2,0),画洋红色
DRAWTEXT(ISLASTBAR,VAR14日前的H,VARCAT(VAR2STR(VAR14日前的H,2),'←炸分高')),画洋红色
DRAWTEXT(ISLASTBAR,VAR55,VARCAT(VAR2STR(VAR14日前的成交额/V/100,2),'↙炸分均')),COLORLIGRAY,DRAWABOVE
当满足条件八日内不破均突时,在L和34之间画图标
当满足条件八日内突时,在L和1之间画图标
当满足条件超八突时,在L和38之间画图标
当满足条件超八加时,在L和23之间画图标
当满足条件VAR24时,在H*1.012和'倍阴'位置书写文字
当满足条件VAR24时,在O和C之间画柱状线
当满足条件VAR24时,在L和H之间画柱状线
DRAWICON(破倍阴均 AND C的5日指数移动平均>=1日前的C的5日指数移动平均 AND C>C的5日指数移动平均 AND 1日前的统计VAR25日满足破倍阴均的天数<=2,L*0.98,11)
DRAWICON(破倍阴高 AND C的5日指数移动平均>=1日前的C的5日指数移动平均 AND C>C的5日指数移动平均 AND 1日前的统计VAR25日满足破倍阴高的天数<=2,O,25)
当满足条件VAR57时,在L和9之间画图标
DRAWTEXT((BARSLASTCOUNT(C>4日前的C))=9 AND C>=O,(O+C)/2,'9'),画绿色
DRAWTEXT((BARSLASTCOUNT(C>4日前的C))=9 AND C
DRAWTEXT(VAR33>0的3过滤,L*0.998,'9'),画绿色
输出黄金支撑:(12日内VAR35最高值),画黄色
DRAWTEXT(ISLASTBAR,黄金支撑,VARCAT(VAR2STR(黄金支撑,2),'←金支撑')),画黄色
STICKLINE( 到最后交易的周期<=CONST(VAR37)+1 AND (CREF(VAR38,上次VAR36距今天数))<=3),VAR38,VAR38,2,0),画绿色
DRAWTEXT( 到最后交易的周期<=CONST(VAR37)+1 AND 上次VAR36距今天数=1,VAR38,VARCAT(VAR2STR(VAR38,2),'←上线3日买')),画绿色,DRAWABOVE
STICKLINE(VAR46,O和C的较小值,O和C的较小值+(O和C较大值-O和C的较小值)/4,2.5,0),COLORBROWN
当满足条件VAR46时,在最低价和'↑止'位置书写文字
STICKLINE( 到最后交易的周期<=CONST(上次VAR46距今天数)+1 AND 上次VAR46距今天数>=0,REF(O,上次VAR46距今天数),REF(O,上次VAR46距今天数),4,0),COLOR0000BB
DRAWTEXT(ISLASTBAR,REF(O,上次VAR46距今天数),VARCAT(VAR2STR(REF(O,上次VAR46距今天数),2),'←止损')),COLOR0000BB
输出反转线:REF(H,上次CONST(BARSLAST(VAR46距今天数)+4= 到最后交易的周期)),COLOR65EBD0,DOTLINE
DRAWTEXT(ISLASTBAR,反转线,VARCAT(VAR2STR(反转线,2),'←反转')),COLOR65EBD0
STICKLINE(VAR44,O和C的较小值,(O+C)/2,2.5,0),COLORLIGREEN
DRAWTEXT( 到最后交易的周期=CONST(上次VAR44距今天数)+1,O和C的较小值+(O和C较大值-O和C的较小值)/4,'←王3'),画洋红色
DRAWTEXT( 到最后交易的周期=CONST(VAR45)+1,O和C的较小值+(O和C较大值-O和C的较小值)/4,'←王2'),画黄色
DRAWTEXT( 到最后交易的周期=CONST(REF(上次VAR44距今天数,VAR45+2)+VAR45+2)+1,O和C的较小值+(O和C较大值-O和C的较小值)/4,'←王1'),画绿色
输出{,公式源码 HTTP://}DRAWTEXT_FIX(ISLASTBAR AND (VAR47+VAR49)/99>=200 AND (C/1日前的C-1)*100>=3,0.92,0.0,0,VARCAT(VARCAT('净买:',VAR2STR((VAR47+VAR49)/99,0)),'万')),画红色
DRAWTEXT_FIX(ISLASTBAR AND (VAR47+VAR49)/99<-200 AND (C/1日前的C-1)*100<=-2,0.92,0.0,0,VARCAT(VARCAT('流出:',VAR2STR((VAR47+VAR49)/99,0)),'万')),画绿色
DRAWTEXT_FIX(ISLASTBAR AND VAR50<15,0.92,0.05,0,STRCAT('净流占比:',STRCAT(CON2STR(VAR50,0),'%'))),画黄色
DRAWTEXT_FIX(ISLASTBAR AND VAR50>=15,0.92,0.05,0,STRCAT('净流占比:',STRCAT(CON2STR(VAR50,0),'%'))),画洋红色
当满足条件ISLASTBAR时,在横轴0纵轴1位置书写文字
当满足条件ISLASTBAR时,在横轴0.12纵轴1位置书写文字
当满足条件ISLASTBAR时,在横轴0.23纵轴1位置书写文字
DRAWTEXT_FIX(ISLASTBAR AND (C/10日内C最低值-1)*100>=15,0.88,1,0,STRCAT('十日最大涨幅:',STRCAT(CON2STR((C/10日内C最低值-1)*100,2),' %'))),画红色
DRAWTEXT_FIX(ISLASTBAR AND (C/10日内C最低值-1)*100<15,0.88,1,0,STRCAT('十日最大涨幅:',STRCAT(CON2STR((C/10日内C最低值-1)*100,2),' %'))),画白色