100% found this document useful (1 vote)
1K views

Call & Put Script

This script plots bullish or bearish engulfing candlestick patterns on the chart. It allows the user to specify colors for call and put signals. If a bullish engulfing pattern is detected where the close is above the open, high and previous close, an upward arrow is plotted in the specified call color. Conversely, a downward arrow is plotted in the put color for bearish engulfing patterns.

Uploaded by

I9 Print
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views

Call & Put Script

This script plots bullish or bearish engulfing candlestick patterns on the chart. It allows the user to specify colors for call and put signals. If a bullish engulfing pattern is detected where the close is above the open, high and previous close, an upward arrow is plotted in the specified call color. Conversely, a downward arrow is plotted in the put color for bearish engulfing patterns.

Uploaded by

I9 Print
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

instrument {overlay = true,

name = 'CALL & PUT SCRIPT',


short_name = 'ENGF',
icon="indicators:ADX"}

input_group { "CALL - UP COLOR", call_color = input { default="#00FF00", type =


input.color } }
input_group { "PUT - DOWN COLOR", put_color = input { default="#FF0000", type =
input.color } }

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 PROXIMA VELA",
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 PROXIMA VELA",
put_color)
end
end

You might also like