A1:=CONST(REF(H,N1))+(N1+1-CURRBARSCOUNT)*M1/100;
A2:=CONST(REF(H,N2))+(N2+1-CURRBARSCOUNT)*M2/100;
A3:=CONST(REF(H,N3))+(N3+1-CURRBARSCOUNT)*M3/100;
H1:IF(CURRBARSCOUNT H2:IF(CURRBARSCOUNT H3:IF(CURRBARSCOUNT STICKLINE(1,H1,MA(H1,5),0,0),COLORYELLOW; STICKLINE(1,H2,MA(H2,5),0,0),COLORYELLOW; STICKLINE(1,H3,MA(H3,5),0,0),COLORYELLOW; 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); STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,3,8),LINETHICK2,COLOR00FFFF; STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,3,8),LINETHICK2,COLORGREEN; DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'),COLOR0000FF; DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR00FFFF; {买线:=EMA(C,2); 卖线:=EMA(SLOPE(C,21)*20+C,42); BU:=CROSS(买线,卖线); SEL:=CROSS(卖线,买线); STICKLINE(买线>=卖线,LOW,HIGH,1,0),COLORRED; STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000AA; STICKLINE(买线>=卖线,CLOSE,OPEN,2.5,0),COLOR0000CC; STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000CC; STICKLINE(买线>=卖线,CLOSE,OPEN,1.8,0),COLOR0000EE; STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORAAAA00; STICKLINE(买线<卖线,CLOSE,OPEN,2.5,0),COLORBBBB00; STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLORCCCC00; STICKLINE(买线<卖线,CLOSE,OPEN,1.8,0),COLOREEEE00; STICKLINE(买线<卖线,LOW,HIGH,1,0),COLORFFFF00; STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00FFFF;} 一发千钧指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),LINETHICK1,COLORFFFFFF; 谦穗临界点: MA(CLOSE,27),LINETHICK1,COLOR00FFFF; {涨跌停K线} STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,2.8,0),COLORF00FF0; STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,2.8,0),COLORWHITE; DRAWICON(IF(HHV(SUM(IF(C Z:=20; M:=32; P1:=80; P2:=100; VAR111:=(C+H+O+L)/4; 压力线:XMA(VAR111,Z)*(1+P1/1000) POINTDOT LINETHICK3 ; 支撑线:XMA(VAR111,M)*(1-P2/1000) POINTDOT LINETHICK3 ; 上中轨:压力线-(压力线-支撑线)*0.33 POINTDOT LINETHICK3 COLORLIGRAY; 下中轨:支撑线+(压力线-支撑线)*0.33 POINTDOT LINETHICK3 COLORGRAY; AA:压力线*1.008 POINTDOT LINETHICK4 COLORGRAY; BB:支撑线*0.992 POINTDOT LINETHICK4 COLORGRAY; XG5:=CROSS(C ,支撑线) OR (L<支撑线 AND C>支撑线); DRAWICON (XG5,L*0.9998,23),COLORRED; 工作线:=EXPMA(CLOSE,12),COLORRED,LINETHICK0; 生命线:=EXPMA(CLOSE,50),COLORMAGENTA,LINETHICK0; {等待:=IF(MA3>工作线,工作线,MA3); IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK0,COLOR00FFFF; IF(工作线>REF(工作线,1),工作线,DRAWNULL),LINETHICK0,COLOR0000FF; IF(工作线
IF(生命线>REF(生命线,1),生命线,DRAWNULL),LINETHICK0,COLORFF00FF;