Rejoignez notre page de fans
- Publié par:
- Nikolay Kositsin
- Vues:
- 13975
- Note:
- Publié:
- 2012.02.14 07:58
- Mise à jour:
- 2023.03.29 13:44
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
Real author:
Rosh
There are a lot of ways to measure volatility (changeability). One of them is calculation of the standard deviation of returns for a certain period of time. Sometimes the current volatility on a short period of time (for example, 6 days) is correlated with volatility of a larger period (for example 100 days). This indicator calculates the correlation of a short volatility Vol_short and a long volatility Vol_long:
Vol_change=Vol_short/Vol_long
Standard deviation here is not that from a difference of closing prices, but from logarithms of the correlation of the current day closing price and closing price of a previous day:
Mom[i]=Close[i]/Close[i+1]
Vol_k=Std(Mom,k),
where k is the period of volatility change.
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".
This indicator was first implemented in MQL4 and published in Code Base 03.02.2008.
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/773
![Fx10](https://c.mql5.com/i/code/indicator.png)
The semaphore signal indicator with the values based on five technical indicators: LWMA, SMA, RSI, Stochastic, MACD.
![TrendTriggerMod](https://c.mql5.com/i/code/indicator.png)
The indicator displays trend power and direction.
![MBKAsctrend3](https://c.mql5.com/i/code/indicator.png)
Typical semaphore signal indicator that shows market entry points using color arrows.
![FlatTrend2](https://c.mql5.com/i/code/indicator.png)
The simplest signal indicator for specifying trend power and direction.