0% found this document useful (0 votes)
57 views4 pages

Indicteorv 3

The document outlines a trading script for an indicator named 'General Indicadorv3', which includes various input parameters for trading strategies such as buy/sell signals, moving averages, and candle colors. It features automated order placements based on specific market conditions and patterns, including engulfing patterns and price movements. Additionally, it incorporates visual elements like plots and shapes to indicate trading signals and support/resistance levels.

Uploaded by

marcosstrader01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views4 pages

Indicteorv 3

The document outlines a trading script for an indicator named 'General Indicadorv3', which includes various input parameters for trading strategies such as buy/sell signals, moving averages, and candle colors. It features automated order placements based on specific market conditions and patterns, including engulfing patterns and price movements. Additionally, it incorporates visual elements like plots and shapes to indicate trading signals and support/resistance levels.

Uploaded by

marcosstrader01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

instrument { name = "General Indicadorv3", icon="jpg", overlay = true }

input_group {
"Compra",
comprar_color = input {default = "green", type = input.color}
}
input_group {
"Periodo Max/Min",
doch_time = input {default = "10", type = input.string}
}
input_group {
"Periodo da Micro Tendencia",
emaa_per = input {default = "10", type = input.string}
}
input_group {
"Periodo da Macro Tendencia",
emab_per = input {default = "100", type = input.string}
}
input_group {
"Media Rapida",
emac_per = input {default = "3", type = input.string}
}
input_group {
"Media Lenta",
emad_per = input {default = "13", type = input.string}
}
input_group {
"Venda",
vender_color = input {default = "#fcf805", type = input.color}
}
input_group {
"Candles",
positivo = input { default = "#0bd104",type = input.color },
negativo = input { default = "#f70202", type = input.color },
}
--PARAMETROS
EMAA = ema(close,emaa_per)
EMAB = ema(close,emab_per)
EMAC = ema(hlc3,emac_per)
EMAD = ema(hlc3,emad_per)
upper = highest (high, doch_time)
lower = lowest (low, doch_time)
--CALCULOS
TA = ((close > close[1]) and (close > EMAA) and (EMAA > EMAA[1]))
TB = ((close < close[1]) and (close < EMAA) and (EMAA < EMAA[1]))
ENC = ((EMAC[1] < EMAD[1]) and (EMAC > EMAD))
ENV = ((EMAC[1] > EMAD[1]) and (EMAC < EMAD))
sec = security (current_ticker_id, "1m") -- Alterado para 1 minuto
if sec then
local bar_color
if (TA == true) then
bar_color = positivo
place_order("buy") -- Ordem de compra automática
elseif (TB == true) then
bar_color = negativo
place_order("sell") -- Ordem de venda automática
else
bar_color = neutro
end
plot_candle (open, high, low, close, "ES", bar_color)
plot (upper, "Resistencia", upline_color)
plot (lower, "Suporte",lowline_color)
end
input_group { "CALL - UP COLOR", call_color = input { default="#fcfc04", type =
input.color } }
input_group { "PUT - DOWN COLOR", put_color = input { default="#fcfc01", type =
input.color } }

if ((close[1] < open[1]) and (close > open) and (close > high[1]) and close[2] >=
open) then
plot_shape(1,
'Bull_Engulfing',
shape_style.circle,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"Alert",
"A"
)
place_order("buy") -- Ordem de compra automática
else
if ((close[1] > open[1]) and (close < open) and (close < low[1]) and close[2] <=
open) then
plot_shape(1,
'Bear_Engulfing',
shape_style.circle,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Alert",
"A"
)
place_order("sell") -- Ordem de venda automática
end
end
input_group { "UP - UP COLOR", call_color = input { default="#0bd104", type =
input.color } }
input_group { "DOWN - DOWN COLOR", put_color = input { default="#f70202", type =
input.color } }

if ((close > close[1]) and (close[1] > open[2]) and (close[3] > close[2])) then
plot_shape(1,
'Bull_UP',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"compra",
"#fcfc04"
)
place_order("buy") -- Ordem de compra automática
else
if ((close < close[1]) and (close[1] < open[2]) and (close[3] < close[2])) then
plot_shape(1,
'Bear_DOWN',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Venda",
"#fcfc01"
)
place_order("sell") -- Ordem de venda automática
end
end
method_id = input (2, "Type", input.string_selection, { "M1 " })
--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--
--IQ OPTION 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
input_group {
"Maxima",
level_1_color = input { default = "#b59704", type = input.color },
level_1_width = input { default = 2, type = input.line_width }
}
input_group {
"Minima",
level_2_color = input { default = "#b59704", type = input.color },
level_2_width = input { default = 2, type = input.line_width }
}
local function m15(candle)
c1 = candle.high
c2 = candle.low
end
local methods = { m15 }
local resolution = "1m" -- Alterado para 1 minuto
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)
end
percentage = input (3, "Percentage", input.double, 0.01, 100, 1.0) / 100
period = 2
input_group {
"front.ind.dpo.generalline",
up_color = input { default = "#02f7aa", type = input.color },
down_color = input { default = "#f77902", type = input.color },
width = input { default = 1, type = input.line_width }
}
local reference = make_series()
reference:set(nz(reference[1], high))
local is_direction_up = make_series()
is_direction_up:set(nz(is_direction_up[1], true))
local htrack = make_series()
local ltrack = make_series()
local pivot = make_series()
reverse_range = reference * percentage / 100
if get_value(is_direction_up) then
htrack:set(max(high, nz(htrack[1], high)))
if close < htrack[1] - reverse_range then
pivot:set(htrack)
is_direction_up:set(false)
reference:set(htrack)
end
else
ltrack:set(min(low, nz(ltrack[1], low)))
if close > ltrack[1] + reverse_range then
pivot:set(ltrack)
is_direction_up:set(true)
reference:set(ltrack)
end
end
color = is_direction_up() and up_color or down_color
plot(pivot, 'ZZ', color, width, -1, style.solid_line, na_mode.continue)

You might also like