小牛寻底通达信副图指标
VAR1:=((C-MA(C,6))/(MA(C,6)))*(100);VAR2:=((C-MA(C,12))/(MA(C,12)))*(100);VAR3:=((C-MA(C,24))/(MA(C,24)))*(100);VAR4:=(VAR1+(2)*(VAR2)+(3)*(VAR3))/6;VAR5:=MA(VAR4,3);XG:EVERY(VAR5<=(-10),7) AND DYNAINFO(4)>0 AND C>1*REF(C,1),COLORRED,NODRAW;DRAWTEXT(XG,99,' '),COLORRED;DRAWTEXT(XG,92,'★'),COLORRED;STICKLINE(VAR5<=(-8),15,5,2,0),COLORFF0000;STICKLINE(VAR5<=(-8),25,15,2,0),COLORFFFFFF;STICKLINE(VAR5<=(-10),15,0,2,0),COLOR00CCFF;STICKLINE(VAR5<=(-8),50,25,3.5,0),COLOR9933FF;STICKLINE(VAR5<=(-10),20,10,2,0),COLORFF3399;STICKLINE(VAR5<=(-10),60,20,2,0),COLOR008000;STICKLINE(VAR5<=(-10),80,60,2,0),COLOR0000FF;20,POINTDOT,COLORF00FF0;50,POINTDOT,COLORGREEN;80,POINTDOT,COLORWHITE;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:((C-C的6日简单移动平均)/(C的6日简单移动平均))*(100)
VAR2赋值:((C-C的12日简单移动平均)/(C的12日简单移动平均))*(100)
VAR3赋值:((C-C的24日简单移动平均)/(C的24日简单移动平均))*(100)
VAR4赋值:(VAR1+(2)*(VAR2)+(3)*(VAR3))/6
VAR5赋值:VAR4的3日简单移动平均
输出XG:EVERY(VAR5<=(-10),7) AND 开盘价>0 AND C>1*1日前的C,画红色,NODRAW
当满足条件XG时,在99和' '位置书写文字
当满足条件XG时,在92和'★'位置书写文字
STICKLINE(VAR5<=(-8),15,5,2,0),COLORFF0000
STICKLINE(VAR5<=(-8),25,15,2,0),COLORFFFFFF
STICKLINE(VAR5<=(-10),15,0,2,0),COLOR00CCFF
STICKLINE(VAR5<=(-8),50,25,3.5,0),COLOR9933FF
STICKLINE(VAR5<=(-10),20,10,2,0),COLORFF3399
STICKLINE(VAR5<=(-10),60,20,2,0),COLOR008000
STICKLINE(VAR5<=(-10),80,60,2,0),COLOR0000FF
20,POINTDOT,COLORF00FF0
50,POINTDOT,画绿色
80,POINTDOT,画白色