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: [ol] [li]ALMA, Arnaud Legoux Moving Average[/li] [li]EMA, Exponential Moving Average[/li] [li]RMA, Adjusted exponential moving average (aka Wilder’s EMA)[/li] [li]SMA, Simple Moving Average[/li] [li]SWMA, Symmetrically-Weighted Moving Average[/li] [li]VWAP, Volume-Weighted Average Price[/li] [li]VWMA, Volume-Weighted Moving Average[/li] [li]WMA, Weighted Moving Average[/li] [/ol] The availability and function parameters [table] [tr][th]Func.[/th][th]Availability[/th][th]Parameters[/th][/tr] [tr] [td]ALMA[/td] [td]MA1, MA2, MA3[/td] [td]source length offset sigma[/td] [/tr] [tr] [td]EMA RMA SMA VWMA WMA [/td] [td]MA1, MA2, MA3[/td] [td]source length[/td] [/tr] [tr] [td]SWMA VWAP[/td] [td]MA1[/td] [td]source[/td] [/tr] [/table] Parameters [table] [tr][th]Parameter[/th][th]Description[/th][/tr] [tr][td]source[/td][td]the series of values to process. The default is to use the closing price to calculate the moving average.[/td][/tr] [tr][td]length[/td][td]an integer value that defines the number of bars to calculate the moving average on. The SWMA and VWAP do not use this parameter.[/td][/tr] [tr][td]ALMA offset[/td][td]a 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.[/td][/tr] [tr][td]ALMA sigma[/td][td]a 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.[/td][/tr] [/table] 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 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.