通达信顾比均线MA6主图指标
源码
P1:=5;
中轨:(MA(CLOSE,30)+MA(CLOSE,72))/2,COLORRED;
上轨:中轨*1.1,COLORGREEN;
下轨:中轨*0.9,COLORYELLOW;
{地心引力线结束}
PH:=TROUGHBARS(2,P1,1);
LL:=HHV(H,PH);
TJ1:= LL=HIGH AND LL
TS:=SUMBARS(TJ1,2);
TJ:=PEAKBARS(2,P1,1)=1 AND TS
PL:=BARSLAST(TJ);
支撑:IF(BARSLAST(TJ1),
REF(LOW,BARSLAST(TJ1)),DRAWNULL),COLOREA91B5;
压力:IF(BARSLAST(TJ),REF(HIGH,PL),DRAWNULL),COLORYELLOW;
TJ_2:=LOW REF(REF(LOW,TS),PL);