Added an adjustable tolerance zone which can be used to further discern low risk opportunities.
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.