顶底回踩通达信指标 副图 源码 测试图
X1:=TDXDLL1(5,0,0,0),NODRAW;
X2:=TDXDLL1(5,1,0,0),NODRAW;
X3:=BARSCOUNT(C)=0;
X4:=CODELIKE('688');
X5:=(CODELIKE('30') AND DATE>=1200824);
X6:=X4 OR X5;
X7:=IF(CODELIKE('60') OR CODELIKE('30') OR CODELIKE('00'),1,0) AND NOT(X6);
X8:=((X7 AND C/REF(C,1)>=1.091) OR (X6 AND C/REF(C,1)>=1.191) AND H=C) OR X3;
X9:=(X8 AND H=L) OR X3;
X10:=MAX(C,O);
X11:=CURRBARSCOUNT<=400;
X12:=IF(X2>0,1,0);
X13:=COUNT(X8,4)=1 AND X8 AND NOT(X9) AND REFX(HHV(X10,5),4)/C>=1.15 AND X11;
橙柱底:DRAWLINE(X2>0 AND 1 AND X13,L,REF(X2>0 AND 1 AND X13,1),REF(L,1),1),COLOR0F5CFF,CIRCLEDOT;
橙柱顶:DRAWLINE(X12>0 AND 1 AND X13,H,REF(X2>0 AND 1 AND X13,1),REF(H,1),1),COLOR0F5CFF,CIRCLEDOT;
STICKLINE(X13,CLOSE,OPEN,3.5,0),COLOR3366FF;
{踩顶:(C-橙柱顶)/橙柱顶*100,NODRAW;
踩底:(C-橙柱底)/橙柱底*100,NODRAW;}
未来函数检测结果如下:
该公式包含未来函数:REFX
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X1赋值:TDXDLL1(5,0,0,0),NODRAW
X2赋值:TDXDLL1(5,1,0,0),NODRAW
X3赋值:C的有效数据周期数=0
X4赋值:CODELIKE('688')
X5赋值:(CODELIKE('30') AND DATE>=1200824)
X6赋值:X4 OR X5
X7赋值:IF(CODELIKE('60') OR CODELIKE('30') OR CODELIKE('00'),1,0) AND NOT(X6)
X8赋值:((X7 AND C/1日前的C>=1.091) OR (X6 AND C/1日前的C>=1.191) AND H=C) OR X3
X9赋值:(X8 AND H=L) OR X3
X10:=C和O较大值
X11:= 到最后交易的周期<=400
如果X2>0返回1否则返回0
X13:=统计4日满足X8的天数=1 AND X8 AND NOT(X9) AND REFX(5日内X10最高值,4)/C>=1.15 AND X11
输出橙柱底:DRAWLINE(X2>0 AND 1 AND X13,L,1日前的X2>0 AND 1 AND X13,1日前的L,1),COLOR0F5CFF,CIRCLEDOT
输出橙柱顶:DRAWLINE(X12>0 AND 1 AND X13,H,1日前的X2>0 AND 1 AND X13,1日前的H,1),COLOR0F5CFF,CIRCLEDOT
当满足条件X13时,在收盘价和开盘价之间画柱状线
输出{踩顶:(C-橙柱顶)/橙柱顶*100,NODRAW
输出踩底:(C-橙柱底)/橙柱底*100,NODRAW
}