Do not worry about drawing the correct support and resistance lines across any time frame. You can enter a long or short position on a major / minor line break out. Feel free to use my script.
Red & Orange - Major and Minor resistance lines.
Lime & Aqua - Major and Minor support lines.
For source code and more info, tip my BTC Jar: 1JddaKpkW4W1UmEuyK9oDUJLA46r1UK2aH