黄金眼指标 同花顺、大智慧、通达信 源码通用
上开:=O;
上收:=C;
上高:=H;
上低:=L;
JJ:=(上开+上高+上低)/3;
A:=EMA(JJ,4);
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,'逃顶'),coloryellow ;
DRAWTEXT(CROSS(RSI,11) , LOW-0.05,' 低吸'),colorred ;
DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND A>REF(A,1),VA1*0.97,'★买'),COLOR00FF00;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★绝佳') ,LINETHICK2,colorred;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★卖');
箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,'★跟'),COLOR00FFFF;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
DRAWTEXT(CROSS(X2,X3),L-0.09,'★'),coloryellow;
S:=EMA((CLOSE-LLV(CLOSE,21))/(HHV(CLOSE,21)-LLV(CLOSE,21)),1);
庄:=IF(S>0,MA(S,1),0);
DRAWTEXT(CROSS(庄,0.001),L-0.09,'☆');
{VAR326:=IF(CLOSE>REF(CLOSE,1),88,0);
VAR327:=IF(CLOSE/REF(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND VAR326>0, 91, 0);
STICKLINE(VAR327>90,L*0.80,L*0.95,4,0),coloryellow;
DRAWTEXT(VAR327>90,LOW*0.79,'追涨'),coloryellow;};
未来函数检测结果如下:
该公式包含未来函数:ZIG
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
上开赋值:O
上收赋值:C
上高赋值:H
上低赋值:L
JJ赋值:(上开+上高+上低)/3
A赋值:JJ的4日指数移动平均
VA1:=上收的8日指数移动平均
VA2:=上收的20日指数移动平均
LC赋值:1日前的CLOSE
RSI赋值:SMA(CLOSE-LC和0较大值,6,1)/SMA(CLOSE-LC的绝对值,6,1)*100
DRAWTEXT(84上穿RSI , 最高价,'逃顶'),画黄色
DRAWTEXT(RSI上穿11 , 最低价-0.05,' 低吸'),画红色
DRAWTEXT(VA1上穿VA2AND(C>=O)AND A>1日前的A,VA1*0.97,'★买'),COLOR00FF00
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),最低价*0.978,'★绝佳') , 线宽为2,画红色
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),最高价*1.02,'★卖')
输出箱顶:MA(REF(30日内上收最高值,1),2),COLOR0000FF, 线宽为2
输出箱底:MA(REF(30日内上收最低值,1),2),COLOR00FF00, 线宽为2
买线赋值:C的2日指数移动平均
卖线赋值:EMA(SLOPE(C,21)*20+C,42)
DRAWTEXT(买线上穿卖线AND 箱顶>=1日前的箱顶,最低价*0.95,'★跟'),COLOR00FFFF
X1赋值:(C+L+H)/3
X2赋值:X1的6日指数移动平均
X3赋值:X2的5日指数移动平均
DRAWTEXT(X2上穿X3,L-0.09,'★'),画黄色
S赋值:EMA((CLOSE-21日内CLOSE最低值)/(21日内CLOSE最高值-21日内CLOSE最低值),1)
庄赋值:IF(S>0,S的1日简单移动平均,0)
DRAWTEXT(庄上穿0.001,L-0.09,'☆')
{VAR326:=IF(CLOSE>1日前的CLOSE,88,0)
VAR327:=IF(CLOSE/1日前的CLOSE>1.050 AND 最高价/CLOSE<1.010 AND VAR326>0, 91, 0)
当满足条件VAR327>90时,在L*0.80和L*0.95之间画柱状线
当满足条件VAR327>90时,在最低价*0.79和'追涨'位置书写文字
}