KioseffTrading

Average Quarterly and Annual Gain/Loss (Color Divided)

KioseffTrading Wizard تم تحديثه   
Hello!

Simple script here!
(BE SURE TO TRY WITH BAR REPLAY)

This indicator measures the current quarterly gain/loss (Q1, Q2, Q3, Q4) and the average quarterly gain/loss.
The average percentage gain/loss for Q1, Q2, Q3, and Q4 are calculated and displayed on the chart; colors are adjustable.
By default, Q1 is measured as blue, Q2 as green, Q3 as red and Q4 as yellow.

Also measured is the average annual percentage gain/loss and the current year's running gain/loss.

Years are split by a dashed line, beneath which a label displays that year's percentage gain or loss, in addition to the average annual gain or loss.

Labels and lines update per bar!

A constantly updating line connects the high price of the first session for a quarter to the current high price. The line will delete and restart when a new quarter occurs.
Labels, lines, and line fills are color coded. So, any change to the quarterly/annual color scheme will change the color for all labels, lines, and line fills for that particular quarter!

Thanks for reading!
ملاحظات الأخبار:
Made more compatible with low priced assets!
ملاحظات الأخبار:
Added options to remove lines and labels so only the Quarter divider line fills will show!

Also, added timeframe adjustments to make the script more compatible with intrasession timeframes.
ملاحظات الأخبار:
Added the highest high and lowest low for each quarter. The script will now detect the highest high for Q1, Q2, Q3, and Q4 in addition to the lowest low for each quarter.

Let me know if you would like me to include other measures!
ملاحظات الأخبار:
The annual connector dashed-white line will now appear when choosing to hide labels and lines.
ملاحظات الأخبار:
Script starts at the first year change now!
ملاحظات الأخبار:
Minor change to source code - fixed a string
ملاحظات الأخبار:
Added tooltips to all the labels displayed on the chart.

Hovering over a label displays the corresponding statistics displayed on that label for the S&P 500!

Hopefully, this addition will be useful to position traders hunting for Alpha!

You can compare the current performance of the asset, for the quarter, to the current performance of the S&P 500 for the quarter.

You can also compare the average quarterly performance for the asset to the average quarterly performance for the S&P 500. However, the average quarterly performance metric begins calculating on the start year for the asset on your chart!

You can also compare historical quarter performance of the S&P 500 to historical quarter performance for the asset you are analyzing.

I hope you enjoy the addition and thank you for checking out this script!
ملاحظات الأخبار:
Fixed an accidental plot
ملاحظات الأخبار:
Fixed one more accidental plot
ملاحظات الأخبار:
Added additional performance calculations for the S&P 500 against the asset you are analyzing!

The script now calculates the percentage discrepancy between the current quarter and annual return of the asset and the S&P 500 (benchmark).

ibb.co/rvQ97jG
ملاحظات الأخبار:
Added an input.symbol option is the user inputs tab that allows you to select a benchmark asset to compare against the performance of the asset on your chart.

You can compare the Q1, Q2, Q3, and Q4 gain/loss of any asset that Tradingview provides data for to the asset on your chart! The average quarterly gain and average annual gain will also adjust the asset you select as a benchmark.

Try it out in the user inputs tab!
ملاحظات الأخبار:
Group string message added
ملاحظات الأخبار:
Added top right instructions for users who access this script using the search function
ملاحظات الأخبار:
Memory calculation compliant

•Access to Next-Gen Optimization Tools: www.kiosefftrading.com

•Discord Server: discord.gg/3cKVU28Z9Z
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