Professional Documents
Culture Documents
if ((close > close[2]) and (close[2] > open[2]) and (close[4] > close[8])) then
plot_shape(1,
'Bull_OTC',
shape_style.triangleup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"PV COMPRE",
"green"
)
else
if ((close < close[2]) and (close[2] < open[2]) and (close[4] < close[8])) then
plot_shape(1,
'Bear_OTC',
shape_style.triangledown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"PV VENDA",
"red"
)
end
end
ha_op = (open[1]+close[1]) / 2
ha_cl = (open + high +low + close) / 4
ha_hg = high
ha_lw = low