OPEN-SOURCE SCRIPT
Custom Period High Low

Summary
Limitations
Hacks
You can use it more than once for, say, Opening Range Breakout. Configure your custom PMS for 0930-0945, change lines, remove area fill - and ta-da - you have High and Low for first 15 min! See release chart for the example.
- I'm moving over from TradeStation and default Pre-Market Session there is 0800-0930. Default PMS on TradingView is 0400-0930. I find that the 0800-0930 High and Low are more accurate levels. This script addresses exactly that - it allows you to grab High and Low of any custom time slot.
- This script started as Custom Pre-Market H/L, that's why the shading. Then I realized it can be used for any custom time period, so I renamed it to PERIOD H/L.
Limitations
- Different tickers are provided by different exchanges, in different time zones. The end result is that the SAME session time (0800-0930) may shift for different tickers. Examples:
- SPY : 0800-0930 // no shift: NYSE, in NYC
- ES1!: 0900-1030 // shifted 1 hr ahead: CME, in Chicago
- NQ1!: 0900-1030 // shifted 1 hr ahead: CME, in Chicago
To see for yourself, set Time Zone config parameter to empty string for non-NYC tickers like ES1! or NQ1 and watch times for shaded and non-shaded areas. - Why TV chooses to go by the ticker's TZ, and not the TZ that's configured in the lower right corner of my TV screen - I have no idea. But asking for user's TZ is how you fix it.
- If you know how I can get that value so I don't have to ask the user - let me know. I'm new to TV.
Hacks
You can use it more than once for, say, Opening Range Breakout. Configure your custom PMS for 0930-0945, change lines, remove area fill - and ta-da - you have High and Low for first 15 min! See release chart for the example.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.