通达信新仙人指路副图源码分享
X_1:=(C+H+O)/3>HHV(REF(C,1),60);
X_2:=FINANCE(34)>1;
X_3:=(H-MAX(O,C))/REF(C,1)>0.045 AND ABS(C-O)/REF(C,1)<0.035 AND (H-MAX(O,C))>2.0*ABS(C-O);
X_4:=REF(C,1)/REF(C,6)>1.04 AND REF(C,1)/REF(C,6)<1.18;
X_5:=REF((H-C),1)/REF(C,2)<1.045 AND REF(C,1)/REF(C,2)>0.97;
X_6:=NOT(NAMELIKE('S') OR NAMELIKE('*S')) ;
X_7:=IF(CODELIKE('68'),0,1);
X_8:=IF(CODELIKE('30'),0,1);
X_9:=IF(CODELIKE('8'),0,1);
X_10:=IF(CODELIKE('4'),0,1);
XG:X_1 AND X_2 AND X_3 AND X_4 AND X_5 AND X_6 AND X_7 AND X_8 AND X_9 AND X_10 ;
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:(C+H+O)/3>60日内1日前的C最高值
X_2赋值:FINANCE(34)>1
X_3赋值:(H-O和C较大值)/1日前的C>0.045 AND C-O的绝对值/1日前的C<0.035 AND (H-O和C较大值)>2.0*C-O的绝对值
X_4赋值:1日前的C/6日前的C>1.04 AND 1日前的C/6日前的C<1.18
X_5赋值:REF((H-C),1)/REF(C,2)<1.045 AND REF(C,1)/REF(C,2)>0.97
X_6赋值:NOT(NAMELIKE('S') OR NAMELIKE('*S'))
X_7赋值:IF(CODELIKE('68'),0,1)
X_8赋值:IF(CODELIKE('30'),0,1)
X_9赋值:IF(CODELIKE('8'),0,1)
X_10:=IF(CODELIKE('4'),0,1)
输出XG:X_1 AND X_2 AND X_3 AND X_4 AND X_5 AND X_6 AND X_7 AND X_8 AND X_9 AND X_10