飞狐RSI+SW3副图指标
-
相关简介:飞狐RSI+SW3副图指标 源码 {技术指标公式:RSI+SW3 (成功率83.7%) 缺省周期:日线} {参数描述: N(2,20,4)MR(15,50,30)MC(50,100,62)} N:=4;MR:=30;MC:=62; Var1:=(CLOSE-COST(50))/COST(50)*100; RSI: MA(RSI.RSI1(6,12,24),10)-50; Var2:=MA(Var1,2); Var3:=MA(Var1,34); Var4:=(PSY40 AND LWR.LWR17
-
文章来源:股海网作者:股海网发布时间:2016-06-13浏览次数:
飞狐RSI+SW3副图指标
源码
{技术指标公式:RSI+SW3 (成功率83.7%)
{参数描述: N(2,20,4)MR(15,50,30)MC(50,100,62)}
Var1:=(CLOSE-COST(50))/COST(50)*100;
RSI: MA("RSI.RSI1"(6,12,24),10)-50;
Var2:=MA(Var1,2);
Var3:=MA(Var1,34);
Var4:=("PSY"<40 AND "LW&R.LWR1">70 AND "RSI.RSI1">16 AND "LW&R.LWR2"+0.8>"LW&R.LWR1")*10;
SW3: Var2-Var3, COLORSTICK;
Var5:="BIAS.BIAS3"(6,12,24);
BB: (RSI<-10 AND SW3<-4 AND Var1<-5 AND RSI>REF(RSI,1) AND Var4 AND Var5<-9)*40-20;
DD: (RSI>10 AND SW3>8 AND SW3<REF(SW3,1))*20-20;
AA: DRAWICON(BB=20,BB,1);
CC: DRAWICON(DD=0,DD=-20,2);
Var6:=REF(CLOSE,1);
Var7:=SMA(MAX(CLOSE-Var6,0),12,1)/SMA(ABS(CLOSE-Var6),12,1)*100;
Var8:=MA(Var7,N);
VAR9:IF(CROSS(Var8,REF(Var8,2)) AND Var8<MR,2,IF(CROSS(REF(Var8,2),Var8) AND Var8>MC,-2,0));
DRAWTEXT(VAR9>1,HIGH,'买入'), , COLORYELLOW;
DRAWTEXT(VAR9<-1,LOW,'卖出'), , COLORGREEN;