PINE LIBRARY

Cinnamon_Bear Indicators MA Library

Actualizado
Library "Cinnamon_BearIndicatorsMALibrary"
This is a personal Library of the NON built-in PineScript Moving Average function used to code indicators

ma_dema(source, length)
  Double Exponential Moving Average (DEMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: A double level of smoothing helps to follow price movements more closely while still reducing noise compared to a single EMA.

ma_dsma(source, length)
  Double Smoothed Moving Average (DSMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: A double level of smoothing helps to follow price movements more closely while still reducing noise compared to a single SMA.

ma_tema(source, length)
  Triple Exponential Moving Average (TEMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: A Triple level of smoothing helps to follow price movements even more closely compared to a DEMA.

ma_vwema(source, length)
  Volume-Weighted Exponential Moving Average (VWEMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: The VWEMA weights based on volume and recent price, giving more weight to periods with higher trading volumes.

ma_hma(source, length)
  Hull Moving Average (HMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: The HMA formula combines the properties of the weighted moving average (WMA) and the exponential moving average (EMA) to achieve a smoother and more responsive curve.

ma_ehma(source, length)
  Enhanced Moving Average (EHMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: The EHMA is calculated similarly to the Hull Moving Average (HMA) but uses a different weighting factor to further improve responsiveness.

ma_trix(source, length)
  Triple Exponential Moving Average (TRIX)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: The TRIX is an oscillator that shows the percentage change of a triple EMA. It is designed to filter out minor price movements and display only the most significant trends. The TRIX is a momentum indicator that can help identify trends and buy or sell signals.

ma_lsma(source, length)
  Linear Weighted Moving Average (LSMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: A moving average that gives more weight to recent prices. It is calculated using a formula that assigns linear weights to prices, with the highest weight given to the most recent price and the lowest weight given to the furthest price in the series.

ma_wcma(source, length)
  Weighted Cumulative Moving Average (WCMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: A moving average that gives more weight to recent prices. Compared to a LSMA, the WCMA the weights of data increase linearly with time, so the most recent data has a greater weight compared to older data. This means that the contribution of the most recent data to the moving average is more significant.

ma_vidya(source, length)
  Variable Index Dynamic Average (VIDYA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: It is an adaptive moving average that adjusts its momentum based on market volatility using the formula of Chande Momentum Oscillator (CMO) .

ma_zlma(source, length)
  Zero-Lag Moving Average (ZLMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: Its aims to minimize the lag typically associated with MA, designed to react more quickly to price changes.

ma_gma(source, length, power)
  Generalized Moving Average (GMA)
  Parameters:
    source (simple float)
    length (simple int)
    power (simple int)
  Returns: It is a moving average that uses a power parameter to adjust the weight of historical data. This allows the GMA to adapt to various styles of MA.

ma_tma(source, length)
  Triangular Moving Average (TMA)
  Parameters:
    source (simple float)
    length (simple int)
  Returns: MA more sensitive to changes in recent data compared to the SMA, providing a moving average that better adapts to short-term price changes.
Notas de prensa
ma_dema(source, length)
  Double Exponential Moving Average (DEMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: A double level of smoothing helps to follow price movements more closely while still reducing noise compared to a single EMA.

ma_dsma(source, length)
  Double Smoothed Moving Average (DSMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: A double level of smoothing helps to follow price movements more closely while still reducing noise compared to a single SMA.

ma_tema(source, length)
  Triple Exponential Moving Average (TEMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: A Triple level of smoothing helps to follow price movements even more closely compared to a DEMA.

ma_vwema(source, length)
  Volume-Weighted Exponential Moving Average (VWEMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: The VWEMA weights based on volume and recent price, giving more weight to periods with higher trading volumes.

ma_hma(source, length)
  Hull Moving Average (HMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: The HMA formula combines the properties of the weighted moving average (WMA) and the exponential moving average (EMA) to achieve a smoother and more responsive curve.

ma_ehma(source, length)
  Enhanced Moving Average (EHMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: The EHMA is calculated similarly to the Hull Moving Average (HMA) but uses a different weighting factor to further improve responsiveness.

ma_trix(source, length)
  Triple Exponential Moving Average (TRIX)
  Parameters:
    source (float)
    length (simple int)
  Returns: The TRIX is an oscillator that shows the percentage change of a triple EMA. It is designed to filter out minor price movements and display only the most significant trends. The TRIX is a momentum indicator that can help identify trends and buy or sell signals.

ma_lsma(source, length)
  Linear Weighted Moving Average (LSMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: A moving average that gives more weight to recent prices. It is calculated using a formula that assigns linear weights to prices, with the highest weight given to the most recent price and the lowest weight given to the furthest price in the series.

ma_wcma(source, length)
  Weighted Cumulative Moving Average (WCMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: A moving average that gives more weight to recent prices. Compared to a LSMA, the WCMA the weights of data increase linearly with time, so the most recent data has a greater weight compared to older data. This means that the contribution of the most recent data to the moving average is more significant.

ma_vidya(source, length)
  Variable Index Dynamic Average (VIDYA)
  Parameters:
    source (float)
    length (simple int)
  Returns: It is an adaptive moving average that adjusts its momentum based on market volatility using the formula of Chande Momentum Oscillator (CMO) .

ma_zlma(source, length)
  Zero-Lag Moving Average (ZLMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: Its aims to minimize the lag typically associated with MA, designed to react more quickly to price changes.

ma_gma(source, length, power)
  Generalized Moving Average (GMA)
  Parameters:
    source (float)
    length (simple int)
    power (simple int)
  Returns: It is a moving average that uses a power parameter to adjust the weight of historical data. This allows the GMA to adapt to various styles of MA.

ma_tma(source, length)
  Triangular Moving Average (TMA)
  Parameters:
    source (float)
    length (simple int)
  Returns: MA more sensitive to changes in recent data compared to the SMA, providing a moving average that better adapts to short-term price changes.
MATHtechindicator

Biblioteca Pine

Siguiendo fielmente el espíritu TradingView, el autor ha publicado este código Pine como una biblioteca de código abierto, permitiendo que otros programadores de Pine en nuestra comunidad lo utilicen de nuevo. ¡Olé por el autor! Puede utilizar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero tenga en cuenta que la reutilización de este código en una publicación se rige por las Normas internas.

Exención de responsabilidad