编写要求:
公式指标网解答:
网友求助:
C1:=C#MONTH;
无中生有:0,COLOR00AA00;
有戏:(EMA(C1,30)-EMA(C1,34))/EMA(C1,34)*100,COLORRED;
无戏:(EMA(C1,34)-EMA(C1,30))/EMA(C1,30)*100,COLORCYAN;
XYZ1:(有戏-无戏),COLORMAGENTA;
XYZ2:MA(XYZ1,3),COLORYELLOW;
STICKLINE( XYZ1>XYZ2,无戏 ,有戏 ,0.8 ,0 ),COLORRED;
STICKLINE( XYZ1<XYZ2,无戏 ,有戏 ,0.8 ,0 ),COLORCYAN;
请老师帮我改成XYZ1和XYZ2同时上穿0轴预警选股
解答如下:
C1:=C#MONTH;
有戏:=(EMA(C1,30)-EMA(C1,34))/EMA(C1,34)*100,COLORRED;
无戏:=(EMA(C1,34)-EMA(C1,30))/EMA(C1,30)*100,COLORCYAN;
XYZ1:=(有戏-无戏),COLORMAGENTA;
XYZ2:=MA(XYZ1,3),COLORYELLOW;
CROSS(XYZ1,0 ) and CROSS(XYZ2,0 ) ;