OPEN-SOURCE SCRIPT

MACD-on-price

Actualizado
MACD indicator applied to the price chart - basic settings (12,26,2) and the only change is the averages used - fast and slow V-ALMA averages (volume-weighted ALMA average) and the applied weighting point of the bar value (occ3) which I consider the best reflection of the bar value in a unit of time - all price rate variations are between the OPEN and CLOSE values ​​anyway. The OCC3 value strongly averages the input data values, but using the V-ALMA average significantly reduces the above disadvantage. The advantage of ALMA is the possibility of any modification of the curve characteristics using parameters (offset, sigma - Gaussian distribution) - which helps to select the optimal length and speed of response and smoothing, and adding volume significantly increases responsiveness - this is how V-ALMA is created, i.e. the volume-weighted ALMA average. Thanks to this, the calculated MACD maintains similar features to VWMA but with an arbitrarily changed MA average characteristic. The SIGNAL signal line is an ordinary ALMA without volume - it is slightly less responsive as an indicator but in backtests it behaved slightly better than V-ALMA - hence its use. It is recommended to use the indicator on Heikin Ashi candles, but also on ordinary candles or even any time interval, the indicated inputs and outputs are correct.
Notas de prensa
Dodano linie trendu - MA 100 (ALMA - src, 100, 0.8, 3) i linię danych wejściowych OCC3
Moving Averages

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad