Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=4
- study("Bearish Engulfing Ordeblock", overlay = true)
- //bearish engulfing
- bearish_engulfing = high > high[1] and close < low[1]
- //high and low of the candle before the bearish engulfing
- val_high = valuewhen(bearish_engulfing, high[1], 0)
- val_low = valuewhen(bearish_engulfing, low[1], 0)
- //lines
- line.new(bar_index, val_high, bar_index[1], val_high, extend = extend.left, color = color.black, width = 3)
- line.new(bar_index, val_low, bar_index[1], val_low, extend = extend.left, color = color.black, width = 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement