主副图分时线t 0公式
{风险警示线}
INPUT:N(45,5,100);
DRAWRECTREL(-1,0,1000,1000,RGB(5,0,40)),color00FF00,LINETHICK2,LAYER7;
P:=EMA(-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),3);
风警线:P+100,PRECIS0;
风险区:90,colorred,DOTLINE,LAYER1;
安全区:10,colorgreen,DOTLINE,LAYER1;
PARTLINE(风警线,(风警线>REF(风警线,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK2,LAYER1;
FILLRGN(风警线,90,风警线>90,RGB(200,0,80)),LAYER4;
FILLRGN(风警线,10,风警线REF(大盘风警线,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),POINTDOT,LINETHICK3,LAYER1;
FILLRGN( 100,90 ),color000446,LAYER5;;
FILLRGN( 10,0 ),color004400,LAYER5;;
FILLRGN(90,10,90>10,RGB(0,0,40)),LAYER4;CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'指标公式')