VAR1:=-100*(HHV(HIGH,34)-C)/(HHV(HIGH,34)-LLV(LOW,34)),COLORFFFF00,LINETHICK2;
AA:=3*SMA(VAR1,9,8)-2*SMA(SMA(SMA(VAR1,9,8),9,8),9,8)+100,COLORFFFF00,LINETHICK2;
DRAWBAND(AA,RGB(250,250,0),0,RGB(0,0,0));
DRAWBAND(AA,RGB(240,200,0),10,RGB(0,0,0));
DRAWBAND(AA,RGB(240,150,0),15,RGB(0,0,0));
DRAWBAND(AA,RGB(230,100,0),20,RGB(0,0,0));
DRAWBAND(AA,RGB(220,50,0),25,RGB(0,0,0));
DRAWBAND(AA,RGB(210,0,20),30,RGB(0,0,0));
DRAWBAND(AA,RGB(200,10,40),35,RGB(0,0,0));
DRAWBAND(AA,RGB(210,0,60),40,RGB(0,0,0));
DRAWBAND(AA,RGB(220,0,80),45,RGB(0,0,0));
DRAWBAND(AA,RGB(230,0,100),50,RGB(0,0,0));
DRAWBAND(AA,RGB(240,0,130),55,RGB(0,0,0));
DRAWBAND(AA,RGB(250,0,170),60,RGB(0,0,0));
DRAWBAND(AA,RGB(250,0,200),65,RGB(0,0,0));
DRAWBAND(AA,RGB(230,20,220),70,RGB(0,0,0));
DRAWBAND(AA,RGB(200,60,240),75,RGB(0,0,0));
DRAWBAND(AA,RGB(100,100,210),80,RGB(0,0,0));
DRAWBAND(AA,RGB(0,160,190),85,RGB(0,0,0));
DRAWBAND(AA,RGB(0,220,150),90,RGB(0,0,0));
DRAWBAND(AA,RGB(0,250,100),95,RGB(0,0,0));
100,COLORFFFFFF;
出逃线:80,COLORFFFF00,LINETHICK2;
分界线:50,COLOR00FFFF,LINETHICK2;
反弹线:20,COLORFF00FF,LINETHICK2;
{ 爱约股_通达信股票指标公式}
DRAWTEXT(CURRBARSCOUNT=8,90,'警示区'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=8,65,'安全区'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=8,35,'反弹区'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=8,15,'底部区'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=8,5,'大底区'),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=15,50,'强弱分界线'),COLOR00FFFF;
DRAWICON(CROSS(AA,10),10,23);
DRAWICON(CROSS(AA,20),AA,13);
DRAWICON(CROSS(90,AA),AA,14);
DRAWICON(CROSS(80,AA),AA,15);
STICKLINE(C>0,10,10,2,0),COLORRED;
STICKLINE(C>0,90,90,2,0),COLOR00FF00;

 

通达信分区警示操盘指标公式