《RSI短線王探討通達(dá)信指標(biāo)公式源碼》由會員分享,可在線閱讀,更多相關(guān)《RSI短線王探討通達(dá)信指標(biāo)公式源碼(7頁珍藏版)》請在裝配圖網(wǎng)上搜索。
1、RSI短線王探討通達(dá)信指標(biāo)公式源碼
{RSI短線王探討}HIGHN:=6;
LC:二REF(C,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,D/SMA(ABS(CLOSE-LC),6,
1)*100,COLORWHITE,LINETHICK1;
RSI2:SMA(MAX(CLOSE-LC,0),20,D/SMA(ABS(CLOSE-
LC),20,1)*100;
RSI3:SMA(MAX(CLOSE-LC,0),80,D/SMA(ABS(CLOSE-
LC),80,1)*100;
上翹:IF(RSID80,
RSI1,DRAWNULL),COLORRE
2、D,LINETHICK2;
LOWN:=HIGHN;
AA:二REF(RSH,HIGHN)=HHV(RSI1,2*HIGHN+1);
QY:二BACKSET(AA,HIGHN+1);
CC:XFILTER(QY,HIGHN)ANDRSI1=HHV(RSII,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
3、+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSC0UNT>GDCS2,0,1);
AA1:=REF(RS11,LOWN)=LLV(RS11,2*L0WN+l);
QY1:=BACKSET(AA1,L0WN+1);
CC1:=FILTER(QY1,LOWN)AND
RSI>LLV(RSII,LOWN+1);
DD1:=BARSLAST(CC1);
DDTS:=IF
4、(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(CURREARSCOUNT二DDCS2,RSI1,CURRB
ARSCOUNTXDDCS1,RSI1,DCOLORLIGREEN,LINETHICK1;低
點支撐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;