Professional Documents
Culture Documents
Pivot Price
Pivot Price
input_group {
"Support & Resistance",
colorS = input { default = rgba(3, 175, 34, 1), type = input.color },
colorR = input { default = rgba(236, 23, 6, 1), type = input.color },
width = input { default = 1, type = input.line_width},
visibleSR = input { default = true, type = input.plot_visibility },
}
positionsHH = positionOfPrice(pivotHHPricePlot, 2)
positionsLL = positionOfPrice(pivotLLPricePlot, 2)
if visibleSR then
hline(get_value(high[positionsHH_1]), "HH1", colorR, width)
hline(get_value(high[positionsHH_2]), "HH2", colorR, width)
hline(get_value(low[positionsLL_1]), "LL1", colorS, width)
hline(get_value(low[positionsLL_2]), "LL2", colorS, width)
end