N:=4;M:=27;M1:=7;M2:=21;S:=2;
DRAWTEXT_FIX(1,0.0,0.00,0,EXTERNSTR(0,1))COLOR0077FF;
EXP1:EXPMA(CLOSE,M1)LINETHICK2;
EXP2:EXPMA(CLOSE,M2)LINETHICK2;
A:IF(CLOSE SAR(N,S,M),SAR(N,S,M),DRAWNULL),CIRCLEDOT,COLORRED;
B:IF(CLOSE SAR(N,S,M),SAR(N,S,M),DRAWNULL),CIRCLEDOT,COLORCYAN;
高1:=REF(HHV(H,150),3);
低1:=REF(LLV(L,150),3);
H3:=高1-(高1-低1)*0.5;
中轴:REFDATE(H3,DATE),POINTDOT,COLORLIGRAY,LINETHICK3;
B1:=EMA(C,12);
B2:=EMA(C,26);
B3:=(B1-B2)*2;
WDIF:中轴+B3,COLORFF00FF,LINETHICK2;
WDEA:EMA(WDIF,9),LINETHICK2;
MACD:=2*(WDIF-WDEA);
{www.9m8.cn 九毛八公式指标网 股票软件下载网_通达信股票指标公式}
STICKLINE(MACD 0,中轴,中轴+MACD,0,1),COLORYELLOW;
STICKLINE(MACD 0,中轴,中轴+MACD,0,1),COLORLIBLUE;
股价趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
买入信号:STICKLINE(CROSS(股价趋势,10),L*0.97,L,6,0)COLORLIMAGENTA;
卖出信号:STICKLINE(CROSS(90,股价趋势),H*1.03,H,6,0)COLORGREEN;