MACD using SMAs on Amibroker?

Discussion in 'Trading Software' started by AshanD, Jun 9, 2005.

  1. AshanD

    AshanD

    Hi is there any simple way to set up an MACD which uses SMAs (vs EMAs) on AMibroker? The indicator builder is a bit much for me.

    Thanks
     
  2. ntfs

    ntfs

    Something like this?

    ma1=MA(C,5);
    ma2=MA(C,13);
    mcd=ma1-ma2;
    Signala=MA(mcd,6);
    Plot(Signala,"MACD(5,13,6",colorRed,1);
    Diff=mcd-Signala;
    Plot(Diff,"MACD Signal",colorBlue,1);
    Plot(0,"",1,1);

    nt
     
  3. AshanD

    AshanD

    Thanks a lot NT :)