Professional Documents
Culture Documents
Limite Do Preço
Limite Do Preço
Limite Do Preço
instrument {
name = 'LIMITE DO PREÇO',
short_name = 'SMA-ENG',
icon = 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fyt3.ggpht.com
%2FPiZU7Fvv3F8LyGrToM8ATVvG2at00b8DpGjTSf1EKUxFwkhSnCuEqgGsad0kYWxSE1eK3bOYEeM
%3Ds900-c-k-c0x00ffffff-no-rj&imgrefurl=https%3A%2F%2Fwww.youtube.com%2Fchannel
%2FUCJWt1lVVxpYPC8txs28mhmg&tbnid=eD2nGmxR49FRpM&vet=12ahUKEwiRx_HiktD0AhXDBrkGHT_f
Bo0QMygBegQIARB6..i&docid=scWF6WVPzh2efM&w=900&h=900&q=jose
%20trader&ved=2ahUKEwiRx_HiktD0AhXDBrkGHT_fBo0QMygBegQIARB6',
overlay = true
}
Exibir_tracamento= input(1, "Deseja exibir o tracamento?", input.string_selection,
{"SIM", "NAO"})
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
input_group {
"MAXIMA",
comprar_color = input {default = "light blue", type = input.color}
}
input_group {
"MAXIMA",
vender_color = input {default = "pink", type = input.color}
}
--IMPULSOS
"put",
shape_style.arrowdown,
shape_size.huge,
vender_color,
shape_location.abovebar,
0,
"MAXIMA",
vender_color)
-- RETRAES
plot_shape((open < up_band and high > up_band and close <= up_band and expo >
up_band),
"VENDER1",
shape_style.arrowdown,
shape_size.huge,
vender_color,
shape_location.abovebar,
0,
"MAXIMA",
vender_color)
plot_shape((open > down_band and low < down_band and close >= down_band and
expo < down_band),
"COMPRAR1",
shape_style.arrowup,
shape_size.huge,
comprar_color,
shape_location.belowbar,
0,
"MAXIMA",
comprar_color)
end