mortdiggiddy

Seasonality Trader

mortdiggiddy ที่อัปเดต:   
Plots the daily seasonality profile for any ticker.

This indicator:

  • Operates for any ticker. This indicator will not work properly on anything except a day chart using candlesticks, bars, or Heikin Ashi candles.
  • Any look back period (in years) is possible, as long as there is data available. This indicator will only plot values while the selected look back length is greater than the total number of years available at a given location on the chart.
  • Plots the current performance of the instrument on top of the seasonal profile. This is useful to observe how the current year's performance is unfolding against the expected seasonality profile.
  • Has the option to plot the projected price values based on the seasonality profile. This is used to demonstrate how the instrument "should perform" with real prices instead of percentages. These are simulated prices using the seasonality profile.
  • Has the option to fit the performance to the seasonality profile for easier viewing. This is especially useful when the current performance is vastly different than the expected seasonality.
  • Can plot the current seasonality profile against the current performance AND the historical seasonality profiles against the respective historical performance. This is useful to observe the seasonality evolution in the past, as the profile changes once per year.
  • Has the option to plot all FOMC dates up to 30 years in into the past.
  • Has the option to plot the next FOMC date directly on the chart at the correct future bar location.
  • Has logic for daylight savings time and leap years.

Please view the following two videos to understand more:

Introduction Part 1 - Seasonality Trader


Introduction Part 2 - Variance and Performance Scripts


Please PM me on Trading View or Telegram for access.
เอกสารเผยแพร่:
The companion Deviations and Performance indicators can either be added to the bottom as a non-overlay script or dragged to the main chart window and merged with the Seasonality Trader y-axis.


Seasonality examples can be found on Equity Clock, here is one for the SPX500 index, which shows the last 20 years of performance throughout the year.

charts.equityclock.c...index-seasonal-chart
เอกสารเผยแพร่:
Added Pearson's Correlation Coefficient with a new Input setting near the bottom of the tab. This will show the correlation (bounded between +1 and -1) of the current seasonal profile and the current ticker performance during the year.

A +1 correlation means that both are exhibiting perfect positive correlation (they are running together), while a -1 correlation means that both are exhibiting perfect negative correlation (the are running opposite).

For more information on this Wikipedia or this example.
เอกสารเผยแพร่:
  • Optimized display.
เอกสารเผยแพร่:
  • Updated correlation display.
เอกสารเผยแพร่:
  • Fixed sampling algorithm for Pearson Coefficient.
  • Updated display.
เอกสารเผยแพร่:
  • Fixed label offset issues when the performance/profile is negative.
  • Added check box to toggle on/off the Correlation Label, continue to use the style tab to style the correlation coefficient look and feel.
เอกสารเผยแพร่:
  • Fixed issue with last future FOMC label not disappearing once the final FOMC data has passed.
เอกสารเผยแพร่:
  • Fixed typo in inputs.
เอกสารเผยแพร่:
  • Updated member features.
เอกสารเผยแพร่:
  • Updated member features.
เอกสารเผยแพร่:
  • Fixed label offsets.
  • Updated member features.
เอกสารเผยแพร่:
  • Added election year, pre-election year, mid-term years (very happy about this).
  • Updated labeling to include filters.
  • Set minimum year lookback length to 7 years.
เอกสารเผยแพร่:
  • Fixed new Pine 4.0 broken updates to language.
เอกสารเผยแพร่:
  • Improved performance and corrected bugs and timeout issues.
  • Added toggle between Spearman and Pearson correlation coefficient, default is now Spearman for statistical reasons.
เอกสารเผยแพร่:
  • Updates to fit performance algorithm.
เอกสารเผยแพร่:
  • Updated filter algorithms.
  • Added "Post Election Years" filter.
  • Updated FOMC Dates for 2021.
เอกสารเผยแพร่:
  • Add options to use negative X-Offset for Labels. This helps when adding multiple seasonality profile instances to the same chart.
เอกสารเผยแพร่:
  • Added options to hide/show current and historical labels, both for performance and seasonality profiles.
  • Increased total labels and lines to 100 count from 50 count.
เอกสารเผยแพร่:
  • Major improvements to profile generator
  • Added filters for years ending in 0,1,2,3,4,5,6,7,8,9
  • Added additional visibility toggle buttons. All historical and current objects can be turned off and on.
เอกสารเผยแพร่:
  • Bug fix for built in trading view variables.
เอกสารเผยแพร่:
  • Minor cosmetic changes.
เอกสารเผยแพร่:
  • Very happy with this update that converts the filtering to 'Election Cycle' and "Decennial Cycle'. The filters now show the evolution of each cycle type for the correct years, all in one indicator. This means that for election cycles the correct Election, Post, Mid, Pre year is plotted, and for centennial cycles the correct 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 year are plotted. This means that we are viewing the cycle as a whole, normalized as a percentage profile around the zero point.

