此指标建议结合MACD使用,用法很简单:五线收拢,即将变盘,中轨红色持有,绿色卖出,五线既是支撑,又是阻力。具体用法还是大家自己去体会吧。因为思路来自论坛,所以也没必要加密,希望能为大家提供一点有用的东西。
MA30:=MA(C,30);
上轨: MA30+STD(CLOSE,N),COLORYELLOW,LINETHICK2;
下轨: MA30-STD(CLOSE,N),COLORYELLOW,LINETHICK2;
上极限: MA30+2*STD(CLOSE,N),COLORGREEN,LINETHICK2;
下极限: MA30-2*STD(CLOSE,N),COLORGREEN,LINETHICK2;
MAV:=(2*C+H+L)/4;
E1:=(EMA(MAV,3)+EMA(MAV,6)+EMA(MAV,12)+EMA(MAV,24))/4;
E2:=EMA(E1,5);
中轨:EMA(E2,8),COLORRED,LINETHICK2;
IF(中轨>REF(中轨,2),中轨,DRAWNULL),COLORRED,LINETHICK4;
IF(中轨<REF(中轨,2),中轨,DRAWNULL),COLORGREEN,LINETHICK4;
AAF:=LLV(LOW,34),NODRAW;
BBF:=MA(AAF,4),NODRAW;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORYELLOW;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.04),'顶背离'),COLORMAGENTA;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45'),COLORWHITE;