0% found this document useful (0 votes)
20 views1 page

Engulfing Pattern Call & Put Script

This document defines a trading script for identifying bullish and bearish engulfing patterns. It includes customizable input colors for call and put signals and specifies conditions for plotting shapes on a chart. The script uses logical conditions to determine when to display upward or downward arrows based on price movements.

Uploaded by

mrbaravi87
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Engulfing Pattern Call & Put Script

This document defines a trading script for identifying bullish and bearish engulfing patterns. It includes customizable input colors for call and put signals and specifies conditions for plotting shapes on a chart. The script uses logical conditions to determine when to display upward or downward arrows based on price movements.

Uploaded by

mrbaravi87
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

instrument { overlay = true,

name = 'CALL & PUT SCRIPT',


short_name = 'ENGF',
icon = "indicators:ADX"
}
input_group{ "CALL - UP COLOR", call_color = input { default ="#00FF00", type =
[Link]} }
input_group{ "PUT - DOWN COLOR", put_color = input { default ="#FF0000", type =
[Link]} }
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.auto,
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.auto,
put_color,
shape_location.abovebar,
0,
"PUT ",
put_color)
end
end

You might also like