PINE LIBRARY

FT_TV_lib

168
FT_TV_lib is a Pine Script® v6 utility library which provides reusable components for systematic and algorithmic trading strategies.

The library centralizes a range of commonly required operations, including trading-session management, session-based OHLC calculations, strategy and position monitoring, trade-management utilities, futures rollover handling, technical calculations, alerts, and chart visualization tools.

Main exported functionality

  • Session and OHLC utilities — Functions for identifying session and day transitions and retrieving session-aware Open, High, Low and Close values, including previous sessions. Main functions include
    Pine Script®
    ,
    Pine Script®
    ,
    Pine Script®
    ,
    Pine Script®
    ,
    Pine Script®
    ,
    Pine Script®
    ,
    Pine Script®
    and their related session utilities.
  • Strategy and trade management — Utilities for detecting position state, counting daily entries, measuring bars since entry, limiting trade duration and calculating dynamic trailing-stop levels. Relevant functions include
    Pine Script®
    ,
    Pine Script®
    ,
    Pine Script®
    ,
    Pine Script®
    and
    Pine Script®
    .
  • Intraday market analysis — Session-aware Body Factor calculations and related OHLC components for analyzing directional price movement inside configurable intraday periods through functions such as
    Pine Script®
    and the related
    Pine Script®
    ,
    Pine Script®
    ,
    Pine Script®
    and
    Pine Script®
    .
  • Trade and order visualization
    Pine Script®
    and
    Pine Script®
    provide reusable chart components for displaying entries, exits, stop-loss, trailing-stop, take-profit and pending order levels.
  • Futures rollover utilities — Functions for resolving active futures expiries and symbols and supporting rollover notifications, including
    Pine Script®
    ,
    Pine Script®
    and
    Pine Script®
    .
  • Technical-analysis utilities — Reusable implementations of commonly used calculations including Average, Average True Range, MACD, Rate of Change, Standard Deviation, Bollinger Bands, Momentum, Stochastic, CCI, RSI, ADX and Inside Bar detection.
  • Alerts and interface utilities — Additional exported functions support strategy trade alerts and reusable chart information displays, including
    Pine Script®
    and
    Pine Script®
    .


Purpose

This library is primarily designed as a shared dependency for other Pine Script® strategies, allowing common trading, analytical and visualization components to remain consistent across multiple strategy implementations.

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.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.