Nadaraya-Watson: Rational Quadratic Kernel (Opening Gap Shift)What we did to fix it: We didn't throw out the old data (that made it too jumpy early in the day).
Instead, we "tricked" the kernel by shifting all the previous day's prices up or down by the exact gap amount (e.g., if it gapped up 50 points, add 50 to every old price point). This makes the history "line up" with the new day's starting level.
Created so with a fresh session the Nadaraya-Watson Regression Kernel is relevant from the get go - no catch up on opening gaps.
All credit to jdehorty his full description is below.
What is Nadaraya–Watson Regression?
Nadaraya–Watson Regression is a type of Kernel Regression, which is a non-parametric method for estimating the curve of best fit for a dataset. Unlike Linear Regression or Polynomial Regression, Kernel Regression does not assume any underlying distribution of the data. For estimation, it uses a kernel function, which is a weighting function that assigns a weight to each data point based on how close it is to the current point. The computed weights are then used to calculate the weighted average of the data points.
How is this different from using a Moving Average?
A Simple Moving Average is actually a special type of Kernel Regression that uses a Uniform (Retangular) Kernel function. This means that all data points in the specified lookback window are weighted equally. In contrast, the Rational Quadratic Kernel function used in this indicator assigns a higher weight to data points that are closer to the current point. This means that the indicator will react more quickly to changes in the data.
Why use the Rational Quadratic Kernel over the Gaussian Kernel?
The Gaussian Kernel is one of the most commonly used Kernel functions and is used extensively in many Machine Learning algorithms due to its general applicability across a wide variety of datasets. The Rational Quadratic Kernel can be thought of as a Gaussian Kernel on steroids; it is equivalent to adding together many Gaussian Kernels of differing length scales. This allows the user even more freedom to tune the indicator to their specific needs.
The formula for the Rational Quadratic function is:
K(x, x') = (1 + ||x - x'||^2 / (2 * alpha * h^2))^(-alpha)
where x and x' data are points, alpha is a hyperparameter that controls the smoothness (i.e. overall "wiggle") of the curve, and h is the band length of the kernel.
Does this Indicator Repaint?
No, this indicator has been intentionally designed to NOT repaint. This means that once a bar has closed, the indicator will never change the values in its plot. This is useful for backtesting and for trading strategies that require a non-repainting indicator.
Settings:
Bandwidth. This is the number of bars that the indicator will use as a lookback window.
Relative Weighting Parameter. The alpha parameter for the Rational Quadratic Kernel function. This is a hyperparameter that controls the smoothness of the curve. A lower value of alpha will result in a smoother, more stretched-out curve, while a lower value will result in a more wiggly curve with a tighter fit to the data. As this parameter approaches 0, the longer time frames will exert more influence on the estimation, and as it approaches infinity, the curve will become identical to the one produced by the Gaussian Kernel.
Color Smoothing. Toggles the mechanism for coloring the estimation plot between rate of change and cross over modes.
Penunjuk dan strategi
Emac ForecastEMAC Forecast System
What it measures
The EMAC Forecast measures the speed and persistence of trend movement. Instead of only looking at whether one EMA is above or below another, the forecast quantifies how quickly momentum is building or fading across multiple time horizons.
It captures three things at once:
The direction of the underlying trend
The rate at which the trend is strengthening or weakening
The consistency of that change across several smoothing speeds
This produces a forward leaning view of trend conditions, not a trailing confirmation.
How to read the forecast
The EMAC Forecast is displayed as a scaled oscillator, typically ranging between negative and positive values.
Positive forecast values
Indicate that bullish trend pressure is increasing.
Higher readings mean stronger acceleration, not just price rising.
Negative forecast values
Indicate increasing bearish pressure.
Again, the strength of the negative reading reflects how quickly selling momentum is building.
Rising forecast (slope up)
Shows improving momentum, even if the value is still below zero.
Useful for catching early reversals or transitions from chop to trend.
Falling forecast (slope down)
Shows momentum fading, even when trend direction has not flipped yet.
Helps anticipate exhaustions and pullbacks.
Flat forecast
Indicates low conviction and lack of directional drive.
Often corresponds to chop or range conditions.
Why the EMAC Forecast is different from a regular EMAC
A standard EMAC or EMA crossover follows a simple rule:
When fast EMA crosses above slow EMA, bullish.
When fast EMA crosses below slow EMA, bearish.
This is reactive and only changes after price has already moved.
The EMAC Forecast works differently:
1. Uses multiple EMAs rather than two
Instead of comparing one fast and one slow average, it blends several time constants into a composite signal.
This creates a smoother, more reliable directional read.
2. Measures acceleration, not just position
Traditional crossovers only monitor whether lines have crossed.
EMAC Forecast measures the speed and force behind the movement.
It tells you how strong the trend is becoming, not just whether one line is above the other.
3. Adapts to volatility
Sharp markets increase weighting of fast components.
Calm markets increase influence of slower components.
This reduces whipsaws in low-volatility conditions and improves responsiveness in high-volatility environments.
4. Gives actionable information before a crossover happens
The forecast often turns before the EMAC direction flips, allowing early detection of:
Trend ignition
Trend fade
Momentum squeezes
Impending reversals
It effectively “leans forward” into the trend instead of waiting for a full reversal.
Practical Use Cases
Early trend identification
When the forecast first turns positive or negative, trend acceleration is beginning.
This is often visible before the EMAC lines cross.
Confirming the Combined Forecast System
Use the EMAC Forecast to validate signals from your other forecast models.
If both agree, conviction is notably higher.
Filtering noise
Short-term whipsaws are reduced because the composite structure dilutes erratic fast movements.
Trend aging and exhaustion
A falling forecast during a positive trend suggests reduced conviction and potential exhaustion.
Braid Filter StrategyAnother of TradeIQ's youtube strategies. It looks a little messy but it combines all the indicators into one so there are no extra panes. This strategy is like a sophisticated set of traffic lights and speed limit signs for trading. It only allows a trade when multiple indicators line up to confirm a strong move, giving it its "Braid Filter" name—it weaves together several conditions.
The strategy is set up to use 100% of your account equity (your trading funds) on a trade and does not "pyramid" (it won't add to an existing trade).
1. The Main Trend Check (The Traffic Lights)
The strategy uses three main filters that must agree before it considers a trade.
A. The "Braid Filter" (Direction & Strength)
This is the heart of the strategy, a custom combination of three different Moving Averages
These averages have fast, medium, and slow settings (3, 7, and 14 periods).
Go Green (Buy Signal): The fastest average is higher than the medium average, AND the three averages are sufficiently separated (not tangled up, which indicates a strong move).
Go Red (Sell Signal): The medium average is higher than the fastest average, AND the three averages are sufficiently separated.
Neutral (Wait): If the averages are tangled or the separation isn't strong enough.
Key Trigger: A primary condition for a signal is when the Chad Filter changes color (e.g., from Red/Grey to Green).
B. The EMA Trend Bars (Secondary Confirmation)
This is a simpler, longer-term filter using a 34-period Exponential Moving Average (EMA). It checks if the current candle's average price is above or below this EMA.
Green Bars: The price is above the 34 EMA (Bullish Trend).
Red Bars: The price is below the 34 EMA (Bearish Trend).
Trades only happen if the signal direction matches the bar color. For a Buy, the bar must be Green. For a Sell, the bar must be Red.
C. ADX/DI Filter (The Speed Limit Sign)
This uses the Average Directional Index (ADX) and Directional Movement Indicators (DI) to check if a trend is actually in motion and getting stronger.
Must-Have Conditions:
The ADX value must be above 20 (meaning there is a trend, not just random movement).
The ADX line must be rising (meaning the trend is accelerating/getting stronger).
The strategy will only trade when the trend is strong and building momentum.
2. The Trading Action (Entry and Exit)
When all three filters (Chad Filter color change, EMA Trend Bar color, and ADX strength/slope) align, the strategy issues a signal, but it doesn't enter immediately.
Entry Strategy (The "Wait-for-Confirmation" Approach):
When a Buy Signal appears, the strategy sets a "Buy Stop" order at the signal candle's closing price.
It then waits for up to 3 candles (Candles Valid for Entry). The price must move up and hit that Buy Stop price within those 3 candles to confirm the move and enter the trade.
A Sell Signal works the same way but uses a "Sell Stop" at the closing price, waiting for the price to drop and hit it.
Risk Management (Stop Loss and Take Profit):
Stop Loss: To manage risk, the strategy finds a recent significant low (for a Buy) or high (for a Sell) over the last 20 candles and places the Stop Loss there. This is a logical place where the current move would be considered "broken" if the price reaches it.
Take Profit: It uses a fixed Risk:Reward Ratio (set to 1.5 by default). This means the potential profit (Take Profit distance) is $1.50 for every $1.00 of risk (Stop Loss distance).
3. Additional Controls
Time Filter: You can choose to only allow trades during specific hours of the day.
Visuals: It shows a small triangle on the chart where the signal happens and colors the background to reflect the Chad Filter's trend (Green/Red/Grey) and the candle bars to show the EMA trend (Lime/Red).
🎯 Summary of the Strategy's Goal
This strategy is designed to capture strong, confirmed momentum moves. It uses a fast, custom indicator ("Chad Filter") to detect the start of a new move, confirms that move with a slower trend filter (34 EMA), and then validates the move's strength with the ADX. By waiting a few candles for the price to hit the entry level, it aims to avoid false signals.
Gann Square of 144 (Master Price & Time)🔹 What this tool does
Draws a 144-unit square in price & time (0 → 144)
Plots all key horizontal & vertical levels:
0, 18, 36, 48, 54, 72, 90, 96, 108, 126, 144
Highlights the main 1/2 level (72) as thick midline
Marks 1/3 and 2/3 (48 & 96) as special harmonic levels
Draws internal diagonals (0–144, 144–0 and sub-squares)
Plots an 8-ray Gann fan from the 0-point (0 → 36 / 72 / 108 / 144 etc.)
Keeps price–time ratio consistent inside the box:
the 1×1 angle has a fixed slope = price_per_bar
The idea: once the square is calibrated to a major swing, you can study how price respects these angles and harmonic zones over time.
🔧 Inputs & how to set it up correctly
Choose your timeframe
Works best on Daily and Weekly charts.
Use one timeframe consistently when calibrating the square.
Start offset (bars back)
Start offset (bars back) shifts the whole square left/right.
Increase the value to move the square further into the past, decrease it to move it closer to the current bars.
Box width (bars)
Box width (bars) = how many bars the square spans horizontally.
Bigger value = projects the structure further into the future.
Example: 288 bars ≈ 2×144 units in time, 720 bars for longer-term projection, etc.
Bottom price
Bottom price is your 0-level in price.
Usually set this to a major swing low (cycle low, bear market low, important pivot).
The bottom-left corner of the square conceptually sits at:
(start_offset_bar, bottom_price)
Price per bar (slope 1×1) (if your version has this input)
This defines the slope of the 1×1 angle (main Gann angle).
Recommended way to set it:
Pick a major impulsive move from Swing Low → Swing High.
Measure:
Price range = High − Low
Number of bars between them.
Compute:
price_per_bar = price_range / number_of_bars
Use that as your 1×1 value in the input.
Now the main diagonal from 0 to 144 represents the true Gann 1×1 for that swing.
Important: The 1×1 angle is mathematically correct (price-per-bar), even if it does not always look like a perfect 45° line visually in TradingView due to chart scaling.
📖 How to read the Square of 144
Horizontal levels
0 = anchor price (bottom)
18, 36, 48, 54, 72, 90, 96, 108, 126, 144 = key price harmonics
72 (1/2) often acts as major support/resistance
48 & 96 (1/3 and 2/3) are strong “vibration” levels
Vertical levels
Same units but in time (bars).
When important pivots in price occur near these verticals, you get time–price confluence.
Midlines (1/2)
The thick horizontal and vertical lines at 72 mark the center of the square.
Crossings around these often signal important cycle turns.
1/3 & 2/3 zones (48–54 and 90–96)
These narrow bands are powerful reversal / decision zones.
Price often reacts strongly there or accelerates if they break.
Gann fan from 0-point
These rays represent major trends:
1×1 equivalent (main diagonal)
Faster & slower angles (e.g. 2×1, 1×2, etc depending on configuration)
If price breaks one fan angle cleanly, it often “falls” or “climbs” toward the next one.
🎯 Practical use cases
Project future support/resistance zones based on a major low.
See where price is in the square: early in the cycle (0–36), mid (around 72), or late (108–144).
Watch how price respects:
midlines (72),
1/3 and 2/3 bands (48–54, 90–96),
and the fan angles from 0.
Combine with your own price action / Fibonacci / trend tools – this is not a signal generator, but a time–price map.
⚠️ Notes & limitations
This tool is for educational & analytical purposes only.
It does not generate buy/sell signals.
Visual 45° angles in TradingView can change when you zoom or rescale the chart.
→ The script keeps the internal price-per-bar logic stable, even if the drawing looks steeper/flatter when zooming.
Always confirm zones with price action, volume, and higher timeframe context.
CyberFX Round NumbersThis is a traditional Round Numbers indicators. As all know RND # are psychological levels that represents Support and Resistance. Of course they are not exact science but in general they can give us a possible level where maybe the price move will be rejected.
One other thing I have been using in my strategy is no matter what the time frame I am trading I always check the Daily trend. We know that the banks and financial institutions are always looking for the high TFs trend for long investments so, on my understand, the Daily trend will affect the lower TFs in one way or other so I decided to add this option into this indicator.
Also to avoid an over crowed chart with many lines around I added the option to Show/Hide the RND# so during the analysis I can check the RND# levels.
The Daily Trend is based on a SMA(200).
QQQ SR Pro.MARIA VICTORIAthis script is thinking to help traders to avoid false breakdown on resistant or support. try to improve enter en exist trading in any time frame, as well.
Fibonacci Pullback to 50MA Buy Signal// === CONDITIONS FOR BUY SIGNAL ===
// 1. Price must be inside the fib pullback zone
inFibZone = low <= fib50 and low >= fib618
// 2. Price must touch or approach the 50MA
touchMA = low <= ma50 * 1.002 and low >= ma50 * 0.998 // within 0.2%
// 3. Optional confirmation – bullish candle
reversalCandle = close > open
// FINAL BUY SIGNAL CONDITION
buySignal = inFibZone and touchMA and reversalCandle
// === MARK BUY SIGNAL ===
plotshape(buySignal, style=shape.labelup, color=color.lime, size=size.large,
location=location.belowbar, text="BUY Fib + 50MA")
Tokyo Session High/Low (live → lock & extend @02:59 UTC-5)Tokyo Session High/Low (live → lock & extend @02:59 UTC-5)Tokyo Session High/Low (live → lock & extend @02:59 UTC-5)
Distance from EMA (@orel_kakoon)Description (English):
This indicator measures the relative distance between the current price and the 21-period Exponential Moving Average (EMA).
It helps traders visualize when the price is extended above or below its short-term trend, identify potential overbought or oversold conditions, and spot mean-reversion opportunities.
Use it to track momentum shifts and confirm entries or exits based on how far the price deviates from its EMA baseline.
Monthly, Weekly Open + Daily Pivot (Broken Lines, fixed)monthly open line weekly open and daily pivot
This TradingView indicator plots three key reference levels on your chart:
Monthly Open Line – shows the current month’s opening price.
Weekly Open Line – shows the current week’s opening price.
Daily Pivot Line – shows the pivot level based on the previous day’s high, low, and close.
Each line resets at the start of its new period (month, week, or day), so the lines are broken, not continuous.
You can fully customize visibility, color, and thickness for each line.
It helps traders quickly see market bias and important support/resistance levels for better intraday or swing trading decisions.
K线语言·国师版 — Price Action TranslatorUnderstand what the market is really saying.
This script automatically translates candlestick and volume behavior into clear, human-readable messages directly on your chart.
Instead of guessing what each bar means, you can hear the market speak.
📈 Green bar with volume → Buyers are in control
📉 Red bar with volume → Sellers are dumping positions
⚖️ Doji → Indecision between buyers and sellers
💡 Long upper wick → Selling pressure from above / Long lower wick → Buyers absorbing below
🧠 Core Concept
Most indicators tell you what happened.
Price Action tells you why it happened.
This script bridges that gap by letting the candles explain the psychology behind every move.
It helps traders:
Visualize market sentiment through candlestick language.
Identify institutional accumulation or distribution.
Build confidence by understanding the story behind price.
⚙️ Main Features
✅ Automatically detects strong volume bars, Doji, long wicks, and reversal patterns.
✅ Displays short contextual messages above or below each bar.
✅ Works on all time frames (Daily / 4H / 1H).
✅ Clean and non-intrusive visual design.
📈 Best For
Traders learning Price Action logic.
Multi-time-frame trend analysts.
Active traders who want to reduce emotional decisions.
🚀 Usage Tips
1️⃣ Use it with your EMA trend system for confirmation.
2️⃣ Watch for volume surges to confirm real momentum.
3️⃣ Do not chase small Doji bars — wait for confirmation candles.
💬 Author’s Note
“Price Action is the language of the market.
Once you understand its voice, you don’t need to guess anymore.”
— Master Edition · Price Action Translator
DCA Position vs Cash HoldingThis indicator visualizes the performance of a simulated dollar-cost averaging (DCA) strategy compared to simply holding cash. It models the cumulative position size and value of buying a fixed dollar amount of the asset per candle over a configurable lookback period.
🔍 What It Shows:
Simulates buying $1 (or any amount) of the asset per candle
Tracks the total units accumulated and their current market value
Plots the difference between the DCA position value and total cash spent
Highlights when DCA buyers are underwater — a potential contrarian buy zone
📈 How to Use:
Values above zero indicate DCA outperformance vs cash
Values below zero signal structural drawdown — often a high-conviction bulk-buy opportunity
Use as a sentiment overlay to time discretionary adds or confirm regime shifts
⚙️ Inputs:
Lookback Window: Number of candles used to simulate DCA accumulation
DCA Amount: Dollar value purchased per candle
This tool is ideal for traders seeking to quantify accumulation efficiency, identify cycle inflection points, and visualize sentiment-weighted cost basis dynamics.
Emac ML Adaptive CrossoverThe HDAlgos EMAC ML Adaptive Crossover is an adaptive trend reading and crossover system that uses a lightweight machine learning style scoring engine to detect regime shifts in the market. It blends multiple normalised technical features and automatically adjusts EMA lengths based on the detected market regime.
How it works
Feature Engine
The script computes several normalised indicators including RSI, ATR percentage, and Rate of Change. Each feature is converted into a z score so that the values behave consistently across different markets and timeframes. These feature values are then averaged to form a composite regime score.
Regime Detection
The composite score is compared to a dynamic upper and lower threshold. If the score rises above the upper boundary the regime becomes bullish. If the score falls below the lower boundary it becomes bearish. If it stays between the two boundaries the market is classified as neutral.
Adaptive EMAs
The fast and slow EMA lengths are automatically adjusted depending on the detected regime.
• In bullish regimes the fast and slow EMAs shorten.
• In bearish regimes they lengthen.
• In neutral regimes they revert to their base lengths.
This creates an EMA crossover system that responds to market volatility and directional strength rather than using fixed lookback values.
Crossovers
When the adaptive fast EMA crosses above the adaptive slow EMA, a bullish signal appears. When it crosses below, a bearish signal appears.
Visual Aids
• The fast EMA changes color to reflect the current regime.
• Candles can be optionally painted in regime colors.
• A label on the last bar shows the detected regime, score, and active EMA lengths.
• A compact table can be shown in the corner summarizing regime state and metrics.
Alerts
Alerts trigger when the regime changes, when a bullish adaptive crossover occurs, and when a bearish adaptive crossover occurs.
What it is designed for
This indicator is built for traders who want a crossover system that adapts to real market conditions instead of reacting to fixed length EMAs. It provides:
Smoother identification of trend phases
Dynamic sensitivity during strong conditions
Dampened reactions during noise and low conviction periods
Clear and simple signals that remain easy to interpret
Multi-TF Volatility Channel DashboardThis tool tracks where price sits inside a volatility channel on two timeframes at once and turns it into a simple trend state.
What it does
Builds a volatility channel around price using a midline and a volatility based band.
Converts the position of price inside that band into an oscillator that moves roughly between -100 and +100.
Calculates this oscillator on:
The current chart timeframe (LTF)
A selected higher timeframe (HTF)
From that it classifies each timeframe as:
Bull: oscillator above zero
Bear: oscillator below zero
Neutral: oscillator near zero
You can then see:
LTF oscillator line
HTF oscillator line
A small table showing LTF state, HTF state, and whether they are aligned
When both LTF and HTF are bullish or both are bearish, the background can highlight that period, and optional alerts fire.
How to use it
Trade in the direction of the higher timeframe when both lines agree.
Avoid taking counter trend trades when LTF and HTF are in strong but opposite states.
Use the LTF line for timing and the HTF line for directional bias.
Macro Flow Assistant — Full Clean Levels public versionpublic easy macro flow tracker.
important levels only marked.
trend bias.
MTF Trend - Gold/XAU with DXY Filter + ADRThis MTF Dashboard has had an addition to it I have added the ADR to the MTF Dashboard this works with all assets but the DXY filter must be turned off If not Trading Gold The Dashboard gives Clarity to the Direction and the Strength of the Trend
VWAP D/W/M + MA100 & EMA100 albanThis TradingView indicator displays three independent VWAPs (Volume Weighted Average Prices) along with MA100 (Simple Moving Average) and EMA100 (Exponential Moving Average) on the chart.
Key Features:
VWAP #1, VWAP #2, VWAP #3: Each VWAP can be configured independently with:
Source (hlc3, close, etc.)
Anchor period (Session, Week, Month, Quarter, Year, Decade, Century, Earnings, Dividends, Splits)
Offset
Option to hide on daily or higher timeframes
MA100: 100-period Simple Moving Average
EMA100: 100-period Exponential Moving Average
Purpose:
This script is ideal for traders who want to track multiple VWAP levels simultaneously while also monitoring the 100-period moving averages for trend analysis. It provides a clean setup without bands or fills, focusing solely on price averages.
Use Cases:
Identify intraday or multi-timeframe VWAP levels
Combine VWAP levels with MA100/EMA100 for support/resistance analysis
Analyze trend direction and momentum using moving averages
Fibonacci 3H Personalizada - NYIndicador desenvolvido para tracar fibos a cada 3 horas. utilizar para confluencia
Watermelon _cleanThis is updated newest chart, set buy and sell alerts same time frame as chart and for fastest response set it to one alert per bar
Live Bar = White (Body+Wick), Others = #2e2e2eThis script turns all candles gray, except for the last bar, which is the candle that hasn't closed and whose price is changing live. It makes that candle white so you can always spot the last candle on the chart more clearly. Enjoy!
LapseBacktestingTableLibrary "LapseBacktestingMetrics"
This library provides a robust set of quantitative backtesting and performance evaluation functions for Pine Script strategies. It’s designed to help traders, quants, and developers assess risk, return, and robustness through detailed statistical metrics — including Sharpe, Sortino, Omega, drawdowns, and trade efficiency.
Built to enhance any trading strategy’s evaluation framework, this library allows you to visualize performance with the quantlapseTable() function, producing an interactive on-chart performance table.
Credit to EliCobra and BikeLife76 for original concept inspiration.
curve(disp_ind)
Retrieves a selected performance curve of your strategy.
Parameters:
disp_ind (simple string): Type of curve to plot. Options include "Equity", "Open Profit", "Net Profit", "Gross Profit".
Returns: (float) Corresponding performance curve value.
cleaner(disp_ind, plot)
Filters and displays selected strategy plots for clean visualization.
Parameters:
disp_ind (simple string): Type of display.
plot (simple float): Strategy plot variable.
Returns: (float) Filtered plot value.
maxEquityDrawDown()
Calculates the maximum equity drawdown during the strategy’s lifecycle.
Returns: (float) Maximum equity drawdown percentage.
maxTradeDrawDown()
Computes the worst intra-trade drawdown among all closed trades.
Returns: (float) Maximum intra-trade drawdown percentage.
consecutive_wins()
Finds the highest number of consecutive winning trades.
Returns: (int) Maximum consecutive wins.
consecutive_losses()
Finds the highest number of consecutive losing trades.
Returns: (int) Maximum consecutive losses.
no_position()
Counts the maximum consecutive bars where no position was held.
Returns: (int) Maximum flat days count.
long_profit()
Calculates total profit generated by long positions as a percentage of initial capital.
Returns: (float) Total long profit %.
short_profit()
Calculates total profit generated by short positions as a percentage of initial capital.
Returns: (float) Total short profit %.
prev_month()
Measures the previous month’s profit or loss based on equity change.
Returns: (float) Monthly equity delta.
w_months()
Counts the number of profitable months in the backtest.
Returns: (int) Total winning months.
l_months()
Counts the number of losing months in the backtest.
Returns: (int) Total losing months.
checktf()
Returns the time-adjusted scaling factor used in Sharpe and Sortino ratio calculations based on chart timeframe.
Returns: (float) Annualization multiplier.
stat_calc()
Performs complete statistical computation including drawdowns, Sharpe, Sortino, Omega, trade stats, and profit ratios.
Returns: (array)
.
f_colors(x, nv)
Generates a color gradient for performance values, supporting dynamic table visualization.
Parameters:
x (simple string): Metric label name.
nv (simple float): Metric numerical value.
Returns: (color) Gradient color value for table background.
quantlapseTable(option, position)
Displays an interactive Performance Table summarizing all major backtesting metrics.
Includes Sharpe, Sortino, Omega, Profit Factor, drawdowns, profitability %, and trade statistics.
Parameters:
option (simple string): Table type — "Full", "Simple", or "None".
position (simple string): Table position — "Top Left", "Middle Right", "Bottom Left", etc.
Returns: (table) On-chart performance visualization table.
This library empowers advanced quantitative evaluation directly within Pine Script®, ideal for strategy developers seeking deeper performance diagnostics and intuitive on-chart metrics.






















