Editors' picks
Updated

[UTILS] Session Input Parser

16 902

More exclusive indicators from everget

Subscribe to Trading Toolkit for $5.00/month to get exclusive indicators by this author. You pay right on TradingView and can use them on your charts straight away.

Explore Trading Toolkit
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

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.