Professional Documents
Culture Documents
input_group {
"front.newind.barcolors",
up_color = input { default = "#2CAC40", type = input.color },
down_color = input { default = "#DB4931", type = input.color }
}
rect {
first = 0,
second = mad,
color = mad >= mad [1] 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,
'Bear_Engulfing',
shape_style.arrowdown,
shape_size.huge,"red",
shape_location.abovebar,
0,
"VENDA","red")
end
if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao <
smabo)
then
plot_shape(1,
'Bull_Engulfing',
shape_style.arrowup,
shape_size.huge,"green",
shape_location.belowbar,
0,
"COMPRA","green")
end
plot_shape((open < up_band and high > up_band and close <= up_band and expo >
up_band),
"VENDER1",
shape_style.arrowdown,
shape_size.huge,"white",
shape_location.abovebar,
0,
"RETRACAO", "white")
plot_shape((open > down_band and low < down_band and close >= down_band and
expo < down_band),
"COMPRAR1",
shape_style.arrowup,
shape_size.huge,"white",
shape_location.belowbar,
0,
"RETRACAO", "white")
--IMPULSOS