17 0 16 KB
instrument {overlay = true, name = 'CALL & PUT SCRIPT', short_name = 'ENGF', icon="indicators:ADX"} input_group input.color input_group input.color
{ } { }
"CALL - UP COLOR", call_color = input { default="#00FF00", type = } "PUT - DOWN COLOR", put_color = input { default="#FF0000", type = }
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]