哼哈波段波段指标有买卖指示通达信公式 副图 源码附图
VAR1:=IF(KDJ.J(27,3,3)<0,10,0);
VAR2:=CROSS(9.9,VAR1);
VAR3:=(2*CLOSE+HIGH+LOW)/4;
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,5);
VAR6:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,5);
VAR7:=IF(DATETODAY(DATE)<11699,1,DRAWNULL);
VAR8:=MA(VAR6,2)*VAR7;
AA:STICKLINE(VAR6>VAR8,VAR6,VAR8,3,1)*VAR7,COLORRED;
VAR9:=IF(1<2442.459961*500,1,DRAWNULL);
AAA:IF(VAR6>VAR8,VAR6,VAR8),COLORRED;
VAR10:=STICKLINE(VAR6>VAR8 AND REF(VAR6,1)<30,VAR6,VAR8,3,1);
STICKLINE(VAR6<=VAR8,VAR6,VAR8,3,1)*VAR9,COLORFFCC66;
DRAWICON(CROSS(9.9,VAR1),VAR6-12,5)*VAR9;
STICKLINE(CROSS(9.9,VAR1),VAR6+5,VAR8-4,3,1)*VAR9,COLORYELLOW;
VAR11:=STICKLINE(VAR10,VAR6+5,VAR8-4,3,1)*VAR7;
STICKLINE(FILTER(VAR11,5),VAR6+5,VAR8-4,3,1)*VAR9,COLORYELLOW;
V20:20,COLORGREEN;
V50:50,COLORGREEN;
V80:80,COLORGREEN;
VAR12:=IF(KDJ.J(27,3,3)>100,90,100);
DRAWICON(CROSS(VAR12,99.900002),VAR6+12,6)*VAR7;
VAR13:=VAR6>VAR8 AND REF(VAR6,1)>70;
STICKLINE(CROSS(VAR12,99.900002),VAR6,VAR8-9,3,1)*VAR7,COLORGREEN;
VAR14:=STICKLINE(VAR13,VAR6+5,VAR8-4,3,1);
STICKLINE(FILTER(VAR14,5),VAR6+5,VAR8-4,3,1),COLORGREEN;
DRAWICON(FILTER(VAR10,5),VAR6-8,34);
DRAWICON(FILTER(VAR13,5),VAR6+8,35);
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:IF(KDJ.J(27,3,3)<0,10,0)
VAR2赋值:9.9上穿VAR1
VAR3赋值:(2*收盘价+最高价+最低价)/4
VAR4赋值:5日内最低价最低值
VAR5赋值:5日内最高价最高值
VAR6赋值:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,5)
VAR7赋值:IF(DATETODAY(DATE)<11699,1,DRAWNULL)
VAR8赋值:VAR6的2日简单移动平均*VAR7
当满足条件VAR6>VAR8时,在VAR6和VAR8之间画柱状线
如果1<2442.459961*500返回1否则返回DRAWNULL
如果VAR6>VAR8返回VAR6否则返回VAR8
VAR10:=STICKLINE(VAR6>VAR8 AND 1日前的VAR6<30,VAR6,VAR8,3,1)
当满足条件VAR6<=VAR8时,在VAR6和VAR8之间画柱状线
DRAWICON(9.9上穿VAR1,VAR6-12,5)*VAR9
STICKLINE(9.9上穿VAR1,VAR6+5,VAR8-4,3,1)*VAR9,画黄色
当满足条件VAR10时,在VAR6+5和VAR8-4之间画柱状线
STICKLINE(VAR11的5过滤,VAR6+5,VAR8-4,3,1)*VAR9,画黄色
输出V20:20,画绿色
输出V50:50,画绿色
输出V80:80,画绿色
VAR12:=IF(KDJ.J(27,3,3)>100,90,100)
DRAWICON(VAR12上穿99.900002,VAR6+12,6)*VAR7
VAR13:=VAR6>VAR8 AND 1日前的VAR6>70
STICKLINE(VAR12上穿99.900002,VAR6,VAR8-9,3,1)*VAR7,画绿色
当满足条件VAR13时,在VAR6+5和VAR8-4之间画柱状线
STICKLINE(VAR14的5过滤,VAR6+5,VAR8-4,3,1),画绿色
DRAWICON(VAR10的5过滤,VAR6-8,34)
DRAWICON(VAR13的5过滤,VAR6+8,35)