SJ:=1;
{压力支撑}
HD:=FILTER(BACKSET(FILTER(REF(-C,10)=HHV(-C,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(-C,10)=LLV(-C,2*10+1),10),10+1),10);
前高:REF(-C,BARSLAST(HD))*SJ,COLOR00FF00,POINTDOT;
前低:REF(-C,BARSLAST(LD))*SJ,COLORFF00FF,POINTDOT;
{冷暖气带}
DRAWBAND(MA(-CLOSE,60),RGB(100,0,0),MA(-CLOSE,120),RGB(10,60,0));
DRAWBAND(MA(-CLOSE,5),RGB(220,160,30),MA(-CLOSE,10),RGB(60,70,90));
STICKLINE(前高,前高,前高,11,0),COLORFF00FF;
STICKLINE(前低,前低,前低,11,0),COLOR00FF00;
压力:-XMA(2*H-L,15)*(1+0.0001)*(1+0.0001),COLORBLUE,LINETHICK2;
支撑:-XMA(2*L-H,15)*(1-0.0001)*(1-0.0001),COLORWHITE,LINETHICK2;
DRAWKLINE(-H,-O,-L,-C);
STICKLINE(-O<-C,-O,-C,3,-2),COLORRED;