源码

{技术指标公式: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:=("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;


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。