'Plot Divergence on Main chart and Comparison Chart

Plot Divergence on the main chart and also on the comparison chart.

So my main chart will be Crude oil chart and I will add another market of Natural Gas, I want to build an indicator that will look at both the line charts of the CL and NG and would plot a divergence when they occur. ( plot on both line charts)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source