通达信海豚张嘴副图指标
MA4:=MA(CLOSE,4);
MA20:=MA(CLOSE,20);
MA10:=MA(CLOSE,10);
MA62:=MA(CLOSE,62);
VAR1:=SLOPE(MA20,3)>0;
VAR2:=ABS(SLOPE(MA62,3))<0.19;
VAR3:=SLOPE(MA62,3)>REF(SLOPE(MA62,3),1);
VAR4:=REF(MA4,4)>MA20;
VAR5:=REF(MA20<MA62,15)AND MA20>=MA62;
ABSVOL:=(MA4-MA20);
VAR6:=SLOPE(MA4,2)>=REF(SLOPE(MA4,2),1) AND ABSVOL>=REF(ABSVOL,1) AND REF(ABSVOL,2)>=REF(ABSVOL,1);
CON1:=VAR1 AND VAR2 AND VAR3 AND VAR4 AND VAR5 AND VAR6 ;
VAR41:=REF(MA4>MA20,3);
ABSVOL1:=ABS(MA4-MA10);{}
VAR61:=REF(ABSVOL1,2)>REF(ABSVOL1,1) AND ABSVOL1>REF(ABSVOL1,1) AND SLOPE(MA4,2)<0 AND SLOPE(MA4,2)>REF(SLOPE(MA4,2),1);
CON2:=VAR1 AND VAR2 AND VAR3 AND VAR41 AND VAR5 AND VAR61 ;
CON:=CON1 OR CON2;
XG:NOT(REF(CON,4))AND NOT(REF(CON,3))AND NOT(REF(CON,1))AND NOT(REF(CON,2)) AND CON;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
MA4赋值:收盘价的4日简单移动平均
MA20赋值:收盘价的20日简单移动平均
MA10赋值:收盘价的10日简单移动平均
MA62赋值:收盘价的62日简单移动平均
VAR1赋值:SLOPE(MA20,3)>0
VAR2赋值:SLOPE(MA62,3的绝对值)<0.19
VAR3赋值:SLOPE(MA62,3)>REF(SLOPE(MA62,3),1)
VAR4赋值:4日前的MA4>MA20
VAR5赋值:15日前的MA20=MA62
ABSVOL赋值:(MA4-MA20)
VAR6赋值:SLOPE(MA4,2)>=REF(SLOPE(MA4,2),1) AND ABS成交量>=REF(ABS成交量,1) AND REF(ABS成交量,2)>=REF(ABS成交量,1)
CON1赋值:VAR1 AND VAR2 AND VAR3 AND VAR4 AND VAR5 AND VAR6
VAR41:=3日前的MA4>MA20
ABSVOL1:=MA4-MA10的绝对值
{}
VAR61:=2日前的ABS成交量1>1日前的ABS成交量1 AND ABS成交量1>1日前的ABS成交量1 AND SLOPE(MA4,2)<0 AND SLOPE(MA4,2)>REF(SLOPE(MA4,2),1)
CON2赋值:VAR1 AND VAR2 AND VAR3 AND VAR41 AND VAR5 AND VAR61
CON赋值:CON1 OR CON2
输出
XG:NOT(4日前的CON)AND NOT(3日前的CON)AND NOT(1日前的CON)AND NOT(2日前的CON) AND CON