PROTECTED SOURCE SCRIPT
Session Range

This Indicator Shows you the high, low and the midpoint for a chosen session and displays them on the chart.
You can make the following inputs:
Timezone: Choose your time zone (in UTC) to display the session correctly
Session Time: Choose the start time and end time of the session you want to have displayed.
Show Session Midpoint: Choose between displaying or not displaying the midpoint of the sessions high and low.
Extend Session Values until next Session: Choose this option if you want to display the sessions range until the next session starts. The midpoint will only be displayed if you chose "yes" at "Show Session Midpoint?"
Maximum number of bars between sessions: This is needed to ensure the correct display of the extended lines. Also this will affect the running speed of the script.
Limitations:
A higher number between bars slows down the script. What does that mean practically? If you choose to not have the sessions values displayed until the next session you can set this to 1 and the script will run as fast as it can. If you choose to display all the values until the next session you have to make sure that the number you put in is higher than the number of bars between the sessions. Otherwise the lines will be displayed backwards. As this affects the calculation speed you want to keep the number as low as possible. The default setting is 300 which is fine for 5 minute charts. On a 1 minute chart you will have to use something around 5000 depending on how long your session is.
Also the script will only run correctly if the start time of your session can be divided by the timeframe you are using. Example: you can use a 1min, 3min, 5min, or 15min chart on all sessions as they can only start every 15 minutes and 15 can be divided by all these numbers. A 2 minute timeframe will only work on sessions that start at minute 00 or 30, as 15 and 45 can not be divided by 2.
Customization and Alerts:
You can change the color of the sessions high, low, midpoint and background filling. The line style can also be changed but this might lead to a faulty display of the session.
The style of the extension lines can not be altered.
Alerts can be added for crossing the sessions high or low (after the session is finished). You do not have to display the extension lines in order to set an alert.
credit: The inspiration (especially for the look of this indicator) comes from the Asian Range by Nico948 indicator.
You can make the following inputs:
Timezone: Choose your time zone (in UTC) to display the session correctly
Session Time: Choose the start time and end time of the session you want to have displayed.
Show Session Midpoint: Choose between displaying or not displaying the midpoint of the sessions high and low.
Extend Session Values until next Session: Choose this option if you want to display the sessions range until the next session starts. The midpoint will only be displayed if you chose "yes" at "Show Session Midpoint?"
Maximum number of bars between sessions: This is needed to ensure the correct display of the extended lines. Also this will affect the running speed of the script.
Limitations:
A higher number between bars slows down the script. What does that mean practically? If you choose to not have the sessions values displayed until the next session you can set this to 1 and the script will run as fast as it can. If you choose to display all the values until the next session you have to make sure that the number you put in is higher than the number of bars between the sessions. Otherwise the lines will be displayed backwards. As this affects the calculation speed you want to keep the number as low as possible. The default setting is 300 which is fine for 5 minute charts. On a 1 minute chart you will have to use something around 5000 depending on how long your session is.
Also the script will only run correctly if the start time of your session can be divided by the timeframe you are using. Example: you can use a 1min, 3min, 5min, or 15min chart on all sessions as they can only start every 15 minutes and 15 can be divided by all these numbers. A 2 minute timeframe will only work on sessions that start at minute 00 or 30, as 15 and 45 can not be divided by 2.
Customization and Alerts:
You can change the color of the sessions high, low, midpoint and background filling. The line style can also be changed but this might lead to a faulty display of the session.
The style of the extension lines can not be altered.
Alerts can be added for crossing the sessions high or low (after the session is finished). You do not have to display the extension lines in order to set an alert.
credit: The inspiration (especially for the look of this indicator) comes from the Asian Range by Nico948 indicator.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.