N:=9;N1:=3;N2:=3;
上轨:SMA(SMA(HHV(HIGH,N),N1,1),N2,1),COLORGREEN;
下轨:SMA(SMA(LLV(LOW,N),N1,1),N2,1),COLORBLUE;
K:SMA(C,N1,1),COLORMAGENTA;
D:SMA(K,N2,1),COLORCYAN,DOTLINE;
IF(D<上轨*0.95,D,DRAWNULL),COLORCYAN,DOTLINE;
IF(D>=上轨*0.95,D,DRAWNULL),COLORRED,DOTLINE;
|