Professional Documents
Culture Documents
Rsi Macd
Rsi Macd
overlay = true
Exibir_tracamento= input(1,"")
Exibir= input(1,"Sempre observar atentamente a tendencia e lembrar das 3 ultimas
entradas, se estiver respeitando e um otimo sinal para operar. OBS: Evitar sempre a
abertura e o fechamento do mercado equipe!")
Exibir= input(1,"EfraimTraders! SE FOR USAR DA OS CREDITOS E GRATUITO")
--Macd
fast = input (12, "front.platform.fast period", input.integer, 1, 250)
slow = input (26, "front.platform.fast period", input.integer, 1, 250)
-- Cal Macd
--RSI
rs = up / down
res = 100 - 100 / (1 + rs)
input_group{
"MACD Only",
macd_color_sell = input { default = "red", type = input.color },
macd_color_buy = input { default = "green", type = input.color },
macd_visible = input { default = true, type = input.plot_visibility }
input_group{
"RSI Only",
rsi_color_sell = input { default = "orange", type = input.color },
rsi_color_buy = input { default = "blue", type = input.color },
rsi_visible = input { default = true, type = input.plot_visibility }
input_group{
"RSI and Macd",
rsimacd_color_sell = input { default = "magenta", type = input.color },
rsimacd_color_buy = input { default = "aqual", type = input.color },
rsimacd_visible = input { default = true, type = input.plot_visibility }
SELL_MACD = macd[0] < macd[1] and macd[0] < macd[2] and macd[1] > macd[2] and macd
> 0
BUY_MACD = macd[0] > macd[1] and macd[0] > macd[2] and macd[1] < macd[2] and macd
< 0
SELL_RSI = res[0] < res[1] and res[0] < res[2] and res[1] > res[2] and res[1] >
rsi_ovb
BUY_RSI = res[0] > res[1] and res[0] > res[2] and res[1] < res[2] and res[1] <
rsi_ovs