instrument { name = "Blacklevel D1", icon="indicators:ADX", overlay = true } method_id = input (1, "Type", input.string_selection, { "Blacklevel_D1" }) input_group { "Maxima", level_1_color = input { default = "White", type = input.color }, level_1_width = input { default = 1, type = input.line_width } } input_group { "Minima", level_2_color = input { default = "White", type = input.color }, level_2_width = input { default = 1, type = input.line_width } } local function d1(candle) c1 = candle.high c2 = candle.low end local methods = { d1 } local resolution = "1D" sec = security (current_ticker_id, resolution) if sec then local method = methods [method_id] method (sec) plot (c1, "C1", level_1_color, level_1_width, 0, style.levels, na_mode.continue) plot (c2, "C2", level_2_color, level_2_width, 0, style.levels, na_mode.continue) --IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- end