Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1.  
  2. //@version=4
  3. study("TRI - 52 Week PRZ & RLZ w/ WD Gann 50 Level", overlay =true)
  4.  
  5. weekly_hh = security(syminfo.tickerid,"W", highest(high,53), lookahead=barmerge.lookahead_on)
  6. weekly_ll = security(syminfo.tickerid,"W", lowest(low,53), lookahead=barmerge.lookahead_on)
  7.  
  8. since_weekly_hh = barssince(high==(weekly_hh))
  9. since_weekly_ll = barssince(low==(weekly_ll))
  10.  
  11. plot(weekly_hh, title='weekly_hh', transp=100)
  12. plot(weekly_ll, title='weekly_ll', transp=100)
  13. // plotchar(change(weekly_hh), "change(weekly_hh)", "•", location.top, color.green, offset=-0)
  14. // plotchar(change(weekly_ll), "change(weekly_ll)", "•", location.bottom, color.red, offset=-0)
  15.  
  16. plot(since_weekly_hh, title='since_weekly_hh', transp=100)
  17. plot(since_weekly_ll, title='since_weekly_ll', transp=100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement