MACD two lines

Viewing 4 posts - 1 through 4 (of 4 total)
  • #121191

    Hi,

    Possible to have just two lines for MACD? Want the lines to be exponential moving average.

    #121193

    Standard MACD is calculated using exponential averages.

    To disable the hystogram just make it INVISIBLE in the indicators’properties.

    This is the code for the MACD, if you want to customize it with different averages, you just need to change the variable MAtype:

     

    1 user thanked author for this post.
    #121234

    Still a problem, its not smoothed as the picture. See below

    #121245

    This is not smoothed since it’s the standard one, to smooth the Signal line we need to add a smoothing average:

    you  will set the periods and type of any average as best suits your needs. Expnential averages are used by default.

    As you can see from the attached pic, the MACD has the same value as the original, while the Signal line has a smoothed value.

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login