通达信趋势介入点公式副图源码
A1:=EMA(F1,3);
DIFK:=EMA(F1,3);
DKK:=4*F1-3*A1;
TRLSX1:=MAX(MAX((HHV(F1,13)-LLV(F1,13)),ABS(REF(F1,1)-HHV(F1,13))),ABS(REF(F1,1)-LLV(F1,13)));
TRLSX3:=REF(F1,1)-REF(TRLSX2,1);
RSV14:=(CLOSE - LLV(LOW,5))/(HHV(HIGH,5) - LLV(LOW,5))-0.5;
D14:=EMA(K14,3),COLORGREEN,NODRAW;
DRAWBAND(F1,RGB(200,50,55),A1,RGB(50,100,10));
STICKLINE(MACDXG2,YY*1.2,0,2.8,0),COLORRED;
STICKLINE(YY>REF(YY,1) AND YY>0,0,YY,1.1,0),COLOR000099;
STICKLINE(YY<=REF(YY,1) AND YY>0,0,YY,1.8,0),COLOR888888;
STICKLINE(YY<=REF(YY,1) AND YY>0,0,YY,0.6,0),COLORDDDDDD;
STICKLINE(YY>REF(YY,1) AND YY< 0,0,YY,1.1,0),COLOR3388BB;
STICKLINE(YY<=REF(YY,1) AND YY< 0,0,YY,1.8,0),COLORFF3300;
STICKLINE(YY<=REF(YY,1) AND YY< 0,0,YY,0.6,0),COLORFF7700;
KDJXG:=REF(COUNT(J14< REF(J14,1),5)>=3,1) AND REF(J14,1)< -0.4 AND J14>REF(J14,1);
准备介入点:=REF(CROSS(0,YY),3) AND COUNT(F1>0 AND YY< REF(YY,1),4)=4 ;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A1赋值:F1的3日指数移动平均
DIFK赋值:F1的3日指数移动平均
DKK赋值:4*F1-3*A1
TRLSX1赋值:MAX(MAX((13日内F1最高值-13日内F1最低值),1日前的F1-13日内F1最高值的绝对值),ABS(1日前的F1-13日内F1最低值))
TRLSX3赋值:1日前的F1-1日前的TRLSX2
RSV14赋值:(收盘价 - 5日内最低价最低值)/(5日内最高价最高值 - 5日内最低价最低值)-0.5
D14赋值:K14的3日指数移动平均,画绿色,NODRAW
DRAWBAND(F1,RGB(200,50,55),A1,RGB(50,100,10))
当满足条件MACDXG2时,在YY*1.2和0之间画柱状线
STICKLINE(YY>1日前的YY AND YY>0,0,YY,1.1,0),COLOR000099
STICKLINE(YY<=1日前的YY AND YY>0,0,YY,1.8,0),COLOR888888
STICKLINE(YY<=1日前的YY AND YY>0,0,YY,0.6,0),COLORDDDDDD
STICKLINE(YY>1日前的YY AND YY< 0,0,YY,1.1,0),COLOR3388BB
STICKLINE(YY<=1日前的YY AND YY< 0,0,YY,1.8,0),COLORFF3300
STICKLINE(YY<=1日前的YY AND YY< 0,0,YY,0.6,0),COLORFF7700
KDJXG赋值:REF(COUNT(J14< REF(J14,1),5)>=3,1) AND REF(J14,1)< -0.4 AND J14>REF(J14,1)
准备介入点赋值:3日前的0上穿YY AND COUNT(F1>0 AND YY< 1日前的YY,4)=4