通达信非常准的长短波段副图公式
已经改成通达信版了,可以用在日线以及分时周期(包括60分钟,30分钟),周线,月线中
源码
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短A:SMA(RSV,3,1),COLORRED,LINETHICK1;
短B:SMA(短A,3,1),COLORYELLOW,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
中A:SMA(RSV1,5,1),COLORFFFF00,LINETHICK2;
中B:SMA(中A,10,1),COLORGREEN,LINETHICK2;
STICKLINE(中A>中B,中A,中B,2,0),COLOR00FF00;
STICKLINE(中A>中B,中A,中B-1*(中B-中A)/6,2,0),COLOR33FF00;
STICKLINE(中A>中B,中A,中B-2*(中B-中A)/6,2,0),COLOR66FF00;
STICKLINE(中A>中B,中A,中B-3*(中B-中A)/6,2,0),COLOR99FF00;
STICKLINE(中A>中B,中A,中B-4*(中B-中A)/6,2,0),COLORCCFF00;
STICKLINE(中A>中B,中A,中B-5*(中B-中A)/6,2,0),COLORFFFF00;
STICKLINE(中A<=中B,中A,中B,2,0),COLOR00FF00;
STICKLINE(中A<=中B,中A,中B-1*(中B-中A)/6,2,0),COLOR33FF00;
STICKLINE(中A<=中B,中A,中B-2*(中B-中A)/6,2,0),COLOR66FF00;
STICKLINE(中A<=中B,中A,中B-3*(中B-中A)/6,2,0),COLOR99FF00;
STICKLINE(中A<=中B,中A,中B-4*(中B-中A)/6,2,0),COLORCCFF00;
STICKLINE(中A<=中B,中A,中B-5*(中B-中A)/6,2,0),COLORFFFF00;
STICKLINE(短A>短B,短A,短B,1,0),COLOR0000FF;
STICKLINE(短A>短B,短A-1*(短A-短B)/6,短B,1,0),COLOR0033FF;
STICKLINE(短A>短B,短A-2*(短A-短B)/6,短B,1,0),COLOR0066FF;
STICKLINE(短A>短B,短A-3*(短A-短B)/6,短B,1,0),COLOR0099FF;
STICKLINE(短A>短B,短A-4*(短A-短B)/6,短B,1,0),COLOR00CCFF;
STICKLINE(短A>短B,短A-5*(短A-短B)/6,短B,1,0),COLOR00FFFF;
STICKLINE(短A<=短B,短A,短B,1,0),COLOR00FFFF;
STICKLINE(短A<=短B,短A,短B-1*(短B-短A)/6,1,0),COLOR00CCFF;
STICKLINE(短A<=短B,短A,短B-2*(短B-短A)/6,1,0),COLOR0099FF;
STICKLINE(短A<=短B,短A,短B-3*(短B-短A)/6,1,0),COLOR0066FF;
STICKLINE(短A<=短B,短A,短B-4*(短B-短A)/6,1,0),COLOR0033FF;
STICKLINE(短A<=短B,短A,短B-5*(短B-短A)/6,1,0),COLOR0000FF;
超卖预警:15,POINTDOT,COLORRED;超买预警:85,POINTDOT,COLORFFFF00;
652411337.jpg
|