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

보호된 스크립트입니다

이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.

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

면책사항