日周期
无中生有:0,COLOR00AA00;
有戏:(EMA(CLOSE,30)-EMA(CLOSE,34))/EMA(CLOSE,34)*100,COLORRED;
无戏:(EMA(C,34)-EMA(C,30))/EMA(C,30)*100,COLORCYAN;
XYZ1:(有戏-无戏),COLORMAGENTA;
XYZ2:MA(XYZ1,3),COLORYELLOW;
STICKLINE( XYZ1>XYZ2,无戏 ,有戏 ,0.8 ,0 ),COLORRED;
STICKLINE( XYZ1<XYZ2,无戏 ,有戏 ,0.8 ,0 ),COLORCYAN;
通达信日周月的共振图无中生有源码
周周期
{904Z}
C1:=C#WEEK;
无中生有: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;
月周期
{904Y}
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;