收盘价}; CC:=CONST(C),CROSSDOT;
原参数}; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
原参数}; DEA:=EMA(DIF,9);
原参数}; MACD:=(DIF-DEA)*2,COLORSTICK;
灰衬底}; STICKLINE(0=0,YY+MMM,YY-MMM,5,0),COLOR444444;
原参数}; RSV:=((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))-0.5)/100;
原参数}; K:=SMA(RSV,4,1);
原参数}; D:=SMA(K,4,1);
原参数}; J:=3*K-2*D;
收盘价线}; MA1:C,COLORYELLOW,NODRAW;
1天线}; BBI:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORWHITE;
5天线}; BB5:(MA(C,15)+MA(C,30)+MA(C,60)+MA(C,120))/4,COLORWHITE;
上行变红}; IF(C>BB5,BB5,DRAWNULL),COLORRED;
下行变蓝}; IF(C< BB5,BB5,DRAWNULL),COLORCYAN;
取高点}; MH:=IF(MACD< 0,-MACD,0);
取低点}; ML:=IF(MACD>0,-MACD,0);
取高点}; JJH:=IF(REF(JJ,1)>JJ,REF(JJ,1),JJ);
取低点}; JJL:=IF(REF(JJ,1)< JJ,REF(JJ,1),JJ);
取高点}; Z1:=IF(JJH>ML AND JJH< MH,JJH,IF(JJH>=MH,MH,DRAWNULL));
取低点}; Z2:=IF(JJL>ML AND JJL< MH,JJL,IF(JJL< =ML,ML,DRAWNULL));
画蓝条}; STICKLINE(0=0,YY+Z1,YY+Z2,0.1,0),COLORBLUE;