New to this forum. Also has no coding experience. I want to label/draw line between consecutive candle bars (HA candle) that has same high or low. I got this part of this code from post on this forum together with the learning center. But the code only label a small percentage of those bars. Those bars with same high/low that were not identified by the code were marked with arrow below or under. These were identified based on the high/low readings on the chart up to 2 decimal points. Please see attached screenshot. Below is the code, could someone kindly help me to troubleshoot this?
plot LowestClose = if Round(low[1]) == Round(low) then round(low) else double.NaN;
plot HighestClose = if Round(high[1]) == Round(high) then round(high) else double.NaN;
plot LowestClose = if Round(low[1]) == Round(low) then round(low) else double.NaN;
plot HighestClose = if Round(high[1]) == Round(high) then round(high) else double.NaN;