通达信副图指标买卖+警示
0;20;50;80;100;
VAR1:100-100*(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))COLORRED,LINETHICK2;
VAR2:SMA(VAR1,5,1),COLOR00FF00;
DRAWBAND(VAR1,RGB(200,0,200),VAR2,RGB(0,150,0));
DRAWTEXT(ISLASTBAR,20,' 底部区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,80,' 风险区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,105,' 顶部警示'),COLORWHITE;
DRAWTEXT(ISLASTBAR,-5,' 底部警示'),COLORWHITE;
STICKLINE(VAR1>=80,102,110,4,0),COLOR00FFFF;
STICKLINE(VAR1<20,-2,-10,4,0),COLORRED;
STICKLINE(CROSS(VAR1,VAR2),20,40,0.25,0),COLORRED;
STICKLINE(CROSS(VAR2,VAR1),60,80,0.25,0),COLORGREEN;
DRAWICON(CROSS(VAR1,VAR2),40,23);
DRAWICON(CROSS(VAR2,VAR1),60,18);
STICKLINE(CROSS(VAR1,20),0,15,0.25,0),COLORFF00FF;
DRAWICON(CROSS(VAR1,20),13,13);
STICKLINE(CROSS(80,VAR1),100,85,0.25,0),COLORGREEN;
DRAWICON(CROSS(80,VAR1),83,14);
812222501.jpg
|