Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1541
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
What's the point? What's the point?
I'm telling you, I wrote it in my sleep. )) Corrected.
Regards, Vladimir.
Corrected version:
With respect, Vladimir.
Isn't it true that SYMBOL_PRICE_VOLATILITY and ATR are different things in general?
like in school, check what is measured and what is counted from....
the first one is a reference parameter from the specification (or translated by DC), not related to timeframes and measured in %.
the second is statistical for an arbitrary period of a specific timeframe, measured in quote units.
for familiar Forex SYMBOL_PRICE_VOLATILITY is not used and is not broadcasted. But we have not only Forex here.
For example, exchange instruments have a similar thing in their specifications and general conditions - the upper limit of price change per session, after which trading will be automatically suspended. It is large, rare, but it is there
but is it ok that SYMBOL_PRICE_VOLATILITY and ATR are different things in general ?
Maxim, it's good that you reacted to this topic. Frankly speaking, I am far away from the volatility topic and I still can't understand why this volatility is needed and why this topic is raised many times but is not fully disclosed. The only thing I have understood is that there is supposedly a dependence of price chart reversal at a significant increase in volatility. Besides, I have read several topics related to the application of the ATR volatility indicator, but having installed it on the chart, I have not seen anything so valuable. Could you tell me in a concise form what is so valuable for a trader? I would be very grateful.
Regards, Vladimir.
The only thing I understood was that there is supposedly a dependence of price chart reversal at a significant increase in volatility. Besides, I have read several topics related to the application of the ATR volatility indicator, but having installed it on the chart, I have not seen anything so valuable. Could you tell me in a concise form what is so valuable for a trader? I would be very grateful.
If you write a multi-volume book about Forex (or about TA in general), 2/3 of volumes will be about volatility in one way or another :-)
The simplest practical application of ATR is to add the "shift" parameter to the code you have given, because the "shift" parameter will be added to the code.
The market is cyclical, periodic and the ATR (average true range, amplitude of volatility) repeats itself time after time.
Intraday: shift your indicator reading to the right by PeriodSeconds(PERIOD_D1)/PeriodSeconds(PERIOD_CURRENT)-ATR_PERIOD/2. That is, by the number of bars for 1 day minus the "delay" from ATR averages.
get the average range (distance from Open to the farthest high/low, price spread) as it was yesterday at the same time. Now you can compare the current candlestick size with it and draw conclusions whether trading is more active or vice versa. It is already good
In passing, purely technical: in 99% of cases in TA we use window functions, i.e. averages, comparisons for some period. They all fail in three cases: when small values within windows are almost identical, when values at the ends of windows are too different, and when values are large but "all over the place". This roughly correlates with small and significant ATR and its reversals. That is, when the range is small, the indicators are too sensitive and react to the slightest noise, and when it rises sharply (or falls sharply), it is also nonsense
you can go on and on... :-)
Within a day: shift your indicator readings to the right by PeriodSeconds(PERIOD_D1)/PeriodSeconds(PERIOD_CURRENT)-ATR_PERIOD/2. That is, by the number of bars for 1 day minus the "delay" from ATR averages ...
Thank you, Maxim, for your attention and answer! Now I have something to think about.
Regards, Vladimir.
Corrected version:
With respect, Vladimir.
Such a case...
I must say that I have become more aware of the essence of volatility. I used to think it was the deviation of prices from the average price. But both ATR and theory say it's a corridor of prices.Thank you. However, no one has answered what the function of the indicator with the number of periods 0 produces and why only 3 elements are copied and how to copy all of them, if necessary, and whether it is necessary:
Such a case...
I must say that I have become more aware of the essence of volatility. I used to think it was the deviation of prices from the average price. But both ATR and theory say it's a corridor of prices.It doesn't give anything away. The minimum can be 1:
If you enter a value less than 1, it will default to 14:
This is how it is done in the indicator. Of course, you can do anything you want, but a period less than 1 will not give anything in the calculations.
Why do you need a zero calculation period? What is the point?
No output. The minimum can be 1:
If you enter a value less than 1, the default value of 14 will be set:
Thank you. Now it is clear.
Artyom Trishkin #:
Why do you need a zero calculation period? What is the point?
I was wondering how to get the volatility of the current candle using the indicator's standard tools.
As for the second part of the question,"why only 3 elements are copied and how, if necessary, and whether it is necessary to copy all of them", is there any explanation?Thank you. I see now.
I was wondering how to get the volatility of the current candle using the indicator's standard tools.
As for the second part of the question,"why only 3 elements are copied and how, if necessary, and whether it is necessary to copy all of them", is there any explanation?