R&B ATR FILTERThis indicator analyzes market volatility and trend direction using a custom ATR-based formula. It displays a table showing the slope status and average values, helping traders identify potential market conditions. The output is visually clear, with color-coded signals for easy interpretation, designed for private use.
Statistics
2EZ-UA-FOM2EZ-UA-FOM (Flow of Money) — Advanced Money Flow Indicator
The 2EZ-UA-FOM indicator uniquely combines the power of Market Cipher A’s EMA Ribbon with Market Cipher B’s WaveTrend Oscillator to deliver a comprehensive view of market money flow, trend strength, and momentum shifts.
Key Features:
EMA Ribbon (Market Cipher A): A set of 8 dynamic EMAs that track trend direction through smooth, responsive moving average crosses. Provides early signals of bullish (2EZ BUY) and bearish (2EZ SELL) trend shifts.
WaveTrend Oscillator (Market Cipher B): A momentum oscillator highlighting overbought and oversold conditions, as well as momentum crossovers. Generates “2EZ UP” and “2EZ DOWN” signals to confirm strength behind price moves.
Combined Entry Signals: When EMA Ribbon and WaveTrend signals align, the indicator produces high-confidence “▲ ENTRY” (buy) and “▼ ENTRY” (sell) signals, ideal for swing and day traders seeking reliable setups.
Clear Visual Labels: All signals are clearly marked on the chart with intuitive, color-coded labels for easy interpretation at a glance.
Multi-Timeframe Adaptability: Works effectively across a range of timeframes and asset classes, from scalping setups to longer-term swing trades.
How to Use:
Use 2EZ BUY/SELL signals for early trend detection and directional bias.
Use 2EZ UP/DOWN signals to confirm momentum strength and timing.
Wait for ▲ ENTRY / ▼ ENTRY combined signals to execute lower-risk, high-probability trades.
Integrate with proper risk management and complementary analysis techniques (volume, price action, support/resistance) to maximize performance.
This indicator is ideal for traders who want a layered, confluence-based approach to analyzing money flow and improving entry timing with crystal-clear signals.
Disclaimer: Always test and adjust settings to your preferred market and timeframe. Use appropriate risk management practices.
MCAP-Turnover-FF vs Nifty50 Performance Jitendra🧩 Script Summary:
Title: MCAP-Turnover-FF vs Nifty50 Performance Jitendra
Purpose :
This indicator calculates and visualizes key financial and liquidity metrics for a stock, comparing it against the NIFTY50 index and highlighting significant conditions like high turnover, liquidity, and weekly breakouts.
This indicator measures liquidity and trading activity by calculating and plotting daily turnover—the total traded value per bar (price × volume). It also computes:
A comparison of stock performance vs NIFTY50 index is included, alongside weekly breakout detection.
All metrics are displayed in a configurable table or text summary, with color-coded highlights to quickly spot key trends like spikes in turnover, outperforming stocks, or breakouts.
How To use and Change Setting
Complete Setting Details
drive.google.com
📊 Main Features & Metrics Displayed:
Toggle in setting to Enable Disable Settings or Not Required Data
SMA length (for avg turnover)
Lookback bars (for performance)
Toggle for each metric visibility
Toggle for dark mode
Table layout (vertical or horizontal)
Market Capitalization (Mcap):
Calculated from total shares outstanding × close price.
Formatted in cr, K cr, or L cr.
Free Float:
Based on float shares outstanding × close price.
Turnover Metrics:
Turnover = volume * close (converted to crore).
20-bar SMA of turnover.
Percentage change from previous bar.
High Turnover Quarter (HTQ):
Checks if current turnover is highest in past 52 bars.
TOMCAP (%):
Turnover as % of Market Cap.
Turnover-to-FreeFloat Ratio (%):
Shows how much turnover compares to the available float.
1-Min Liquidity (Optional):
Fetches 1-min resolution liquidity.
Shows average over 20 bars.
Performance vs NIFTY50:
Calculates stock performance vs NIFTY over lookbackBars (default 5).
Highlights Outperform or Underperform.
Weekly Breakout Detection:
If close is above previous week’s high → "Breakout ↑"
Below low → "Breakdown ↓"
Else → "In Range"
🧠 Data Fetching / Input Logic:
TSO(Total Shares Outstanding)
`request.financial(..., "TOTAL_SHARES_OUTSTANDING")` | Used for Market Cap and Free Float Pct
FSO(Float Shares Outstanding)
`request.financial(..., "FLOAT_SHARES_OUTSTANDING")` | Used for Free Float calculation
NIFTY Close
`request.security("NSE:NIFTY", timeframe.period, close)` | To compute stock vs index performance
Previous Week High/Low
`request.security(syminfo.tickerid, "W", high /low )` | For weekly breakout logic
1-Min Liquidity
`request.security(syminfo.tickerid, "1", volume * close)` | For short-term liquidity insights
Thanks.
Please let me know in comment if You Required any Additional Information
[Teyo69] T1 ATR Standard Deviation Breakout Bands🧭 OVERVIEW
T1 ATR Standard Deviation Breakout Bands is a breakout tool designed to detect volatility-driven price expansion beyond statistically significant zones. It calculates real-time ATR-based standard deviation bands, dynamically tracking breakout conditions with adjustable smoothing. With flexible moving average types and the Kijun-sen as the default baseline, this indicator is built for traders who want to avoid fakeouts and only engage when volatility confirms conviction.
✨ FEATURES
Utilizes ATR standard deviation for real-time volatility band calculations
Supports multiple moving average types (EMA, SMA, WMA, etc.) including Kijun-sen by default
Adjustable ATR multiplier to fine-tune breakout sensitivity
Fully configurable length inputs and MA source types
Identifies long opportunities when price closes above the upper band
Identifies short opportunities when price closes below the lower band
Ideal for trend continuation, momentum breakouts, and volatility-based filtering
🎯 HOW TO USE
Apply the indicator on your preferred timeframe (works best on trending conditions).
Set your baseline MA to match your system (default: Kijun-sen).
Adjust the ATR period and multiplier to balance sensitivity vs. noise.
Go long when the close breaks above the upper standard deviation band.
Go short when the close breaks below the lower standard deviation band.
Use Markers signals to highlight breakout moments.
Can also be used to identify if price is ranging when it is in the gray area of the indicator
⚙️ CONFIGURATION
Length: Period for the moving average and ATR
MA Type: Choose from EMA, SMA, WMA, or Kijun-sen
ATR Multiplier: Controls how wide the breakout bands are
Source: Price type used for calculations (default: close)
⚠️ LIMITATIONS
Standard deviation assumes price is statistically normal — not always true during news spikes
Band expansion does not guarantee follow-through — use in conjunction with volume or trend filters
💡 ADVANCED TIPS
Combine with a trend filter (e.g., 200 EMA) to trade only in the direction of the dominant trend
Use wider ATR multipliers on lower timeframes to reduce noise
Pair with oscillators (e.g., RSI, MACD) for breakout + momentum confluence setups
For scalping, reduce the length but widen the multiplier slightly
📓 NOTES
The standard deviation of ATR is used to capture how volatile volatility itself is. This reveals when the market is entering statistically significant price expansion.
Why this matters: Standard deviation is a core statistical tool for understanding distribution outliers. When price exceeds the upper band, it is outside normal volatility expectations — signaling potential breakout strength.
This indicator applies breakout theory to volatility, not just price action, offering a unique edge over classic Bollinger or Keltner bands.
PC–BC Trap Detector (Strict A+ Setup)TP/SL zones to be drawn as boxes
Multi-timeframe PC filtering
PC volume divergence check
PC–BC backtest system
SigmaNine™ | Probabilistic Targets [Trendly]💎 SigmaNine™ — Probabilistic Price Targets Powered by Square of Nine
Unlock a new dimension of price forecasting with SigmaNine™, a precision-engineered indicator that blends vibrational geometry with real-time probability analytics.
🔭 Core Features:
Square of Nine Projection Bands — Derived from Gann-inspired math to create dynamic target levels that react to price structure
Live Probability Tracking — Know the historical probability of reaching each band — updated in real time per trade
Entry Signal Builder — Customize buy and sell conditions with powerful logic and even plug in external indicator signals
Smart Target Labels — Visual labels on each breach candle show the next price target and its associated probability
Breakout Detection — Automatically flags rare events where price breaches all 10 targets in one move
Visual Enhancements — Glowing trail visuals, dynamic color coding, and watermark branding for a clean, professional chart
🎯 Use Cases:
Identify high-probability trend continuations
Quantify trade targets based on historical outcomes
Confirm signals from your favorite strategies with next-level context
🔌 Works With:
Any asset (stocks, crypto, futures, forex)
Any timeframe
Plug-and-play with external indicators or strategy logic
🧠 SigmaNine™ isn’t just an indicator — it’s a visual forecasting engine built for traders who demand both logic and edge.
2EZ-UA-MI🔹 2EZ-UA-MI – Master Indicator
One tool to master all trades.
2EZ-UA-MI is the flagship of the UltimateAlgos suite. This multi-dimensional, all-in-one system is engineered for swing trading, trend positioning, and high-timeframe confluence-based entries. Whether you're trading crypto breakouts or stock rotations, this tool gives you a full map of the market—layered, logical, and reliable.
Core Features:
🧠 Smart Confluence Engine: Merges Kalman, Gaussian, MACD flips, ZLEMA, and HA SuperTrend
🧠 Dual Modes:
Beginner Mode: Clean TP/SL entries with clear signals
Advanced Mode: Wave logic, trend overlays, and confluence stack visuals
🧠 ATR-Based Risk Zones: Dynamic TP/SL levels adjust to market conditions
🧠 Wave Detection System: Understand market structure through cyclical motion
🧠 Multi-Timeframe Support: Designed for 15m up to 1D charts
🧠 Real-Time Labels: Every entry has purpose—no more second-guessing
🧠 Custom Alerts: Stay ahead even when you’re off the chart
When to Use:
For high-confidence swing entries based on trend structure
During key breakouts, reversals, and macro directional shifts
To align lower timeframe trades with larger timeframe bias
Why It Wins:
2EZ-UA-MI replaces cluttered charts and conflicting signals with clean, calculated logic. It’s the trader’s GPS—mapping high-probability zones, providing context, and giving you a full battlefield view of price action.
Session Volatility Dashboard█ Session Volatility Dashboard: HOW IT WORKS
This tool is built on transparent, statistically-grounded principles to ensure reliability and build user trust.
Session Logic: The script accurately identifies session periods based on user-defined start and end times in conjunction with the selected UTC offset. This ensures the session boxes and data are correctly aligned regardless of your local timezone or daylight saving changes.
Volatility Calculation: The core of the volatility engine is a comparison of current and historical price action. The script calculates a rolling Average True Range (ATR) over a user-defined lookback period (e.g., the last 20 sessions). It then compares the current session's ATR to this historical baseline to generate a simple percentage. For example, a reading of "135%" indicates the current session is 35% more volatile than the recent average, while "80%" indicates a contraction in volatility.
Dashboard Population : The script leverages TradingView's table object to construct the dashboard. This powerful feature allows the data to be displayed in a fixed position on the screen (e.g., top-right corner). Unlike plotted text, this table does not scroll with the chart's price history, ensuring that the most critical, up-to-date information is always available at a glance.
█ ACTIONABLE INTELLIGENCE: TRADING STRATEGIES & USE CASES
Translate data into action with these practical trading concepts.
Strategy 1: The Breakout Trade: Identify a session with low, coiling volatility (e.g., a Volatility reading below 75%)—often the Asian session. Mark the session high and low plotted by the indicator. These levels become prime targets for a potential breakout trade during the high-volume, high-volatility open of the subsequent London session.
Strategy 2 : The Mean Reversion (Fade) Trade: In a session with extremely high volatility (e.g., >150% of average), watch for price to rapidly extend to a new session high or low and then print a clear reversal candlestick pattern (like a pin bar or engulfing candle). This can signal momentum exhaustion and a high-probability opportunity to "fade" the move back toward the session midpoint.
Strategy 3 : The Trend Continuation: During a clear trending day, use the session midpoint as a dynamic area of value. Look for price to pull back to the midpoint during the London or New York session. If the session's Bias in the dashboard remains aligned with the higher-timeframe trend, this can present a quality entry to rejoin the established momentum.
█ COMPLETE CUSTOMIZATION: SETTINGS
Session Times: Independently set the start and end times for Asia, London, and New York sessions.
Timezone: Select your preferred UTC offset to align all sessions correctly.
Volatility Lookback: Define the number of past sessions to use for calculating the average volatility baseline (default is 20).
Dashboard Settings: Choose the on-screen position of the table, text size, and colors.
Visual Elements: Toggle on/off session background colors, high/low lines, and midpoint lines. Customize all colors.
Alerts: Enable/disable and customize alerts for session high/low breaks and volatility threshold crossings.
RDS Support Profit Target v0.6.32Rip Dip Signals (RDS) Support Profit Target Indicator Overview (v0.6.32)
Overview: This Pine Script indicator identifies scalping opportunities based on support/resistance levels. Designed for automated trading via TradingView alerts connected to platforms like 3Commas (API integration for millisecond execution). Monitors up to 400 assets (e.g., Binance USDT crypto pairs), but works across all markets. Focuses on quality trades over quantity—tighten top-level parameters for fewer, higher-confidence signals. Ideal timeframe: 3-minute charts for quick turnarounds (max 4-5 hour holds). Targets 0.9-1.2% profit per trade, with 1.2-3% stop losses recommnded. You can play around with the settings and see what the results are instantly on the stats table. No need for back testing.
Entry (Buy) Conditions: Triggers on a green bar after a qualifying resistance line (min 40 bars length, configurable via "Min Res Line Length"; max lookback 200 bars) followed by a support line. Requires min 3 support lines (configurable) starting since resistance began (excludes buy support). Buy at close, but aims for improvement: Future refinements to enter at true support low, not mid-dip (add price action like break above lower highs, ATR for volume confirmation, fair value gaps).
Exit (Sell) Conditions: Primarily take-profit at +0.9% (configurable). Optional: Stop-loss at -1.8% (toggleable); Support exit if price hits prior support (with 0% buffer).
Top-Level Filters: Ensures quality before trading.
Volume: Min 1M USDT 24h to avoid low liquidity.
Success Rate: Min 70% total, 90% recent (over X days back).
Duration: Max avg 5 hours for scalping.
Profit: Min avg 0.7%. Purpose: Filters volatile/poor performers; prevents overtrading.
Tables:
Stats Table: Displays total/recent buys/sells, SL exits, success rates (color-coded vs thresholds), avg duration/profit. Role: Monitors performance; qualifies symbols.
Volume Table: Shows 24h USDT volume (color-coded). Role: Quick liquidity check.
Refinements: Current issue: Optimize SL to reduce losses and optimize entries better rather than on their way to the dips. Possible suggestions: Add entry validations (e.g., candle size, indicators).
Alerts ready: Universal alerts enabled since Jan 2025 (for full watchlists vs single assets) for multi-asset efficiency. Not crypto-exclusive; can be tested on stocks/forex.
Tooltips:
There are tooltips on each setting for user clarity. Just hover over the info symbol for each setting.
I'm open to any recommendations of how to enhance the entry/exit conditions. Please comment below with feedback which is gratefully received.
مقارنة السعر مع تاريخ محدد + Table محمد الشمري✅ الهدف الأساسي من المؤشر:
عرض نسبة التغير في السعر بين:
السعر الحالي
وسعر سهم معين في تاريخ تحدده بنفسك داخل إعدادات المؤشر
ويتم عرض هذه النسبة في شكل مربع ثابت (Table) في أعلى يمين الشارت، بلون يعبر عن اتجاه التغير.
✅ Main Purpose of the Indicator:
The indicator titled:
"Price Change Compared to Specific Date + Table – Mohammad Al-Shammari"
Is designed to:
Display the percentage change in price between:
The current price.
And the price on a specific date you choose in the indicator settings.
This percentage is shown as a fixed table (box) in the top-right corner of the chart with a color that reflects the price movement direction.
Max Drawdown (Asset-Based Lookback)Max Drawdown (Long-Term Trading)
🟦 Majors BTC, ETH, BNB, LTC 180 – 365
Captures full correction cycles and recovery patterns (6–12 months).
🟩 Altcoins SOL, ADA, DOT, LINK, AVAX 90 – 180
Alts move faster than majors; 3–6 months catches most large swings.
🟥 Meme coins DOGE, SHIB, PEPE, FLOKI 60 – 120
Volatile with quick trend reversals; 2–4 months captures parabolic runs + drawdowns.
📅 Chart Timeframe:
Use Daily (1D) timeframe for all these.
For extra macro insight, try Weekly (1W) with 52 bars (≈ 1 year).
Compare multiple assets using the same period to assess relative risk.
If you're building a long-term portfolio, combine this with:
200-day SMA or EMA for trend context.
Sharpe Ratio or Sortino Ratio if you're looking for risk-adjusted return metrics.
PCR tableOverview
This indicator displays a multi-period table of forward-looking price projections. It combines normalized directional momentum (Positive Change Ratio, PCR) with volatility (ATR) and presents a forecast for upcoming time intervals, adjusted for your local UTC offset.
Concepts & Calculations
Positive Change Ratio (PCR):
((total positive change)/(total change)-0.5)*2, producing a value between –100 and +100.
Synthetic ATR: Calculates average true range over the same lookbacks to capture volatility.
PCR × ATR: Forms a volatility-weighted directional forecast, indicating expected move magnitude.
Future Price Projection: Adds PCR × ATR value to current close to estimate future price at each lookahead interval.
Table Layout
There are 12 forecast horizons—1× to 12× the chart timeframe (e.g., minutes, hours, days). Each row displays:
1. Future Time: Timestamp of each projection (adjustable via UTC offset)
2. PCR: Directional bias per period (–1 to +1)
3. PCR × ATR: E xpected move magnitude
4. Future Price: Close + (PCR × ATR)
High and low PCR×ATR rows are highlighted green for minimum value in the price forecast (buy signal) or red for maximum value in the price forecast (sell signal).
How to Use
1. Set UTC offset to your time zone for accurate future timestamps.
2. View PCR to assess bullish (positive) or bearish (negative) momentum.
3. Use PCR × ATR to estimate move strength and direction.
4. Reference Future Price for potential levels over upcoming intervals, and for buy and sell signals.
Limitations & Disclaimers
* This model uses linear extrapolation based on recent price behavior. It does not guarantee future prices.
* It uses only current bar data and no lookahead logic—compliant with Pine Script rules.
* Designed for analytical insight, not as an automated signal or trade executor.
* Best used on standard bar/candle charts (avoid non-standard types like Heikin‑Ashi or Renko).
Adaptive Risk Levels with ATR🛡️ Risk Levels with ATR — Pine Script Description (for TradingView)
Overview:
This script helps traders visualize dynamic risk levels based on the Average True Range (ATR). It calculates stop-loss and take-profit zones relative to current price action, adapting to market volatility in real time.
⸻
🔧 Key Features:
• ✅ Dynamic Risk Bands: Automatically plots upper and lower risk levels using the ATR.
• 📈 Volatility-Aware Zones: Adapts to changing market conditions — wider in high volatility, tighter in calm markets.
• 🎯 Customizable Multiplier: Control how aggressive or conservative the risk zones are.
• 🕵️♂️ Ideal for Swing & Day Trading: Helps define entries, exits, and stop placements.
⸻
📐 How It Works:
• The script calculates the ATR (Average True Range) over a user-defined period.
• Then it draws:
• Upper Risk Level = Close + (ATR × Multiplier)
• Lower Risk Level = Close - (ATR × Multiplier)
• These bands represent risk boundaries — useful for:
• Stop-loss and take-profit calibration
• Volatility-based position sizing
• Breakout or mean-reversion signals
⸻
⚙️ Settings:
• ATR Period – Length for ATR calculation (default: 14)
• ATR Multiplier – Adjust how far the risk bands are (e.g., 1.5x, 2x)
⸻
Example Use Cases:
• 📉 Stop Loss: Set your stop just below the lower band in long trades.
• 📊 Take Profit: Use upper band for risk-reward calculations.
• 🚨 Breakout Entry: Confirm breakouts when price exceeds upper/lower band.
Daily Gain/Loss Statistics by Day of WeekDaily Gain/Loss Statistics by Day of Week
Overview
This Pine Script indicator analyzes historical price data to provide comprehensive day-of-week performance statistics, helping traders identify patterns and optimize their trading strategies based on which days historically perform better or worse.
Key Features
📊 Day-of-Week Analysis
7-day breakdown showing Monday through Sunday statistics
Average Gain % - Average percentage gains on winning days for each day of the week
Average Loss % - Average percentage losses on losing days (displayed with minus sign)
Median High % - Typical percentage move from open to daily high
Median Low % - Typical percentage move from open to daily low
🎯 Visual Performance Indicators
🚀 Rocket symbol - Marks the best performing day (highest average gains)
🔻 Red triangle down - Marks the worst performing day (lowest average gains)
Current day highlighting - Today's row highlighted in yellow (#ffdd444b)
⚡ Real-Time Session Tracking
Current Session row - Shows today's performance percentage in real-time
Color-coded gains/losses - Green for positive, red for negative
🎨 Professional Themes
⚙️ Customization Options
Date range selection - Choose specific time periods for analysis
Table positioning - 9 different screen positions
Table sizing - 6 size options from tiny to huge
Timeframe protection - Works only on 1D timeframe with user-friendly warnings
How It Works
Data Collection - Analyzes daily OHLC data within your selected date range
Day Classification - Categorizes each trading day by day of the week
Statistical Calculation - Computes averages and medians for each day type
Performance Ranking - Identifies best and worst performing days
Real-Time Display - Shows current session performance vs historical patterns
Trading Applications
Entry/Exit Timing - Identify optimal days for opening/closing positions
Risk Management - Avoid trading on historically poor-performing days
Strategy Optimization - Align trading strategies with day-of-week patterns
Market Timing - Understand weekly market cycles and seasonality
This indicator transforms raw price data into actionable intelligence, helping traders make more informed decisions based on proven historical day-of-week performance patterns.
8 AM & 9 AM NY Candle HighlighterThis indicator helps me to know when the 9am NY candle has closed above or below the previous candle.
SOL Smart Alert SystemITECS built this to work alongside my AI agent and scripts to provide a robust notification/alert system that can be configured to best work with the current market conditions.
Orthogonal Projections to Latent Structures (O-PLS)Version 0.1
Orthogonal Projections to Latent Structures (O-PLS) Indicator for TradingView
This indicator, named "Orthogonal Projections to Latent Structures (O-PLS)", is designed to help traders understand the relevance or predictive power of various market variables on the future close price of the asset it's applied to. Unlike standard correlation coefficients that show a simple linear relationship, O-PLS aims to separate variables into "predictive" (relevant to Y) and "orthogonal" (irrelevant noise) components. This Pine Script indicator provides a simplified proxy of the relevance score derived from O-PLS principles.
Purpose of the Indicator
The primary purpose of this indicator is to identify which technical factors (such as price, volume, and other indicators) have the strongest relationship with the future price movement of the current trading instrument. By providing a "relevance score" for each input variable, it helps traders focus on the most influential data points, potentially leading to more informed trading decisions.
Inputs
The indicator offers the following user-definable inputs:
* **Lookback Period:** This integer input (default: 100, min: 10, max: 500) determines the number of past bars used to calculate the relevance scores for each variable. A longer lookback period considers more historical data, which can lead to smoother, less reactive scores but might miss recent shifts in variable importance.
* **External Asset Symbol:** This symbol input (default: `BINANCE:BTCUSDT`) allows you to specify an external asset (e.g., `BINANCE:ETHUSDT`, `NASDAQ:TSLA`) whose close price will be included in the analysis as an additional variable. This is useful for cross-market analysis to see how other assets influence the current chart.
* **Plot Visibility Checkboxes (e.g., "Plot: Open Price Relevance", "Plot: Volume Relevance", etc.):** These boolean checkboxes allow you to toggle the visibility of individual relevance score plots on the chart, helping to declutter the display and focus on specific variables.
Outputs
The indicator provides two main types of output:
Relevance Score Plots: These are lines plotted in a separate pane below the main price chart. Each line corresponds to a specific market variable (Open Price, Close Price, High Price, Low Price, Volume, various RSIs, SMAs, MFI, and the External Asset Close). The value of each line represents the calculated "relevance score" for that variable, typically scaled between 0 and 10. A higher score indicates a stronger predictive relationship with the future close price.
Sorted Relevance Table : A table displayed in the top-right corner of the chart provides a clear, sorted list of all analyzed variables and their corresponding relevance scores. The table is sorted in descending order of relevance, making it easy to identify the most influential factors at a glance. Each variable name in the table is colored according to its plot color, and the external asset's name is dynamically displayed without the "BINANCE:" prefix.
How to Use the Indicator
1. **Add to Chart:** Apply the "Orthogonal Projections to Latent Structures (O-PLS)" indicator to your desired trading chart (e.g., ETH/USDT).
2. **Adjust Inputs:**
* **Lookback Period:** Experiment with different lookback periods to see how the relevance scores change. A shorter period might highlight recent correlations, while a longer one might show more fundamental relationships.
* **External Asset Symbol:** If you trade BTC/USDT, you might add ETH/USDT or SPX as an external asset to see its influence.
3. **Analyze Relevance Scores:**
* **Plots:** Observe the individual relevance score plots over time. Are certain variables consistently high? Do scores change before significant price moves?
* **Table:** Refer to the sorted table on the latest confirmed bar to quickly identify the top-ranked variables.
4. **Incorporate into Strategy:** Use the insights from the relevance scores to:
* Prioritize certain indicators or price actions in your trading strategy. For example, if "Volume" has a high relevance score, it suggests volume confirmation is critical for future price moves.
* Understand the influence of inter-market relationships (via the External Asset Close).
How the Indicator Works
The indicator works by performing the following steps on each bar:
1. **Data Fetching:** It gathers historical data for various price components (open, high, low, close), volume, and calculated technical indicators (SMA, RSI, MFI) for the specified `lookback` period. It also fetches the close price of an `External Asset Symbol` .
2. **Standardization (Z-scoring):** All collected raw data series are standardized by converting them into Z-scores. This involves subtracting the mean of each series and dividing by its standard deviation . Standardization is crucial because it brings all variables to a common scale, preventing variables with larger absolute values from disproportionately influencing the correlation calculations.
3. **Correlation Calculation (Proxy for O-PLS Relevance):** The indicator then calculates a simplified form of correlation between each standardized input variable and the standardized future close price (Y variable) . This correlation is a proxy for the relevance that O-PLS would identify. A high absolute correlation indicates a strong linear relationship.
4. **Relevance Scaling:** The calculated correlation values are then scaled to a range of 0 to 10 to provide an easily interpretable "relevance score" .
5. **Output Display:** The relevance scores are presented both as time-series plots (allowing observation of changes over time) and in a real-time sorted table (for quick identification of top factors on the current bar) .
How it Differs from Full O-PLS
This indicator provides a *simplified proxy* of O-PLS principles rather than a full, mathematically rigorous O-PLS model. Here's why and how it differs:
* **Dimensionality Reduction:** A full O-PLS model would involve complex matrix factorization techniques to decompose the independent variables (X) into components that are predictive of Y and components that are orthogonal (unrelated) to Y but still describe X's variance. Pine Script's array capabilities and computational limits make direct implementation of these matrix operations challenging.
* **Orthogonal Components:** A true O-PLS model explicitly identifies and removes orthogonal components (noise) from the X data that are unrelated to Y. This indicator, in its simplified form, primarily focuses on the direct correlation (relevance) between each X variable and Y after standardization, without explicitly modeling and separating these orthogonal variations.
* **Predictive Model:** A full O-PLS model is ultimately a predictive model that can be used for regression (predicting Y). This indicator, however, focuses solely on **identifying the relevance/correlation of inputs to Y**, rather than building a predictive model for Y itself. It's more of an analytical tool for feature importance than a direct prediction engine.
* **Computational Intensity:** Full O-PLS involves Singular Value Decomposition (SVD) or Partial Least Squares (PLS) algorithms, which are computationally intensive. The indicator uses simpler statistical measures (mean, standard deviation, and direct correlation calculation over a lookback window) that are feasible within Pine Script's execution limits.
In essence, this Pine Script indicator serves as a practical tool for gaining insights into variable relevance, inspired by the spirit of O-PLS, but adapted for the constraints and common use cases of a TradingView environment.
Polaris Trend All-in-One📘 Polaris Trend Indicator: Trading Rules & Strategy
Guide
The Polaris Trend Indicator is designed to simplify trading decisions by identifying key entry
and exit signals without the need for excessive technical analysis. This system combines the
Polaris Trend with the Polaris Golden Wave and Market Bias tools to give you confidence
across multiple timeframes.
This guide outlines clear trading rules for two use cases:
● Swing Trading
● Long-Term Investing and Holding
⚡ Swing Trading Strategy
Swing trading can be challenging when the market direction is unclear. The Polaris Trend helps
traders stay on the right side of momentum with straightforward visual signals. This approach is
best used on the Daily or Weekly chart.
✅ Entry Criteria (Bullish Trades)
● A solid green column appears above the zero line.
● A green upward arrow confirms bullish momentum.
● Enter your trade immediately when the green column first appears.
● Hold the trade until a red column appears, signaling a shift in momentum.
🚫 Exit Criteria (Bullish Trades)
● The first appearance of a red column after a green run.
● Multiple green columns followed by a red column.
● Do not enter trades mid-trend; always enter on the first green flip.
***Recommended Swing Strategy
● When a new daily green column appears but the weekly columns are still red, stay
nimble. Enter your position when the Polaris Trend Indicator turns green and displays an
upward-pointing arrow.
● If the price pulls back to a higher low but a red daily column forms, sell 50% of your
position and move your stop loss to your original entry. Then, wait for the next daily
green column and arrow to reappear, this is your signal to reenter the 50% you exited.
● If the price continues to rise and the weekly columns also turn green, shift your focus
to the weekly chart. Ignore daily signals and hold the trade until the weekly column
turns red, which will be your cue to exit. The weekly green column is your confirmation of
a stronger uptrend and a potential longer hold.
🔻 Entry Criteria (Bearish Trades)
● A solid red column appears below the zero line.
● A red downward arrow confirms bearish momentum.
● Enter your short trade immediately when the red column first appears.
● Hold until a green column appears, indicating momentum has shifted.
🔁 Exit Criteria (Bearish Trades)
● The first green column that follows a red sequence.
● Same rule applies: enter only on the initial flip, not mid-trend.
Note: The first color flip is the most reliable entry point. Avoid entering positions
deep into a trend, wait for the clear signal from Polaris.
🧭 Long-Term Investing Strategy
This approach combines the Polaris Golden Wave, Polaris Trend, and Market Bias to help
long-term investors buy at deep value levels and scale into positions over time.
📉 Ideal Entry: Golden Zone + Polaris Trend Signal
● Use the Golden Wave to identify the monthly 0.618–0.826 retracement zone
(significant discount levels).
● When price enters the Golden Zone and the Polaris Trend shows a green column on
the Daily or Weekly, this is your optimal entry point.
● If the trend turns red inside the zone, consider trimming positions and re-entering on the
next bullish signal.
If price drops below the Golden Zone, the stock becomes even more undervalued,
wait for the next green Polaris Trend signal to enter.
💰 Secondary Entry: Market Bias Rebounds
● If you miss the Golden Zone entry or are dollar-cost averaging:
○ Use the Market Bias on a Weekly timeframe.
○ Wait for price to retrace into the Market Bias band after moving higher.
○ Look for a red Polaris Trend column, then wait for price to enter the Market
Bias band and once it enters, wait for Polaris Trend signal to flip back to green
for your entry. If the trend turns red inside the zone, consider trimming positions
and re-entering on the next bullish signal.
Think of the Market Bias like a lake and price like a skipping stone—you want to
buy when the stone comes down and touches the surface.
📊 Indicator Explanations
🔶 Golden Wave (Monthly Fibonacci Retracement Zones)
● Highlights key monthly retracement zones (0.618 to 0.826).
● Helps identify deep-value entries on longer timeframes.
● Visible across all chart timeframes for consistent macro reference.
🔴 Market Bias (Smoothed Heikin-Ashi Trend Filter)
● Measures trend direction and strength using smoothed Heikin-Ashi candles and
oscillation logic.
● Customizable smoothing, oscillator period, and timeframe inputs.
● Option to display trend signals in a separate pane with dynamic coloring.
This combined approach empowers traders to make high-quality decisions with clarity and
discipline. Whether you're entering short-term swings or building long-term positions, the
Polaris Trend system guides you with timely, data-driven signals.
[🧪] LABS-ANALYTIX: CANDLE.BEHAVIORAL.ANALYTIX LABS ANALYTIX – Indicator Description
LABS ANALYTIX is your on‑demand Market Recon Tool. It scans every candle across your chosen timeframe and breaks out key performance metrics by weekday, so you can pinpoint patterns, optimize entries, and manage risk with surgical precision.
Features:
• Weekday Performance Metrics – Calculates % of up vs. down candles for Mon→Sun
• Average Gain & Loss – Computes mean gain on winning days and mean loss on losing days
• Max Single‑Bar Run‑Up – Identifies the largest one‑bar gain per weekday
• Max Single‑Bar Drawdown – Identifies the largest one‑bar loss per weekday
• Historical Lookback Control – Set “Lookback Bars” to limit analysis to the most recent X bars or use “0” for full history
• Neon‑themed Table Overlay – Renders a compact, color‑coded table in the top‑right corner for instant tactical insight
Use Cases:
• Discover your strongest and weakest weekdays
• Quantify average move sizes to tailor your stop‑loss and take‑profit levels
• Identify outlier candles for potential trade setups or cautionary risk flags
• Drill into specific timeframes with adjustable lookback
How to Use:
1. Add the indicator to any chart (overlay=false).
2. Adjust “Lookback Bars” input to focus on recent samples or entire history.
3. Refer to the Neon Table to guide your weekly trade cadence and refine strategy.
UniversalPositionCalculatorV5🚀 Universal Position Calculator v5 (with Margin-Check) 🚀
Stop using calculators and complicated Excel sheets! 🤯 With the Universal Position Calculator v5, you have the ultimate tool right on your TradingView chart to manage your position size perfectly. Whether it's Forex, Gold, or Indices – this indicator does all the work for you!
✨ What does this indicator do? ✨
This indicator is your personal risk manager. It calculates the exact lot size for your next trade based on your capital, your desired risk, and your leverage. The best part? It immediately checks if your trade is even possible with your margin and warns you if you're about to over-leverage your account! 🚦
🌟 Key Features at a Glance 🌟
Automatic Lot Calculation: Just enter your risk in percent, and the indicator calculates the perfect lot size.
Margin Check: Instantly detects if your desired position size is limited by your margin and adjusts it. No more margin calls due to oversized positions!
For All Asset Classes: Works perfectly for Forex pairs (e.g., EURUSD) and other assets like commodities (XAUUSD) or indices (GER30). 💹
Currency Conversion: Automatically converts between your account currency and the asset's currency. It doesn't matter if you trade in EUR, USD, CHF, or JPY. 💱
Interactive Lines: Simply drag and drop the Entry and Stop Loss lines directly on the chart to plan your trade. 🎯
Clear Info Panel: All important information (lot size, required margin, risk in €/$/...) is displayed cleanly and clearly on your chart.
🛠️ How to Use: It's This Easy! 🛠️
The setup is a piece of cake and done in two simple steps.
Step 1: Configure Your Setup
Go to the indicator settings and fill out the "1. Setup" section:
Asset Type: Choose Forex for currency pairs or Other for everything else (e.g., Gold, Oil, Indices).
Account Currency: Enter the currency of your trading account (e.g., USD).
Account Capital: Enter your current account capital.
Risk in % per Trade: How much of your capital do you want to risk per trade? (e.g., 1.0 for 1%).
Leverage: Enter your account's leverage (e.g., 30 for 30:1).
Contract Size for 'Other': IMPORTANT! Only for the Other type. For Gold (XAUUSD), this is often 100; for the DAX (GER30), it's often 1 or 25. Check your broker's specifications for this!
Step 2: Plan Your Trade
Now for the fun part in the "2. Trade Control" section:
Entry Line (Blue Line): Click on the blue line and drag it to your desired entry level. You can also enter the value manually in the settings.
Stop Loss Line (Red Line): Click on the red line and drag it to your stop-loss level.
Step 3: Read the Results
As soon as you've set your Entry and Stop Loss, the Info Panel in the top-right corner will instantly show you the results:
Correct Lot Size: This is the lot size you need to enter with your broker for this trade.
⚠️ Heads up: If it says "Lot Size (Margin Limited!)" in orange, it means your desired risk was too high for your leverage. The indicator has automatically reduced the lot size to the maximum possible to avoid a margin call.
Required Margin: This is how much capital will be blocked on your account as a security deposit (margin) for this trade.
Risk in : The exact amount of money you will lose if your stop loss is triggered.
With this tool, you can make disciplined and mathematically sound trading decisions. Good luck and Happy Trading! 📈💰
order flow buy/sell and profundity OrderBook Buy/Sell Flow & Polarity Indicator
This powerful indicator provides a detailed look into the market's internal dynamics by visualizing Order Flow (Tape/Time & Sales) and Price Polarity directly on your chart, all within a clean, customizable table. Understand real-time buying and selling pressure and gain insights into who's in control of the candle.
Key Features:
Real-time Order Flow (Tape/Time & Sales): Tracks individual "ticks" (price and volume updates) within the current bar, allowing you to see the immediate impact of buy and sell orders.
Dynamic Table Display: All data is presented in an intuitive, customizable table that can be positioned anywhere on your chart.
Aggregated Buy/Sell Volume: Clearly distinguishes between volume driven by buying (price moving up on a tick) and selling (price moving down on a tick).
"Rocket" Order Detection: Highlights unusually large buy or sell orders based on configurable thresholds (in BTC Millions for major cryptos, and Thousands/Millions for others), helping you spot significant institutional or whale activity.
Candle Polarity Section: A dedicated area in the table that shows the percentage of buying vs. selling volume for the entire current candle. The central cell dynamically blends between bullish (green) and bearish (red) colors, visually representing the dominant polarity.
Customizable Aesthetics: Full control over table colors, text colors, font sizes, and individual label colors to match your chart's theme.
Lightweight & Efficient: Designed to run smoothly without significant impact on your chart's performance.
Why Use This Indicator?
Most indicators only show you the result of price action. The "OrderBook Buy/Sell Flow & Polarity" indicator goes deeper, showing you the cause behind the price movement. By understanding the immediate order flow and the underlying buy/sell pressure within each candle, you can:
Identify accumulation or distribution: Spot when smart money might be entering or exiting positions.
Confirm breakouts/breakdowns: See if there's genuine volume behind price moves.
Gauge market sentiment in real-time: Quickly assess who is more aggressive – buyers or sellers.
Improve entry and exit points: Make more informed decisions based on live market activity.
Settings & Customization:
The indicator comes with a comprehensive set of input options, allowing you to fine-tune its appearance and functionality:
Table Position: Choose from various chart locations (Top/Middle/Bottom, Left/Center/Right).
Window Size (Order Flow): Adjust how many recent order flow "ticks" are displayed.
Colors: Personalize all table, text, and label colors.
Rocket Thresholds: Define the volume levels for "rocket" order detection based on asset type.
Polarity Section Toggle: Enable or disable the real-time candle polarity display.
Note: This indicator provides insights based on available real-time tick data from TradingView. While it simulates aspects of order book and tape reading, it is important to remember that direct access to full exchange Level 2 data is not available on TradingView.
Disclaimer: This indicator is for informational purposes only and should not be considered financial advice. Trading involves risk, and past performance is not indicative of future results.