LuxAlgo

Seasonality Widget [LuxAlgo]

The Seasonality Widget tool allows users to easily visualize seasonal trends from various data sources.

Users can select different levels of granularity as well as different statistics to express seasonal trends.

🔶 USAGE


Seasonality allows us to observe general trends occurring at regular intervals. These intervals can be user-selected from the granularity setting and determine how the data is grouped, these include:

  • Hour
  • Day Of Week
  • Day Of Month
  • Month
  • Day Of Year


The above seasonal chart shows the BTCUSD seasonal price change for every hour of the day, that is the average price change taken for every specific hour. This allows us to obtain an estimate of the expected price move at specific hours of the day.

Users can select when data should start being collected using the "From Date" setting, any data before the selected date will not be included in the calculation of the Seasonality Widget.

🔹Data To Analyze


The Seasonality Widget can return the seasonality for the following data:

  • Price Change

Closing price minus the previous closing price.

  • Price Change (%)

Closing price minus the previous closing price, divided by the
previous closing price, then multiplied by 100.

  • Price Change (Sign)

Sign of the price change (-1 for negative change, 1 for positive change), normalized in a range (0, 100). Values above 50 suggest more positive changes on average.

  • Range

High price minus low price.

  • Price - SMA

Price minus its simple moving average. Users can select the SMA period.

  • Volume

Amount of contracts traded. Allow users to see which periods are generally the most /least liquid.

  • Volume - SMA

Volume minus its simple moving average. Users can select the SMA period.

🔹Filter

In addition to the "From Date" threshold users can exclude data from specific periods of time, potentially removing outliers in the final results.

The period type can be specified in the "Filter Granularity" setting. The exact time to exclude can then be specified in the "Numerical Filter Input" setting, multiple values are supported and should be comma separated.


For example, if we want to exclude the entire 2008 period we can simply select "Year" as filter granularity, then input 2008 in the "Numerical Filter Input" setting.

Do note that "Sunday" uses the value 1 as a day of the week.

🔶 DETAILS

🔹Supported Statistics

Users can apply different statistics to the grouped data to process. These include:

  • Mean
  • Median
  • Max
  • Min
  • Max-Min Average


Using the median allows for obtaining a measure more robust to outliers and potentially more representative of the actual central tendency of the data.

Max and Min do not express a general tendency but allow obtaining information on the highest/lowest value of the analyzed data for specific periods.

🔶 SETTINGS

  • Granularity: Periods used to group data.
  • From Data: Starting point where data starts being collected

🔹Data

  • Analyze: Specific data to be processed by the seasonality widget.
  • SMA Length: Period of the simple moving average used for "Price - SMA" and "Volume - SMA" options in "Analyze".
  • Statistic: Statistic applied to the grouped data.

🔹Filter

  • Filter Granularity: Period type to exclude in the processed data.
  • Numerical Filter Input: Determines which of the selected hour/day of week/day of month/month/year to exclude depending on the selected Filter Granularity. Only numerical inputs can be provided. Multiple values are supported and must be comma-separated.

Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
오픈 소스 스크립트

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

면책사항

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

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