TradingView
syntaxgeek
16 de Set de 2022 21:14

Opening Range Breakout with Price Targets 

Tesla, Inc.NASDAQ

Descrição

Just publishing a version of the script amitgandhinz already created, which is amazing.

  • Added fib levels that amitgandhinz already started but commented out
  • Added mid point that is often found effective as a starting point, SL, etc

Notas de Lançamento

  • Added session range input
  • Added session timezone input
  • Added ability to shorted displayed labels
  • Added option to restrict display of orb box, levels and labels to RTH
  • Began code refactoring to ease maintenance


Caveats to some of the changes are that pinescript input management doesn't provide selection of known timezones so care must be taken, range session input doesn't provide discrete length display (5, 15, 30, etc) so I've removed this (shouldn't be needed anyways if user knows the configuration).

Notas de Lançamento

  • Added 24x7 market support (thanks to timthegoat1 for the suggestion and code patch)
  • Added 150% and -150% for non-fib levels, these will mostly come in handy for crypto, exploring other options to allow most customizations

Notas de Lançamento

  • Added support for opening range timeframes that overlap pre-market from comment feedback.
Comentários
d.umesh
How to use in India (NSE)
SanjayPatil75
@d.umesh, Put GMT+0530 in time zone field , and start to use
d.umesh
@SanjayPatil75, ok Dada thnx...
PAREAL
venkat0809
How do I increase fib levels in your script by up to 1000%? Please advise.
syntaxgeek
@venkat0809, let me see what I can do, I gotta ask - what stock are you needing 1000% for :D
AlsaSeb
Hi, Thank you for this inicator. There's a small problem when you don't want to see the previous days. The middle line is still displayed for the previous day's ORB, but only since midnight EST. Can you correct this occasionally? thanks.
PAREAL
A Time Zone selection would have been great, this now is restricted.
syntaxgeek
@ParraylThomas, what do you mean restricted? You have the ability to supply time zone string, is that not working?
sharpie0319
Great way to do scalping or intraday, thanks for this.

For anyone can't figure out the Time zone, just try to add GMT+0800 (this is for Asia or anyone in GMT+8) Or you can add Asia/Hong_Kong. Take note of the use of "_" when country is two word.

@syntaxgeek, I amended the alert so that I could use alert any () function to save numbers of alert signals needed to create.

if (not in_session and isToday and session.ismarket)
if (not i_alertBreakoutsOnly)
if highCross
alert(alert_message1, alert.freq_once_per_bar_close)

if lowCross
alert(alert_message2, alert.freq_once_per_bar_close)

if (i_alertBreakoutsOnly)
if highCrossBO
alert(alert_message3, alert.freq_once_per_bar_close)

if lowCrossBO
alert(alert_message4, alert.freq_once_per_bar_close)

Once again thank you for this.
Mais