TradingView
StCogitans
2022年8月31日午前10時24分

Volatility 

Waves / TetherUS PERPETUAL CONTRACTBinance

詳細

Volatility - The amount of price deviation in the specified time interval.

The calculation is made from the opening point to the closing point, and the maximum and minimum deviation between them is also included. Any timeframes are supported.

Available information: the start date of the calculation (according to the time zone of the exchange), the current volatility from the initial opening point or from the last closing point, the total volatility for all periods.

An indicator of useful use in everyday work.

Thanks for your attention!

リリースノート

Updating the code. Adding new parameters.

リリースノート

Update for the chart.

リリースノート

Code update:
- Fixed calculation starting point error
- Added check for the correctness of the calculation in the absence of time intervals

In markets where there are weekends, it is better to calculate by session when the market is open.
For example: 1H, EURUSD, FXCM, Calculation date: 28.08.2022 17:00 - 02.09.2022 17:00 (UTC-4).

リリースノート

Code update. Adding the ability to resize a table.

リリースノート

Minor changes. Added rounding to the tick accuracy of the displayed volatility in the table when choosing a deviation - "Pricing". Added more options for table management.

リリースノート

Minor changes.

リリースノート

Minor changes. Hours, minutes and seconds have been removed from the start time for calculating volatility on the daily, weekly and monthly charts.

リリースノート

Minor changes.

リリースノート

Updated chart.
コメント
Crypto_Popat
Great script, it would be great if there is any way to add an sma length as standard deviation.
StCogitans
@Crypto_Popat, Hello, thank you for the assessment! Regarding the addition of the moving average SMA, do you mean to add the ability to calculate the deviation of the moving average instead of the true instrument price?
Crypto_Popat
StCogitans
@Crypto_Popat, The indicator was not originally conceived for further modification by adding various tools, such as moving averages and so on, but shows the net deviation of the true price. But if your option seems appropriate and useful, and if there is free time to work, then perhaps I will do it.
Crypto_Popat
@StCogitans, i used to play with sma 7 or 30 std while looking at bitcoin or eth, thought it will be helpful somehow
StCogitans
詳細