紫风:=MA(C,1),color2FFFFF,LINETHICK1;
紫风5:MA(C,5),colorred,LINETHICK1;
紫风6:MA(MA(C,5),2),COLOR555555;
紫风7:MA(MA(MA(C,5),2),2),COLOR555555;
紫风8:MA(MA(MA(MA(C,5),2),2),2),COLOR555555;
紫风9:MA(MA(MA(MA(MA(C,5),2),2),2),2),COLOR555555;
FILLRGN(紫风5,紫风9,紫风5>紫风9 AND 紫风>紫风5,color0999ff,紫风5>紫风9 AND 紫风<紫风5 AND 紫风5>=REF(紫风5,1),COLOR0666CC,紫风5>紫风9 AND 紫风<紫风5 AND 紫风5<REF(紫风5,1),color222222);
FILLRGN(紫风5,紫风9,紫风5<紫风9 AND 紫风>紫风5,color009000,紫风5<紫风9 AND 紫风<紫风5,color222222,紫风5<紫风9,COLOR222222);
紫风20:MA(C,20),color111111,POINTDOT,LINETHICK1;
紫风21:MA(MA(C,20),2),color111111,POINTDOT,LINETHICK1;
紫风60:MA(C,60),color111111,POINTDOT,LINETHICK1;
紫风61:MA(MA(C,60),2),color111111,POINTDOT,LINETHICK1;
紫风62:MA(MA(MA(C,60),2),2),color111111,POINTDOT,LINETHICK1;
PARTLINE(紫风20,紫风5>=REF(紫风5,1),colorff9909,紫风5<REF(紫风5,1),colorff1101),LINETHICK1;
PARTLINE(紫风21,紫风5>=REF(紫风5,1),colorff9909,紫风5<REF(紫风5,1),colorff1101),LINETHICK1;
PARTLINE(紫风60,紫风60>=REF(紫风60,1),colorbrown,紫风60<REF(紫风60,1),color006000),LINETHICK1;
PARTLINE(紫风61,紫风60>=REF(紫风60,1),colorbrown,紫风60<REF(紫风60,1),color006000),LINETHICK1;
PARTLINE(紫风62,紫风60>=REF(紫风60,1),colorbrown,紫风60<REF(紫风60,1),color006000),LINETHICK1;
交易:=紫风5;
拉升:HHV(交易,13),color2fffff;
压力:=HHV(交易,60),color009000;
支撑:LLV(交易,13),COLOR00f000,LINETHICK1;
STICKLINE(拉升>交易 AND 紫风>紫风5,拉升,紫风5,1,0),coloryellow;
STICKLINE(拉升>交易 AND 紫风<=紫风5,拉升,紫风5,1,0),color00c000;
底:LLV(LOW,60)*1.02,COLOR999999;
顶:=HHV(HIGH,60)*0.98,COLOR999999;
//STICKLINE(底,底,底,10,0),COLOR999999;
STICKLINE(顶,顶,顶,10,0),COLOR999999;
DEA:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),COLORFF8808,LINETHICK1;
PARTLINE(DEA,紫风>DEA AND DEA>=REF(DEA,1),color7111ff,紫风<DEA AND DEA>=REF(DEA,1),COLORFFFFFF,紫风<DEA AND DEA<REF(DEA,1),colorFF9909,紫风>DEA AND DEA<REF(DEA,1),colorFF1101),LINETHICK2;
MID:=MA(CLOSE,20),color111111,POINTDOT,LINETHICK1;
UPPER:MID +2*STD(CLOSE,20),colorFF3303;
LOWER:MID - 2*STD(CLOSE,20),colorFF3303;
紫风120:MA(C,120),color111111,POINTDOT,LINETHICK1;
紫风121:MA(MA(C,120),2),color111111,POINTDOT,LINETHICK1;
紫风122:MA(MA(MA(C,120),2),2),color111111,POINTDOT,LINETHICK1;
紫风250:MA(C,250),color111111,POINTDOT,LINETHICK1;
紫风251:MA(MA(C,250),2),color111111,POINTDOT,LINETHICK1;
紫风252:MA(MA(MA(C,250),2),2),color111111,POINTDOT,LINETHICK1;
PARTLINE(紫风120,紫风120>=REF(紫风120,1),color7111cc,紫风120<REF(紫风120,1),color006000),LINETHICK1;
PARTLINE(紫风121,紫风120>=REF(紫风120,1),color7111cc,紫风120<REF(紫风120,1),color006000),LINETHICK1;
PARTLINE(紫风122,紫风120>=REF(紫风120,1),color7111cc,紫风120<REF(紫风120,1),color006000),LINETHICK1;
PARTLINE(紫风250,紫风250>=REF(紫风250,1),colorcc111c,紫风250<REF(紫风250,1),color006000),LINETHICK1;
PARTLINE(紫风251,紫风250>=REF(紫风250,1),colorcc111c,紫风250<REF(紫风250,1),color006000),LINETHICK1;
PARTLINE(紫风252,紫风250>=REF(紫风250,1),colorcc111c,紫风250<REF(紫风250,1),color006000),LINETHICK1;