{紫风狂想曲大智慧主图}
紫风:=MA(C,1);
紫风1:MA(C,5),colorred,LINETHICK1;
紫风2:MA(MA(C,5),2),COLOR555555;
紫风3:MA(MA(MA(C,5),2),2),COLOR555555;
紫风4:MA(MA(MA(MA(C,5),2),2),2),COLOR555555;
紫风5:MA(MA(MA(MA(MA(C,5),2),2),2),2),COLOR555555;
紫风10:MA(C,20),colorFF1101;
紫风20:MA(C,60),color0111cc;
紫风21:MA(MA(C,60),2),color009000;
紫风22:MA(MA(MA(C,60),2),2),color009000;
交易:=紫风1;
拉升:HHV(交易,13),color2fffff;
压力:HHV(交易,60),color009000;
支撑:LLV(交易,13),COLOR009000;
STICKLINE(拉升>交易 AND 紫风>紫风1,拉升,紫风1,1,0),coloryellow;
STICKLINE(拉升>交易 AND 紫风<紫风1,拉升,紫风1,1,0),color00c000;
底:=LLV(LOW,60)*1.02;
顶:=HHV(HIGH,60)*0.98;
STICKLINE(底,底*0.9999,底,10,0),COLOR999999;
STICKLINE(顶,顶*0.9999,顶,10,0),COLOR999999;
DEA:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),COLORFF9909,LINETHICK1;
MID:=MA(CLOSE,20);
UPPER:MID +2*STD(CLOSE,20),color999999;
LOWER:MID - 2*STD(CLOSE,20),color999999;