SJA WINFUT B3-10
INDICATOR FOR WINFUT B3 – 5-minute chart.
This indicator was designed to trade the Bovespa index futures contract (WINFUT) on the 5-minute chart.
It integrates technical analysis and macroeconomic context elements.
It combines several indicators in which the system calculates a score weighted by color and intensity for each indicator, generating a metric called “STRENGTH %,” which reflects the dominance of buyers (green), sellers (red), or sideways movement (orange) at the moment.
The calculation is adapted to market hours:
Between 9:00 a.m. and 9:59 a.m., it considers only the available indicators; after 10:00 a.m., it uses all data.
The panel displays real-time information, including divergences between strength and price, providing robust decision support for short-term operations on the mini index.
Buying trend.
The more green indicators (at the top of the panel) and dark blue indicators (at the bottom of the panel) and the higher the strength percentage, the greater the probability of buying.
Selling trend.
The more red indicators (at the top of the panel) and dark blue indicators (at the bottom of the panel) and the higher the strength percentage, the greater the probability of selling.
Translated with DeepL.com (free version)
Statistics
SJA WINFUT B3-BRINDICATOR FOR WINFUT B3 – 5-minute chart.
This indicator was designed to trade the Bovespa index futures contract (WINFUT) on the 5-minute chart.
It integrates technical analysis and macroeconomic context elements.
It combines several indicators in which the system calculates a score weighted by color and intensity for each indicator, generating a metric called “STRENGTH %,” which reflects the dominance of buyers (green), sellers (red), or sideways movement (orange) at the moment.
The calculation is adapted to market hours:
Between 9:00 a.m. and 9:59 a.m., it considers only the available indicators; after 10:00 a.m., it uses all data.
The panel displays real-time information, including divergences between strength and price, providing robust decision support for short-term operations on the mini index.
Buying trend.
The more green indicators (at the top of the panel) and dark blue indicators (at the bottom of the panel) and the higher the strength percentage, the greater the probability of buying.
Selling trend.
The more red indicators (at the top of the panel) and dark blue indicators (at the bottom of the panel) and the higher the strength percentage, the greater the probability of selling.
Bollinger Bands %b Trend | DextraOverview
The Bollinger Bands %b Trend | Dextra is a custom technical indicator designed to enhance trend identification using the Bollinger Bands %b concept. This indicator calculates the percentage position of the price relative to the Bollinger Bands and uses customizable thresholds to determine bullish or bearish trends. It integrates dynamic candle coloring and a clear visual representation to assist traders in making informed decisions.
Key Features
- Bollinger Bands %b Calculation: Measures the price's position between the upper and lower Bollinger Bands as a percentage, providing a normalized view of overbought or oversold conditions.
- Trend Detection: Identifies uptrends and downtrends based on user-defined thresholds, offering a straightforward trend-following approach.
- Dynamic Candle Coloring: Colors candles according to the detected trend (green for uptrend, magenta for downtrend, gray for neutral), enhancing visual trend analysis.
- Customizable Parameters: Allows adjustment of length, standard deviation multiplier, and trend thresholds to suit various market conditions and trading styles.
How It Works
1. Bollinger Bands Calculation:
- The indicator uses an Exponential Moving Average (EMA) as the basis, calculated with a user-defined `length` (default 34).
- Upper and lower bands are derived by adding and subtracting a multiple of the standard deviation (`mult`, default 2.0) from the EMA.
- The %b value is computed as `(src - lower) / (upper - lower)`, where `src` is the price source (default `close`).
2. Trend Identification:
- An uptrend is detected when %b exceeds the `upperthreshold` (default 0.75).
- A downtrend is detected when %b falls below the `lowerthreshold` (default 0.26).
- The trend state is maintained until a new threshold condition is met.
3. Visualization:
- The %b line is plotted with a color reflecting the trend (green for uptrend, magenta for downtrend, gray for neutral).
- Horizontal dashed lines mark the uptrend and downtrend thresholds for reference.
- Candles are colored to match the trend, providing an overlay visualization on the price chart.
Customization Options
- Length: Adjust the EMA and standard deviation period (default 34, min 1).
- Source: Select the price data source for calculations (default `close`).
- StdDev: Set the standard deviation multiplier for band width (default 2.0, range 0.001 to 50).
- Uptrend Threshold: Define the %b level for uptrend detection (default 0.75, step 0.01).
- Downtrend Threshold: Define the %b level for downtrend detection (default 0.26, step 0.01).
Ideal Use Cases
- Trend Following: Perfect for traders seeking to capitalize on sustained price movements with clear entry and exit signals.
- Volatility Analysis: Useful for identifying periods of high or low volatility when combined with the %b positioning.
- Complementary Tool: Works well alongside momentum indicators (e.g., RSI) or volume-based tools to confirm trend strength.
#### Disclaimer
This indicator is provided for educational and informational purposes only. It is not intended to serve as financial advice or a guaranteed method for trading success. Trading involves significant risks, including the potential loss of capital. Users are solely responsible for their trading decisions and should conduct their own analysis and apply appropriate risk management strategies.
Notes
- Ensure your chart has sufficient historical data to reflect accurate Bollinger Bands calculations.
- Test the indicator on a demo account before using it in live trading to validate its performance with your preferred assets and timeframes.
This indicator is a versatile addition to any trader's toolkit, offering a blend of trend detection and visual clarity tailored to modern trading needs.
Swing Data - SimplifiedThe swing data indicator by jfsrev but simplified. Thank you jfsrev for your work!
CPR by VictorVCentral Pivot Range
Where price is vs CPR
Above TC: bullish bias; TC/BC act as support. Hold above TC → trend day likely.
Inside CPR (BC–TC): balanced/choppy; expect mean reversion between edges until a clean break.
Below BC: bearish bias; BC/TC act as resistance.
Width of the CPR
Narrow: energy coiled → higher chance of breakout/trend day.
Wide: balanced market → range-bound behavior more likely.
Shift vs yesterday
CPR shifted up: bullish undertone.
Shifted down: bearish undertone.
Overlapping: neutral/indecisive.
Intraday tells
Acceptance: Several candles holding outside BC/TC = expansion in that direction.
Rejection: Wicks through BC/TC that close back inside = likely fade back toward the opposite edge.
Pivot (P) magnet: On non-trend days, price often gravitates back to P.
Bitcoin Halving Cycle Strategy ProBitcoin Halving Cycle Strategy Pro - Advanced Market Cycle Analysis Tool
This professional indicator analyzes Bitcoin's 4-year halving cycles using precise mathematical calculations. It identifies bull and bear market phases based on 500 days before and 560 days after each halving event, providing traders with data-driven market cycle insights.
Key Features:
• Automatic Bull/Bear Market Zone Detection with color-coded areas
• Historical Halving Analysis (2012-2028) with future projections
• Live Performance Tracking during bull phases (returns, max drawdown)
• Customizable cycle parameters (days before/after halving)
• Interactive info table showing current cycle phase and metrics
• Visual timeline markers for halving dates and cycle boundaries
Perfect for long-term Bitcoin investors, cycle analysts, and traders who want to understand market psychology and timing based on historical halving patterns. Uses proven 1060-day cycle theory backed by empirical data.
Rebound Sigma Pro - IndicatorOverview
Rebound Sigma Pro is a mean-reversion indicator that detects statistically oversold conditions in trending markets.
It helps traders identify potential short-term rebounds based on momentum exhaustion and volatility-adjusted entry zones.
Concept
The indicator combines two quantitative components:
Short-term momentum to detect short-term exhaustion
Trend filter to ensure setups align with the long-term direction
When a stock in an uptrend becomes temporarily oversold, a limit-entry signal is plotted.
The trade is then tracked until short-term conditions normalize or a time-based exit occurs.
Visual Signals
Green Triangle: Suggests placing a limit order for the next session
Green Circle: Confirms entry was filled
Red Triangle: Signals an exit for the next session’s open
Orange Background: Pending order
Green Background: Position active
Red Background: Exit phase
Yellow Line: Entry reference price
User Inputs
Limit Entry (% below previous close) – Default 1 %
Use Limit Entry – Switch between limit or market entries
Enable Time Exit – Optional holding-period constraint
Maximum Holding Days
All other internal parameters (momentum length, filters) are pre-configured.
Alerts
Limit Order Signal: New setup detected
Entry Confirmed: Order filled
Exit Signal: Exit expected next day
Usage
Designed for liquid equities and ETFs
Works best in confirmed uptrends
Backtesting encouraged to adapt parameters per symbol and timeframe
Notes
Not an automated strategy; manual order execution required
Past behavior does not imply future performance
Always apply sound position sizing and risk management
Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice or performance assurance.
Uptrick: Relative Strength Rotation SystemIntroduction
The Uptrick: Relative Strength Rotation System is an indicator engineered to implement a regime-aware tactical allocation strategy across a predefined set of user-specified assets. It visualizes a simulated equity curve produced by a closed, managed rotation engine. The system is designed to identify relative strength relationships dynamically and rotate into stronger-performing assets, while offering an optional fallback into a defensive state when market conditions are deemed unfavorable by the logic.
Overview
This indicator allocates capital by continuously evaluating the relative strength between all asset pairs within the selected group. Unlike simplistic momentum models or rank-based selectors, this system uses internally calculated scores that compare each asset across multiple dimensions, forming a comprehensive decision matrix. These scores are evaluated through a regime-aware layer that determines whether the system should remain invested or move into an idle allocation. The rotation logic is implemented through a rebalancing structure that maintains exposure to a single asset at any time, or transitions into a fallback asset such as cash or PAXG based on internal conditions. Outputs include a dynamically colored equity curve, context-sensitive labels, and optional overlays comparing buy-and-hold performance of the selected assets.
Originality
The indicator utilizes a scoring matrix based on custom asset-to-asset comparative ratios, resulting in a relational framework that evaluates assets in the context of each other rather than in isolation. Each asset is analyzed through multiple statistical dimensions, including trend strength and normalized deviation using Z-score calculations. These metrics form the foundation of an adaptive matrix used to derive consensus leadership. A key differentiator lies in the optional routing of idle allocations to PAXG—a tokenized gold asset—offering a non-cash defensive alternative that introduces both diversification and risk modulation not typically seen in rotation models. The engine also includes an override layer that filters decisions through market state awareness, adding tactical discipline during ambiguous or bearish regimes. Taken together, these features form a self-contained rotation mechanism with multiple embedded controls and fallback logic, all of which are abstracted from the user.
Inputs and Features
Exponential Length (EMA Length)
Specifies the smoothing length used by one of the internal scoring models. Lower values allow for more responsive asset comparisons, while longer values smooth out short-term volatility in score changes.
Z Score
Controls the statistical lookback length used for normalized relative comparisons. This Z-score is a cornerstone of the system’s comparative matrix, standardizing inter-asset ratio behaviors to detect statistically significant deviations from recent behavior. It allows the rotation engine to isolate and prioritize sustained leadership across assets, regardless of price volatility.
Rebalance Every N Bars
Sets how frequently the system evaluates potential changes in leadership. This controls the cadence of reallocation and can be tuned for faster or slower responsiveness.
When Bearish / Neutral, go to
Lets the user select how the system behaves during non-confirmed or bearish conditions. It can either route to a flat cash-equivalent state or into a user-defined defensive asset (such as PAXG), introducing an added layer of optional protection.
Cash Filter
Activates an override that forces the system into an idle state during unfavorable market regimes, even if a leader is otherwise present. This regime-aware mechanism adds another layer of conditional control to mitigate exposure risk.
Start Date
Defines the point in history from which the equity simulation begins. All calculations and equity values prior to this point are excluded.
Asset Inputs (Asset 1 to Asset 4)
Allow the user to specify up to four assets to be evaluated within the rotation universe. These may include crypto, forex, or other tradable symbols supported by TradingView.
PAXG Fallback Asset
Specifies the asset used as a fallback when the idle state is active and the defensive mode is set to PAXG rather than cash.
Color Settings
Users can customize the chart color palette for each asset and idle condition for enhanced clarity.
HODL Curve Toggles
Enable buy-and-hold equity curves for each input asset to be plotted for direct performance comparison with the system’s output.
Simple Mode
Reduces visual noise by simplifying the chart’s appearance and removing optional elements.
Background Color and Shadow Equity Fill
Offer additional styling options that reflect the system's current allocation, enhancing chart readability.
COLORED EQUITY CURVE - PAXG
COLORED EQUITY CURVE - CASH
SYSTEM
Current System Text Color
Allows further customization of label text for visibility across different asset themes.
Summary
The Uptrick: Relative Strength Rotation System is a rotation engine that leverages a proprietary scoring matrix to simulate tactical asset allocation. It analyzes inter-asset behavior through pairwise ratio metrics and statistically normalized scoring methods, enabling it to identify leadership dynamics within a defined universe. The inclusion of PAXG as a defensive fallback, regime-aware cash filtering, and customizable rebalancing cadence gives the system adaptability beyond traditional relative strength models. Users are provided with transparent visual feedback through an equity curve, contextual labels, buy-and-hold overlays, and real-time equity statistics. The system is not designed to disclose its internal mechanics, but it enables full visualization of its output and decisions for comparative analysis.
Disclaimer
This script is intended solely for educational and informational purposes. It does not constitute financial advice, trading signals, or an offer to buy or sell any financial instrument. Trading and investing carry risk, and past performance does not guarantee future outcomes. Users should perform their own research and consult a licensed financial advisor before making trading decisions.
AlphaRadar - Market📊 ALPHARADAR - MARKET MONITOR
⚠️ IMPORTANT
🔴 This indicator MUST be used ONLY on DAILY (1D) timeframe. It will not work correctly on other timeframes.
Overview:
Real-time market and sector performance dashboard displaying major US indices and all 11 sector ETFs in a single, organized panel. Track market rotation and sector strength at a glance.
Features:
- Market Indices (4): SPY (S&P 500), QQQ (Nasdaq), IWM (Russell 2000), DIA (Dow Jones)
- Sector ETFs (11): Complete coverage of all US market sectors
- Performance Tracking: Day, 5D, 1M, 6M, and YTD returns
- Color-Coded: 🟢 Green (positive) / 🔴 Red (negative) for instant visual analysis
What You Can Track:
✅ Market breadth (all indices moving together vs divergence)
✅ Sector rotation (which sectors are leading/lagging)
✅ Risk-on vs Risk-off sentiment
✅ Short-term momentum (Day, 5D)
✅ Medium-term trends (1M, 6M)
✅ Year-to-date performance leaders
Market Sectors Included:
- XLC (Communication)
- XLY (Consumer Discretionary)
- XLP (Consumer Staples)
- XLE (Energy)
- XLF (Financials)
- XLV (Healthcare)
- XLI (Industrials)
- XLB (Materials)
- XLRE (Real Estate)
- XLK (Technology)
- XLU (Utilities)
How to Use:
🔍 Spot Market Rotation: Identify which sectors are outperforming
📈 Confirm Trends: All green = strong market, all red = market weakness
⚡ Find Opportunities: Rotate into leading sectors, avoid lagging ones
🎯 Risk Management: Divergence between indices = potential warning signal
Best For:
- Sector rotation strategies
- Market breadth analysis
- Swing trading
- Portfolio allocation decisions
- Daily market monitoring
Notes:
- Data updates in real-time during market hours
- All calculations based on daily closing prices
- Works with any chart symbol
- Free to use
🔔 Remember: Use DAILY (1D) charts only!
CISD Risk Calculator for futures tradingCISD Risk Calculator Indicator Explanation
The CISD Risk Calculator is a specialized trading indicator that helps traders identify key market structure changes and automatically calculate optimal position sizing based on risk parameters. Here's a detailed explanation of what it does:
Core Functionality: CISD Detection
CISD stands for "Change In Structure Direction," which identifies important shifts in market structure:
Market Structure Analysis: The indicator constantly analyzes price action to detect when the market structure changes from bullish to bearish or vice versa.
Bullish CISD: Occurs when price makes a higher high, then retraces, but fails to make a lower low. This suggests a potential bullish continuation.
Bearish CISD: Occurs when price makes a lower low, then bounces, but fails to make a higher high. This suggests a potential bearish continuation.
Risk Calculation Features
The primary purpose of this modified indicator is to calculate trading risk:
Points Risk Calculation: The indicator measures the distance in points (price units) between the current price and the relevant structure level (high or low).
Automatic Contract Value Detection: It automatically detects what instrument you're trading (ES, NQ, MES, MNQ) and applies the correct point value:
NQ: $20 per point
MNQ: $2 per point
ES: $50 per point
MES: $5 per point
Position Sizing Calculation: Using your inputted dollar risk amount (e.g., $250), it calculates exactly how many contracts you should trade to maintain that risk level.
Visual Interface
The indicator has a minimalist design:
Central Display Panel: Shows key information at the top center of your chart:
CISD Type (Bullish or Bearish)
Points Risk (distance to your stop level)
Trade Risk (recommended number of contracts)
Invisible CISD Levels: The actual CISD lines and markers are completely invisible, keeping your chart clean while still performing calculations.
Simple Settings: Only shows essential settings:
Dollar Risk Amount: How much money you want to risk
Label Color and Text Color: For visual customization
Text Size: Adjusts the display size
NQ → NAS100 Converter by Dr WThis indicator allows traders to quickly and accurately convert stop levels from NQ (E-mini Nasdaq futures) to NAS100 (CFD) values, helping users who trade across different instruments to manage risk consistently.
Key Features:
Real-time Price Conversion:
Displays the current NQ futures price and the corresponding NAS100 price on your chart, updated every bar.
Stop Distance Conversion:
Converts a user-defined stop distance in NQ points into the equivalent NAS100 stop level using proportional scaling based on current market prices.
Customizable Labels:
Choose between Candle-attached labels (appearing near the bar) or Chart-fixed labels (HUD style).
Adjust label position, background color, text color, and label style (left, right, center).
Flexible Display Options:
Show/hide NQ price, NAS100 price, and converted stop independently.
Perfect for traders who want a quick visual reference without cluttering the chart.
Trading Direction Support:
Select Long or Short trades, and the stop conversion automatically adapts to the trade direction.
How It Works:
The indicator requests the latest NQ and NAS100 prices at your chart’s timeframe.
It calculates the NAS100 stop using the formula:
NAS_Stop = NAS_Price ± (Stop_NQ_Points / NQ_Price * NAS_Price)
+ is used for short trades, - for long trades.
The converted stop, along with the underlying prices, is displayed according to your label settings.
Use Cases:
Risk management for cross-instrument traders.
Quickly visualizing equivalent stops when trading NQ futures vs NAS100 CFDs.
An educational tool to understand proportional stop sizing between instruments.
TradingView Policy Compliance Notes:
The indicator does not provide trading advice or signals; it only performs calculations and visualizations.
It does not execute trades or connect to brokerage accounts.
All values displayed are informational only; users should independently verify stop levels before placing trades.
Aladin Pair Trading System v1Aladin Pair Trading System v1
What is This Indicator?
The Aladin Pair Trading System is a sophisticated tool designed to help traders identify profitable opportunities by comparing two related stocks that historically move together. Think of it as finding when one twin is running ahead or lagging behind the other - these moments often present trading opportunities as they tend to return to moving together.
Who Should Use This?
Beginners: Learn about statistical arbitrage and pair trading
Intermediate Traders: Execute mean-reversion strategies with confidence
Advanced Traders: Fine-tune parameters for optimal pair relationships
Portfolio Managers: Implement market-neutral strategies
💡 What is Pair Trading?
Imagine two ice cream shops next to each other. They usually have similar customer traffic because they're in the same area. If one day Shop A is packed while Shop B is empty, you might expect this imbalance to correct itself soon.
Pair trading works the same way:
You find two stocks that normally move together (like TCS and Infosys)
When one stock moves too far from the other, you trade expecting them to realign
You buy the lagging stock and sell the leading stock
When they come back together, you profit from both sides
Key Features
1. Z-Score Analysis
What it is: A statistical measure showing how far the price relationship has deviated from normal
What it means:
Z-Score near 0 = Normal relationship
Z-Score at +2 = Stock A is expensive relative to Stock B (Sell A, Buy B)
Z-Score at -2 = Stock A is cheap relative to Stock B (Buy A, Sell B)
2. Multiple Timeframe Analysis
Long-term Z-Score (300 bars): Shows the big picture trend
Short-term Z-Score (100 bars): Shows recent movements
Signal Z-Score (20 bars): Generates quick trading signals
3. Statistical Validation
The indicator checks if the pair is suitable for trading:
Correlation (must be > 0.7): Confirms the stocks move together
1.0 = Perfect positive correlation
0.7 = Strong correlation
Below 0.7 = Warning: pair may not be reliable
ADF P-Value (should be < 0.05): Tests if the relationship is stable
Low value = Good for pair trading
High value = Relationship may be random
Cointegration: Confirms long-term equilibrium relationship
YES = Pair tends to revert to mean
NO = Pair may drift apart permanently
Visual Elements Explained
Chart Zones (Color-Coded Areas)
Yellow Zone (-1.5 to +1.5)
Normal Zone: Relationship is stable
Action: Wait for better opportunities
Blue Zone (±1.5 to ±2.0)
Entry Zone: Deviation is significant
Action: Prepare for potential trades
Green/Red Zone (±2.0 to ±3.0)
Opportunity Zone: Strong deviation
Action: High-probability trade setups
Beyond ±3.0
Risk Limit: Extreme deviation
Action: Either maximum opportunity or structural break
Signal Arrows
Green Arrow Up (Buy A + Sell B):
Stock A is undervalued relative to B
Buy Stock A, Short Stock B
Red Arrow Down (Sell A + Buy B):
Stock A is overvalued relative to B
Sell Stock A, Buy Stock B
Settings Guide
Symbol Inputs
Pair Symbol (Symbol B): Choose the second stock to compare
Default: NSE:INFY (Infosys)
Example pairs: TCS/INFY, HDFCBANK/ICICIBANK, RELIANCE/ONGC
Z-Score Parameters
Long Z-Score Period (300): Historical context
Short Z-Score Period (100): Recent trend
Signal Period (20): Trading signals
Z-Score Threshold (2.0): Entry trigger level
Higher = Fewer but stronger signals
Lower = More frequent signals
Statistical Parameters
Correlation Period (240): How many bars to check correlation
Hurst Exponent Period (50): Measures mean-reversion tendency
Probability Lookback (100): Historical probability calculations
Trading Parameters
Entry Threshold (0.0): Minimum Z-score for entry
Risk Threshold (1.5): Warning level
Risk Limit (3.0): Maximum deviation to trade
How to Use (Step-by-Step)
Step 1: Choose Your Pair
Add the indicator to your chart (this becomes Stock A)
In settings, select Stock B (the comparison stock)
Choose stocks from the same sector for best results
Step 2: Verify Pair Quality
Check the Statistics Table (top-right corner):
✅ Correlation > 0.70 (Green = Good)
✅ ADF P-value < 0.05 (Green = Good)
✅ Cointegrated = YES (Green = Good)
If all three are green, the pair is suitable for trading!
Step 3: Wait for Signals
BUY SIGNAL (Green Arrow Up)
Z-Score crosses above -2.0
Action: Buy Stock A, Sell Stock B
Exit: When Z-Score returns to 0
SELL SIGNAL (Red Arrow Down)
Z-Score crosses below +2.0
Action: Sell Stock A, Buy Stock B
Exit: When Z-Score returns to 0
Step 4: Risk Management
Yellow Zone: Monitor only
Blue Zone: Prepare for entry
Green/Red Zone: Active trading zone
Beyond ±3.0: Maximum risk - use caution
⚠️ Important Warnings
Not All Pairs Work: Always check the statistics table first
Market Conditions Matter: Correlation can break during market stress
Use Stop Losses: Set stops at Z-Score ±3.5 or beyond
Position Sizing: Trade both legs with appropriate hedge ratios
Transaction Costs: Factor in brokerage and slippage for both stocks
Example Trade
Scenario: TCS vs INFOSYS
Correlation: 0.85 ✅
Z-Score: -2.3 (TCS is cheap vs INFY)
Action to be taken:
Buy 1lot of TCS Future
Sell 1lot of INFOSYS Future
Expected Outcome:
As Z-Score moves toward 0, TCS outperforms INFOSYS
Close both positions when Z-Score crosses 0
Profit from the convergence
Best Practices
Test Before Trading: Use paper trading first
Sector Focus: Choose pairs from the same industry
Monitor Statistics: Check correlation daily
Avoid News Events: Don't trade pairs during earnings/major news
Size Appropriately: Start small, scale with experience
Be Patient: Wait for high-quality setups (±2.0 or beyond)
What Makes This Indicator Unique?
Multi-timeframe Z-Score analysis: Three different perspectives
Statistical validation: Built-in correlation and cointegration tests
Visual risk zones: Easy-to-understand color-coded areas
Real-time statistics: Live pair quality monitoring
Beginner-friendly: Clear signals with educational zones
Technical Background
The indicator uses:
Engle-Granger Cointegration Test: Validates pair relationship
ADF (Augmented Dickey-Fuller) Test: Tests stationarity
Pearson Correlation: Measures linear relationship
Z-Score Normalization: Standardizes deviations
Log Returns: Handles price differences properly
Support & Community
For questions, suggestions, or to share your pair trading experiences:
Comment below the indicator
Share your successful pair combinations
Report any issues for quick fixes
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Pair trading involves risk, including the risk of loss.
Always:
Do your own research
Understand the risks
Trade with money you can afford to lose
Consider consulting a financial advisor
📌 Quick Reference Card
Z-ScoreInterpretationAction-3.0 to -2.0A very cheap vs BStrong Buy A, Sell B-2.0 to -1.5A cheap vs BBuy A, Sell B-1.5 to +1.5Normal rangeHold/Wait+1.5 to +2.0A expensive vs BSell A, Buy B+2.0 to +3.0A very expensive vs BStrong Sell A, Buy B
Good Pair Statistics:
Correlation: > 0.70
ADF P-value: < 0.05
Cointegration: YES
Version: 1.0
Last Updated: 10th October 2025
Compatible: TradingView Pine Script v6
Happy Trading!
FOREXSOM Session Boxes (Local Time) — Asian, London & New YorkFOREXSOM Session Boxes (Local Time) highlights the three major Forex sessions — Asian, London, and New York — using your chart’s local timezone automatically.
This indicator helps traders visualize market structure, liquidity zones, and timing across global trading hours with accuracy and clarity.
Key Features
Automatically adjusts to your chart’s local timezone
Highlights Asian, London, and New York sessions with clean color zones
Works on all timeframes and asset classes
Ideal for Smart Money Concepts (SMC), ICT, and price action strategies
Helps identify range breakouts, session highs/lows, and liquidity grabs
How It Works
Each session box updates in real time to show the current range as the market develops.
The boxes reset at the end of each session, making it easy to compare volatility and liquidity shifts between regions.
Sessions (default times):
Asian: 17:00 – 03:00
London: 02:00 – 11:00
New York: 07:00 – 16:00
How to Use
Add the indicator to your chart.
Ensure your chart timezone matches your local time in chart settings.
Watch session ranges form and look for liquidity sweeps or breakouts between overlaps (London/New York).
Created by FOREXSOM
Empowering traders worldwide with precision-built tools for Smart Money and institutional trading education.
IDR +/-1σ Lines (London & NY Sessions)lines 1 standard deviation from the IDR range of london and NY
Piotroski F-Score المنهج العلمي: ما هو نموذج بيوتروسكي F-Score؟
نموذج F-Score هو نظام تصنيف رقمي تم تطويره في عام 2000 من قبل جوزيف بيوتروسكي (Joseph Piotroski)، أستاذ المحاسبة في جامعة ستانفورد. الهدف من هذا النموذج هو قياس القوة المالية للشركات ذات القيمة (Value Stocks)، وتحديداً تلك التي لديها نسبة "القيمة الدفترية إلى القيمة السوقية" (Book-to-Market) مرتفعة.
الفكرة الأساسية هي فرز الشركات "الرخيصة" ظاهرياً، والتمييز بين تلك التي تتحسن أساسياتها المالية (الرابحون) وتلك التي تتدهور (الخاسرون).
يعتمد النموذج على تسعة معايير بسيطة، مقسمة إلى ثلاث فئات رئيسية. تحصل الشركة على نقطة واحدة عن كل معيار تحققه، ولا تحصل على شيء إذا لم تحققه. النتيجة النهائية هي مجموع هذه النقاط، وتتراوح من 0 (الأسوأ) إلى 9 (الأفضل).
المعايير التسعة (كيف يتم حساب النقاط):
أ) الربحية (Profitability) - (4 نقاط محتملة)
صافي الدخل إيجابي (ROA > 0): هل حققت الشركة ربحاً في العام الأخير؟ (نقطة واحدة)
التدفق النقدي التشغيلي إيجابي: هل ولّدت الشركة نقداً من عملياتها الأساسية؟ (نقطة واحدة)
جودة الأرباح (التدفق النقدي > صافي الدخل): هل التدفق النقدي التشغيلي أعلى من صافي الدخل؟ هذا يشير إلى أن الأرباح ليست مجرد قيود محاسبية. (نقطة واحدة)
تحسن العائد على الأصول (ROA): هل العائد على الأصول هذا العام أفضل من العام الماضي؟ (نقطة واحدة)
ب) الرافعة المالية والسيولة (Leverage & Liquidity) - (3 نقاط محتملة)
5. انخفاض الرافعة المالية: هل انخفضت نسبة الدين طويل الأجل إلى الأصول هذا العام مقارنة بالعام الماضي؟ (نقطة واحدة)
6. تحسن النسبة الحالية (Current Ratio): هل تحسنت سيولة الشركة قصيرة الأجل هذا العام؟ (نقطة واحدة)
7. عدم إصدار أسهم جديدة: هل قامت الشركة بتخفيف ملكية المساهمين الحاليين عن طريق إصدار أسهم جديدة خلال العام؟ (تحصل على نقطة إذا لم تصدر أسهماً جديدة).
ج) الكفاءة التشغيلية (Operating Efficiency) - (2 نقطة محتملة)
8. تحسن هامش الربح الإجمالي: هل زاد هامش الربح الإجمالي هذا العام مقارنة بالعام الماضي؟ (نقطة واحدة)
9. تحسن معدل دوران الأصول: هل زادت كفاءة الشركة في استخدام أصولها لتوليد المبيعات هذا العام؟ (نقطة واحدة)
تفسير النتائج:
نتيجة قوية (8-9 نقاط): تشير إلى أن الشركة في وضع مالي قوي جداً وأساسياتها تتحسن بشكل ملحوظ.
نتيجة محايدة (3-7 نقاط): وضع الشركة مستقر ولكن لا توجد إشارات قوية على تحسن أو تدهور كبير.
نتيجة ضعيفة (0-2 نقاط): تشير إلى أن أساسيات الشركة المالية ضعيفة وقد تكون في مسار تدهور.
2. كيفية استخدام المؤشر على TradingView
الكود الذي قدمته يجعل من السهل تطبيق هذا التحليل المعقد بنقرة زر.
التطبيق على الرسم البياني:
أضف المؤشر إلى الرسم البياني. سيظهر في نافذة منفصلة أسفله، ويعرض خطاً يمثل قيمة F-Score عبر الزمن.
فهم المدخلات (الإعدادات):
Symbol (الرمز): كما في المؤشر السابق، اتركه فارغاً لتحليل السهم الحالي، أو أدخل رمز سهم آخر للمقارنة.
Period (الفترة): يتيح لك اختيار الفترة المالية التي يتم على أساسها حساب المعايير التسعة. FY (سنوي) هو الخيار الأكثر شيوعاً لأنه يقارن أداء الشركة على أساس سنوي، وهو ما يتوافق مع تصميم النموذج الأصلي.
قراءة المخرجات البصرية:
خط F-Score: يوضح قيمة المؤشر تاريخياً. هل كانت الشركة قوية مالياً في الماضي؟ هل تحسنت مؤخراً؟
الخطوط المتقطعة: الخط الأخضر عند 8 والخط الأحمر عند 2 يمثلان حدود المناطق القوية والضعيفة.
الخلفية الملونة: تقدم ملخصاً بصرياً سريعاً:
أخضر: الشركة قوية جداً (F-Score ≥ 8).
أحمر: الشركة ضعيفة (F-Score ≤ 2).
بدون لون: الشركة في المنطقة المحايدة.
الاستخدام العملي في التحليل:
فلترة الأسهم القيمة: الاستخدام الأساسي للنموذج هو فلترة الأسهم التي تبدو "رخيصة" (مثلاً، لديها نسبة سعر إلى ربح منخفضة). سهم رخيص مع F-Score مرتفع (8 أو 9) هو مرشح استثماري واعد. سهم رخيص مع F-Score منخفض (0-2) هو على الأرجح "فخ قيمة" (value trap) يجب تجنبه.
تتبع التحولات: راقب الشركات التي ينتقل مؤشرها من المنطقة الضعيفة إلى المنطقة المحايدة أو القوية. هذا قد يكون مؤشراً مبكراً على تحول إيجابي في أداء الشركة.
تجنب المخاطر: الشركات التي لديها F-Score منخفض باستمرار هي شركات يجب التعامل معها بحذر شديد، حتى لو بدت أسعارها مغرية.
أداة تكميلية: F-Score هو أداة كمية ممتازة، لكن يجب دمجها دائماً مع تحليل نوعي (فهم نموذج عمل الشركة، إدارتها، وميزتها التنافسية).
In English
1. The Scientific Method: What is the Piotroski F-Score?
The F-Score is a numerical scoring system developed in 2000 by Joseph Piotroski, an accounting professor at Stanford University. The model's purpose is to measure the financial strength of value stocks, specifically those with a high book-to-market ratio.
The core idea is to sift through seemingly "cheap" companies and distinguish between those whose financial fundamentals are improving (the "winners") and those whose fundamentals are deteriorating (the "losers").
The model is based on nine simple criteria, divided into three main categories. A company earns one point for each criterion it meets and zero if it doesn't. The final score is the sum of these points, ranging from 0 (worst) to 9 (best).
The Nine Criteria (How Points are Scored):
A) Profitability (4 possible points)
Positive Net Income (ROA > 0): Did the company make a profit in the last year? (1 point)
Positive Operating Cash Flow: Did the company generate cash from its core operations? (1 point)
Quality of Earnings (Cash Flow > Net Income): Is operating cash flow higher than net income? This suggests earnings are not just accounting-driven. (1 point)
Improving Return on Assets (ROA): Is this year's ROA better than last year's? (1 point)
B) Leverage & Liquidity (3 possible points)
5. Lower Leverage: Did the long-term debt-to-assets ratio decrease this year compared to last year? (1 point)
6. Improving Current Ratio: Has the company's short-term liquidity improved this year? (1 point)
7. No New Share Issuance: Did the company dilute existing shareholders by issuing new shares during the year? (1 point is awarded if it did not issue new shares).
C) Operating Efficiency (2 possible points)
8. Improving Gross Margin: Did the gross profit margin increase this year compared to last year? (1 point)
9. Improving Asset Turnover: Did the company's efficiency in using its assets to generate sales improve this year? (1 point)
Interpreting the Score:
Strong Score (8-9 points): Indicates the company is in a very strong financial position and its fundamentals are improving significantly.
Neutral Score (3-7 points): The company's situation is stable, but there are no strong signals of major improvement or deterioration.
Weak Score (0-2 points): Indicates the company's financial fundamentals are weak and may be on a deteriorating path.
2. How to Use the Indicator on TradingView
The code you provided makes applying this complex analysis as simple as a click.
Applying to the Chart:
Add the indicator to a chart. It will appear in a separate pane below, displaying a line representing the F-Score's value over time.
Understanding the Inputs (Settings):
Symbol: As with the previous indicator, leave it blank to analyze the current stock, or enter another ticker for comparison.
Period: This allows you to select the fiscal period on which the nine criteria are based. FY (Fiscal Year) is the most common choice as it compares the company's performance on a year-over-year basis, which aligns with the model's original design.
Reading the Visual Outputs:
F-Score Line: Shows the historical value of the score. Was the company financially strong in the past? Has it improved recently?
Dashed Lines: The green line at 8 and the red line at 2 mark the thresholds for the strong and weak zones.
Colored Background: Provides a quick visual summary:
Green: The company is very strong (F-Score ≥ 8).
Red: The company is weak (F-Score ≤ 2).
No Color: The company is in the neutral zone.
Practical Use in Analysis:
Filtering Value Stocks: The model's primary use is to filter stocks that appear "cheap" (e.g., have a low P/E ratio). A cheap stock with a high F-Score (8 or 9) is a promising investment candidate. A cheap stock with a low F-Score (0-2) is likely a "value trap" and should be avoided.
Tracking Turnarounds: Keep an eye on companies whose score moves from the weak zone into the neutral or strong zone. This could be an early indicator of a positive turnaround in the company's performance.
Risk Avoidance: Companies with a persistently low F-Score are ones to be very cautious about, even if their prices look tempting.
A Complementary Tool: The F-Score is an excellent quantitative tool, but it should always be combined with qualitative analysis (understanding the business model, management, and competitive landscape)
Altman Z-Score Indicator
1. المنهج العلمي: ما هو نموذج ألتمان Z-Score؟
نموذج Z-Score هو صيغة إحصائية متعددة المتغيرات تم تطويرها في عام 1968 من قبل البروفيسور إدوارد ألتمان (Edward Altman)، أستاذ التمويل في جامعة نيويورك. الهدف الأساسي للنموذج هو التنبؤ باحتمالية إفلاس شركة مساهمة عامة خلال العامين التاليين.
يعتمد النموذج على دمج خمس نسب مالية أساسية، يتم استخلاصها من القوائم المالية للشركة (قائمة الدخل والميزانية العمومية). يتم ضرب كل نسبة في معامل (وزن) محدد، ثم يتم جمع النتائج للحصول على قيمة واحدة هي "Z-Score".
المعادلة الأساسية للشركات الصناعية العامة (وهي التي يطبقها الكود):
`Z = 1.2 X₁ + 1.4 X₂ + 3.3 X₃ + 0.6 X₄ + 1.0 X₅`
حيث أن:
X₁ = (رأس المال العامل / إجمالي الأصول): يقيس سيولة الشركة على المدى القصير. رأس المال العامل المرتفع يعني أن الشركة لديها أصول متداولة كافية لتغطية التزاماتها قصيرة الأجل.
X₂ = (الأرباح المحتجزة / إجمالي الأصول): يقيس الربحية التراكمية للشركة وقدرتها على تمويل أصولها من أرباحها الخاصة بدلاً من الديون.
X₃ = (الأرباح قبل الفوائد والضرائب (EBIT) / إجمالي الأصول): يقيس كفاءة الشركة في تحقيق أرباح من أصولها قبل احتساب تكاليف التمويل والضرائب. إنها مؤشر قوي على الربحية التشغيلية.
X₄ = (القيمة السوقية لحقوق الملكية / إجمالي الالتزامات): يقيس الرافعة المالية للشركة. كلما انخفضت قيمة الشركة السوقية مقارنة بديونها، زاد خطر الإفلاس.
X₅ = (إجمالي الإيرادات (المبيعات) / إجمالي الأصول): يعرف بـ "معدل دوران الأصول". يقيس مدى كفاءة الشركة في استخدام أصولها لتوليد المبيعات.
تفسير النتائج (مناطق التصنيف):
قام ألتمان بتحديد ثلاث مناطق لتصنيف الشركات بناءً على قيمة Z-Score:
1. منطقة الخطر (Distress Zone) | Z < 1.81: الشركات التي تقع في هذه المنطقة لديها احتمالية عالية جداً لمواجهة صعوبات مالية قد تؤدي إلى الإفلاس.
2. المنطقة الرمادية (Grey Zone) | 1.81 ≤ Z ≤ 2.99: الشركات في هذه المنطقة تقع في وضع غير مؤكد. لا يمكن تصنيفها بأنها آمنة أو في خطر وشيك، وتتطلب تحليلاً أعمق.
3. المنطقة الآمنة (Safe Zone) | Z > 2.99: الشركات التي تحقق نتيجة في هذه المنطقة تعتبر في وضع مالي سليم ومستقر، واحتمالية إفلاسها منخفضة جداً.
2. كيفية استخدام المؤشر على TradingView
الكود الذي قمت بتطويره يجعل استخدام هذا النموذج سهلاً للغاية. إليك كيفية استخدامه بفعالية:
1. التطبيق على الرسم البياني:
أضف المؤشر إلى الرسم البياني لأي سهم ترغب في تحليله. سيظهر المؤشر في نافذة منفصلة أسفل الرسم البياني للسعر.
2. فهم المدخلات (الإعدادات):
Symbol (الرمز): يمكنك ترك هذا الحقل فارغاً ليقوم المؤشر بتحليل السهم الحالي على الرسم البياني تلقائياً. أو يمكنك إدخال رمز سهم آخر (مثلاً `AAPL` أو `MSFT`) لتحليل تلك الشركة ومقارنتها بالشركة الحالية.
Fiscal Period (الفترة المالية): هذا هو أهم إعداد. يتيح لك اختيار البيانات التي سيعتمد عليها التحليل:
`FY` (سنوي): يستخدم بيانات آخر سنة مالية كاملة. هذا هو الخيار الأكثر شيوعاً واستقراراً.
`FQ` (ربع سنوي): يستخدم بيانات آخر ربع مالي. هذا الخيار أكثر حساسية للتغيرات قصيرة المدى.
`TTM` (آخر 12 شهراً): يستخدم البيانات المجمعة لآخر 12 شهراً. يوفر نظرة حديثة ومستمرة.
3. قراءة المخرجات البصرية:
خط Z-Score: هو الخط الرئيسي للمؤشر. حركته عبر الزمن توضح كيف يتغير الوضع المالي للشركة. هل يتحسن (الخط يرتفع) أم يتدهور (الخط ينخفض)؟
الخطوط المتقطعة: الخط الأخضر عند `2.99` والخط الأحمر عند `1.81` يمثلان حدود المناطق (الآمنة والخطر). عبور خط Z-Score لهذه الحدود يعتبر إشارة هامة.
الخلفية الملونة: هي أسرع طريقة لمعرفة وضع الشركة الحالي:
أخضر: الشركة في المنطقة الآمنة.
أصفر (رمادي): الشركة في المنطقة الرمادية.
أحمر: الشركة في منطقة الخطر.
4. الاستخدام العملي في التحليل:
التحليل الاتجاهي: لا تنظر فقط إلى القيمة الحالية. راقب اتجاه خط Z-Score على مدى عدة سنوات. شركة يرتفع مؤشرها باستمرار من 1.5 إلى 2.5 هي في مسار تحسن، بينما شركة ينخفض مؤشرها من 4.0 إلى 3.1 قد تكون في بداية مسار تدهور.
إشارات الإنذار المبكر: إذا انخفض Z-Score لشركة ما تحت 2.99 ودخل المنطقة الرمادية، فهذه دعوة للبدء في تحليل أعمق لأسباب هذا الانخفاض. إذا انخفض تحت 1.81، فهذه إشارة خطر واضحة يجب أخذها على محمل الجد.
المقارنة بين الشركات: استخدم حقل `Symbol` لمقارنة الصحة المالية لشركتين في نفس القطاع. أي منهما لديها Z-Score أعلى وأكثر استقراراً؟
تأكيد التحليل الأساسي: استخدم هذا المؤشر كأداة مساعدة بجانب تحليلاتك الأخرى، وليس كأداة وحيدة لاتخاذ القرار. فهو لا يأخذ في الاعتبار عوامل مثل الإدارة، الميزة التنافسية، أو ظروف السوق الكلية.
---
In English
1. The Scientific Method: What is the Altman Z-Score Model?
The Z-Score model is a multivariate statistical formula developed in 1968 by Dr. Edward Altman, a Professor of Finance at New York University. The primary objective of the model is to predict the probability of a publicly traded company going bankrupt within the next two years.
The model works by combining five key financial ratios derived from a company's financial statements (the income statement and balance sheet). Each ratio is multiplied by a specific coefficient (weight), and the results are summed up to produce a single value: the "Z-Score."
The Original Formula for Public Manufacturing Companies (which your code implements):
`Z = 1.2 X₁ + 1.4 X₂ + 3.3 X₃ + 0.6 X₄ + 1.0 X₅`
Where:
X₁ = (Working Capital / Total Assets): Measures the company's short-term liquidity. High working capital indicates the company has sufficient current assets to cover its short-term liabilities.
X₂ = (Retained Earnings / Total Assets): Measures the company's cumulative profitability and its ability to finance its assets with its own profits instead of debt.
X₃ = (Earnings Before Interest and Taxes (EBIT) / Total Assets): Measures the company's efficiency in generating profits from its assets before accounting for financing costs and taxes. It's a strong indicator of operational profitability.
X₄ = (Market Value of Equity / Total Liabilities): Measures the company's financial leverage. The more a company's market value declines relative to its debt, the higher the bankruptcy risk.
X₅ = (Total Revenue (Sales) / Total Assets): Known as "Asset Turnover." It measures how efficiently the company is using its assets to generate sales.
Interpreting the Score (The Zones of Discrimination):
Altman identified three zones to classify companies based on their Z-Score:
1. Distress Zone | Z < 1.81: Companies in this zone have a very high probability of facing financial distress that could lead to bankruptcy.
2. Grey Zone | 1.81 ≤ Z ≤ 2.99: Companies here are in an uncertain position. They cannot be classified as either safe or in imminent danger and require deeper analysis.
3. Safe Zone | Z > 2.99: Companies with a score in this zone are considered to be in a sound and stable financial position, with a very low probability of bankruptcy.
2. How to Use the Indicator on TradingView
The code you've developed makes using this model incredibly easy. Here is how to use it effectively:
1. Applying to the Chart:
Add the indicator to the chart of any stock you wish to analyze. The indicator will appear in a separate pane below the price chart.
2. Understanding the Inputs (Settings):
Symbol: You can leave this blank for the indicator to automatically analyze the current stock on the chart. Alternatively, you can enter another stock ticker (e.g., `AAPL` or `MSFT`) to analyze that company and compare it to the current one.
Fiscal Period: This is the most important setting. It lets you choose the data on which the analysis is based:
`FY` (Fiscal Year): Uses data from the last full fiscal year. This is the most common and stable option.
`FQ` (Fiscal Quarter): Uses data from the last fiscal quarter. This option is more sensitive to short-term changes.
`TTM` (Trailing Twelve Months): Uses aggregated data from the last 12 months, providing a recent and rolling view.
3. Reading the Visual Outputs:
Z-Score Line: This is the main plot of the indicator. Its movement over time shows how the company's financial health is evolving. Is it improving (line goes up) or deteriorating (line goes down)?
Dashed Lines: The green line at `2.99` and the red line at `1.81` represent the thresholds for the Safe and Distress zones. The Z-Score line crossing these thresholds is a significant signal.
Colored Background: This is the quickest way to see the company's current status:
Green: The company is in the Safe Zone.
Yellow (Grey): The company is in the Grey Zone.
Red: The company is in the Distress Zone.
4. Practical Use in Analysis:
Trend Analysis: Don't just look at the current value. Observe the trend of the Z-Score line over several years. A company whose score is consistently rising from 1.5 to 2.5 is on an improving path, whereas a company whose score is falling from 4.0 to 3.1 may be at the beginning of a deteriorating path.
Early Warning Signals: If a company's Z-Score drops below 2.99 into the Grey Zone, it's a call to start a deeper analysis into the reasons for this decline. If it drops below 1.81, it is a clear danger signal that must be taken seriously.
Peer Comparison: Use the `Symbol` input field to compare the financial health of two companies in the same sector. Which one has a higher and more stable Z-Score?
Fundamental Analysis Confirmation: Use this indicator as a supplementary tool alongside your other analyses, not as a sole decision-making tool. It does not account for factors like management quality, competitive advantage, or macroeconomic conditions.
KKF RangeIts a very unique range indicator that uses stochastics and volume bookmap and radp to view current trend to identify potential entries.
Date Marker📅 Date Marker
Date Marker is a simple, lightweight indicator that draws a single vertical line on a chosen date — ideal for quickly comparing how different charts looked at the same point in time.
Switch between symbols or timeframes, and the line automatically stays fixed at your selected date.
Perfect for studying market reactions to key events, earnings, announcements, or macro shifts.