超牛高位逃顶通达信公式 副图 源码附图
A:=EMA(C,10);
A11:=EMA(C,60);
A2:A-A11; MID: MA(A2,26);
UPPER:= MID +1.8*STD(A2,26)COLORWHITE;
LOWER:= MID - 1.8*STD(A2,26)COLORGREEN;
DRAWBAND(MID,RGB(0, 0, 205),A2,RGB(139, 62, 47)); MA(A2,26)COLORYELLOW,
LINETHICK2; UR:= MID +1.8*STD(A2,26)COLORWHITE;
LR:= MID - 1.8*STD(A2,26)COLORGREEN; 高位:=HHV(A2,450),COLORGREEN,
LINETHICK2; 低位:=LLV(A2,450),COLORRED,LINETHICK2;
VAR1K:=(高位-低位); 高:高位-VAR1K*0.115,COLORYELLOW,LINETHICK1;
高中:高位-VAR1K*0.05,COLORYELLOW; 高1:=高位-VAR1K*0.0000015,COLORYELLOW,LINETHICK1;
低:高位-VAR1K*1,COLORGREEN,LINETHICK1;
低中:高位-VAR1K*0.92,COLORGREEN,LINETHICK1;
低1:=高位-VAR1K*0.85,COLORGREEN,COLORGREEN; A2A:A-A11,COLORLIMAGENTA,
LINETHICK2; MID1: MA(A2,18),COLORWHITE,LINETHICK2; STICKLINE(CROSS(A2A,MID1),0,A2,2.2,0 ),COLORYELLOW;
STICKLINE(CROSS(MID,A2),0,MID1,2.2,0 ),COLORGREEN;
A2, COLORSTICK;
DRAWTEXT(CROSS(A2A,MID1),MID1-0.01,'←多'),COLORYELLOW;
DRAWTEXT(CROSS(A2,LR),A2,'←试盘'),COLORCYAN;
DRAWTEXT(CROSS(MID,A2),MID1+0.012,'逃顶'),COLORGREEN;
DRAWTEXT(CROSS(MID,A2) AND A2<0 ,0.012,'空中空'),COLORCYAN;
G:=CONST(IF(CURRBARSCOUNT<=81,HHV(H,BARSLAST(CURRBARSCOUNT=81)),0));
D:=CONST(IF(CURRBARSCOUNT<=81,LLV(L,BARSLAST(CURRBARSCOUNT=81)),0));
STICKLINE(DATE!=REF(DATE,1) AND PERIOD<5,高1,低,1,0)COLORLIGRAY;
STICKLINE(MONTH!=REF(MONTH,1) AND PERIOD<8,高1,低,0,-1),COLORLIGRAY;
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A赋值:C的10日指数移动平均
A11:=C的60日指数移动平均
A2:A-A11
输出MID: A2的26日简单移动平均
UPPER赋值: MID +1.8*A2的26估算标准差画白色
LOWER赋值: MID - 1.8*A2的26估算标准差COLORGREEN
DRAWBAND(MID,RGB(0, 0, 205),A2,RGB(139, 62, 47))
A2的26日简单移动平均画黄色,
线宽为2
UR赋值: MID +1.8*A2的26估算标准差画白色
LR赋值: MID - 1.8*A2的26估算标准差COLORGREEN
高位赋值:450日内A2最高值,COLORGREEN,
线宽为2
低位赋值:450日内A2最低值,COLORRED, 线宽为2
VAR1K:=(高位-低位)
输出高:高位-VAR1K*0.115,画黄色,LINETHICK1
高中:高位-VAR1K*0.05,画黄色
高1:=高位-VAR1K*0.0000015,画黄色,LINETHICK1
输出低:高位-VAR1K*1,COLORGREEN,LINETHICK1
低中:高位-VAR1K*0.92,COLORGREEN,LINETHICK1
低1:=高位-VAR1K*0.85,COLORGREEN,COLORGREEN
A2输出A:A-A11,COLORLIMAGENTA,
线宽为2
MID1: A2的18日简单移动平均,画白色, 线宽为2
STICKLINE(A2A上穿MID1,0,A2,2.2,0 ),画黄色
STICKLINE(MID上穿A2,0,MID1,2.2,0 ),COLORGREEN
A2, COLORSTICK
DRAWTEXT(A2A上穿MID1,MID1-0.01,'←多'),画黄色
DRAWTEXT(A2上穿LR,A2,'←试盘'),COLORCYAN
DRAWTEXT(MID上穿A2,MID1+0.012,'逃顶'),COLORGREEN
DRAWTEXT(MID上穿A2 AND A2<0 ,0.012,'空中空'),COLORCYAN
G赋值:CONST(IF(CURRBARSCOUNT<=81,HHV(H,上次CURRBARSCOUNT=81距今天数),0))
D赋值:CONST(IF(CURRBARSCOUNT<=81,LLV(L,上次CURRBARSCOUNT=81距今天数),0))
STICKLINE(DATE!=1日前的DATE AND PERIOD<5,高1,低,1,0)COLORLIGRAY
STICKLINE(MONTH!=1日前的MONTH AND PERIOD<8,高1,低,0,-1),COLORLIGRAY