pbghosh

15M 2PM-3PM High/Low

pbghosh Atualizado   
This script will draw horizontal lines based on the high and low values between 2PM and 3PM (inclusive 2PM & 3PM) on 15 minute time frame. This indicator can be used in 15 minute time frame to plot the high and low lines correctly. This indicator can be used for previous day 2PM-3PM range breakout or breakdown trades.
Notas de Lançamento:
This script will draw horizontal lines based on the high and low values between 2PM and 3PM (inclusive 2PM & 3PM) on 15 minute time frame. This indicator can be used in 15 minute time frame to plot the high and low lines correctly. This indicator can be used for previous day 2PM-3PM range breakout or breakdown trades.
Notas de Lançamento:
The earlier version was showing incorrect high and low values with regard to previous day 15 minutes 2PM to 3PM time period during real time trading session. I have corrected the flaws encountered in the earlier version and now, you can use this script to plot the range during real time and after market session as well. By default, this script will calculate the high and low values based on NSE India and BSE India exchange timeframe period. If you want to work according to your exchange timeframe, you need to change the time range in the following code of my script:

time(timeframe.period, "0915-1530")

You may need to change the value of dayofweek.saturday and dayofweek.sunday in the following code as well because I have found different values with regards to exchanges:

if (x == 1 and dayofweek != 5 and dayofweek != 6)
Notas de Lançamento:
I have encountered a simple logical error in my previous version which I have corrected now.
Notas de Lançamento:
The lines were not plotting due to a logical error in the study statement, which is now corrected.
Notas de Lançamento:
The Pinescript named constants dayofweek.saturday and dayofweek.sunday were not working properly earlier and as a result I used literals. Now, the named constants are working perfectly well now and therefore, I have replaced the literals with the named constants in this version.

This version will also plot the previous day 2PM-3PM high and low for each day.
Notas de Lançamento:
In this version I have added resistance and support lines, price levels at the right side and changed the appearance of the horizontal lines.
Notas de Lançamento:
In this version, I have corrected the logic behind the calculation of 2PM-3PM high and low value and changed the line.new() function to plot() function.

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?