我想把两个附图公式和 MA2六条均线组合成一个主图指标!通达信!

1个回答

  • MA1:MA(CLOSE,M1);

    MA2:MA(CLOSE,M2);

    MA3:MA(CLOSE,M3);

    MA4:MA(CLOSE,M4);

    MA5:MA(CLOSE,M5);

    MA6:MA(CLOSE,M6);

    VAR11:=EMA(EMA(C,9),9);

    控盘:=(VAR11-REF(VAR11,1))/REF(VAR11,1)*1000;

    VAR22:=100*WINNER(C*0.95);

    STICKLINE(VAR22>50 AND COST(85)0,O,C,1.5,0),COLORFF00FF;

    VAR1:=C-REF(C,1);

    VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);

    M5:=EMA(C,5);

    MA13:=EMA(C,13);

    UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,M5))+1),LLV(L,BARSLAST(CROSS

    (MA13,M5))+1),H=HHV(H,BARSLAST(CROSS(M5,MA13))+1),HHV(H,BARSLAST(CROSS

    (M5,MA13))+1),0);

    DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(M5,MA13))+1),HHV(H,BARSLAST(CROSS

    (M5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,M5))+1),LLV(L,BARSLAST(CROSS

    (MA13,M5))+1),0);

    BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2