通达信抄底专用!绝密出击 一招必中 主副图 源码附图
{主图源码如下:}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
VARC:=HIGH>LOW*1.0505;
HDLY1:=OPEN/HHV(CLOSE,30)<0.78 AND OPEN=LLV(OPEN,30);
HDLY2:=CLOSE>REF(CLOSE,1)*1.005;
HDLY:=HDLY1 AND HDLY2 AND COUNT(VARC,5)>1;
DRAWICON(HDLY,LOW*0.92,1);
DRAWTEXT(HDLY,LOW*0.82,'黄金底'),COLORYELLOW;
{副图源码如下:}
分段:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K2:=SMA(分段,4,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
BB1:=EMA(J2,4);
BB2:=REF(BB1,1);
STICKLINE((BB1 <= BB2),106,100,8,0),COLOR56F709;
STICKLINE((BB1 <= BB2),-1,0,8,0),COLOR2787F1;
STICKLINE((BB1 <= BB2),-2,-1,8,0),COLOR1B7AEF;
STICKLINE((BB1 <= BB2),-6,-2,8,0),COLOR0011E1;
STICKLINE((BB1 <= BB2),100,0,8,0),COLORC0C0C0;
STICKLINE((BB1 >=BB2 ),106,100,8,0 ),COLOR56F709;
STICKLINE((BB1 >=BB2 ),-1,0,8,0 ),COLOR2787F1;
STICKLINE((BB1 >=BB2 ),-2,-1,8,0 ),COLOR1B7AEF;
STICKLINE((BB1 >=BB2 ),-6,-2,8,0 ),COLOR0011E1;
STICKLINE((BB1 >=BB2 ),100,0,8,0 ),COLOR26C5F9;
S1:=MA((2*C+H+L)/4,5);
S2:=S1*(200-102)/100;
S3:=(1-7/100)*DMA(C,ABS((2*C+H+L)/4-MA(C,20))/MA(C,20));
S4:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
S5:=3*SMA(S4,3,1)-2*SMA(SMA(S4,3,1),3,1);
S6:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));
S7:=S2<S3&&S5>REF(S5,1)&&REF(S5,1)<REF(S5,2)&&S6<-100&&S6>REF(S6,1);
绝密出击:STICKLINE(S7,-2,80,2,0),COLOR0000FF;
DRAWICON(绝密出击,78,34);
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出{主图源码如下:}
MA1:收盘价的5日简单移动平均
输出MA2:收盘价的10日简单移动平均
输出MA3:收盘价的20日简单移动平均
输出MA4:收盘价的60日简单移动平均
VARC赋值:最高价>最低价*1.0505
HDLY1赋值:开盘价/30日内收盘价最高值<0.78 AND 开盘价=30日内开盘价最低值
HDLY2赋值:收盘价>1日前的收盘价*1.005
HDLY赋值:HDLY1 AND HDLY2 AND 统计5日满足VARC的天数>1
当满足条件HDLY时,在最低价*0.92和1之间画图标
当满足条件HDLY时,在最低价*0.82和'黄金底'位置书写文字
{副图源码如下:}
分段赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
分段的4日[1日权重]移动平均
K2的3日[1日权重]移动平均
J2赋值:3*K2-2*D2
BB1赋值:J2的4日指数移动平均
BB2赋值:1日前的BB1
STICKLINE((BB1 <= BB2),106,100,8,0),COLOR56F709
STICKLINE((BB1 <= BB2),-1,0,8,0),COLOR2787F1
STICKLINE((BB1 <= BB2),-2,-1,8,0),COLOR1B7AEF
STICKLINE((BB1 <= BB2),-6,-2,8,0),COLOR0011E1
STICKLINE((BB1 <= BB2),100,0,8,0),COLORC0C0C0
STICKLINE((BB1 >=BB2 ),106,100,8,0 ),COLOR56F709
STICKLINE((BB1 >=BB2 ),-1,0,8,0 ),COLOR2787F1
STICKLINE((BB1 >=BB2 ),-2,-1,8,0 ),COLOR1B7AEF
STICKLINE((BB1 >=BB2 ),-6,-2,8,0 ),COLOR0011E1
STICKLINE((BB1 >=BB2 ),100,0,8,0 ),COLOR26C5F9
S1赋值:MA((2*C+H+L)/4,5)
S2赋值:S1*(200-102)/100
S3赋值:(1-7/100)*DMA(C,(2*C+H+L的绝对值/4-MA(C,20))/MA(C,20))
S4赋值:(C-9日内L最低值)/(9日内H最高值-9日内L最低值)*100
S4的3日[1日权重]移动平均
S6赋值:((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14))
S7赋值:S21日前的S5&&1日前的S5<2日前的S5&&S6<-100&&S6>1日前的S6
当满足条件S7时,在-2和80之间画柱状线
当满足条件绝密出击时,在78和34之间画图标