通达信波对岸操作指标源码公式:
DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
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)); |