压力线支撑线
源码
DRAWBAND(0,RGB(0,103,163),30,RGB(0,103,163));
DRAWBAND(30,RGB(26,108,145),50,RGB(26,108,145));
DRAWBAND(50,RGB(0,74,111),70,RGB(0,74,111));
DRAWBAND(70,RGB(0,45,66),80,RGB(0,45,66));
DRAWTEXT_FIX(1,0,0.6,0,'冬'),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.4,0,'春'),COLOR0066FF;
DRAWTEXT_FIX(1,0,0.2,0,'夏'),COLORFF00FF;
DRAWTEXT_FIX(1,0,0.05,0,'秋'),COLOR0000FF;
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),15,1)/SMA(ABS(CLOSE-LC),15,1)*100,LINETHICK2,COLOR000000;
30;
70;
STICKLINE(RSI<=30,RSI,30,5,0),COLOR0000BB;
STICKLINE(RSI>=70,RSI,70,5,0),COLORFFFFFF;
Q:=5;
AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);
BB:=FILTER(AA,Q);
CC:=BACKSET(BB,Q+1);
DD:=FILTER(CC,Q);
AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);
BBB:=FILTER(AAA,Q);
CCC:=BACKSET(BBB,Q+1);
DDD:=FILTER(CCC,Q);
R11:=BACKSET(ISLASTBAR,BARSLAST(DD)+1);
S11:=R11>REF(R11,1);
压力线:DRAWLINE(DD,RSI,S11,RSI,1),LINETHICK2,COLORAAAAAA;
T11:=BACKSET(ISLASTBAR,BARSLAST(DDD)+1);
U11:=T11>REF(T11,1);
支撑线:DRAWLINE(DDD,RSI,U11,RSI,1),LINETHICK2,COLOR0000AA;
DRAWTEXT(CURRBARSCOUNT=150,105,'强弱关注黑色线 撑压划线知起落'),COLOR0099FF;
DRAWTEXT(CURRBARSCOUNT=150,85,'海底火山将爆发 白雪皑皑当心顶'),COLOR0099FF;