Script IQ Option 97%
Script IQ Option 97%
Script IQ Option 97%
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 },
neutro = input { default = "#2f3633", 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")
if sec then
local bar_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"
)
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"
)
end
end
plot_shape(1,
'Bull_UP',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"ok",
"#fcfc03"
)
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,
"ok",
"#fcfc03"
)
end
end