通达信小散户必备源码#指标##股票#RS...

通达信小散户必备源码
#指标##股票#
RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));
VAR21:=SMA(RSVA2,9,1)+100;
VAR1111:=SMA(RSVA1,3,1);
VAR51:=SMA(VAR1111,3,1)+100;
顶底线:=VAR51-VAR21+50;
VAR2222:=LLV(LOW,33);
VAR3333:=HHV(HIGH,21);
VAR4444:=EMA((CLOSE-VAR2222)/(VAR3333-VAR2222)*100,10)*-1+100;
趋势:=100-EMA(0.191*REF(VAR4444,1)+0.809*VAR4444,1);
STICKLINE(C,100,90,4,0),COLORFFCC33;
STICKLINE(C,90,80,4,0),COLORFF9933;
STICKLINE(顶底线>REF(顶底线,1),20,80,4,0),COLORYELLOW;
STICKLINE(顶底线<REF(顶底线,1),20,80,4,0),COLORYELLOW;
STICKLINE((趋势>REF(趋势,1) AND 顶底线<REF(顶底线,1)),20,80,4,0),COLORYELLOW;
STICKLINE((趋势<REF(趋势,1) AND 顶底线>REF(顶底线,1)),20,80,4,0),COLORYELLOW;
STICKLINE(C,20,10,4,0),COLORFF6633;
STICKLINE(C,10,0,4,0),COLORFF3333;
辟地:10,COLORWHITE;
开天:90,COLORWHITE;
趋势线:100-EMA(0.191*REF(VAR4444,1)+0.809*VAR4444,1),LINETHICK2,COLORBLUE;
当前安全度:=100-EMA(0.191*REF(VAR4444,1)+0.809*VAR4444,1),CIRCLEDOT,LINETHICK2,COLORRED;
DRAWTEXT(CURRBARSCOUNT=6,5,'高安全区'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,15,'安全区'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,85,'风险区'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=6,95,'高风险区'),COLORWHITE;
VAR11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR22:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR33:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR44:=(VAR11+2*VAR22+3*VAR33)/6;
VAR55:=MA(VAR44,3)-STD(VAR44,3);
乖离6:=VAR55<-6 AND VAR55>-9;
VAR111:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR222:=SMA(ABS(LOW-VAR111),13,1)/SMA(MAX(LOW-VAR111,0),10,1);
VAR333:=EMA(VAR222,10);
VAR444:=LLV(LOW,33);
VAR555:=EMA(IF(LOW<=VAR444,VAR333,0),3);
XG99:VAR555>REF(VAR555,1);
STICKLINE(乖离6 OR XG99 ,0,20,3,0),COLORFAE6E6;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);

(0)

相关推荐