Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
  2. // © Yo_adriiiiaan
  3.  
  4. //@version=4
  5. study("Power Move",overlay = true)
  6. rsi = rsi(close,14)
  7. over_bought = input(70, title = "OB")
  8. over_sold = input(30, title = "OS")
  9. rsi_change = input(3, title = "Points Change")
  10. os = rsi[1] <= over_sold and rsi > (over_sold + rsi_change)
  11. ob = rsi[1] >= over_bought and rsi < (over_bought - rsi_change)
  12.  
  13. barcolor(os? color.green:ob? color.red:na)
  14. plotshape(os, location = location.belowbar, style = shape.labelup, size = size.small, color = color.green)
  15. plotshape(ob, location = location.abovebar, style = shape.labeldown, size = size.small,color = color.red)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement