Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Bullex Rei

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 11

instrument { name = "BULLEX REI" }

period = input (2, "front.period", input.integer, 1)


hh_period = input (10, "HH/LL Loockback", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.newind.lines",
line_up_color = input { default = "#25E154", type = input.color },
line_down_color = input { default = "#FF6C58", type = input.color },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.2), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.2), type = input.color }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7, max
(ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 + ma9 +
ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}
instrument { name = "BULLEX REI" }
period = input (2, "front.period", input.integer, 1)
hh_period = input (10, "HH/LL Loockback", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.newind.lines",
line_up_color = input { default = "#25E154", type = input.color },
line_down_color = input { default = "#FF6C58", type = input.color },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.2), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.2), type = input.color }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7, max
(ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 + ma9 +
ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}

instrument { name = "Bullex Rei", icon="indicators:ADX", overlay = true }


method_id = input (1, "Type", input.string_selection, { "BULL_EX" })

--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--


--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--BULLEX LOGIN JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
input_group {
"Maxima",
level_1_color = input { default = "red", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
input_group {
"Minima",
level_2_color = input { default = "green", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local function m15(candle)
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
c1 = candle.high
c2 = candle.low
end
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
local methods = { m15 }
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----IQ OPTION LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--IQ OPTION LOGIN JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
local resolution = "15m"
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
sec = security (current_ticker_id, resolution)
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
--BULLEX LOGIN JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOdsdgvxcvIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDxcvxgdfSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors
--linecolors 28739124
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--BULLEX HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
-- start lines
--colors
--linecolors 28739124
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4dgeh5WOIFSDFJFBNWE9RHIEF
-- start lines
--colors ()JN6BT%R$%J()7654jHGGJGU$#@#$@#%$@#NMLKJHJCGRCH
--linecolors 28739124
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS-- -
-- start lines
--colors
--linecolors 28739124
if sec then
local method = methods [method_id]
method (sec)
--BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
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) --BULLEX SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--BULLEX SCRIPT HAOAN,
--SD 9870DFS DS87SDF BDSJBJSDF8 DFNS----BULLEX LOGIN JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--SDJKO3Q384EF8JSDFEESRJSDFFDSDFSD56D6843543SDF
--hgy&y*(&(&*(y9H78YG9U8HO8V6RfghyujgfjhfgCHBVKUYTKKBLLHBLIY--JNASDU8Q737YQ!@#$
%&*()H9DS8AJDLKAMSDLKW4bnfgkguyloWOIFSDFJFBNWE9RHIEF
--HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--JNASDU8Q737YQ!@#$%&*()H9DS8AJDLKAMSDLKW4WOIFSDFJFBNWE9RHIEF

end

instrument{name="Instagram @fredson_trader",
short_name="BULL_EX",
icon = 'indicators:BB',
overlay=true}

Exibir_tracamento= input(1, "Deseja exibir o tracamento na Bullex?",


input.string_selection, {"SIM", "NAO"})

input_group {"BANDA SUPERIOR", bbsup_color= input{ default= "White", type=


input.color}}
input_group {"BANDA INFERIOR", bbinf_color= input{ default= "White", type=
input.color}}

smaa= sma(close, '25')


upper_band= smaa + (stdev(close,25) * 3.0)
lower_band= smaa - (stdev(close,25) * 3.0)
emaa= ema(close, '100')

if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_band, "UPPER_BAND", bbsup_color)
plot(lower_band, "LOWER_BAND", bbinf_color)
end

instrument {
name = 'Bullex Rei',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}

MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)


MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)

MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)

Signal_period = input(5,"Signal period",input.integer,1,1000,1)

input_group {
"Compra",
colorBuy = input { default = "green", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}

input_group {
"Venda",
colorSell = input { default = "red", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}

local titleValue = inputs[MaValue]

-- mdia mvel linear rpida


smaFast = sma(titleValue, MaFast_period)

-- mdia mvel linear devagar


smaSlow = sma(titleValue, MaSlow_period)

-- calculo diferencial - serie


buffer1 = smaFast - smaSlow

-- clculo da mdia mvel ponderada - serie


buffer2 = wma(buffer1, Signal_period)

buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1] and not
(buffer1 < buffer2 and buffer1[1] > buffer2[1]))
buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1])

sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] and not
(buffer1 > buffer2 and buffer1[1] < buffer2[1]))
sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] )

plot_shape(
(buyCondition),
"REI NA BULLEX",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"REI NA BULLEX",
"White"
)

plot_shape(
(sellCondition),
"REI NA BULLEX",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"REI NA BULLEX",
"White"
)

instrument { name = "BULLEX REI" }


period = input (2, "front.period", input.integer, 1)
hh_period = input (10, "HH/LL Loockback", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.newind.lines",
line_up_color = input { default = "#25E154", type = input.color },
line_down_color = input { default = "#FF6C58", type = input.color },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.2), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.2), type = input.color }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7, max
(ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 + ma9 +
ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}

instrument { name = "BULLEX REI" }


period = input (2, "front.period", input.integer, 1)
hh_period = input (10, "HH/LL Loockback", input.integer, 1)
source = input (1, "front.ind.source", input.string_selection, inputs.titles)
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
input_group {
"front.newind.lines",
line_up_color = input { default = "#25E154", type = input.color },
line_down_color = input { default = "#FF6C58", type = input.color },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"front.newind.adx.fill",
fill_up_color = input { default = rgba(37,225,84,0.2), type = input.color },
fill_down_color = input { default = rgba(255,108,88,0.2), type = input.color }
}
input_group {
"front.platform.baseline",
zero_color = input { default = rgba(255,255,255,0.15), type = input.color },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7, max
(ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 + ma9 +
ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}

You might also like