FT_TV_EL

The library works with the OHLC and pre-calculated market-context structures, allowing entry prices to be derived consistently from current market data, previous Day/Session periods and broader volatility or price-structure references.
Entry Level Framework
The available entry-level calculations cover several categories, including:
- Current and historical Day/Session Open, High, Low and Close references.
- Rolling highest-high and lowest-low levels.
- Moving-average and average-range based price levels.
- ATR-based volatility extensions using multiple ATR lengths and multipliers.
- Current-bar and historical-bar High/Low references.
- Session-start High, Low and range-based extensions.
- Percentage-based price offsets.
- Day/Session range-based extensions.
- Classic pivot-point support and resistance levels.
- Current weekly High and Low.
- Extrema calculated across the previous five Day/Session periods.
Main exported functionality
- — Calculates the selected long-side entry price. The function provides a large catalog of configurable entry-level formulas using OHLC structures, volatility, recent extrema, pivot calculations, percentage offsets, session references and other price-derived methods.
Pine Script® - — Calculates the corresponding short-side entry price using the same modular framework and a dedicated set of short-oriented level definitions.
Pine Script® - — Displays an optional chart information panel for the selected long entry level, including the chosen definition, a human-readable explanation of its logic and the OHLC calculation mode being used.
Pine Script® - — Provides the equivalent information panel for the selected short entry level.
Pine Script®
Framework integration
The main entry-level functions use two shared data structures:
- — Provides the current and previous Day/Session OHLC periods.
Pine Script® - — Provides pre-calculated contextual information including recent extrema, ranges, bodies and session-state references.
Pine Script®
This architecture allows individual strategies to change their entry-price methodology without duplicating the underlying market-context calculations.
Purpose
FT_TV_EL is primarily designed as a shared entry-level dependency for other strategies. It separates entry-price generation from signal generation and trade-management logic, providing a consistent and reusable framework for testing and deploying different entry methodologies across multiple strategies.
Usage, attribution and intellectual property
This Pine Script® library is published open-source in accordance with TradingView's requirements for public Pine libraries.
Under TradingView's Script Publishing Rules, functions or code from a public Pine library may be reused in open-source publications without prior permission from the author. When publishing work that reuses this library, the original author must be properly credited in accordance with TradingView's rules.
Reuse of this library's functions or source code in a public Protected or Invite-only publication requires explicit permission from us.
The source code is provided under the license specified in the script header. TradingView's Script Publishing Rules govern reuse within the TradingView platform.
Pine Bibliothek
Ganz im Sinne von TradingView hat dieser Autor seinen/ihren Pine Code als Open-Source-Bibliothek veröffentlicht. Auf diese Weise können nun auch andere Pine-Programmierer aus unserer Community den Code verwenden. Vielen Dank an den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Veröffentlichungen verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert.
Haftungsausschluss
Pine Bibliothek
Ganz im Sinne von TradingView hat dieser Autor seinen/ihren Pine Code als Open-Source-Bibliothek veröffentlicht. Auf diese Weise können nun auch andere Pine-Programmierer aus unserer Community den Code verwenden. Vielen Dank an den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Veröffentlichungen verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert.