Professional Documents
Culture Documents
function prev(s,i)
y=abs(round(i))
return s[y]
end
varp = round(length/5)
h_f = length > 7
plot_candle {
open = vopen,
high = vhigh,
low = vlow,
close = vclose,
candle_color = colorr
}
hline(extTop,"","red")
hline(extBot,"","white")
hline(sigTop,"","red")
hline(sigBot,"","white")
hline(fairTop,"","red")
hline(fairBot,"","white")
if ((close[1] < open[1]) and (close > open) and (close > high[1]) and close[1] >=
open) then
plot_shape(1,
'Bull_Engulfing',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"CALL",
call_color )
else
if ((close[1] > open[1]) and (close < open) and (close < low[1]) and close[1]
<= open) then
plot_shape(1,
'Bear_Engulfing',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"PUT",
put_color)
end
end