Nicolas

Volatility Explosive Measure

Category: Indicators By: Nicolas Created: March 14, 2022, 11:35 AM
March 14, 2022, 11:35 AM
Indicators
6 Comments
Volatility Explosive Measure

Measures the volatility range of current price range, can help detect squeezes as well explosive moves (description from original author: ricardo santos)

//PRC_VolatilityExplosiveMeasure | indicator
//14.03.2022
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//converted from pinescript

bulloutput = 0
bearoutput = 0
irange = close - open
doji = irange = 0
upbar = irange > 0 or doji and irange[1] > 0
bullcounter = barssince(not upbar)
if (upbar) then
for i = 0 to max(0, bullcounter - 1)
bulloutput = bulloutput + irange[i]
next
endif

dnbar = irange < 0 or doji and irange[1] < 0
bearcounter = barssince(not dnbar)
if (dnbar) then
for i = 0 to max(0, bearcounter - 1)
bearoutput = bearoutput + irange[i]
next
endif

length = 10
bullma = average[length,1](bulloutput)
bearma = average[length,1](bearoutput)
width = bullma - bearma

return width

 

Download
Filename: PRC_VolatilityExplosiveMeasure.itf
Downloads: 214
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Bateson
4 years ago
#

Bonjour. Merci beaucoup ! J'ai installé l'indicateur sur PRT 11 mais pour des raisons qui m'échappent il trace l'indicateur à l'intérieur même du graphique du prix, sous celui ci et non dans un rectangle séparé sous le graphique du prix. Ca le rend du coup inutilisable puisque je ne peux que conserver le prix ou l'indicateur mais pas visionner les 2 en même temps. Pouvez-vous m'aider ?

Keyeming
4 years ago
#

Thanks, but yes same question as above, some explanations on how to read it would be appreciated.

SnorreDK
4 years ago
#

Works extremely well - How? How do u implement this in a startegy? Breakoutstrategy?

Nicolas
5 years ago
#

Works extremely well in current market.

denmar
5 years ago
#

Hi, does this only work for v11 as I get an error on line 12, character 24 in v10.3 - thanks

Nicolas
5 years ago
#

yes, because BARSSINCE is a new instruction only available in prorealtime version 11.

ProRealCode ProRealCode
Loading...