1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Up to three FLD periods can be set manually or chosen automatically from the chart timeframe, with offsets, line widths and transparency for each. A composite line combines the selected waves, and optional markers show expected troughs and peaks with a percentage tolerance. It is a cycle visualisation tool and gives no entry or exit rules.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
hl2
src
Delay(must be less than Period)
int
0
delay
Wave Height
int
1000
wave_height
Plot Raw instead of smooted?
bool
false
plot_raw
Plot Expected Though?
bool
true
plot_though
Plot Expected Peak?
bool
false
plot_peak
Plot Consistent FLD Period?
bool
true
plot_consistent_period
Global Shift Offset
float
1.0
flip_offset
Auto Flip (Additional Cycle Offset) Depending on TF?
string
Auto
mode_auto_flip
Composite Line Shift
float
2.0
composite_offset
Hide FLD0?
bool
true
fld0_hide
Include FLD0 in Composite Plot?
bool
false
fld0_composite
Show all 40 settings
Setting
Type
Default
Variable
Auto FLD #0 Setting?
string
Auto
mode_fld0
FLD TF Period #0
float
5.0
Period0
Number of FLD #0 Cycles to Offset?
float
0.00
fld0_hist_bar
FLD #0 Auto Multiplier?
string
Auto
mode_multiplier0
FLD #0 Bars in TF Period
int
1
Multiplier0
Transparency Period #0
int
60
Transp0
Line Width Period #0
int
1
Width0
Percentage Error Allowed in FLD0 Though/Peak?
float
0.09
pct_error0
Hide FLD1?
bool
true
fld_hide
Include FLD1 in Composite Plot?
bool
true
fld_composite
Auto FLD #1 Setting?
string
Auto
mode_fld
FLD TF Period #1
float
10.0
Period
Number of FLD #1 Cycles to Offset?
float
0.00
fld_hist_bar
FLD #1 Auto Multiplier?
string
Auto
mode_multiplier
FLD #1 Bars in TF Period
int
1
Multiplier
Transparency Period #1
int
30
Transp
Line Width Period #1
int
1
Width
Percentage Error Allowed in FLD1 Though/Peak?
float
0.030
pct_error
Hide FLD2?
bool
false
fld2_hide
Include FLD2 in Composite Plot?
bool
true
fld2_composite
Auto FLD #2 Setting?
string
Auto
mode_fld2
FLD TF Period #2
float
20.0
Period2
Number of FLD #2 Cycles to Offset?
float
0.00
fld2_hist_bar
FLD2 Auto Multiplier?
string
Auto
mode_multiplier2
FLD2 Bars in TF Period
int
1
Multiplier2
Transparency Period #2
int
60
Transp2
Line Width Period #2
int
2
Width2
Percentage Error Allowed in FLD2 Though/Peak?
float
0.030
pct_error2
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.
This script plots multiple shapes using the plotshape function in Pine Script v4. It defines fixed y offsets at intervals of 20 and renders flags, squares, diamonds, triangles up, and circles in sizes from tiny to huge. All shapes appear at absolute locations
This script defines a helper function to generate colors via triangular interpolation using TradingView's color.from_gradient. The function blends between minimum, mid, and maximum color points based on an input value. It applies the function to the RSI indica
This indicator combines a scaled Forecast Oscillator with a Point of Force state detector. The Forecast Oscillator calculates the percentage deviation of price from its linear regression curve and normalizes the output between 0 and 1, plotting a line in a sep
Rolling Minimum Index calculates and plots the bar offset to the lowest closing price over a user-defined lookback window using Pine Script's built-in lowestbars function. Plotted in a separate indicator pane, it outputs a negative integer representing how man
This indicator plots the Commodity Channel Index in a separate pane and surrounds it with a Donchian channel whose lookback length changes with volatility. It measures volatility as a ratio of short and long ATR values, then ranks that ratio and shortens or le
BTC Multiples calculates and displays Bitcoin macro valuation metrics in a separate pane, including the Mayer Multiple, Stock-to-Flow Multiple, Difficulty Multiple, and Puell Multiple. Each valuation multiple features configurable overvalued and undervalued th