Pulu_

Pulu's 3 Moving Averages

Pulu_ 업데이트됨   
Pulu's 3 Moving Averages
Release version 1, date 2021-09-28
This script allows you to customize three sets of moving averages, turn on/off, set color and parameters. It also tags the start date of the last set of moving average if there is. This, release version 1, supports eight moving average algorithms:

ALMA, Arnaud Legoux Moving Average
EMA, Exponential Moving Average
RMA, Adjusted exponential moving average (aka Wilder’s EMA)
SMA, Simple Moving Average
SWMA, Symmetrically-Weighted Moving Average
VWAP, Volume-Weighted Average Price
VWMA, Volume-Weighted Moving Average
WMA, Weighted Moving Average

The availability and function parameters

Func.AvailabilityParameters

ALMA
MA1, MA2, MA3
source
length
offset
sigma


EMA
RMA
SMA
VWMA
WMA

MA1, MA2, MA3
source
length


SWMA
VWAP
MA1
source


Parameters

ParameterDescription
sourcethe series of values to process. The default is to use the closing price to calculate the moving average.
lengthan integer value that defines the number of bars to calculate the moving average on. The SWMA and VWAP do not use this parameter.
ALMA offseta floating-point value that controls the tradeoff between smoothness (with a value closer to 1) and responsiveness (with a value closer to 0). This parameter is only used by ALMA.
ALMA sigmaa floating-point value that specifies the ALMA’s smoothness. The larger this value, the smoother the moving average is. This parameter is only used by ALMA.

I'm not sure if it is needed, so I do not let the three Moving Averages of the script to have indivial algorithm setting. Because that will involve much complicated condition testing and use up more TradingView script lines limit. If you need to combine different algorithms in the three sets of moving averages, or have other ideas, leave a message to let me know; maybe I will try it in the next update.

我不確定是否需要,所以我沒有讓腳本的三組移動平均線有各別的算法設置。因為這將涉及更多複雜的條件測試,並使用更多 TradingView 腳本列數限制。如果您需要在三組均線中組合不同的算法,或者有其他想法,請留言告訴我;也許我會在下一次更新中嘗試。
릴리즈 노트:
Pulu's 3 Moving Averages
Release version 1.56, date 2021-09-30

This version fixes a little bug, and rearranges the settings page to make it easier to use methinks.
릴리즈 노트:
This version (1.101) made the following changes
  • allows to set the moving average algorithm individually
  • or use the default setting to make the three moving averages use the same algorithm
  • rearrange the settings interface
릴리즈 노트:
Just update the chart and convert to Pine v5
릴리즈 노트:
This release version, 1.384, allows user to
  • set the individual algorithm (MA type) for each moving average
  • set labels on/off and contents
  • reorganize the settings page
  • optimize some code
릴리즈 노트:
Fixed minor bugs
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

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

차트에 이 스크립트를 사용하시겠습니까?