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 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
244 lines of Pine Script v6 from indicator/The Valuation.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
The Valuator fits a log-price regression over a lookback, takes the deviation of price from that fair-value line, and converts it to a Z-score using EMA-based mean and deviation. Zones labelled gift, cheap, fair, expensive and bubble are set by adjustable Z thresholds. Data is requested on a locked timeframe, weekly by default, so the chart timeframe must not exceed it. Options show the fair value line and an info table.
Log-price regression fair value
Z-score zones with adjustable thresholds
Locked daily, weekly or monthly valuation timeframe
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Valuation Timeframe
timeframe
W
inp_tf
Regression Lookback (bars)
int
200
inp_lookback
EMA Period for Stats
int
52
inp_ema_period
Gift Zone (Z <)
float
-1.5
inp_gift_z
Cheap Zone (Z <)
float
-0.8
inp_cheap_z
Expensive Zone (Z >)
float
0.8
inp_expensive_z
Bubble Zone (Z >)
float
1.5
inp_bubble_z
Show Fair Value Line
bool
true
inp_show_fair
Show Info Table
bool
true
inp_show_table
Gift Zone
color
color.new(#00E676, 0)
color_gift
Cheap Zone
color
color.new(#81C784, 0)
color_cheap
Fair Zone
color
color.new(#90A4AE, 0)
color_fair
Show all 14 settings
Setting
Type
Default
Variable
Expensive Zone
color
color.new(#FF9800, 0)
color_expensive
Bubble Zone
color
color.new(#F44336, 0)
color_bubble
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.
Calculates normalized reversal metrics across up to ten Forex currency pairs using user-selected moving average methods, including HarmonicMA, EMA, SMA, or WMA. The indicator identifies overbought, oversold, and mean-crossing conditions using a configurable th
Calculates a composite carry and decay oscillator fusing impulse-autocorrelation half-life, a Hurst exponent approximation, path efficiency, and range expansion ratios. It evaluates whether an impulse is likely to persist or mean-revert, plotting the oscillato
Medallion Cipher is a separate-pane indicator that combines a four-state hidden Markov model (bull, bear, range, and crisis) with weighted confluence signals. It can include mean reversion, trend, session timing, pattern matching, Hurst exponent, Shannon entro
P-Dipmix Kripto is a multi-indicator oscillator and screener designed to detect dip opportunities in cryptocurrency markets. It calculates WaveTrend oscillator lines, Bollinger Bands, the Awesome Oscillator, and the Accelerator Oscillator to evaluate oversold
This indicator creates a heatmap table in a separate pane showing cointegration strength between a user-defined list of symbols. It calculates aligned returns from sum and difference spreads for each symbol pair, then derives a cointegration proxy as the resid
This indicator identifies mean-reversion setups by combining Bollinger Bands with Fair Value Gaps (FVGs). It tracks FVGs that print outside the upper or lower Bollinger Bands and counts them toward an alert threshold. Signals trigger upon gap mitigation (by to