《股票-通达信RSI战神抄底逃顶指标公式.docx》由会员分享,可在线阅读,更多相关《股票-通达信RSI战神抄底逃顶指标公式.docx(6页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、通达信RSI战神抄底逃顶指标公式_正点财经LC:=REF(CLOSE,1);RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORWHITE;AA:=REF(RSI1,20)=HHV(RSI1,2*20+1);QY:=BACKSET(AA,20+1);CC:=FILTER(QY,20)ANDRSI1=HHV(RSI1,20+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);GDCS1:=CONST(DI
2、NGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);AA1:=REF(RSI1,20)=LLV(RSI1,2*20+1);QY1:=BACKSET(AA1,20+1);CC1:=FILTER(QY1,20)ANDRSI1=LLV(RSI1,20+1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CON
3、ST(DDTS2);A1:=REF(RSI1,5)=HHV(RSI1,2*5+1);B1:=FILTER(A1,5);C1:=BACKSET(B1,5+1);D1:=FILTER(C1,5);A2:=REF(RSI1,5)=LLV(RSI1,2*5+1);B2:=FILTER(A2,5);C2:=BACKSET(B2,5+1);D2:=FILTER(C2,5);R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);S11:=R11REF(R11,1);T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);U11:=T11REF(T11,1);MI
4、D:=MA(RSI1,20);UPPER:=MID+2*STD(RSI1,20);LOWER:=MID-2*STD(RSI1,20);高:=REF(HHV(RSI1,360),1);低:=REF(LLV(RSI1,240),1);BIAS1:=(C-MA(C,6)/MA(C,6)*100;BIAS2:=(C-MA(C,12)/MA(C,12)*100;BIAS3:=(C-MA(C,24)/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);前高:REF(RSI1,BARSLAST(D1),COLORFF00FF,NODRAW;
5、前低:REF(RSI1,BARSLAST(D2),COLOR00FF00,NODRAW;相对能量:(RSI1-前低)/(前高-前低)*100,COLORYELLOW,NODRAW;上轨:UPPER,COLOR993300;下轨:LOWER,COLOR993300;DRAWICON(CC,RSI1*1.03,2);DRAWICON(CC1,RSI1*0.97,1);高压:DRAWLINE(CURRBARSCOUNT=GDCS2,RSI1,CURRBARSCOUNT=GDCS1,RSI1,1)COLORBLUE,POINTDOT,LINETHICK4;低支:DRAWLINE(CURRBARSCOU
6、NT=DDCS2,RSI1,CURRBARSCOUNT=DDCS1,RSI1,1)COLORRED,POINTDOT,LINETHICK4;阻力:DRAWLINE(D1,RSI1,S11,RSI1,1),COLORYELLOW;支撑:DRAWLINE(D2,RSI1,U11,RSI1,1),COLOR00FF00;DRAWTEXT(CROSS(RSI1,LOWER),LOWER,抄底),COLOR00FF00;DRAWTEXT(CROSS(LOWER,RSI1),LOWER,出),COLOR00FF00;DRAWTEXT(CROSS(RSI1,高),MID,年高),COLORYELLOW;DR
7、AWTEXT(CROSS(低,RSI1),MID,年低),COLORYELLOW;DRAWTEXT(CROSS(UPPER,RSI1),UPPER,逃顶),COLORYELLOW;DRAWTEXT(CROSS(RSI1,UPPER),UPPER,),COLORYELLOW;VM:MA(RSI1,6),COLORFF00FF,NODRAW;DRAWTEXT(ISLASTBARANDRSI1REF(RSI1,1),VM,进),COLORDD00FF;DRAWTEXT(ISLASTBARANDRSI1REF(RSI1,1),VM,出),COLORCCEE00;通达信RSI战神抄底逃顶指标公式实例图解:通达信RSI战神抄底逃顶指标公式