everget

[UTILS] Session Input Parser

An utility function to parse session inputs. Extracts hours, minutes and weekdays (if defined) and returns a tuple as the result.

_parseSession(sessionString) => (hourStart, minuteStart, hourEnd, minuteEnd, weekdaysArray)

Examples presented on the chart.
Release Notes:
  • Refactored
Release Notes:
  • Fixed the selected sessions displaying
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
A list of Free indicators:
https://bit.ly/2S7EPuN

A list of Paid indicators:
https://bit.ly/33MA81f

Earn $30:
https://www.tradingview.com/gopro/?share_your_love=everget

Toss a coin to your witcher:
https://www.paypal.me/alexeverget

Comments

500 coins
+1 Reply
everget LonesomeTheBlue
@LonesomeTheBlue, thanks, Lonesome
Reply
500 coins
+1 Reply
everget PineCoders
Reply
good job
+1 Reply
everget bappykhalidhasan0
Reply
This publication is now featured in our Editors' Picks: https://www.tradingview.com/scripts/editors-picks/ .
In the name of all TradingViewers, thank you for your valuable contribution to the community, and congrats!
+1 Reply
everget PineCoders
@PineCoders, no problemo
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter