1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new library, select all of the template text and paste. Press Save and give it a name.
4Publish or import itA library draws nothing. Publish it from the editor, then import its functions in your own scripts.
Source Code
246 lines of Pine Script v5 from edu_lib/lower_tf.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
lower_tf chooses a lower timeframe for the chart based on a precision setting, either by how many chart bars should be covered or by the approximate number of intrabars per chart bar, bearing in mind the cap on analysable intrabars. An optional information box shows the timeframe used and the coverage. It draws nothing unless a calling script uses its functions.
Lower timeframe selection from a precision setting
Choice by chart coverage or intrabars per bar
Optional information box with size and position settings
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Intrabar precision
string
LTF3
ltfModeInput
Show information box
bool
true
showInfoBoxInput
Size
string
normal
infoBoxSizeInput
↕
string
bottom
infoBoxYPosInput
↔
string
left
infoBoxXPosInput
infoBoxColorInput
color
GRAY
infoBoxColorInput
T
color
WHITE
infoBoxTxtColorInput
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
AIActivationFunctionsBipolarSigmoid is a Pine Script library that provides mathematical implementations of the bipolar sigmoid activation function and its derivatives for machine learning algorithms. It calculates bipolar sigmoid values bounded between -1 and
KernelFunctions is a Pine Script v5 library that exports kernel weight functions for Nadaraya-Watson style estimation. It calculates a Rational Quadratic kernel, a Gaussian kernel based on a radial basis function, and a periodic kernel that models repeating be
This Pine Script v5 library exports thin wrappers around built-in technical analysis functions. It covers moving averages, momentum measures such as RSI and CCI, volatility tools including ATR and standard deviation, range extremes, cross detection, and runnin
This library exports a Band type and functions that build a simple-moving-average basis with upper and lower envelopes from standard deviation. It classifies a source as above, below, or inside those envelopes, measures band width, and scales an imported z-sco
This script serves as a minimal utility library written in Pine Script v6. It provides an exported helper function that calculates the sum of two numeric arguments. As a reusable code library, it produces no visual plots, charts, or trading signals, and it con
HLevel is a Pine Script v5 utility library designed to manage horizontal price levels for cryptocurrency charts. It defines custom types for pivots and levels, along with methods to initialize, add, track, and expire price levels based on pivot high and pivot