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.
파인 라이브러리

트레이딩뷰 정신에 따라 오써는 이 파인 코드를 오픈 소스 라이브러리로 퍼블리쉬하여 당사 커뮤니티의 다른 파인 프로그래머들이 쓸 수 있도록 하였습니다. 오써에게 찬사를! 여러분은 이 라이브러리를 프라이빗 또는 오픈 소스 퍼블리케이션에 쓸 수 있지만 퍼블리케이션에 재사용은 하우스룰을 따릅니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

이 라이브러리를 쓰시겠습니까?

텍스트를 클립보드에 카피한 뒤 님의 스크립트에 붙여 넣기.