通达信KDJ合并主力进场
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
VAR6:=IF(VAR5>50,50+(VAR5-50)/10,VAR5);
VAR7:=IF(VAR6>100,100+(VAR6-100)/5,VAR6);
VAR8:=IF(VAR7>200,200+(VAR7-200)/5,VAR7);
VAR9:=IF(VAR8>300,300+(VAR8-300)/5,VAR8);
主力进场:IF(VAR9>REF(VAR9,1),VAR9,0),COLORRED,NODRAW;
STICKLINE(VAR9>REF(VAR9,1),0,VAR9,3,0 ),COLORRED;
洗盘:IF(VAR9<REF(VAR9,1),VAR9,0),COLORGREEN,NODRAW;
STICKLINE(VAR9<REF(VAR9,1),0,VAR9,3,0),COLORGREEN;
K:KDJ.K,COLORFFFFFF;
D:KDJ.D,COLOR00FFFF;
J:KDJ.J,COLORFFF000;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:REF((最低价+开盘价+收盘价+最高价)/4,1)
VAR2赋值:SMA(最低价-VAR1的绝对值,13,1)/SMA(最低价-VAR1和0较大值,10,1)
VAR3赋值:VAR2的10日指数移动平均
VAR4赋值:33日内最低价最低值
如果最低价<=VAR4返回VAR3否则返回0
VAR6赋值:IF(VAR5>50,50+(VAR5-50)/10,VAR5)
VAR7赋值:IF(VAR6>100,100+(VAR6-100)/5,VAR6)
VAR8赋值:IF(VAR7>200,200+(VAR7-200)/5,VAR7)
VAR9赋值:IF(VAR8>300,300+(VAR8-300)/5,VAR8)
输出
主力进场:IF(VAR9>1日前的VAR9,VAR9,0),画红色,NODRAW
STICKLINE(VAR9>1日前的VAR9,0,VAR9,3,0 ),画红色
输出
洗盘:IF(VAR9<1日前的VAR9,VAR9,0),画绿色,NODRAW
STICKLINE(VAR9<1日前的VAR9,0,VAR9,3,0),画绿色
输出
K:KDJ.K,COLORFFFFFF
输出
D:KDJ.D,COLOR00FFFF
输出
J:KDJ.J,COLORFFF000