通达信顶底K线
VAR1 := REF(OPEN,1);
VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;
VAR3:= REF(CLOSE,1);
VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
VAR5:= REF(HIGH,1);
VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;
VAR7:= REF(LOW,1);
VAR9:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;
VAR8:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001 ;
VAR10:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;
VAR11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR12:=EMA(VAR11,8)*10<-26;
VAR13:=IF(VAR8 AND MA(VAR10,5)<50 AND VAR12,30,0);
开盘值:VAR2,POINTDOT, LINETHICK0 ;
收盘值:VAR4,POINTDOT, LINETHICK0 ;
最高值:VAR6,POINTDOT, LINETHICK0 ;
最低值:VAR9,POINTDOT, LINETHICK0 ;
STICKLINE(收盘值>开盘值,开盘值,最低值,0.5,1),COLORRED;
STICKLINE(收盘值>开盘值,最高值,收盘值,0.5,1),COLORRED;
STICKLINE(收盘值>开盘值,收盘值,开盘值,5,1),COLORRED;
STICKLINE(收盘值<开盘值,最高值,开盘值,0.5,1),COLORFFFF00;
STICKLINE(收盘值<开盘值,最低值,收盘值,0.5,0),COLORFFFF00;
STICKLINE(收盘值<开盘值,收盘值,开盘值,5,0),COLORFFFF00;
入顶:80,POINTDOT,LINETHICK1,COLORGREEN;
入底:20,POINTDOT, LINETHICK1 ,COLORFF00FF;
0,COLORGRAY; 20,COLORGRAY; 50,COLORGRAY; 80,COLORGRAY; 100,COLORGRAY;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1 := 1日前的开盘价
VAR2赋值:SMA(开盘价-VAR1和0较大值,6,1)/SMA(开盘价-VAR1的绝对值,6,1)*100
VAR3赋值: 1日前的收盘价
VAR4赋值:SMA(收盘价-VAR3和0较大值,6,1)/SMA(收盘价-VAR3的绝对值,6,1)*100
VAR5赋值: 1日前的最高价
VAR6赋值:SMA(最高价-VAR5和0较大值,6,1)/SMA(最高价-VAR5的绝对值,6,1)*100
VAR7赋值: 1日前的最低价
VAR9赋值:SMA(最低价-VAR7和0较大值,6,1)/SMA(最低价-VAR7的绝对值,6,1)*100
VAR8赋值:(开盘价和收盘价的较小值-最低价)/最低价*100>成交量/当前流通股本*0.001
VAR10:=(5日内最高价最高值-收盘价)/(21日内最高价最高值-13日内最低价最低值)*100
VAR11:=(收盘价-1日前的收盘价)/1日前的收盘价*100
VAR12:=VAR11的8日指数移动平均*10<-26
VAR13:=IF(VAR8 AND VAR10的5日简单移动平均<50 AND VAR12,30,0)
输出开盘值:VAR2,POINTDOT, LINETHICK0
输出收盘值:VAR4,POINTDOT, LINETHICK0
输出最高值:VAR6,POINTDOT, LINETHICK0
输出最低值:VAR9,POINTDOT, LINETHICK0
当满足条件收盘值>开盘值时,在开盘值和最低值之间画柱状线
当满足条件收盘值>开盘值时,在最高值和收盘值之间画柱状线
当满足条件收盘值>开盘值时,在收盘值和开盘值之间画柱状线
当满足条件收盘值<开盘值时,在最高值和开盘值之间画柱状线
当满足条件收盘值<开盘值时,在最低值和收盘值之间画柱状线
当满足条件收盘值<开盘值时,在收盘值和开盘值之间画柱状线
输出入顶:80,POINTDOT,LINETHICK1,画绿色
输出入底:20,POINTDOT, LINETHICK1 ,COLORFF00FF
0,COLORGRAY
20,COLORGRAY
50,COLORGRAY
80,COLORGRAY
100,COLORGRAY