gitee.com/quant1x/engine@v1.8.4/factors/feature_box_madx.tdx (about)

     1  {均线动向, V1.1.0, 2023-11-26}
     2  P0:=3;
     3  P1:=5;
     4  P2:=10;
     5  P3:=20;
     6  MX:=CLOSE;
     7  MA0:=MA(MX,P0);
     8  MA1:=MA(MX,P1);
     9  MA2:=MA(MX,P2);
    10  MA3:=MA(MX,P3);
    11  DM0:MA0-MA3;
    12  DM1:MA1-MA3;
    13  DM2:MA2-MA3;
    14  X0:=DM0-REF(DM0,1);
    15  X1:=DM1-REF(DM1,1);
    16  X2:=DM2-REF(DM2,1);
    17  DIVERGING:X0+X1+X2;
    18  B:X0>0 AND X1>0 AND X2>0,NODRAW;
    19  DRAWICON(B,0.01,1);