(max 1 - max 0) - (min 1 - min 0) - 1= range overlap
then total range can be calculated by the following formula;
(max 1 or max 0 (higher of the 2)) - (min 1 or min 0 (lesser of the 2))= total range
then % overlap can be calculated using the following formula:
range overlap divided by total range x 100= % overlap
These formulas need to be incorporated into an indicator for each bar.

Comment