通达信金色短线指标
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;
IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED;
WLT1:=EMA(C,3);
WLT2:=EMA(C,5);
WLT3:=EMA(WLT2,5);
DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(0,0,220));
X1:=(C+L+H)/3;
BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;
EMA3:=EMA(C,3);
DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10),
LOW*0.99,'★∠45'),COLORFFFFFF;
TT:=FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10);
MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)<REF(WLT1,2) ;
GG1:=CROSS(WLT1,WLT2);{股票指标网}
超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2;
超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2;
TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;
DD:=TEND>REF(TEND,1) AND REF(TEND,1) >REF(TEND,2);
GG2:=CROSS(WLT1,TEND);
HRY1:=LLV(LOW,55);
HRY2:=HHV(HIGH,21);
GG3:=C<HRY2*0.8 AND C>HRY33;
JJ1:=C<HRY1*1.62;
TJ1:=GG1;
TJ2:=GG2 AND JJ1;
TJ3:=GG1 AND GG3 ;
XG:=TJ1 OR TJ3 ;
DRAWICON(XG,LOW*0.97,23);
STICKLINE(XG,C,O,4,0),COLOR009999;
STICKLINE(XG,C,O,3,0),COLOR00BBBB;
STICKLINE(XG,C,O,1.5,0),COLOR00DDDD;
STICKLINE(XG,C,O,0.3,0),COLOR00FFFF;
SAL1:=HIGH>超买;
SAL2:=C<O AND (O-C)/C>0.03;
QQ:= C<WLT2;
QQ1:=CROSS(WLT2,WLT1);
QQ3:=HIGH>HRY1*1.38;
SAL01:= SAL1 AND SAL2 AND QQ AND QQ3;
SAL02:=QQ3 AND QQ1;
SAL:=SAL01 OR SAL02;
DRAWICON(SAL,HIGH*1.03,15);
STICKLINE(SAL,C,O,4,0),COLOR009900;
STICKLINE(SAL,C,O,3,0),COLOR00BB00;
STICKLINE(SAL,C,O,1.5,0),COLOR00DD00;
STICKLINE(SAL,C,O,0.3,0),COLOR00FF00;
GET:ZIG(3,5),COLORFFFFFF;
PL5:=ZIG(3,5);
EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
PL10:=ZIG(3,10);
EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
PL20:=ZIG(3,20);
EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
PL40:=ZIG(3,40);
走强1:=BARSLAST(PL5<REF(PL5,1));
走弱1:=BARSLAST(PL5>REF(PL5,1));
走强2:=BARSLAST(PL10<REF(PL10,1));
走弱2:=BARSLAST(PL10>REF(PL10,1));
走强3:=BARSLAST(PL20<REF(PL20,1));
走弱3:=BARSLAST(PL20>REF(PL20,1));
ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF;
DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00;
DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)
AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'④'),LINETHICK3,COLOR00FFFF;
WLT11:=EN1 AND DTJZ5=1;
WLT22:=EN2 AND ZTJZ5=1;
WLT33:=WLT11 OR WLT22;
WLT01:=EN2 AND DTJZ10=1;
WLT02:=EN3 AND ZTJZ10=1;
WLT03:=WLT01 OR WLT02;
WLT:=WLT33 AND WLT03;
DRAWTEXT(WLT,LOW*0.86,'买底'),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
HR赋值:55日内最高价最高值
HRY:=55日内最低价最低值
HRY11:=HR*HRY
HRY33:SQRT(HRY11),画绿色, 线宽为2
IF(C>HRY33 AND HRY33 >=1日前的HRY33 , HRY33 ,DRAWNULL), 线宽为2,画红色
WLT1赋值:C的3日指数移动平均
WLT2赋值:C的5日指数移动平均
WLT3赋值:WLT2的5日指数移动平均
DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(0,0,220))
X1赋值:(C+L+H)/3
BB5赋值:ATAN(X1的7日指数移动平均-1日前的X1的7日指数移动平均)*3.1416*10
EMA3赋值:C的3日指数移动平均
DRAWTEXT(FILTER(BB5>1 AND X1的7日指数移动平均>1日前的X1的7日指数移动平均,10),
最低价*0.99,'★∠45'),COLORFFFFFF
TT赋值:FILTER(BB5>1 AND X1的7日指数移动平均>1日前的X1的7日指数移动平均,10)
MM赋值:WLT1>1日前的WLT1 AND 1日前的WLT1<2日前的WLT1
GG1赋值:WLT1上穿WLT2
如果当前流通股本=0返回1.04否则返回1.1
如果当前流通股本=0返回0.95否则返回0.9
输出
TEND:EMA(((SLOPE(收盘价,21) * 20) + 收盘价),42),POINTDOT,COLORFF00FF,LINETHICK4
DD赋值:TEND>1日前的TEND AND 1日前的TEND >2日前的TEND
GG2赋值:WLT1上穿TEND
HRY1:=55日内最低价最低值
HRY2:=21日内最高价最高值
GG3赋值:CHRY33
JJ1赋值:C
TJ1赋值:GG1
TJ2赋值:GG2 AND JJ1
TJ3赋值:GG1 AND GG3
XG赋值:TJ1 OR TJ3
当满足条件XG时,在最低价*0.97和23之间画图标
当满足条件XG时,在C和O之间画柱状线
当满足条件XG时,在C和O之间画柱状线
当满足条件XG时,在C和O之间画柱状线
当满足条件XG时,在C和O之间画柱状线
SAL1赋值:最高价>超买
SAL2赋值:C0.03
QQ赋值: C
QQ1:=WLT2上穿WLT1
QQ3:=最高价>HRY1*1.38
SAL01赋值: SAL1 AND SAL2 AND QQ AND QQ3
SAL02赋值:QQ3 AND QQ1
SAL赋值:SAL01 OR SAL02
当满足条件SAL时,在最高价*1.03和15之间画图标
当满足条件SAL时,在C和O之间画柱状线
当满足条件SAL时,在C和O之间画柱状线
当满足条件SAL时,在C和O之间画柱状线
当满足条件SAL时,在C和O之间画柱状线
输出
GET:ZIG(3,5),COLORFFFFFF
PL5赋值:ZIG(3,5)
EN1赋值:ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)
EX1赋值:ZIG(3,5)[=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)]
PL10赋值:ZIG(3,10)
EN2赋值:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3)
EX2赋值:ZIG(3,10)[=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3)]
PL20赋值:ZIG(3,20)
EN3赋值:ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3)
EX3赋值:ZIG(3,20)[=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3)]
PL40赋值:ZIG(3,40)
走强1赋值:上次PL5<1日前的PL5距今天数
走弱1赋值:上次PL5>1日前的PL5距今天数
走强2赋值:上次PL10<1日前的PL10距今天数
走弱2赋值:上次PL10>1日前的PL10距今天数
走强3赋值:上次PL20<1日前的PL20距今天数
走弱3赋值:上次PL20>1日前的PL20距今天数
ZTJZ5赋值:IF(PL10>1日前的PL10,统计走强2日满足EN1的天数,0)
ZTJD5赋值:IF(PL10>1日前的PL10,统计走强2日满足EX1的天数,0)
DTJZ5赋值:IF(PL10<1日前的PL10,统计走弱2日满足EN1的天数,0)
DTJD5赋值:IF(PL10<1日前的PL10,统计走弱2日满足EX1的天数,0)
ZTJZ10赋值:IF(PL20>1日前的PL20,统计走强3日满足EN2的天数,0)
ZTJD10赋值:IF(PL20>1日前的PL20,统计走强3日满足EX2的天数,0)
DTJZ10赋值:IF(PL20<1日前的PL20,统计走弱3日满足EN2的天数,0)
DTJD10赋值:IF(PL20<1日前的PL20,统计走弱3日满足EX2的天数,0)
DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00
DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF
DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF
DRAWTEXT(EX1 AND PL10>1日前的PL10 AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF
DRAWTEXT(EN1 AND PL10>1日前的PL10 AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF
DRAWTEXT(EX1 AND PL10>1日前的PL10 AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF
DRAWTEXT(EN1 AND PL10>1日前的PL10 AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF
DRAWTEXT(EX2 AND PL20>1日前的PL20 AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF
当满足条件EN2 AND DTJZ10=1时,在L*0.93和'Ⅰ'位置书写文字
当满足条件EX2 AND DTJD10=2时,在H*1.05和'Ⅱ'位置书写文字
当满足条件EN3 AND ZTJZ10=1时,在L*0.93和'Ⅲ'位置书写文字
DRAWTEXT(EX2 AND PL20>1日前的PL20 AND ZTJD10=1,H*1.03,'①'), 线宽为3,COLOR00FFFF
DRAWTEXT(EN2 AND PL20>1日前的PL20 AND ZTJZ10=2,L*0.95,'②'), 线宽为3,COLOR00FFFF
DRAWTEXT(EX2 AND PL20>1日前的PL20 AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)
AND EX2,H*1.03,'③'), 线宽为3,COLOR00FFFF
DRAWTEXT(EN2 AND PL20>1日前的PL20 AND ZTJZ10=3,L*0.95,'④'), 线宽为3,COLOR00FFFF
WLT11:=EN1 AND DTJZ5=1
WLT22:=EN2 AND ZTJZ5=1
WLT33:=WLT11 OR WLT22
WLT01赋值:EN2 AND DTJZ10=1
WLT02赋值:EN3 AND ZTJZ10=1
WLT03赋值:WLT01 OR WLT02
WLT赋值:WLT33 AND WLT03
当满足条件WLT时,在最低价*0.86和'买底'位置书写文字