PINE LIBRARY

FT_TV_EL

167
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:

  • 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

  • Pine Script®
    — 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.


Framework integration

The main entry-level functions use two shared data structures:

  • Pine Script®
    — 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.


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.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน