This script is designed to change the color of bars on a trading chart based on different trading sessions in Eastern Time (ET). It is different from currently published scripts in that it specifically focuses on US time sessions and provides a customizable approach to defining and coloring each session.
To use this script, you can apply it to a chart by...
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.
I have heard many people ask for a script that will identify the high and low of a specific session. So, I made one.
Important Note: This indicator has to be set up properly or you will get an error. Important things to note are the length of the range and the session definition. The idea is that you would set it up for what's relevant to your trading. Going...
This is a simple script that allows you to show the start of a trading session with a vertical line and label.
Currently, 3 major sessions are supported (Tokyo, London and NY) and there is an option to define a custom session too.
Per session, you can configure the open hour and minute, whether you want to enable it and the color of the line/label.
Give it a...