WY1001:=(2*CLOSE+HIGH+LOW)/3; WY1002:=EMA(WY1001,3); WY1003:=EMA(WY1002,3); WY1004:=EMA(WY1003,3); XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100; STICKLINE(XYS0>=0,XYS0,0,3,0),COLORRED; STICKLINE(XYS06.1 AND CYS13>5 ,2 ,0 ,8 ,0 ),COLORGREEN; STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,8 ,0 ),COLORYELLOW; STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,8 ,0 ),COLORCYAN; STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,8 ,0 ),COLORBLUE; XYS1:MA(XYS0,2); XYS2:MA(XYS0,1); DRAWICON(CROSS(XYS1,XYS2),XYS1,2); DRAWICON(CROSS(XYS2,XYS1),XYS2,1); 请老师将指标金叉做一个选股公式。谢谢!
爱约股解答:
WY1001:=(2*CLOSE+HIGH+LOW)/3;
WY1002:=EMA(WY1001,3);
WY1003:=EMA(WY1002,3);
WY1004:=EMA(WY1003,3);
XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;