PROTECTED SOURCE SCRIPT

Same Day Price Volatility [5ema]

已更新
Indicator visualizes the price volatility of the current day alongside historical volatility patterns of the same weekday across previous weeks. It highlights high, low, and total volatility ranges with interactive boxes, labels, and average lines for easy analysis.

=====
A. How to Calculate?

*Current Day Volatility:

High Volatility: High − Open
Low Volatility: Low − Open
Total Volatility: High − Low

*Historical Volatility:

  • The script scans historical data for the same weekday over the past number weeks (default: 12 weeks).
  • It calculates the high, low, and total volatility for each historical same day.


Average Lines:
Averages for high, low, and total volatility are calculated from historical values and plotted as dotted lines.

=====
B. How to Set Up?

Inputs:
  • Weeks Back (nb): Number of past weeks to include in historical calculations (default: 12).
  • Position (pos): Horizontal offset for displaying boxes and labels (default: 50).
  • Colors: Customize box colors for high, low, and total volatility ranges.


=====
C. How to Use?

Analyze Current Day Volatility:
  • The script displays boxes for today's high, low, and total volatility relative to the opening price.
  • Labels provide detailed tooltips for easy interpretation.


Compare Historical Patterns:

  • Historical volatility boxes for the same weekday are plotted for up to number weeks.
  • Labels display the exact date and volatility values for each historical day.


Utilize Average Volatility Lines:

  • Use the average lines to compare today's performance against historical averages for high, low, and total volatility.


Customizing Visualization:

  • Adjust the pos input to reposition the boxes and labels if overlapping with price data.
  • Modify the colors to suit your preferred visual style.


=====
This indicator is for reference only, you need your own method and strategy.
If you have any questions, please let me know in the comments.

發行說明
change location some line code!
發行說明
Add extend line/
發行說明
update value/
發行說明
add condition for bar position when inputting large number
發行說明
update condition of date./
發行說明
This updated version, I will make the description clearer ^^.

=====
First of all, thanks to PineCoders Mods for warning me about the previous indicator description!

=====
A few updates in the new version:

  • []Added a warning for timeframes different from 1D, as the indicator works only on 1D.
    []Improved some code styles.


=====
What is its purpose?

  • Check Day Price Volatility for today (Fri) and the same weekday (Fri) from last week (or other weeks).

    快照
  • Refer the average price line, similar to support and resistance levels.


快照

=====
How is it calculated?

  1. []For the same weekday in previous weeks, I calculate volatility as (High - Open), (Low - Open), and (High - Low).
    []To display bars, I add these values to today's Open price.
  2. For the average line, I calculate the average volatility over the weeks and add it to today's Open price.


快照

=====
What to note?

  • []The date might be slightly off for some exchanges (e.g., 1-day difference) due to timezone or pre/extended markets. But it’s mostly accurate—don’t worry ^^!
    []If you set a large number of weeks (e.g., >55, default is 12), the columns may overlap with the chart.


======
I hope this helps you better understand my indicator.
Good luck!
發行說明
updated chart!
Historical Volatilitypriceactionanalysisvolatilty

受保護腳本

該腳本是閉源發佈的,您可以自由使用。您可以把它加入到常用以在圖表上使用它。您無法查看或修改其原始碼。

想在圖表上使用此腳本?

免責聲明