This script displays the Open, High, Low and Mid ranges for Yearly levels, Monthly levels, Weekly levels, and Monday range levels (useful support and resistance levels)
Opens are displayed in dashed lines, and mid-levels in dotted lines. Other lines (highs and lows) are in plain lines.
Colors are selectable (even though color inputs are not still available in Version 4 of TradingView PineScript).
Let me know your username in the comment below if you want to have access.