Professional Documents
Culture Documents
input_group {
"front.newind.barcolors",
up_color = input { default = "#daa520", type = input.color },
down_color = input { default = "#daa520", type = input.color }
}
rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
rect {
first = 0,
second = mad,
color = mad >= mad [5] and up_color or down_color,
width = 0.4}
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close <=
emaa ) then
plot_shape (1,
"CASH VENDA",
shape_style.arrowdown,
shape_size.huge,
down_color,
shape_location.abovebar,
0,
" CASH VENDA ",
1)
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao <
smabo)
then
plot_shape (1,
"CASH COMPRA",
shape_style.arrowup,
shape_size.huge,
up_color,
shape_location.belowbar,
0,
"CASH COMPRA",
1)
end