Cinnamon_Bear

Cinnamon_Bear Indicators MA Library

Cinnamon_Bear 已更新   
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.
發布通知:
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.
Pine腳本庫

本著真正的TradingView精神,作者將此Pine代碼以開源腳本庫發布,以便我們社群的其他Pine程式設計師可以重用它。向作者致敬!您可以私下或在其他開源出版物中使用此庫,但在出版物中重用此代碼受網站規則約束。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想使用這個腳本庫嗎?

複製以下行並將其黏貼到您的腳本中。