OPEN-SOURCE SCRIPT

L'MACD GUN

Hi all!

I would like to present you my universal MACD module.

In addition to the standard functions I have added several improvements:
  • Source Selection.
  • In addition to the standard calculation of the moving average "EMA", in the parameter "MA Type" I have added 52 more methods for calculating the MA! :
    ADXMA, AHMA, ALF, ALMA, ARI, ARSI, BlackFilter, CTI, DoubleEma, DTA, DWMA, EEO, EHMA, ELA, EMARSI, EREA, HEMA, hma, HWMA, JAMA, KA, KAMA, LSMA, LWMA, McGinley_2, MNMA, PAW, REMA, rma, RMF, RMTA, RWMA, sma, SMMA, SuperSmooth, THMA, TilsonT3, TMA, TRAMA, TripleEma, TSF, VAMA, VAR, VHMA, VIDYA, VVMA, vwma, WCD, wma, WWMA, ZEMA, ZLMA !
  • Additional histogram and lines from the higher timeframe. With the parameter "Multiple of TF" you can specify on which timeframe the standard histogram should be zoomed.
  • The Zoom function allows increasing or decreasing the size of the histogram. (It does not affect the calculations in any way, it is only used for visualization purposes.)



*How to use it?
I recommend using it as a standard MACD. You can test different types of moving averages thanks to my modules and choose the one you find most suitable.

Tips:
The script is slightly heavy and may take a little longer to load than usual.
All MA types are in alphabetical order and tied to numbers.
Next to the "MA Type" parameter there is a hint which method of calculating MA corresponds to the figure. The default is 15. In the hint 15 = EMA. This is the standard method of calculating the MAСD.
To select the MA more quickly. You can switch them with the mouse wheel or the arrows on the keyboard.
I use the standard parameters prescribed in the script.
The code is calibrated for any TF and displays as correctly as possible. Can be used on any type of chart.
LOGARITHMICMoving Average Convergence / Divergence (MACD)Moving AveragesOscillatorsregular

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal