No. Negative will be obtained with a uniform unidirectional movement (including within a bar).
I mean the situation when MathAbs(Open[i]-Close[i])*2<MathAbs(High[i]-Low[i]); - will be a quarter of time approximately... i.e. strong movements in the flat may be and volatility is negative
MathAbs!
When the closing price is equal to the opening price, but not equal to the high and low of the price on that bar, MathAbs will not help. There will be a negative value
MathAbs! It is always positive!
If you subtract a positive value from a greater positive value, you get a negative value. Example: 3-5 = 2
go like this
Vol = MathAbs( MathAbs(Open[i]-Close[i])*2-MathAbs(High[i]-Low[i]));
Uh, maybe the other way around?
Vol = (High[i] - Low[i])*2 - MathAbs(Open[i] - Close[i]);
I mean the situation when MathAbs(Open[i]-Close[i])*2<MathAbs(High[i]-Low[i]); will be a quarter of time approximately... i.e. strong movements in the flat may be, but volatility is negative
Yes I deleted my post almost instantly (after looking at the formula again). :)
Maybe it's vice versa?
Then no twos at all.
Vol = (High[i] - Low[i]) - MathAbs(Open[i] - Close[i]);
This is a subtraction reduction: MathAbs(Open[i] - Close[i]) - (MathAbs(High[i] - Low[i]) - MathAbs(Open[i] - Close[i]))
This is in letters, not fingers.
// In some circles, equivalent transformations are called "syntactic sugar" and are justifiably considered pointless brain-fucking.
The logic is still not clear.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
The way I see it, this formula would allow the advisor or trader to enter the market at the right time, as well as not entering.
If there is already something based on this formula, suggest it and I will close this thread. If not, let's make this indicator together, as I lack experience in programming from scratch. Tried to understand a lot of volatility indicators, but I still don't understand a lot of things, unfortunately...
And the formula:
Where i is the chosen period to summarise with the value of the last bars prevailing, well like in LWMA.
Any suggestions? Just don't send me anywhere, I've already been everywhere, even in a ban.