Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. //@version=4
  2. study("Bearish Engulfing Ordeblock", overlay = true)
  3.  
  4. //bearish engulfing
  5. bearish_engulfing = high > high[1] and close < low[1]
  6.  
  7. //high and low of the candle before the bearish engulfing
  8. val_high = valuewhen(bearish_engulfing, high[1], 0)
  9. val_low = valuewhen(bearish_engulfing, low[1], 0)
  10.  
  11. //lines
  12. line.new(bar_index, val_high, bar_index[1], val_high, extend = extend.left, color = color.black, width = 3)
  13. 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