同花顺多空趋势副图指标
-
相关简介:同花顺多空趋势副图指标 源码 //DRAWGBK(DATE900101,STRIP(RGB(0,150,130),RGB(0,0,0),0)); Var1:=EMA(MA(IF(CO,(C-O)*V,IF(CO,(C-O)*V,0)),5),1); Var2:=EMA(MA(IF(CREF(C,1),(C-REF(C,1))*V,IF(CREF(C,1),(C-REF(C,1))*V,0)),5),1); Var3:=EMA(MA(IF(OREF(C,1),(O-REF(C,1))*V,IF(O
-
文章来源:股海网作者:股海网发布时间:2016-05-28浏览次数:
同花顺多空趋势副图指标
源码
//DRAWGBK(DATE>900101,STRIP(RGB(0,150,130),RGB(0,0,0),0));
Var1:=EMA(MA(IF(C>O,(C-O)*V,IF(C<O,(C-O)*V,0)),5),1);
Var2:=EMA(MA(IF(C>REF(C,1),(C-REF(C,1))*V,IF(C<REF(C,1),(C-REF(C,1))*V,0)),5),1);
Var3:=EMA(MA(IF(O>REF(C,1),(O-REF(C,1))*V,IF(O<REF(C,1),(O-REF(C,1))*V,0)),5),1);
Var4:=EMA(MA(IF(C<O,(O-C)*V,IF(C>O,(O-C)*V,0)),10),1);
Var5:=EMA(MA(IF(C<REF(C,1),(REF(C,1)-C)*V,IF(C>REF(C,1),(REF(C,1)-C)*V,0)),10),1);
Var6:=EMA(MA(IF(O<REF(C,1),(REF(C,1)-O)*V,IF(O>REF(C,1),(REF(C,1)-O)*VOL,0)),10),1);
Var7:=C>O;
Var8:=C>REF(C,1);
Var9:=O>REF(C,1);
多头:(Var1+Var2+Var3)/3/100,colorwhite;
空头:(Var4+Var5+Var6)/3/100,coloryellow ;
一次警报:EMA(EMA((Var1+Var2+Var3)/3-(Var4+Var5+Var6)/3,5),5)*1/100,colormagenta;
二次警报:EMA((COUNT(Var8,12)/12+COUNT(Var7,12)/12+COUNT(Var9,12)/12)/3*MA(多头,5)*2*1.1,2),colorblue;
STICKLINE(空头>0,0,空头,1,0),colorcyan;
STICKLINE(空头<0,0,空头,1,0),colorred;
x1:=EMA(EMA((Var1+Var2+Var3)/3-(Var4+Var5+Var6)/3,5),5)*1/100;
x2:=EMA((COUNT(Var8,12)/12+COUNT(Var7,12)/12+COUNT(Var9,12)/12)/5*MA(多头,5.3)*2*6.8,5);
x3:=EMA((COUNT(Var8,22)/22+COUNT(Var7,22)/22+COUNT(Var9,22)/22)/18*MA(多头,8)*5*1.8,5);
DRAWTEXT(CROSS(x1,0),0,'★'),COLORFF9999,linethick2;
DRAWTEXT(CROSS(x2,0),0,'★'),colorff99ff,linethick2;
DRAWTEXT(CROSS(x3,0),0,'★<'),colorgreen,linethick2;