OPEN-SOURCE SCRIPT
Atualizado Dual Ulcer Index [DW]

This study is an experimental variation of Peter Martin's Ulcer Index that calculates the risk measures in the long and short direction for comparison.
The index is a measure of volatility that can be used to locate low risk trading opportunities.
The index is a measure of volatility that can be used to locate low risk trading opportunities.
Notas de Lançamento
Simple update:Added an adjustable tolerance zone which can be used to further discern low risk opportunities.
Notas de Lançamento
Updates:Cleaned up the code. Condensed the operations into a singular function.
Shortened the default sampling period.
Added an auto threshold option, which automatically determines the tolerance threshold based on statistical average distance between long and short UIs.
Enhanced the color scheme. The fill color now reflects which direction is dominant, whether the direction is reinforcing or pulling back, and whether the downside risk for the direction is within the threshold boundary or not.
Bar colorization has been added to the script. The color scheme is the same as the fill color.
Removed the background color because it is now unnecessary.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
For my full list of premium tools, check the blog:
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
For my full list of premium tools, check the blog:
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
wallanalytics.com/
Reach out on Telegram:
t.me/DonovanWall
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.