A guy who automatically draws a horizon from the top of the zigzag *Gray horizon may be repainted The horizon of the characteristic price in the past reacts well, so it is used for contrarian
Hello. Tell me to really add the code so that the lines are not displayed on the entire chart, but for example on the price range. So that in the settings you can manually specify the range on which to draw support and resistance lines. For example BTC 18000-25000. It would be very convenient. Thanks in advance!
pivots(src, length, isHigh) => p = nz(src[length]) if length == 0 [time, p] else isFound = true for i = 0 to math.abs(length - 1) if isHigh and src > p isFound := false if not isHigh and src < p isFound := false for i = length + 1 to 2 * length if isHigh and src >= p isFound := false if not isHigh and src <= p isFound := false if isFound and length * 2 <= bar_index [time[length], p] else [int(na), float(na)]