Инвертированный мультиактивный индекс страха и жадностиWhat is the opposite of fear and greed? Correct, love.
The idea of an indicator is that if you take indexes of fear and greed for the top 3 corellated assets with the current one and weight the result by the index of corellations, you can see 2 things.
one is tops and bottoms of an assets movements as measured by the inverted fear and greed index,
and the other is that you can see the cycles of when the asset gets corellated and de-corellated, becoming stronger or weaker then the corellated asset's index.
Turn off the average blue line in settings - it's useless.
Cheers, love
Eugene
Z-VALUE
G10 FX Basket ComparisonDescription:
This indicator shows how individual FX major currencies (including CNY) have performed relative to each other. It calculates each currency's performance against a "Trade Weighted" basket of other major currencies.
I created this because I couldn't find it, and I wanted an easy way to see currency behaviour and flows.
Purpose:
It lets you see the relative strength and weakness of each currency, similar to how the DXY measures USD strength, but for all the major currencies. Each basket and currency weights are based on Trade Weighted values from literature/economics.
This way you can maybe decide which crosses / pairs to trade.
Can helps you visualise how events (economic, news or otherwise) affect currency flows.
Features:
Relative Performance: Focuses on how a currency's value has changed over time, rather than its absolute level.
Normalization: Adjusts currency values to a starting date, making it easy to compare their performance.
Adjustable Start Date: You can set the anchor date to choose the starting point for calculating relative performance.
Customizable Weights: The indicator allows you to use custom weights for each currency basket should you wish.
Currency Basket vs USD - Trend & RSI Breakdown📊 Indicator Methodology
Currency Basket vs USD – Trend & Valuation Breakdown
💱 Strategy of Rotating Between USD and the Currency Basket
💰 100% cash strategy – always ready for market crashes.
🟢 Hold USD if the trend indicator shows USD is trending.
🔵 Hold the currency basket (EUR, PLN, CZK, CHF, GBP) if the basket is trending.
✅ This way, you're always on the winning side of the trade, never risking a loss of purchasing power.
📈 Since it's a LONG ONLY, NO LEVERAGE strategy, there are no trading or holding fees, except for a small 0.15% FX fee every few months when the trending currency changes.
📈 Trend Indicator
Uses 5 different indicators working together to determine which asset is in a trend.
👀 On the chart it's visualized as:
➕ Plus symbols indicating trend strength (usually ranges from -4 to +4).
🔺 If USD has a higher trend signal than the basket → Hold USD.
🔻 If the basket has a higher signal → Hold the basket.
🕒 Signals typically last several months and operate on the 3D (3-day) timeframe, giving a high probability of catching macro moves.
💡 Valuation Indicator (Z-scored RSI)
Uses RSI with a length of 30.
Z-scored between -1 to 1.
📉 Interpretation:
-1 for USD = too strong → likely stagnation or reversal.
-1 for Basket = undervalued → likely growth or stabilization.
📊 Displayed as a separate line below the main chart.
📍 A horizontal line at 90 is added on the main chart – helping you quickly see what’s above or below this key reference level.
⚙️ How the Strategy Works in Practice
✅ You update the indicator daily (takes only seconds).
✅ The trend indicator tells you which currency to hold.
✅ The valuation indicator prepares you for possible reversals.
🔄 When the trend shifts, you rotate your full position.
⏳ Trades typically last several months.
📈 Usually generates consistent profits of 2–8%.
💪 It grows your capital while keeping you ready to buy assets during major selloffs.
🔍 Best Usage
Use it as a quick scanner to observe trend or valuation changes.
If a signal appears, validate it using additional trend and valuation indicators.
📌 If most agree, take the position.
Price for 1 Gold Baht ราคา ทองคำ หนึ่งบาท📘 Indicator Description
🔧 English Version
Name: Price for 1 Gold Baht – ราคา ทองคำ หนึ่งบาท
Short title: 1 Baht Gold (THB)
Purpose:
This indicator calculates and visualizes the real-time price of 1 Thai Gold Baht (15.244 grams) based on the global gold price (XAU/USD) and the USD/THB exchange rate. It allows users to simulate the domestic Thai gold price with customizable inputs for gold weight and purity.
What it does:
Retrieves live gold price per troy ounce in USD (XAU/USD) Retrieves the current USD to Thai Baht exchange rate (USD/THB)
Converts the value into Thai Baht using:
User-defined weight in grams (default: 15.244 g)
User-defined purity in % (default: 96.5% for standard Thai gold)
Displays the result as a real-time chart line
Adds reference values to the Data Window for detailed tracking
Ideal for:
Traders who want to monitor local Thai gold price movements in global markets Analysts comparing spot gold to domestic bullion prices Anyone needing a precise, configurable conversion of international gold data into local Thai currency
📘 คำอธิบายอินดิเคเตอร์
🔧 ภาษาไทย
ชื่อ: ราคา ทองคำ หนึ่งบาท – Price for 1 Gold Baht
ชื่อย่อ: 1 Baht Gold (THB)
วัตถุประสงค์:
อินดิเคเตอร์นี้ออกแบบมาเพื่อแสดงราคาทองคำไทย 1 บาท (น้ำหนัก 15.244 กรัม) แบบเรียลไทม์ โดยใช้ราคาทองคำสากล (XAU/USD) และอัตราแลกเปลี่ยน USD/THB พร้อมทั้งให้ผู้ใช้สามารถปรับแต่งค่าน้ำหนักและความบริสุทธิ์ของทองได้ตามต้องการ
สิ่งที่อินดิเคเตอร์นี้ทำ:
ดึงราคาทองคำต่อทรอยออนซ์ในรูปแบบ USD (XAU/USD) แบบเรียลไทม์
ดึงอัตราแลกเปลี่ยน USD → บาท (USD/THB)
คำนวณราคาทองคำไทยโดยใช้: - น้ำหนักทองที่กำหนดโดยผู้ใช้ (ค่าเริ่มต้น 15.244 กรัม) - ความบริสุทธิ์ของทองที่กำหนดได้ (ค่าเริ่มต้น 96.5% สำหรับทองไทย) แสดงผลราคาทองคำ 1 บาทในรูปแบบกราฟเส้น แสดงข้อมูลเสริมใน Data Window เช่น ราคาทองสากล อัตราแลกเปลี่ยน และข้อมูลการคำนวณ
เหมาะสำหรับ:
นักเทรดที่ต้องการติดตามราคาทองคำไทยจากความเคลื่อนไหวในตลาดโลก
นักวิเคราะห์ที่เปรียบเทียบราคาทองคำ Spot กับราคาทองคำภายในประเทศ
ผู้ใช้งานที่ต้องการแปลงข้อมูลทองคำระหว่างประเทศให้เป็นราคาท้องถิ่นอย่างแม่นยำ
💡 Tip:
To use this script: Add it to any chart Customize gold weight or purity (if needed) Observe how international gold price movements translate to Thai domestic gold prices
Uniswap V3 Liquidity Provision - Strategy 1I have managed to model liquidity provision in TradingView by translating the Solidity logic behind Uniswap V3 in PineScript in a very-detailed way. A feat I'm almost sure no more than 100 people in the world have managed to pull off as both Uniswap and Pinescript are hard to master. Not many people can navigate all the intricacies of AMM liquidity positions, so it's safe to say I might be one of a handful of developers/analysts who have correctly implemented Uniswap V3 in PineScript and have run profitable backtests of it.
Thanks to this I have found a strategy to hedge spot/futures trading positions using liquidity provision.
This particular strategy is the simplest: Try to hedge by supplying liquidity at the same time a buy is triggered by the signals, and conversely withdrawing the liquidity when a sell is triggered. This simplicity is specially useful because we can compare:
1) The value of holding 100% of your portfolio at spot value (50% USDC + 50% ETH at market value). In blue.
2) The value of allocating 100% of your portfolio into liquidity provision (50% USDC + 50% ETH into a liquidity position). In yellow.
3) The value of having 50% of your portfolio in liquidity provision and the other 50% held at spot value. (25% USDC + 25% ETH in spot, 25% USDC + 25% ETH in liquidity). In white.
TUF_LOGICTUF_LOGIC: Three-Value Logic for Pine Script v6
The TUF_LOGIC library implements a robust three-valued logic system (trilean logic) for Pine Script v6, providing a formal framework for reasoning about uncertain or incomplete information in financial markets. By extending beyond binary True/False states to include an explicit "Uncertain" state, this library enables more nuanced algorithmic decision-making, particularly valuable in environments characterized by imperfect information.
Core Architecture
TUF_LOGIC offers two complementary interfaces for working with trilean values:
Enum-Based API (Recommended): Leverages Pine Script v6's enum capabilities with Trilean.True , Trilean.Uncertain , and Trilean.False for improved type safety and performance.
Integer-Based API (Legacy Support): Maintains compatibility with existing code using integer values 1 (True), 0 (Uncertain), and -1 (False).
Fundamental Operations
The library provides type conversion methods for seamless interaction between integer representation and enum types ( to_trilean() , to_int() ), along with validation functions to maintain trilean invariants.
Logical Operators
TUF_LOGIC extends traditional boolean operators to the trilean domain with NOT , AND , OR , XOR , and EQUALITY functions that properly handle the Uncertain state according to the principles of three-valued logic.
The library implements three different implication operators providing flexibility for different logical requirements: IMP_K (Kleene's approach), IMP_L (Łukasiewicz's approach), and IMP_RM3 (Relevant implication under RM3 logic).
Inspired by Tarski-Łukasiewicz's modal logic formulations, TUF_LOGIC includes modal operators: MA (Modal Assertion) evaluates whether a state is possibly true; LA (Logical Assertion) determines if a state is necessarily true; and IA (Indeterminacy Assertion) identifies explicitly uncertain states.
The UNANIMOUS operator evaluates trilean values for complete agreement, returning the consensus value if one exists or Uncertain otherwise. This function is available for both pairs of values and arrays of trilean values.
Practical Applications
TUF_LOGIC excels in financial market scenarios where decision-making must account for uncertainty. It enables technical indicator consensus by combining signals with different confidence levels, supports multi-timeframe analysis by reconciling potentially contradictory signals, enhances risk management by explicitly modeling uncertainty, and handles partial information systems where some data sources may be unreliable.
By providing a mathematically sound framework for reasoning about uncertainty, TUF_LOGIC elevates trading system design beyond simplistic binary logic, allowing for more sophisticated decision-making that better reflects real-world market complexity.
Library "TUF_LOGIC"
Three-Value Logic (TUF: True, Uncertain, False) implementation for Pine Script.
This library provides a comprehensive set of logical operations supporting trilean logic systems,
including Kleene, Łukasiewicz, and RM3 implications. Compatible with Pine v6 enums.
method validate(self)
Ensures a valid trilean integer value by clamping to the appropriate range .
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The integer value to validate.
Returns: An integer value guaranteed to be within the valid trilean range.
method to_trilean(self)
Converts an integer value to a Trilean enum value.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The integer to convert (typically -1, 0, or 1).
Returns: A Trilean enum value: True (1), Uncertain (0), or False (-1).
method to_int(self)
Converts a Trilean enum value to its corresponding integer representation.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The Trilean enum value to convert.
Returns: Integer value: 1 (True), 0 (Uncertain), or -1 (False).
method NOT(self)
Negates a trilean integer value (NOT operation).
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The integer value to negate.
Returns: Negated integer value: 1 -> -1, 0 -> 0, -1 -> 1.
method NOT(self)
Negates a Trilean enum value (NOT operation).
Namespace types: series Trilean
Parameters:
self (series Trilean) : The Trilean enum value to negate.
Returns: Negated Trilean: True -> False, Uncertain -> Uncertain, False -> True.
method AND(self, comparator)
Logical AND operation for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The first integer value.
comparator (int) : The second integer value to compare with.
Returns: Integer result of the AND operation (minimum value).
method AND(self, comparator)
Logical AND operation for Trilean enum values following three-valued logic.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The first Trilean enum value.
comparator (series Trilean) : The second Trilean enum value to compare with.
Returns: Trilean result of the AND operation.
method OR(self, comparator)
Logical OR operation for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The first integer value.
comparator (int) : The second integer value to compare with.
Returns: Integer result of the OR operation (maximum value).
method OR(self, comparator)
Logical OR operation for Trilean enum values following three-valued logic.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The first Trilean enum value.
comparator (series Trilean) : The second Trilean enum value to compare with.
Returns: Trilean result of the OR operation.
method EQUALITY(self, comparator)
Logical EQUALITY operation for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The first integer value.
comparator (int) : The second integer value to compare with.
Returns: Integer representation (1/-1) indicating if values are equal.
method EQUALITY(self, comparator)
Logical EQUALITY operation for Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The first Trilean enum value.
comparator (series Trilean) : The second Trilean enum value to compare with.
Returns: Trilean.True if both values are equal, Trilean.False otherwise.
method XOR(self, comparator)
Logical XOR (Exclusive OR) operation for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The first integer value.
comparator (int) : The second integer value to compare with.
Returns: Integer result of the XOR operation.
method XOR(self, comparator)
Logical XOR (Exclusive OR) operation for Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The first Trilean enum value.
comparator (series Trilean) : The second Trilean enum value to compare with.
Returns: Trilean result of the XOR operation.
method IMP_K(self, comparator)
Material implication using Kleene's logic for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The antecedent integer value.
comparator (int) : The consequent integer value.
Returns: Integer result of Kleene's implication operation.
method IMP_K(self, comparator)
Material implication using Kleene's logic for Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The antecedent Trilean enum value.
comparator (series Trilean) : The consequent Trilean enum value.
Returns: Trilean result of Kleene's implication operation.
method IMP_L(self, comparator)
Logical implication using Łukasiewicz's logic for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The antecedent integer value.
comparator (int) : The consequent integer value.
Returns: Integer result of Łukasiewicz's implication operation.
method IMP_L(self, comparator)
Logical implication using Łukasiewicz's logic for Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The antecedent Trilean enum value.
comparator (series Trilean) : The consequent Trilean enum value.
Returns: Trilean result of Łukasiewicz's implication operation.
method IMP_RM3(self, comparator)
Logical implication using RM3 logic for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The antecedent integer value.
comparator (int) : The consequent integer value.
Returns: Integer result of the RM3 implication operation.
method IMP_RM3(self, comparator)
Logical implication using RM3 logic for Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The antecedent Trilean enum value.
comparator (series Trilean) : The consequent Trilean enum value.
Returns: Trilean result of the RM3 implication operation.
method MA(self)
Modal Assertion (MA) operation for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The integer value to evaluate.
Returns: 1 if the value is 1 or 0, -1 if the value is -1.
method MA(self)
Modal Assertion (MA) operation for Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The Trilean enum value to evaluate.
Returns: Trilean.True if value is True or Uncertain, Trilean.False if value is False.
method LA(self)
Logical Assertion (LA) operation for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The integer value to evaluate.
Returns: 1 if the value is 1, -1 otherwise.
method LA(self)
Logical Assertion (LA) operation for Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The Trilean enum value to evaluate.
Returns: Trilean.True if value is True, Trilean.False otherwise.
method IA(self)
Indeterminacy Assertion (IA) operation for trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The integer value to evaluate.
Returns: 1 if the value is 0, -1 otherwise.
method IA(self)
Indeterminacy Assertion (IA) operation for Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The Trilean enum value to evaluate.
Returns: Trilean.True if value is Uncertain, Trilean.False otherwise.
method UNANIMOUS(self, comparator)
Evaluates the unanimity between two trilean integer values.
Namespace types: series int, simple int, input int, const int
Parameters:
self (int) : The first integer value.
comparator (int) : The second integer value.
Returns: Integer value of self if both values are equal, 0 (Uncertain) otherwise.
method UNANIMOUS(self, comparator)
Evaluates the unanimity between two Trilean enum values.
Namespace types: series Trilean
Parameters:
self (series Trilean) : The first Trilean enum value.
comparator (series Trilean) : The second Trilean enum value.
Returns: Value of self if both values are equal, Trilean.Uncertain otherwise.
method UNANIMOUS(self)
Evaluates the unanimity among an array of trilean integer values.
Namespace types: array
Parameters:
self (array) : The array of integer values.
Returns: First value if all values are identical, 0 (Uncertain) otherwise.
method UNANIMOUS(self)
Evaluates the unanimity among an array of Trilean enum values.
Namespace types: array
Parameters:
self (array) : The array of Trilean enum values.
Returns: First value if all values are identical, Trilean.Uncertain otherwise.
Stock metrics and valueThis indicator shows:
- the valuation metrics for a stock on a table on top right: PE, EPS, dividend, ROIC, ROE, ROA, EPS growth, FCF growth, Equity growth, revenue Growth
- the fair value and the value with 50% margin of safety as chart lines
The lines will be red when they are above the current price and red when they are below the current price.
The colors on the table will be red when the values are below 10% and green when they are above, that means when everything is green the metrics for the stock are good.
Fair value and MOSShowing the fair value and margin of safety for a Stock.
Works best with 12 months timeframe.
The calculations are based on historical data for multiple years, up to 10 years.
You will see the following as numbers at the indicator line:
- Forward EPS Growth in %
- Forward PE Calculated
- Forward PE Estimated
The two lines will be shown in green if they are above the current price and in red if the price is bellow the lines.
- The upper line shows the fair value of the stock, calculated with 15% (or 4x in 10 years) expected EPS growth for your investment.
- The lower line shows the margin of safety, calculated at 50% of the fair value.
You can adjust the values at "Forward EPS Growth in %" and "Expected future PE" in order to show your fair price and the price with margin of safety.
Fundamental Fair Value RangeFundamental Fair Value Range (FFV Range)
Purpose:
This indicator aims to estimate a company's intrinsic fair value range based on its historical valuation patterns and current financial health. It analyzes multiple fundamental valuation metrics to provide a comprehensive perspective, helping traders identify potential overvaluation or undervaluation relative to the company's own historical norms.
How It Works:
Data Collection: The script gathers historical financial data for the company over a user-defined number of past quarters ( Number of Quarters to Average ). It retrieves key metrics like Earnings Per Share (EPS), Book Value Per Share (BVPS), Sales Per Share, Free Cash Flow (FCF) Per Share, Tangible Book Value Per Share (TBVPS), EBITDA, Operating Cash Flow (OCF) Per Share, Enterprise Value (EV), and Net Debt. It also pulls current TTM (Trailing Twelve Months) data, forward estimates (EPS, Sales), risk metrics (Debt-to-Equity, Altman Z-Score), and dividend yield.
Historical Ratio Calculation: For each of the past quarters where data is available, the script calculates standard valuation ratios (P/E, P/B, P/S, P/FCF, P/TBV, EV/EBITDA, P/CF) using the closing price at that time and the relevant financial data. Ratios are capped ( Maximum Ratio Cap ) to prevent extreme outliers from skewing results.
Central Tendency: The script calculates the historical central tendency (either the median or mean , selectable by the user) for each valuation ratio based on the collected historical data points. Median is generally preferred to reduce the impact of outliers, but the mean option is available.
Individual Metric Fair Values: Using the current financial data (TTM EPS, BVPS, Sales/Share, etc.) and the calculated historical average ratio , the script estimates a fair value based on each individual metric . For example:
P/E Fair Value = Current EPS * Historical Average P/E Ratio
P/S Fair Value = Current Sales Per Share * Historical Average P/S Ratio
(...and so on for P/B, P/FCF, P/TBV, and P/CF.)
Forward-Looking Adjustments & Blending:
P/E: Calculates fair value using both TTM EPS and Forward EPS estimates. These two values are then blended (averaged) to incorporate future expectations. If only one is available, that one is used.
EV/EBITDA: Calculates fair value based on TTM EBITDA and also based on estimated future EBITDA (derived from Sales Estimates and historical EBITDA margin). These are then blended . The calculation converts the Enterprise Value back to an estimated equity value per share by subtracting Net Debt.
P/S: Also calculates a forward-looking P/S fair value using Sales Estimates, which is considered alongside the TTM version when weighting.
Weighted Composite Fair Value:
The script combines the individual fair value estimates into a single composite value using a weighted average .
User-Defined Weights: You assign weights to each metric (P/E, P/S, P/FCF, P/B, P/TBV, EV/EBITDA, P/CF) via the script settings.
Dynamic Weighting: The weights for P/E, P/S, and P/FCF can be set differently depending on whether the company's current TTM EPS is positive or negative. This allows the model to emphasize sales or cash flow metrics more heavily for unprofitable companies, where P/E is less meaningful.
Risk Adjustment: The composite fair value is adjusted downwards (multiplied by 0.9 for each condition met) if:
Debt-to-Equity ratio exceeds 1.5 (indicating higher leverage risk).
Altman Z-Score is below 1.8 (indicating higher bankruptcy risk).
Dividend Adjustment: The risk-adjusted fair value is then potentially increased based on the company's dividend yield. The yield is added to the value (up to a maximum adjustment of 5% - MAX_DIV_ADJ ) to reflect the value returned to shareholders via dividends. Final Fair Value = Risk-Adjusted Value * (1 + Capped Dividend Yield) .
Confidence Range: A range is calculated around the Final Fair Value. This range is determined by the standard deviation of the individual fair value components that were actually used (had valid data and positive weights) in the composite calculation. A wider range suggests less agreement between the different valuation methods.
Valuation Signal: The script compares the current closing price to the calculated Final Fair Value and the Confidence Range, using Average True Range (ATR) based thresholds near the fair value:
Very Undervalued: Price is below the Lower Bound of the confidence range.
Undervalued: Price is below the Final Fair Value minus an ATR-based buffer.
Fairly Valued: Price is near the Final Fair Value (within the ATR buffer).
Overvalued: Price is above the Final Fair Value plus an ATR-based buffer.
Very Overvalued: Price is above the Upper Bound of the confidence range.
Features & Customization:
Multi-Metric Analysis: Incorporates P/E, P/B, P/S, P/FCF, P/TBV, EV/EBITDA, and P/CF.
Historical Basis: Choose Median or Mean for historical ratio calculation and set the lookback period (number of quarters).
Flexible Weighting: Customize the importance of each metric. Crucially, set different weights for P/E, P/S, and P/FCF based on profitability (EPS > 0 or EPS ≤ 0).
Forward Data Integration: Blends TTM and forward estimates for P/E and EV/EBITDA.
Risk & Dividend Adjustments: Automatically discounts for high debt/low Altman Z-score and premiums for dividend yield (capped).
Clear Visualization:
Plots the Final Fair Value line on the chart.
Plots the Upper and Lower Confidence Bounds (based on standard deviation).
Fills the area between bounds to show the Confidence Range.
Informative Data Table:
Displays the calculated fair value for key individual metrics, their historical average ratios, and current underlying financial values (like EPS, BVPS).
Shows risk metrics (Debt/Equity, Altman Z).
Clearly presents the Final Composite Fair Value, the Confidence Range, the current Valuation Signal (e.g., "Undervalued"), and the percentage difference between the current price and the fair value.
Simple/Full Mode: Option to display a condensed table with only the summary results or the full detailed breakdown.
Display Options: Adjust table position, text size, and switch between light/dark themes for better readability.
How to Use:
Apply the indicator to a stock chart on TradingView.
Configure Settings:
Go into the indicator settings ( Gear Icon ⚙️).
- Calculation Parameters: Set the Number of Quarters to Average (e.g., 20 for 5 years) and choose Use Mean Instead of Median if desired. Adjust Maximum Ratio Cap if needed.
- Valuation Weights: This is crucial. Adjust the weights based on the industry, company maturity, and your valuation philosophy. Consider giving higher weights to metrics commonly used for that sector. Use the separate weights for positive/negative EPS scenarios thoughtfully. For instance, for unprofitable tech stocks, you might assign zero weight to P/E and higher weights to P/S or EV/EBITDA (negative EPS weights).
- Display Options: Choose table mode, position, size, and theme.
Interpret the Output:
- Observe the plotted Fair Value line relative to the current price.
- Note the Confidence Range (shaded area). A wider range indicates more uncertainty or divergence between valuation methods.
- Check the Valuation status in the table (e.g., "Undervalued", "Overvalued").
- Use the % from Fair Value in the table for a quick gauge of deviation.
- Review the individual metric fair values in the full table mode to understand which factors are driving the composite value.
Considerations:
Historical Data Dependence: The model heavily relies on past valuation patterns repeating. Significant changes in a company's business model, market, or industry may make historical ratios less relevant.
Parameter Sensitivity: The calculated fair value is sensitive to the chosen weights and the historical lookback period. Experiment and use values that make sense for your analysis style and the specific stock.
Data Quality: The accuracy of the output depends entirely on the accuracy and availability of the underlying financial data provided by TradingView for the specific ticker. Data may be missing or contain errors for some stocks.
Not Financial Advice: This indicator provides a model-based estimation of fair value. It should be used as one tool among many in your investment decision-making process, not as a sole buy/sell signal. Always conduct thorough due diligence.
Smarter Money Concepts - FVGs [PhenLabs]📊 Smarter Money Concepts - FVGs
Version: PineScript™ v6
📌 Description
Smarter Money Concepts - FVGs is a sophisticated indicator designed to identify and track Fair Value Gaps (FVGs) in price action. These gaps represent market inefficiencies where price moves quickly, creating imbalances that often attract subsequent price action for mitigation. By highlighting these key areas, traders can identify potential zones for reversals, continuations, and price targets.
The indicator employs volume filtering ideology to highlight only the most significant FVGs, reducing noise and focusing on gaps formed during periods of higher relative volume. This combination of price structure analysis and volume confirmation provides traders with high-probability areas of interest that institutional smart money may target during future price movements.
🚀 Points of Innovation
Volume-Filtered Gap Detection : Eliminates low-significance FVGs by requiring a minimum volume threshold, focusing only on gaps formed with institutional participation
Equilibrium Line Visualization : Displays the midpoint of each gap as a potential precision target for trades
Automated Gap Mitigation Tracking : Monitors when price revisits and mitigates gaps, automatically managing visual elements
Time-Based Gap Management : Intelligently filters gaps based on a configurable timeframe, maintaining chart clarity
Dual Direction Analysis : Simultaneously tracks both bullish and bearish gaps, providing a complete market structure view
Memory-Optimized Design : Implements efficient memory management for smooth chart performance even with numerous FVGs
🔧 Core Components
Fair Value Gap Detection : Identifies price inefficiencies where the current candle’s low is higher than the previous candle’s high (bearish FVG) or where the current candle’s high is lower than the previous candle’s low (bullish FVG).
Volume Filtering Mechanism : Calculates relative volume compared to a moving average to qualify only gaps formed during significant market activity.
Mitigation Tracking : Continuously monitors price action to detect when gaps get filled, with options to either hide or maintain visual representation of mitigated gaps.
🔥 Key Features
Customizable Gap Display : Toggle visibility of bullish and bearish gaps independently to focus on your preferred market direction
Volume Threshold Control : Adjust the minimum volume ratio required for gap qualification, allowing fine-tuning between sensitivity and significance
Flexible Mitigation Methods : Choose between “Wick” or “Close” methods for determining when a gap has been mitigated, adapting to different trading styles
Visual Customization : Full control over colors, transparency, and style of gap boxes and equilibrium lines
🎨 Visualization
Gap Boxes : Rectangular highlights showing the exact price range of each Fair Value Gap. Bullish gaps indicate potential upward price targets, while bearish gaps show potential downward targets.
Equilibrium Lines : Dotted lines running through the center of each gap, representing the mathematical midpoint that often serves as a precision target for price movement.
📖 Usage Guidelines
General Settings
Days to Analyze : Default: 15, Range: 1-100. Controls how many days of historical gaps to display, balancing between comprehensive analysis and chart clarity
Visual Settings
Bull Color : Default:(#596fd33f). Color for bullish Fair Value Gaps, typically using high transparency for clear chart visibility
Bear Color : Default:(#d3454575). Color for bearish Fair Value Gaps, typically using high transparency for clear chart visibility
Equilibrium Line : Default: Enabled. Toggles visibility of the center equilibrium line for each FVG
Eq. Line Color : Default: Black with 99% transparency. Sets the color of equilibrium lines, usually kept subtle to avoid chart clutter
Eq. Line Style : Default: Dotted, Options: Dotted, Solid, Dashed. Determines the line style for equilibrium lines
Mitigation Settings
Mitigation Method : Default: Wick, Options: Wick, Close. Determines how gap mitigation is calculated - “Wick” uses high/low values while “Close” uses open/close values for more conservative mitigation criteria
Hide Mitigated : Default: Enabled. When enabled, gaps become transparent once mitigated, reducing visual clutter while maintaining historical context
Volume Filter
Volume Filter : Default: Enabled. When enabled, only shows gaps formed with significant volume relative to recent average
Min Ratio : Default: 1.5, Range: 0.1-10.0. Minimum volume ratio compared to average required to display an FVG; higher values filter out more gaps
Periods : Default: 15, Range: 5-50. Number of periods used to calculate the average volume baseline
✅ Best Use Cases
Identifying potential reversal zones where price may react after extended moves
Finding precise targets for take-profit placement in trend-following strategies
Detecting institutional interest areas for potential breakout or breakdown confirmations
Plotting significant support and resistance zones based on structural imbalances
Developing fade strategies at key market structure points
Confirming trade entries when price approaches significant unfilled gaps
⚠️ Limitations
Works best on higher timeframes where gaps reflect more significant market inefficiencies
Very choppy or ranging markets may produce small gaps with limited predictive value
Volume filtering depends on accurate volume data, which may be less reliable for some symbols
Performance may be affected when displaying a very large number of historical gaps
Some gaps may never be fully mitigated, particularly in strongly trending markets
💡 What Makes This Unique
Volume Intelligence : Unlike basic FVG indicators, this script incorporates volume analysis to identify the most significant structural imbalances, focusing on quality over quantity.
Visual Clarity Management : Automatic handling of mitigated gaps and memory management ensures your chart remains clean and informative even over extended analysis periods.
Dual-Direction Comprehensive Analysis : Simultaneously tracks both bullish and bearish gaps, providing a complete market structure picture rather than forcing a directional bias.
🔬 How It Works
1. Gap Detection Process :
The indicator examines each candle in relation to previous candles, identifying when a gap forms between the low of candle and high of candle (bearish FVG) or between the high of candle and low of candle (bullish FVG). This specific candle relationship identifies true structural imbalances.
2. Volume Qualification :
For each potential gap, the algorithm calculates the relative volume compared to the configured period average. Only gaps formed with volume exceeding the minimum ratio threshold are displayed, ensuring focus on institutionally significant imbalances.
3. Equilibrium Calculation :
For each qualified gap, the script calculates the precise mathematical midpoint, which becomes the equilibrium line - a key target that price often gravitates toward during mitigation attempts.
4. Mitigation Tracking :
The indicator continuously monitors price action against existing gaps, determining mitigation based on the selected method (wick or close). When price reaches the equilibrium point, the gap is considered mitigated and can be visually updated accordingly.
💡 Note:
Fair Value Gaps represent market inefficiencies that often, but not always, get filled. Use this indicator as part of a complete trading strategy rather than as a standalone system. The most valuable signals typically come from combining FVG analysis with other confirmatory indicators and overall market context. For optimal results, start with the default settings and gradually adjust parameters to match your specific trading timeframe and style.
Imbalance(FVG) DetectorImbalance (FVG) Detector
Overview
The Imbalance (FVG) Detector is a technical analysis tool designed to highlight price inefficiencies by identifying Fair Value Gaps (FVGs). These gaps occur when rapid price movement leaves an area with little to no traded volume, which may later act as a zone of interest. The indicator automatically detects and marks these imbalances on the chart, allowing users to observe historical price behavior more effectively.
Key Features
- Automatic Imbalance Detection: Identifies bullish and bearish imbalances based on a structured three-bar price action model.
- Customizable Sensitivity: Users can adjust the minimum imbalance percentage threshold to tailor detection settings to different assets and market conditions.
- Real-time Visualization: Marked imbalances are displayed as colored boxes directly on the chart.
- Dynamic Box Updates: Imbalance zones extend forward in time until price interacts with them.
- Alert System: Users can set alerts for when new imbalances appear or when price tests an existing imbalance.
How It Works
The indicator identifies market imbalances using a three-bar price structure:
- Bullish Imbalance: Occurs when the high of three bars ago is lower than the low of the previous bar, forming a price gap.
- Bearish Imbalance: Occurs when the low of three bars ago is higher than the high of the previous bar, creating a downward gap.
When an imbalance is detected:
- Green Boxes indicate bullish imbalances.
- Red Boxes indicate bearish imbalances.
- Once price interacts with an imbalance, the box fades to gray, marking it as tested.
! Designed for Crypto Markets
This indicator is particularly useful in crypto markets, where frequent volatility can create price inefficiencies. It provides a structured way to visualize gaps in price movement, helping users analyze historical liquidity areas.
Customization Options
- Min Imbalance Percentage Size: Adjusts the sensitivity of the imbalance detection.
- Alerts: Users can enable alerts to stay notified of new or tested imbalances.
Important Notes
- This indicator is a technical analysis tool and does not provide trading signals or financial advice.
- It does not predict future price movement but highlights historical price inefficiencies.
- Always use this tool alongside other market analysis methods and risk management strategies.
Daily Open Rangethis indicator draw the open of the day with a box of high and low ( +1 and -1 ) automatically , you have the ability to select which hour you want to to draw from the inputs and you have the ability to change the style of the range as well
OANDA:XAUUSD
EZ_Algo Copyright label
This script overlays a fully adjustable watermark on your chart, featuring:
A bold Main Title (e.g., your brand or name) and Subtitle (e.g., a tagline or ID).
Optional extras like a copyright notice, logo symbol, warning message, and chart info (symbol, timeframe, timestamp, or close price).
A subtle repeating overlay pattern to deter theft.
Flexible positioning, sizing, and color options to match your vib
e
It’s built for traders who want to protect their charts and make them stand out, all in a few clicks.
How to Use It
Add to Chart: Click "Add to Chart" and watch the default watermark appear (e.g., "EZ ALGO" at the top).
Customize It:
Main Title: Set your brand (e.g., "EZ ALGO") under "Main Title". Tweak color, size, and alignment.
Subtitle: Add a tagline (e.g., "Algo Trading") and trader ID (e.g., "@EZ_Algo
") with matching style options.
Text Opacity: Adjust "Text Opacity" in "Appearance" to control title and subtitle transparency (0 = solid, 100 = invisible).
Chart Info: Toggle "Show Chart Info" to display symbol and timestamp, or add "Show Close Price" for extra data.
Extras: Enable "Show Copyright" for a © notice, "Show Logo" for a symbol (e.g., ★), or "Show Warning" to shout "DO NOT COPY".
Overlay Pattern: Turn on "Show Overlay Pattern" to repeat a phrase (e.g., "EZ Algo") across the chart.
Positioning: Pick vertical/horizontal spots (top, middle, bottom; left, center, right) or try "Randomize Main Position" for a surprise placement.
Appearance: Set a "Background Color" and "Background Opacity" for the watermark’s backdrop.
Cell Size: Adjust "Cell Width (%)" and "Cell Height (%)" to resize the watermark (0 = auto-fit).
Apply & Share: Hit "OK" to save settings, then screenshot or share your branded chart with confidence!
Tips
Use a semi-transparent background (e.g., 50 opacity) to keep the chart readable.
Experiment with "Randomize Main Position" for a dynamic look.
Pair a bold logo with a faint overlay pattern for max branding power.
Credits
Inspired by @KristaKT
thanks for the great ideas!
Enjoy marking your charts with flair and protection! Questions? Drop a comment below.
FVG Detector by SZEMEK>>> DESCRIPTION IN ENGLISH
An advanced indicator for the TradingView platform designed to detect and visualize Fair Value Gaps (FVG) and Inversion Fair Value Gaps (iFVG) on charts.
Main Features:
1. FVG Detection:
- The script identifies both bullish and bearish Fair Value Gaps.
- Users can choose which types of FVG to display (Bullish, Bearish, both, or none).
2. FVG Visualization:
- Gaps are represented as rectangular boxes on the chart.
- The color and transparency of the boxes are configurable separately for bullish and bearish FVG.
- The option to add a frame to FVG boxes with separate color settings.
- FVG labels are available with configurable colors and sizes.
3. Dynamic Tracking of FVG Fill:
- The script monitors the extent to which each gap has been filled by subsequent price movements.
- The fill level is visualized using gray overlay on the original FVG box.
- The percentage fill is updated on the label.
4. Automatic Removal of FVG:
- The ability to set a percentage threshold (100%, 75%, 50%, or no removal) after which FVG is removed from the chart.
5. iFVG Detection:
- The script also identifies Inversion Fair Value Gaps (iFVG), which can be displayed as separate boxes.
- iFVG are available in bullish and bearish versions.
- Users can choose which types of iFVG to display (Bullish, Bearish, both, or none).
- iFVG can also have labels and frames.
6. Limitation of Checked Candles:
- Users can specify the maximum number of candles back that the script will analyze for FVG and iFVG.
- Alerts: The indicator allows setting alerts for detected iFVG, both bullish and bearish.
Advanced Features:
- Accurate calculation of FVG fill percentage, considering both wicks and candle bodies.
- Dynamic updating of FVG boxes and their labels in real-time.
- Flexible memory management through the removal of outdated or filled FVG.
- The ability to customize the appearance of iFVG, including colors, labels, and frames.
This script serves as an advanced tool for technical analysis, enabling traders to identify potential support and resistance areas based on the concept of Fair Value Gaps and their inverted versions.
>>> DESCRIPTION IN ENGLISH
Zaawansowany wskaźnik dla platformy TradingView, który służy do wykrywania i wizualizacji luk wartości godziwej (Fair Value Gaps, FVG) oraz odwróconych luk wartości godziwej (Inversion Fair Value Gaps, iFVG) na wykresie.
Główne cechy
1. Wykrywanie FVG:
- Skrypt identyfikuje zarówno bycze (Bullish), jak i niedźwiedzie (Bearish) luki wartości godziwej.
- Użytkownik może wybrać, które typy FVG mają być wyświetlane (Bullish, Bearish, oba lub żadne).
2. Wizualizacja FVG:
- Luki są przedstawiane jako prostokątne boxy na wykresie.
- Kolor i przezroczystość boxów są konfigurowalne osobno dla FVG byczych i niedźwiedzich.
- Możliwość dodania ramki do boxów FVG z osobnymi ustawieniami kolorów.
- Etykiety FVG są dostępne z konfigurowalnymi kolorami i rozmiarami.
3. Dynamiczne śledzenie wypełnienia FVG:
- Skrypt monitoruje, w jakim stopniu każda luka została wypełniona przez późniejsze ruchy ceny.
- Stopień wypełnienia jest wizualizowany za pomocą szarego koloru nakładanego na oryginalny box FVG.
- Procent wypełnienia jest aktualizowany na etykiecie.
4. Automatyczne usuwanie FVG:
- Możliwość ustawienia progu procentowego (100%, 75%, 50% lub brak usuwania), po którego przekroczeniu FVG jest usuwany z wykresu.
5. Wykrywanie iFVG:
- Skrypt dodatkowo identyfikuje odwrócone luki wartości godziwej (iFVG), które mogą być wyświetlane jako osobne boxy.
- iFVG są dostępne w wersji byczej i niedźwiedziej.
- Użytkownik może wybrać, które typy iFVG mają być wyświetlane (Bullish, Bearish, oba lub żadne).
- iFVG również mogą mieć etykiety i ramki.
6. Ograniczenie sprawdzanych świec:
- Użytkownik może określić maksymalną liczbę świec wstecz, które skrypt będzie analizował w poszukiwaniu FVG i iFVG.
- Alerty: Wskaźnik umożliwia ustawienie alertów dla wykrytych luk iFVG, zarówno bullish, jak i bearish.
Zaawansowane funkcje
- Dokładne obliczanie procentu wypełnienia FVG, uwzględniające zarówno knoty, jak i ciała świec.
- Dynamiczne aktualizowanie boxów FVG i ich etykiet w czasie rzeczywistym.
- Elastyczne zarządzanie pamięcią poprzez usuwanie nieaktualnych lub wypełnionych FVG.
- Możliwość dostosowania wyglądu iFVG, w tym kolorów, etykiet i ramki.
Skrypt ten stanowi zaawansowane narzędzie do analizy technicznej, umożliwiające traderom identyfikację potencjalnych obszarów wsparcia i oporu bazujących na koncepcji luk wartości godziwej i ich odwróconych wersjach.
Cash Flow YieldsCash Flow Yields Indicator
This indicator offers a straightforward way to visualize a company’s cash flow metrics—Free Cash Flow (FCF), Operating Cash Flow (OCF), and Capital Expenditures (CapEx)—as yields relative to its market capitalization. With the flexibility to switch between Trailing Twelve Months (TTM) and Quarterly data, it’s perfect for spotting financial efficiency trends at a glance. Values are plotted as dynamic lines with smart color coding and labeled for clarity.
Features:
TTM & Quarterly Data: Toggle between financial periods to suit your analysis.
Color-Coded Lines: Green for positive OCF, teal for positive FCF, and blue for CapEx. Red and maroon kick in when values turn negative.
Yield Perspective: See FCF, OCF, and CapEx as percentages of market cap, making it easy to compare cash flow strength across companies.
Clear Labels: The latest values pop up on the chart, positioned to the right of the last bar.
Simple & Intuitive: No clutter - just clean lines and numbers to help you focus on what matters.
To use it, add it to your chart and toggle between TTM or Quarterly to see trends. FCF should roughly equal OCF minus CapEx. Adjust your view to focus on companies with strong FCF yields for potential opportunities.
This indicator is freely available and open-source on TradingView for everyone to use. Enjoy!
Value Area - Day Trading SuiteValue Area Day Trading Suite
A professional-grade indicator designed specifically for day traders who utilize Volume Profile and Auction Market Theory. This suite provides tracking of previous day's value areas, helping traders identify how current price interacts with these established institutional levels.
It tracks how much time has spent within the value area without Level to Help Measure Acceptance
Key Features
- Previous Day's Value Area tracking (VAH, POC, VAL)
- Precise time-in-value-area measurement
- Cash session integration with major market timezones
- Value Area acceptance alerts
Trading Applications
Perfect for day traders who:
- Trade using previous day's Volume Profile levels
- Focus on institutional price acceptance/rejection
- Trade market structure using confirmed value areas
- Want to automate their value area analysis
- Trade during specific market sessions
Value Area Analysis
The indicator tracks how long price stays within the previous day's value area, helping traders:
- Identify Potential Support / Resistance Levels
- Spot acceptance of established levels
- Find high-probability trading opportunities
- Time their entries and exits more effectively
Professional Tools
- Customizable cash session times for different markets
- Multiple timezone support
- Flexible dashboard positioning
- Clean, professional appearance with adjustable colors
- Alert system for value area acceptance
Built for day traders who utilize value areas
Cryptolabs Global Liquidity Cycle Momentum IndicatorCryptolabs Global Liquidity Cycle Momentum Indicator (LMI-BTC)
This open-source indicator combines global central bank liquidity data with Bitcoin price movements to identify medium- to long-term market cycles and momentum phases. It is designed for traders who want to incorporate macroeconomic factors into their Bitcoin analysis.
How It Works
The script calculates a Liquidity Index using balance sheet data from four central banks (USA: ECONOMICS:USCBBS, Japan: FRED:JPNASSETS, China: ECONOMICS:CNCBBS, EU: FRED:ECBASSETSW), augmented by the Dollar Index (TVC:DXY) and Chinese 10-year bond yields (TVC:CN10Y). This index is:
- Logarithmically scaled (math.log) to better represent large values like central bank balances and Bitcoin prices.
- Normalized over a 50-period range to balance fluctuations between minimum and maximum values.
- Compared to prior-year values, with the number of bars dynamically adjusted based on the timeframe (e.g., 252 for 1D, 52 for 1W), to compute percentage changes.
The liquidity change is analyzed using a Chande Momentum Oscillator (CMO) (period: 24) to measure momentum trends. A Weighted Moving Average (WMA) (period: 10) acts as a signal line. The Bitcoin price is also plotted logarithmically to highlight parallels with liquidity cycles.
Usage
Traders can use the indicator to:
- Identify global liquidity cycles influencing Bitcoin price trends, such as expansive or restrictive monetary policies.
- Detect momentum phases: Values above 50 suggest overbought conditions, below -50 indicate oversold conditions.
- Anticipate trend reversals by observing CMO crossovers with the signal line.
It performs best on higher timeframes like daily (1D) or weekly (1W) charts. The visualization includes:
- CMO line (green > 50, red < -50, blue neutral), signal line (white), Bitcoin price (gray).
- Horizontal lines at 50, 0, and -50 for improved readability.
Originality
This indicator stands out from other momentum tools like RSI or basic price analysis due to:
- Unique Data Integration: Combines four central bank datasets, DXY, and CN10Y as macroeconomic proxies for Bitcoin.
- Dynamic Prior-Year Analysis: Calculates liquidity changes relative to historical values, adjustable by timeframe.
- Logarithmic Normalization: Enhances visibility of extreme values, critical for cryptocurrencies and macro data.
This combination offers a rare perspective on the interplay between global liquidity and Bitcoin, unavailable in other open-source scripts.
Settings
- CMO Period: Default 24, adjustable for faster/slower signals.
- Signal WMA: Default 10, for smoothing the CMO line.
- Normalization Window: Default 50 periods, customizable.
Users can modify these parameters in the Pine Editor to tailor the indicator to their strategy.
Note
This script is designed for medium- to long-term analysis, not scalping. For optimal results, combine it with additional analyses (e.g., on-chain data, support/resistance levels). It does not guarantee profits but supports informed decisions based on macroeconomic trends.
Data Sources
- Bitcoin: INDEX:BTCUSD
- Liquidity: ECONOMICS:USCBBS, FRED:JPNASSETS, ECONOMICS:CNCBBS, FRED:ECBASSETSW
- Additional: TVC:DXY, TVC:CN10Y
Higher Time Frame Fair Value Gap [ZeroHeroTrading]A fair value gap (FVG) highlights an imbalance area between market participants, and has become popular for technical analysis among price action traders.
A bullish (respectively bearish) fair value gap appears in a triple-candle pattern when there is a large candle whose previous candle’s high (respectively low) and subsequent candle’s low (respectively high) do not fully overlap the large candle. The space between these wicks is known as the fair value gap.
The following script aims at identifying higher timeframe FVG's within a lower timeframe chart. As such, it offers a unique perspective on the formation of FVG's by combining the multiple timeframe data points in the same context.
You can change the indicator settings as you see fit to achieve the best results for your use case.
Features
It draws higher timeframe bullish and bearish FVG's on the chart.
For bullish (respectively bearish) higher timeframe FVG's, it adds the buying (respectively selling) pressure as a percentage ratio of the up (respectively down) volume of the second higher timeframe bar out of the total up (respectively down) volume of the first two higher timeframe bars.
It adds a right extended trendline from the most recent lowest low (respectively highest high) to the top (respectively bottom) of the higher timeframe bullish (respectively bearish) FVG.
It detects and displays higher timeframe FVG's as early as one starts forming.
It detects and displays lower timeframe (i.e. chart's timeframe) FVG's upon confirmation.
It allows for skipping inside first bars when evaluating FVG's.
It allows for dismissing higher timeframe FVG's if there is no update for any period of the chart's timeframe. For instance, this can occur at lower timeframes during low trading activity periods such as extended hours.
Settings
Higher Time Frame FVG dropdown: Selects the higher timeframe to run the FVG detection on. Default is 15 minutes. It must be higher than, and a multiple of, the chart's timeframe.
Higher Time Frame FVG color select: Selects the color of the text to display for higher timeframe FVG's. Default is black.
Show Trend Line checkbox: Turns on/off trendline display. Default is on.
Show Lower Time Frame FVG checkbox: Turns on/off lower timeframe (i.e. chart's timeframe) FVG detection. Default is on.
Show Lower Time Frame FVG color select: Selects the color of the border for lower timeframe (i.e. chart's timeframe) FVG's. Default is white.
Include Inside Bars checkbox: Turns on/off the inclusion of inside first bars when evaluating FVG's. Default is on.
With Consistent Updates checkbox: Turns on/off consistent updates requirement. Default is on.
TTM FCFF Yield %An indicator that shows the Free Cash Flow yield daily for the underlying ticker. Useful for when you need to screen for ideas, or the news just broke out and you want to make a calculated purchase - rather than buying at whatever price it is at the moment.
Green line tracks daily Free Cash Flow yield to Enterprise Value.
Where Free Cash Flow is defined as = Cashflow from Operations + Depreciation and Amortization (from the income statement) - Capital Expenditure (fixed assets) - Change in Working Capital
And where Enterprise Value is defined as = Market Capitalization + Net Debt
Red line tracks Free Cash Flow of financial year and what FCFF yield does that equate to if the stock current trades at the price right now.
Reminder: When working with international equities. Be mindful of whether they report FQ or FH. For example, France only reports FH, so it's better to use TTM FHFree Cash Flow results. If you didn't toggle FH in the indicator settings, it will automatically set as FQ and it will not show anything.
GLHF
Dividend Payout RatioShows the dividend payout ratio for the specific stock.
The dividend payout ratio indicates if the dividend payout is sustainable in the long run. Therefore,
1. A dividend payout under 50% is considered sustainable. The line will be green
2. A dividend payout over 50% and under 100%, the line will be yellow, is considered a stock to investigate since the dividend payout may have to be cut in the future which will cause the stock price to crash.
3. A dividend payout over 100%, the line will be red, is considered unsustainable and the dividend payout will most likely be cut in the near future. It can take up to a few years for the dividend cut to happen if the financials do not improve.
If the dividend payout ratio is over 100%, this means that the company is paying a dividend amount over $1 for every $1 earned. Therefore, the company must borrow money or find another source to pay the dividend amount that the company cannot afford to pay with the current earnings.
Calculating the dividend payout ratio:
Divide dividend paid by earnings after tax and multiplying the result by 100%.
Spent Output Profit Ratio | JeffreyTimmermansSOPR
The "Spent Output Profit Ratio" , aka SOPR indicator is a valuable tool designed to analyze the profitability of spent Bitcoin outputs. SOPR is derived by dividing the selling price of Bitcoin by its purchase price, offering insights into market participants' profit-taking or loss-cutting behavior.
This script features two selectable SOPR metrics:
SOPR 30D: A 30-day Exponential Moving Average (EMA) for short-term trend analysis.
SOPR 365D: A 365-day EMA for assessing long-term profitability trends.
How It Works
Key Levels: The horizontal reference line at 1.0 acts as a critical threshold:
Above 1.0: Market participants are generally in profit, indicating bullish sentiment.
Below 1.0: Market participants are selling at a loss, often signaling bearish sentiment.
Background Colors
Green: Indicates bullish conditions when the selected SOPR value is above 1.
Red: Highlights bearish conditions when the value is below 1.
Dynamic Selection
Easily switch between SOPR 30D and SOPR 365D in the settings for tailored analysis.
Features
Customizable SOPR Selection: Toggle between 30-day and 365-day SOPR views based on your trading preferences.
Dynamic Label: A floating label displays the current SOPR value in real-time, along with the selected SOPR metric for easy monitoring.
Background Highlights: Visual cues for bullish and bearish conditions simplify chart interpretation.
Real-Time Alerts
Bullish Alerts: Triggered when the selected SOPR crosses above 1.
Bearish Alerts: Triggered when the selected SOPR crosses below 1.
Clean Visualization
The indicator includes a horizontal reference line and clear color schemes for easy trend identification.
The SOPR Indicator is an essential tool for traders and analysts seeking to understand Bitcoin market sentiment and profitability trends. Whether used for short-term trades or long-term market analysis, this script provides actionable insights to refine your decision-making process.
-Jeffrey
Correlation Coefficient Master TableThe Correlation Coefficient Master Table is a comprehensive tool designed to calculate and visualize the correlation coefficient between a selected base asset and multiple other assets over various time periods. It provides traders and analysts with a clear understanding of the relationships between assets, enabling them to analyze trends, diversification opportunities, and market dynamics. You can define key parameters such as the base asset’s data source (e.g., close price), the assets to compare against (up to six symbols), and multiple lookback periods for granular analysis.
The indicator calculates the covariance and normalizes it by the product of the standard deviations. The correlation coefficient ranges from -1 to +1, with +1 indicating a perfect positive relationship, -1 a perfect negative relationship, and 0 no relationship.
You can specify the lookback periods (e.g., 15, 30, 90, or 120 bars) to tailor the calculation to their analysis needs. The results are visualized as both a line plot and a table. The line plot shows the correlation over the primary lookback period (the Chart Length), which can be used to inspect a certain length close up, or could be used in conjunction with the table to provide you with five lookback periods at once for the same base asset. The dynamically created table provides a detailed breakdown of correlation values for up to six target assets across the four user-defined lengths. The table’s cells are formatted with rounded values and color-coded for easy interpretation.
This indicator is ideal for traders, portfolio managers, and market researchers who need an in-depth understanding of asset interdependencies. By providing both the numerical correlation coefficients and their visual representation, users can easily identify patterns, assess diversification strategies, and monitor correlations across multiple timeframes, making it a valuable tool for decision-making.
Dynamic Risk-Adjusted Performance Ratios with TableWith this indicator, you have everything you need to monitor and compare the Sharpe ratio, Sortino ratio, and Omega ratio across multiple assets—all in one place. This tool is designed to help save time and improve efficiency by letting you track up to 15 assets simultaneously in a fully customizable table. You can adjust the lookback period to fit your trading strategy and get a clearer picture of how your assets perform over time. Instead of switching between charts, this indicator puts all the critical information you need at your fingertips.
Sharpe Ratio -
Helps evaluate the overall efficiency of investments by comparing the average return to the total risk (measured by the standard deviation of all returns). Essentially, it tells you how much excess return you’re getting for each unit of risk you’re taking. A higher Sharpe ratio means you’re getting better risk-adjusted performance—something you’ll want to aim for in your portfolio.
Sortino Ratio -
Goes a step further by focusing only on downside risk—because let’s face it, no one worries about positive volatility. This ratio is calculated by dividing the average return by the standard deviation of only the negative returns. Perfect for those concerned about avoiding losses rather than chasing extreme gains. It gives you a sharper view of how well your assets are performing relative to the risks you’re trying to avoid.
Omega Ratio -
Offers a unique perspective by comparing the sum of positive returns to the absolute sum of negative returns. It’s a straightforward way to see if your wins outweigh your losses. A higher Omega ratio means your positive returns significantly exceed the downside, which is exactly what you want when building a strong, reliable portfolio.
This indicator is perfect for traders who want to streamline their decision-making process and gain an edge. Bringing together these three critical ratios into a single user-defined table makes it easy to compare and rank assets at a glance. Whether optimizing a portfolio or looking for the best opportunities, this tool helps you stay ahead by focusing on risk-adjusted returns. The customizable lookback period lets you tailor the analysis to fit your unique trading approach, giving you insights that align with your goals. If you’re serious about making data-driven decisions and improving your trading outcomes, this indicator is a game-changer for your toolkit.