通达信野马奔袭指标公式
2021/6/15 19:51:19
HJ_1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
HJ_2:=SMA(SMA(HJ_1,3,1),3,1)/28.57;
HJ_3:=EMA(HJ_2,5);
HJ_4:=3*HJ_2-2*HJ_3;
HJ_5:=CROSS(HJ_4,HJ_2) AND HJ_2<2.1 AND CLOSE>OPEN;
STICKLINE(HJ_5,82,0,0.005,0),COLORRED;
DRAWICON(HJ_5>0,85,13),COLORYELLOW;
HJ_6:=CROSS(HJ_4,HJ_2) AND HJ_2<2.1 AND CLOSE>OPEN;
HJ_7:=(2*CLOSE+HIGH+LOW)/4;
HJ_8:=LLV(LOW,13);
HJ_9:=HHV(HIGH,13);
HJ_10:=EMA((HJ_7-HJ_8)/(HJ_9-HJ_8)*100,13);
HJ_11:=EMA(0.667*REF(HJ_10,1)+0.333*HJ_10,2);
HJ_12:=HJ_10;
STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,3,0),COLOR0055AA;
STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,2.8,0),COLOR0066BB;
STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,2.5,0),COLOR0077CC;
STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,2.2,0),COLOR0088DD;
STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,1.7,0),COLOR0099EE;
STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,1.2,0),COLOR00AAFF;
STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,0.7,0),COLOR00CCFF;
STICKLINE(HJ_10>HJ_11,HJ_10,HJ_11,0.2,0),COLORYELLOW;
STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,3,0),COLOR990099;
STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,2.8,0),COLOR990088;
STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,2.5,0),COLOR990077;
STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,2.2,0),COLOR990066;
STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,1.7,0),COLOR990055;
STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,1.2,0),COLORBB00BB;
STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,0.7,0),COLORDD00DD;
STICKLINE(HJ_10<=HJ_11,HJ_10,HJ_11,0.2,0),COLORMAGENTA;
DRAWTEXT(HJ_6,78,5),COLORCYAN;
HJ_13:=10;
底部区域:20,COLORLIRED;
中轨:50,COLORYELLOW;
高位:80,COLORLIBLUE;
启动:EMA(0.382*REF(HJ_10,2)+0.618*HJ_10,6),COLORRED;
IF(启动>REF(启动,1),启动,DRAWNULL),COLORRED,LINETHICK4;
IF(启动<REF(启动,1),启动,DRAWNULL),COLORLIBLUE,LINETHICK2;
看股吧 公式 www.kanguba .com
[源码翻译]通达信公式动态翻译显示
HJ_1赋值:(收盘价-20日内最低价的最低值)/(20日内最高价的最高值-20日内最低价的最低值)*100
HJ_2赋值:HJ_1的3日[1日权重]移动平均的3日[1日权重]移动平均/28.57
HJ_3赋值:HJ_2的5日指数移动平均
HJ_4赋值:3*HJ_2-2*HJ_3
HJ_5赋值:HJ_4上穿HJ_2 AND HJ_2<2.1 AND 收阳线
当满足条件HJ_5时,在82和0位置之间画柱状线,宽度为0.005,0不为0则画空心柱.,画红色
当满足条件HJ_5>0时,在85位置画13号图标,画黄色
HJ_6赋值:HJ_4上穿HJ_2 AND HJ_2<2.1 AND 收阳线
HJ_7赋值:(2*收盘价+最高价+最低价)/4
HJ_8赋值:13日内最低价的最低值
HJ_9赋值:13日内最高价的最高值
HJ_10赋值:(HJ_7-HJ_8)/(HJ_9-HJ_8)*100的13日指数移动平均
HJ_11赋值:0.667*1日前的HJ_10+0.333*HJ_10的2日指数移动平均
HJ_12赋值:HJ_10
当满足条件HJ_10>HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0055AA
当满足条件HJ_10>HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为2.8,0不为0则画空心柱.,COLOR0066BB
当满足条件HJ_10>HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,COLOR0077CC
当满足条件HJ_10>HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为2.2,0不为0则画空心柱.,COLOR0088DD
当满足条件HJ_10>HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为1.7,0不为0则画空心柱.,COLOR0099EE
当满足条件HJ_10>HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为1.2,0不为0则画空心柱.,COLOR00AAFF
当满足条件HJ_10>HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLOR00CCFF
当满足条件HJ_10>HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为0.2,0不为0则画空心柱.,画黄色
当满足条件HJ_10<=HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR990099
当满足条件HJ_10<=HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为2.8,0不为0则画空心柱.,COLOR990088
当满足条件HJ_10<=HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为2.5,0不为0则画空心柱.,COLOR990077
当满足条件HJ_10<=HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为2.2,0不为0则画空心柱.,COLOR990066
当满足条件HJ_10<=HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为1.7,0不为0则画空心柱.,COLOR990055
当满足条件HJ_10<=HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为1.2,0不为0则画空心柱.,COLORBB00BB
当满足条件HJ_10<=HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLORDD00DD
当满足条件HJ_10<=HJ_11时,在HJ_10和HJ_11位置之间画柱状线,宽度为0.2,0不为0则画空心柱.,画洋红色
当满足条件HJ_6时,在78位置书写文字,画青色
HJ_13赋值:10
输出底部区域:20,画淡红色
输出中轨:50,画黄色
输出高位:80,画淡蓝色
输出启动:0.382*2日前的HJ_10+0.618*HJ_10的6日指数移动平均,画红色
如果启动>1日前的启动,返回启动,否则返回无效数,画红色,线宽为4
如果启动<1日前的启动,返回启动,否则返回无效数,画淡蓝色,线宽为2
其它股票公式列表