通达信【齐心协力】副图指标 看清拐点赚金银 用法详解
VAR1:=((C-MA(C,6))/MA(C,6)*100+(C-MA(C,24))/MA(C,24)*100+(C-MA(C,32))/MA(C,32)*100)/3;
VAR2:=HHV(VAR1>20,10);
持币区域:VAR1,COLORFEDCBA;
持股区域:IF(VAR1>0,VAR1,0),COLORRED;
STICKLINE(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,0,3,0),COLORGREEN;
STICKLINE(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+5,0,7,0),COLOR00FF00;
STICKLINE(VAR2 AND CROSS((REF(H,1)+REF(L,1))/2,MA(C,20)+2*STD(C,20)),VAR1+10,0,4,0);
STICKLINE(VAR2 AND FILTER(VAR1<REF(VAR1,1),6) AND CROSS(MA(C,5),MA(C,2)),VAR1+6,0,3,0);
STICKLINE(VAR1<-9 AND VAR1>REF(VAR1,1),VAR1-2,0,3,0),COLORRED;
STICKLINE(VAR1<-20 AND FILTER(VAR1>REF(VAR1,1),5),VAR1-5,0,7,0),COLORYELLOW;
买入准备:VAR1<-9 AND VAR1>REF(VAR1,1),COLORWHITE;
DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,'短顶'),COLOR00FF00;
DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+5,'大顶'),COLORFFFF00;
DRAWTEXT(VAR2 AND CROSS((REF(H,1)+REF(L,1))/2,MA(C,20)+2*STD(C,20)),VAR1+10,'危险'),COLOR00FFFF;
DRAWTEXT(VAR2 AND FILTER(VAR1<REF(VAR1,1),6) AND CROSS(MA(C,5),MA(C,2)),VAR1+6,'注意止损'),COLORFF00FF;
DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),VAR1-2,'短底'),,COLOR0000FF;
DRAWTEXT(VAR1<-20 AND FILTER(VAR1>REF(VAR1,1),5),VAR1-5,'大底');
DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),1,'买入准备');
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:((C-C的6日简单移动平均)/C的6日简单移动平均*100+(C-C的24日简单移动平均)/C的24日简单移动平均*100+(C-C的32日简单移动平均)/C的32日简单移动平均*100)/3
VAR2赋值:10日内VAR1>20最高值
输出持币区域:VAR1,COLORFEDCBA
如果VAR1>0返回VAR1否则返回0
STICKLINE(VAR1>9 AND FILTER(VAR1<1日前的VAR1,5),VAR1+2,0,3,0),画绿色
STICKLINE(VAR1>20 AND FILTER(VAR1<1日前的VAR1,5),VAR1+5,0,7,0),COLOR00FF00
STICKLINE(VAR2 AND CROSS((1日前的H+1日前的L)/2,C的20日简单移动平均+2*C的20估算标准差),VAR1+10,0,4,0)
STICKLINE(VAR2 AND FILTER(VAR1<1日前的VAR1,6) AND CROSS(C的5日简单移动平均,C的2日简单移动平均),VAR1+6,0,3,0)
STICKLINE(VAR1<-9 AND VAR1>1日前的VAR1,VAR1-2,0,3,0),画红色
STICKLINE(VAR1<-20 AND FILTER(VAR1>1日前的VAR1,5),VAR1-5,0,7,0),画黄色
输出买入准备:VAR1<-9 AND VAR1>1日前的VAR1,画白色
DRAWTEXT(VAR1>9 AND FILTER(VAR1<1日前的VAR1,5),VAR1+2,'短顶'),COLOR00FF00
DRAWTEXT(VAR1>20 AND FILTER(VAR1<1日前的VAR1,5),VAR1+5,'大顶'),COLORFFFF00
DRAWTEXT(VAR2 AND CROSS((1日前的H+1日前的L)/2,C的20日简单移动平均+2*C的20估算标准差),VAR1+10,'危险'),COLOR00FFFF
DRAWTEXT(VAR2 AND FILTER(VAR1<1日前的VAR1,6) AND CROSS(C的5日简单移动平均,C的2日简单移动平均),VAR1+6,'注意止损'),COLORFF00FF
DRAWTEXT(FILTER(VAR1<-9 AND VAR1>1日前的VAR1,18),VAR1-2,'短底'),,COLOR0000FF
DRAWTEXT(VAR1<-20 AND FILTER(VAR1>1日前的VAR1,5),VAR1-5,'大底')
DRAWTEXT(FILTER(VAR1<-9 AND VAR1>1日前的VAR1,18),1,'买入准备')