TradingView
repo32
24 de Dic. de 2019 0:11

Shade a particular timeframe 

Netflix, Inc.NASDAQ

Descripción

I couldn't find a script that shades a particular timeframe so I created one where you can adjust the times, colors, and transparency. Pretty simple but nice if you just want to trade before or after certain times. Only issue is it seems to default to Eastern times. Lucky you if you are on the east coast of the USA! Everyone else add or subtract from that timeframe.
Comentarios
NAKOT
great script...thank you! I'm surprised TV doesn't have an option to separate RTH and ETH by color.
repo32
@NAKOT, Thank you!
Cpattersontrading
is there any way to have several time zones shaded on your script? or could you add it? i wanna shade 3 time zones. but i dont want 3 scripts open for shading.
repo32
@Cpattersontrading, Due to the new programming language, I can't just add this info and post a new script. So just add this info to the back of the above script and adjust the times and colors as needed:
SessionTime2 = input("0930-1000", type=session)
t2 = time(period, SessionTime2)
shadecolor2 = t2 ? red : na
bgcolor(shadecolor2, transp=75, offset=0)

SessionTime3 = input("1730-1930", type=session)
t3 = time(period, SessionTime3)
shadecolor3 = t3 ? yellow : na
bgcolor(shadecolor3, transp=75, offset=0)
Cpattersontrading
@repo32, Thank you for reaching back out. That was my original plan but the script is locked. I wasn’t sure if you could unlock it or if I had to create a new script to have all 3. i appreciate you helping out.
repo32
@Cpattersontrading, Yup. Just copy and paste the original script, and the additional I just gave you, into a new script. You should be good to go.
Cpattersontrading
@repo32, it wont allow me to see the original script, do you have another copy of that? Sorry for all the questions. lol
Más