Professional Documents
Culture Documents
Target Gap 2023
Target Gap 2023
input_group{
"Bull color",
colorUp = input { default = rgba(64, 152, 252, 0.7), type =
input.color},
colorUpLine = input { default = rgba(64, 152, 252, 0.3), type =
input.color},
visibleLineBull = input { default = true, type = input.plot_visibility},
}
input_group{
"Bear color",
colorDn = input { default = rgba(255, 20, 147, 0.7), type =
input.color},
colorDnLine = input { default = rgba(255, 20, 147, 0.3), type =
input.color},
visibleLineBear = input { default = true, type = input.plot_visibility},
}
bullish = iff(close[1] > open[1] and close > open and high[2] < low, true, false)
bearish = iff(close[1] < open[1] and close < open and low[2] > high, true, false)
end
end
end