【大智慧】通道线(上轨、下轨、中轨)-指标公式源码
MA3:=MA(CLOSE,3); MA8:=MA(CLOSE,8); MA13:=MA(CLOSE,13); ma21:=MA(close,21); ma60:=MA(close,60); ma250:=MA(close,250); 上轨:
IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05),CIRCLEDOT,COLORFF6600;
下轨: SMA(LOW,21,2)*0.95,CIRCLEDOT,COLOR00ff00; 中轨:
IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1)),CIRCLEDOT,COLOR00ffff;
短线:= IF(MA(VOL,1)>MA(VOL,2)>MA(VOL,3), SMA(high,2,1),SMA(CLOSE,3,1)) ; 中短:=
IF(MA(VOL,3)>MA(VOL,5)>MA(VOL,9),SMA(CLOSE,3,1),SMA(CLOSE,5,1)); {
DRAWTEXT(CROSS(短线,上轨),中轨,'爆发买点'),COLORRED; DRAWTEXT(CROSS(上轨,ma250),中轨,'中线买点'),COLORRED; DRAWTEXT(CROSS(中轨,ma250),中轨,'中线买点'),COLORRED; DRAWTEXT(CROSS(短线,下轨),短线,'极端买点'),COLORRED; DRAWTEXT(CROSS(短线,中轨),短线,'短线买点'),ColorYellow; DRAWTEXT(CROSS(中短,下轨),中短,'极端买点'),Colorffffff; DRAWTEXT(CROSS(MA8,MA3),上轨,'卖'),COLORffffff;};
【大智慧】通道线(上轨、下轨、中轨)-指标公式效果图
(文档来源:若水财经社区)