Example of Election Cycle on DJI looking back 86 years


Example of Centennial Cycle on DJI looking back 86 years

เอกสารเผยแพร่:
  • Fixed minor bug on historical performance display. Visibility flag only.
เอกสารเผยแพร่:
  • Fixed offset problem for "next fomc" label for non leap years.
เอกสารเผยแพร่:
  • Added new filter type: Year Range. This filter allows you to use a range of years to focus on as the seasonality profile. Use the start year and end year in conjunction with the Year Range filter to create a profile that averages the years in between, both inclusive.
  • Fixed "Fit Performance" boolean when no historical performance is selected, automatically set to TRUE.
เอกสารเผยแพร่:
  • Minor cosmetic changes.
เอกสารเผยแพร่:
  • Updated FOMC current and projected dates for 2022.
เอกสารเผยแพร่:
  • Updated 2022 FOMC dates.
เอกสารเผยแพร่:
  • Updated FOMC dates for April 28 -> May 4. Mistake, copied over from 2021.
เอกสารเผยแพร่:
  • Updated product keys.
เอกสารเผยแพร่:
  • Minor update to resizing of window post last FOMC date of the year.
  • Allow for negative vertical y-offsets of labels.
เอกสารเผยแพร่:
  • Fixed label orientations for negative y-offset values.
เอกสารเผยแพร่:
  • Updated 2023 FOMC dates.
เอกสารเผยแพร่:
  • All colors can now be customized.
  • Organized inputs into grouped sections.
  • Overhaul code with new pine updates for speed.

- FEATURE ADDITION -

Monthly performance histogram. These boxes show the average percent performance of a given month over the span of the seasonal profile.

This works as expected for the Election and Decennial cycles, where each month (Jan - Dec) is "bucketed" by its corresponding year in the sequence. For example, in the pre-election year the months of January are averaged in 2003, 2007, 2011, 2015, 2019, 2023 for a Election Cycle lookback length of 20 years (2023 - 20 = 2003).

This added feature is a big bonus to those that want a quick look at how each month performs given the constraints of the filters applied to the seasonal profile.

เอกสารเผยแพร่:
  • Fixed timing issues for monthly histograms using Year Range filter.
เอกสารเผยแพร่:
Plots the daily seasonality profile for any ticker.

This indicator:

  • Operates for any ticker. This indicator will not work properly on anything except a day chart using candlesticks, bars, or Heikin Ashi candles.
  • Any look back period (in years) is possible, as long as there is data available. This indicator will only plot values while the selected look back length is greater than the total number of years available at a given location on the chart.
  • Plots the current performance of the instrument on top of the seasonal profile. This is useful to observe how the current year's performance is unfolding against the expected seasonality profile.
  • Has the option to plot the projected price values based on the seasonality profile. This is used to demonstrate how the instrument "should perform" with real prices instead of percentages. These are simulated prices using the seasonality profile.
  • Has the option to fit the performance to the seasonality profile for easier viewing. This is especially useful when the current performance is vastly different than the expected seasonality.
  • Can plot the current seasonality profile against the current performance AND the historical seasonality profiles against the respective historical performance. This is useful to observe the seasonality evolution in the past, as the profile changes once per year.
  • Has the option to plot all FOMC dates up to 30 years in into the past.
  • Has the option to plot the next FOMC date directly on the chart at the correct future bar location.
  • Has logic for daylight savings time and leap years.
  • Election and Decennial cycle filters.
  • Monthly performance histogram.

สคริปต์เฉพาะผู้ได้รับเชิญเท่านั้น

การเข้าถึงสคริปต์นี้จำกัดเฉพาะผู้ใช้ที่ได้รับอนุญาตจากผู้เขียน และมักจะต้องชำระเงินก่อน คุณสามารถเพิ่มลงในรายการโปรดของคุณได้ แต่คุณจะสามารถใช้งานได้หลังจากขออนุญาตและขอรับจากผู้เขียนเท่านั้น ติดต่อ mortdiggiddy สำหรับข้อมูลเพิ่มเติม หรือทำตามคำแนะนำของผู้เขียนด้านล่าง

TradingView ไม่แนะนำให้ชำระเงินสำหรับการซื้อสคริปต์และไม่แนะนำให้ใช้งานสคริปต์นั้นๆ จนกว่าคุณจะไว้วางใจผู้เขียนสคริปต์ 100% และจนเข้าใจว่าสคริปต์ทำงานอย่างไร ในหกรณีอื่นๆ คุณสามารถหาทางเลือกโอเพนซอร์สที่ดีได้ฟรีในไลบรารีสาธารณะของเรา

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

คำแนะนำของผู้เขียน

Contact @mortdiggiddy on Trading View or Telegram for access, or visit the website to request a trial.

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?

คำเตือน: กรุณาอ่าน ก่อนร้อขอการเข้าถึง