OPEN-SOURCE SCRIPT

GAP Momentum Oscillator

Por Hunter_Algo

This function calculates GAP Momentum, a measure of momentum based on the gaps between opening and closing prices over several periods.

Gaps are calculated for defined periods (here, by default, 14 periods). It determines :

UpGaps: the sum of positive gaps, i.e. openings that are higher than the previous period's close.
DnGaps: the sum of negative gaps, i.e. openings below the previous period's close.

It then calculates the GAP Momentum as the ratio between the sum of the up gaps and the sum of the down gaps, multiplied by 100. If the total of the down gaps is zero, the ratio takes a default value of 1 to avoid division by zero.
Breadth IndicatorsCandlestick analysismomentumindicatorMomentum OscillatorsmomentumstrategyVolatility
Hunter_Algo

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