{波对岸操作指} DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0)); N1:=5; N2:=(5); VAR1:=C-REF(C,1); VAR2:=O-REF(O,1); VAR3:=H-REF(H,1); VAR4:=L-REF(L,1); VAR5:=(VAR1*7+VAR2+VAR3+VAR4)/10; MTM:=VAR5*VOL; ZLGJ:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE; MAZL:MA(ZLGJ,N2),COLORYELLOW; 买入股票: STICKLINE(CROSS(ZLGJ,MAZL),ZLGJ,ZLGJ+10,2,0),LINETHICK2,COLORRED; 卖出股票: STICKLINE(CROSS(MAZL,ZLGJ),ZLGJ,ZLGJ-10,2,0),LINETHICK2,COLORGREEN; DRAWTEXT(CROSS(ZLGJ,MAZL),MAZL*0.95,'买'),COLORRED; DRAWTEXT(CROSS(MAZL,ZLGJ),ZLGJ*1.15,'卖'),COLORGREEN; DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0)); 选股公式源码: N1:=5; N2:=(5); VAR1:=C-REF(C,1); VAR2:=O-REF(O,1); VAR3:=H-REF(H,1); VAR4:=L-REF(L,1); VAR5:=(VAR1*7+VAR2+VAR3+VAR4)/10; MTM:=VAR5*VOL; ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1); MAZL:=MA(ZLGJ,N2),COLORYELLOW; 买入: STICKLINE(CROSS(ZLGJ,MAZL); |