PINE LIBRARY
FT_TV_EL

FT_TV_EL is a Pine Script® v6 library which provides a reusable framework for calculating configurable long and short entry levels in systematic trading strategies.
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:
Main exported functionality
Framework integration
The main entry-level functions use two shared data structures:
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.
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.
Libreria Pine
Nello spirito di TradingView, l'autore ha pubblicato questo codice Pine come libreria open source affinché altri programmatori della nostra community possano riutilizzarlo. Complimenti all'autore! È possibile utilizzare questa libreria privatamente o in altre pubblicazioni open source, ma il riutilizzo di questo codice nelle pubblicazioni è soggetto al Regolamento.
We develop software and test algorithmic trading strategies for futures markets. Launching Soon. Visit the site and enter your email to be notified as soon as we go live: futuresteller.it/
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Libreria Pine
Nello spirito di TradingView, l'autore ha pubblicato questo codice Pine come libreria open source affinché altri programmatori della nostra community possano riutilizzarlo. Complimenti all'autore! È possibile utilizzare questa libreria privatamente o in altre pubblicazioni open source, ma il riutilizzo di questo codice nelle pubblicazioni è soggetto al Regolamento.
We develop software and test algorithmic trading strategies for futures markets. Launching Soon. Visit the site and enter your email to be notified as soon as we go live: futuresteller.it/
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.