M:=88;N:=4;
DRAWGBK(DATE 900103,STRIP(RGB(100,180,255),RGB(160,160,255),1));
阻力线:(ZX + N*STD(CLOSE,M)),LINETHICK1,Color62FFFF;
拉升力:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,47))*1.8*CLOSE;
拉升力A:=SMA(拉升力,4,1);
波峰波谷:=SMA(拉升力A,4,1),colorwhite;
拉升力B:=3*拉升力A-2*波峰波谷;
空方:=3*波峰波谷-1* 拉升力A;
趋势:IF(空方 拉升力B,拉升力B,空方),LINETHICK0,Color8000FF;
FILLRGN(趋势,REF(趋势,1),趋势 REF(趋势,1),RGB(255,0,0),趋势 REF(趋势,1),RGB(55,255,55));
PARTLINE(SLOPE(趋势,2) 0,趋势,colorblue),linethick2;
PARTLINE(SLOPE(趋势,2) 0,趋势,colorgreen),linethick2;
PARTLINE(趋势 波峰波谷 AND SLOPE(趋势,2) 0,趋势,colorred),linethick2;
PARTLINE(趋势 波峰波谷 AND SLOPE(趋势,2) 0,趋势,COLORFF00FF),linethick2;
短线:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,coloryellow;
中线:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,colorwhite;
红柱:SMA(短线,3,1)*3.5,LINETHICK0,Color0000FF;
蓝柱:SMA(中线,3,1)*3.5,COLORSTICK,ColorFFFF00;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,8,0),COLOR0000AA;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,4,0),COLOR0000BB;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,2,0),COLOR0000EE;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,1,0),COLOR0000FF;
STICKLINE(蓝柱 REF(蓝柱,1) AND 蓝柱 0,0,蓝柱,10,0),Color00E8E8;
STICKLINE(蓝柱 REF(蓝柱,1) AND 蓝柱 0,0,蓝柱,4,0),Color55FFFF;
STICKLINE(蓝柱 REF(蓝柱,1) AND 蓝柱 0,0,蓝柱,2,0),Color88FFFF;
STICKLINE(蓝柱 REF(蓝柱,1) AND 蓝柱 0,0,蓝柱,1,0),COLOR00FFFF;
STICKLINE(红柱 REF(红柱,0)AND 红柱 0,0,红柱,8,0),COLORCC0066;
STICKLINE(红柱 REF(红柱,0)AND 红柱 0,0,红柱,4,0),COLORCC00C0;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,2,0),COLORDD0099;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,1,0),COLORFF00FF;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,8,0),COLORFF0000;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,6,0),COLORFF3300;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,2,0),COLORFFDD00;
STICKLINE(红柱 REF(红柱,1)AND 红柱 0,0,红柱,1,0),COLORFFFF00;
STICKLINE(蓝柱 REF(蓝柱,1)AND 蓝柱 0,0,蓝柱,10,0),COLORCC0066;
STICKLINE(蓝柱 REF(蓝柱,1)AND 蓝柱 0,0,蓝柱,7,0),COLORCC00C0;
STICKLINE(蓝柱 REF(蓝柱,1)AND 蓝柱 0,0,蓝柱,4,0),COLORDD0099;
STICKLINE(蓝柱 REF(蓝柱,1)AND 蓝柱 0,0,蓝柱,1,0),COLORFF00FF;