RSI短线王探讨通达信指标公式源码
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
RSI 短线王探讨通达信指标公式源码
{RSI 短线王探讨}HIGHN:=6;
LC :=REF(C,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC), 6,1)*100,COLORWHITE,LINETHICK1;
RSI2:SMA(MAX(CLOSE-LC,0),20,1)/SMA(ABS(CLOSE-LC) ,20,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),80,1)/SMA(ABS(CLOSE-LC) ,80,1)*100;
上翘:IF( RSI1>80,
RSI1,DRAWNULL),COLORRED,LINETHICK2;
LOWN:=HIGHN;
QY:=BACKSET(AA,HIGHN+1);
AA:=REF(RSI1,HIGHN)=HHV(RSI1,2*HIGHN+1);
CC:=FILTER(QY ,HIGHN) AND RSI1=HHV(RSI1,HIGHN+1); DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(RSI1,DDD),RSI1);{ 顶部} DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
AA1:=REF(RSI1,LOWN)=LLV(RSI1,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND
RSI1=LLV(RSI1,LOWN+1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(RSI1,DD1),RSI1);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:DRAWLINE(CURRBARSC0UNT=DDCS2,RSI1,CURRB ARSCOUNT=DDCS1,RSI1,1)COLORLIGREEN,LINETHICK 1;
低点支撑2:
DRAWLINE(CURRBARSCOUNT=DDCS1,RSI1,ISLASTBA
R,REF(RSI1,DDCS1-1),1),COLORMAGENTA,POINTDOT,;
低点支撑3:
DRAWLINE(CURRBARSCOUNT=DDCS2,RSI1,ISLASTBA
R,REF(RSI1,DDCS2-1),1),COLORCYAN,POINTDOT;