Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=4
- study("TRI - 52 Week PRZ & RLZ w/ WD Gann 50 Level", overlay =true)
- weekly_hh = security(syminfo.tickerid,"W", highest(high,53), lookahead=barmerge.lookahead_on)
- weekly_ll = security(syminfo.tickerid,"W", lowest(low,53), lookahead=barmerge.lookahead_on)
- since_weekly_hh = barssince(high==(weekly_hh))
- since_weekly_ll = barssince(low==(weekly_ll))
- plot(weekly_hh, title='weekly_hh', transp=100)
- plot(weekly_ll, title='weekly_ll', transp=100)
- // plotchar(change(weekly_hh), "change(weekly_hh)", "•", location.top, color.green, offset=-0)
- // plotchar(change(weekly_ll), "change(weekly_ll)", "•", location.bottom, color.red, offset=-0)
- plot(since_weekly_hh, title='since_weekly_hh', transp=100)
- plot(since_weekly_ll, title='since_weekly_ll', transp=100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement