Professional Documents
Culture Documents
Script CC 2023
Script CC 2023
plot_shape((close[1] < open[1]) and (close > open) and (close > high[1]),
'Bull_Engulfing',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"Engolfo de Alta",
call_color )
plot_shape((close[1] > open[1]) and (close < open) and (close < low[1]),
'Bear_Engulfing',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Engolfo de Baixa",
put_color)
else
if (include_gap == 2 and show_engulfing == 1) then
plot_shape((close[1] < open[1]) and (close > open) and (close > high[1])
and (close[1] >= open),
'Bull_Engulfing',
shape_style.arrowup,
shape_size.huge,
call_color,
shape_location.belowbar,
0,
"Engolfo",
call_color)
plot_shape((close[1] > open[1]) and (close < open) and (close < low[1]) and
(close[1] <= open),
'Bear_Engulfing',
shape_style.arrowdown,
shape_size.huge,
put_color,
shape_location.abovebar,
0,
"Engolfo",
put_color)
end
end
if (show_hammer == 1) then
plot_shape((open < close and close > high - ((high - low)*0.05) and (abs(close
- open)) < ((high - low)*0.4) and (abs(close - open)) > ((high - low)*0.1)),
'Hammer',
shape_style.arrowup,
shape_size.huge,
hmr_color,
shape_location.belowbar,
0,
"Martelo",
hmr_color )
plot_shape((open < close and open < low + ((high - low)*0.05) and (abs(close -
open)) < ((high - low)*0.4) and (abs(close - open)) > ((high - low)*0.1)),
'Inverted Hammer',
shape_style.arrowup,
shape_size.huge,
ihmr_color,
shape_location.belowbar,
0,
"Martelo Inv.",
ihmr_color)
plot_shape((open > close and open > high - ((high - low)*0.05) and (abs(close -
open)) < ((high - low)*0.4) and (abs(close - open)) > ((high - low)*0.1)),
'Hanging Man',
shape_style.arrowdown,
shape_size.huge,
hgm_color,
shape_location.abovebar,
0,
"Enforcado",
hgm_color)
plot_shape((open > close and close < low + ((high - low)*0.05) and (abs(close -
open)) < ((high - low)*0.4) and (abs(close - open)) > ((high - low)*0.1)),
'Shotting Star',
shape_style.arrowdown,
shape_size.huge,
shtr_color,
shape_location.abovebar,
0,
"Shotting Star",
shtr_color)
end
if (show_marubozu == 1) then
plot_shape(((open < close) and ((close > high) - ((high - low)*0.02)) and
((open < low) + ((high - low)*0.02)) and ((abs(close - open)) > ((high -
low)*0.95))),
'Marobozu UP',
shape_style.arrowup,
shape_size.huge,
mbup_color,
shape_location.belowbar,
0,
"Marubozu",
mbup_color)
plot_shape(((open > close) and ((close < high) + ((high - low)*0.02)) and
((open > low) - ((high - low)*0.02)) and ((abs(close - open)) > ((high -
low)*0.95))),
'Marubozu Down',
shape_style.arrowdown,
shape_size.huge,
mbdn_color,
shape_location.abovebar,
0,
"Marubozu",
mbdn_color)
end