Professional Documents
Culture Documents
-- shared by https://www.youtube.com/@indicadoresyplantillasgratis
-- join our free channel https://www.youtube.com/@indicadoresyplantillasgratis
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close <=
emaa ) then
plot_shape (1,
"Down",
shape_style.arrowdown,
shape_size.auto,
down_color,
shape_location.abovebar,
0,
" Down ",
1)
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao <
smabo)
then
plot_shape (1 ,
"Up",
shape_style.arrowup,
shape_size.auto,
up_color,
shape_location.belowbar,
0,
"Up",
1)
end
input_group {
"COMPRA",
colorBuy = input { default = "#00F900", type = input.color },
visibleBuy = input { default = true, type = input.plot_visibility }
}
input_group {
"VENDA",
colorSell = input { default = "#F90000", type = input.color },
visibleSell = input { default = true, type = input.plot_visibility }
}
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),
"COMPRA",
shape_style.arrowup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"COMPRA",
"green"
)
plot_shape(
(sellCondition),
"VENDA",
shape_style.arrowdown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"VENDA",
"red"
)