OPEN-SOURCE SCRIPT
Уровни SL/TP и значение ATR первого часа

Session Range SL/TP Levels with Advanced ATR
Overview
The Session Range SL/TP Levels indicator is a comprehensive tool designed for session-based trading strategies, particularly for breakouts. It identifies the high and low of a user-defined time range (e.g., the Asian session) and uses a sophisticated, customizable Average True Range (ATR) calculation to project key Stop Loss (SL) and Take Profit (TP) levels.
This indicator helps traders visualize potential entry and exit points based on the volatility of a specific trading session, with all crucial data presented in a clean on-screen table.
Key Features
Customizable Trading Session: Define any time range to establish your core trading zone. The indicator will automatically find the high and low of this period.
Advanced ATR Calculation: The indicator uses an ATR calculated on a 5-minute timeframe for higher precision. You can customize:
The ATR length and smoothing method (RMA, SMA, EMA, WMA).
A unique percentage reduction from the ATR to create a more conservative volatility buffer.
Volatility-Based SL/TP Levels: Automatically calculates and plots multiple SL and TP levels for both long and short scenarios based on user-defined multipliers of the modified ATR.
Comprehensive On-Screen Display: A detailed on-screen table provides all critical data at a glance, including:
The original 5-min ATR value.
The modified ATR after the percentage reduction.
Three custom ATR-multiple values for quick reference.
All calculated SL and TP price levels for both Long and Short setups.
Copy-Friendly Data Logging: With a single click in the settings, you can print all calculated values into the Pine Logs panel, allowing for easy copying and pasting into other applications or trading journals.
How to Use
Define Your Session: In the settings, enter the time for the trading session you want to analyze (e.g., "0200-0300" for a part of the Asian session).
Identify the Range: The indicator will draw the high and low of this session once the time period is complete.
Plan Your Trade: The calculated levels provide potential targets for breakout trades.
For a Long Trade: If the price breaks above the session high, the green Take Profit lines (TP1, TP2, TP3) serve as potential exit points, while the Stop Loss (Long) level serves as a volatility-based stop.
For a Short Trade: If the price breaks below the session low, the red Take Profit lines serve as potential targets, with the Stop Loss (Short) level as the corresponding stop.
Reference the Table: Use the on-screen table to see the exact price levels and ATR values without needing to hover over the lines.
Overview
The Session Range SL/TP Levels indicator is a comprehensive tool designed for session-based trading strategies, particularly for breakouts. It identifies the high and low of a user-defined time range (e.g., the Asian session) and uses a sophisticated, customizable Average True Range (ATR) calculation to project key Stop Loss (SL) and Take Profit (TP) levels.
This indicator helps traders visualize potential entry and exit points based on the volatility of a specific trading session, with all crucial data presented in a clean on-screen table.
Key Features
Customizable Trading Session: Define any time range to establish your core trading zone. The indicator will automatically find the high and low of this period.
Advanced ATR Calculation: The indicator uses an ATR calculated on a 5-minute timeframe for higher precision. You can customize:
The ATR length and smoothing method (RMA, SMA, EMA, WMA).
A unique percentage reduction from the ATR to create a more conservative volatility buffer.
Volatility-Based SL/TP Levels: Automatically calculates and plots multiple SL and TP levels for both long and short scenarios based on user-defined multipliers of the modified ATR.
Comprehensive On-Screen Display: A detailed on-screen table provides all critical data at a glance, including:
The original 5-min ATR value.
The modified ATR after the percentage reduction.
Three custom ATR-multiple values for quick reference.
All calculated SL and TP price levels for both Long and Short setups.
Copy-Friendly Data Logging: With a single click in the settings, you can print all calculated values into the Pine Logs panel, allowing for easy copying and pasting into other applications or trading journals.
How to Use
Define Your Session: In the settings, enter the time for the trading session you want to analyze (e.g., "0200-0300" for a part of the Asian session).
Identify the Range: The indicator will draw the high and low of this session once the time period is complete.
Plan Your Trade: The calculated levels provide potential targets for breakout trades.
For a Long Trade: If the price breaks above the session high, the green Take Profit lines (TP1, TP2, TP3) serve as potential exit points, while the Stop Loss (Long) level serves as a volatility-based stop.
For a Short Trade: If the price breaks below the session low, the red Take Profit lines serve as potential targets, with the Stop Loss (Short) level as the corresponding stop.
Reference the Table: Use the on-screen table to see the exact price levels and ATR values without needing to hover over the lines.
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.