PINE LIBRARY

Cinnamon_Bear Indicators MA Library

Aktualisiert
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.
Versionshinweise
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

Pine Bibliothek

Ganz im Sinne von TradingView hat dieser Autor seinen/ihren Pine Code als Open-Source-Bibliothek veröffentlicht. Auf diese Weise können nun auch andere Pine-Programmierer aus unserer Community den Code verwenden. Vielen Dank an den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Veröffentlichungen verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert.

Haftungsausschluss