거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Stochastic volatility - on chart - MetaTrader 5용 지표

조회수:
8726
평가:
(21)
게시됨:
2018.10.09 19:10
업데이트됨:
2019.01.29 14:07
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The theory:

The indicator is made after the original work and idea of Francesco G. Cavasino (described in his published article "Stochastic volatility").

  • Original stochastic (OriginalStoch input variable in the code or Calculate using original stochastic option in the inputs tab of the indicator) - do you want the indicator to calculate the smoothness of the stochastic the original George Lane way or do you want it to be calculated as an EM. By default it is set to true.
  • Original volatility (OriginalVolatility input variable in the code or Calculate using original volatility option in the inputs tab of the indicator) - in the original indicator historical volatility was predicted to be calculated on daily data and the assumption was that there are 252 working days in a year. If you are using the indicator on a time frame that is not daily, it is probably smarter to turn the original volatility calculation off (setting this parameter to false).

Some explanation of usage:

This is not a directional indicator. This means that even it is stochastic it does not show the direction of the market, but shows the direction-amount-size of volatility. The assumption that seems sound enough and after which this indicator is made is that in the times of extremely low volatility it is a good time to enter the market, since the change in volatility is imminent. Those times are marked by red lines in the indicator sub-window and by red candles on chart. For direction of entry, you should use some other trend showing indicator(s).

This version:

One version was already posted (a "regular" sub-window version, it was published here: Stochastic volatility) but this one is not using that indicator for work. The reason why it is not, is that some operations (like calculation long period simple moving average and standard deviation on a modified data that is not standard data is very, but very slow if coded as pure MQL). Hence this indicator is broken into functional parts that are each doing the job using whenever built in indicators are possible to use, and which, when combined, are doing the complete job.

Attached are all the mq5 files, but for the sake of simplicity (since some are going to have issues to compile this) all the ex5 files (in the attached zip file) are going to be attached in a separate post following this post so that one does not need to know all the steps how to make a multi file compilation that expects certain steps to be followed in exact order.

Each and every attached indicator can work on its ow, but the two "final" indicators are the "on-chart" and the "2" indicators. The "base" indicators are, what their name tells, used for base calculations. Here is the look of the "on-chart" version (it automatically loads the "2" too in order to display it on the same chart) :

And here is the "2" alone :

The on-chart version helps you identify exactly what bars are in question that are "candidates" for change in trend or market conditions following (like on the "big picture" example bellow).


PS: do not change the settings of the lower sub-window indicator if you are using the on-chart indicator. Instead change all the settings from the indicator that is attached on the chart 0 changes will be reflected in the sub-window indicator too.




Vidya Vidya

Variable Index Dynamic Average (VIDYA)

VHF adaptive VMA VHF adaptive VMA

VHF adaptive VMA

Step average Step average

Step average

Step average (atr based) Step average (atr based)

Step average - average true range based