Ultra & CalculadoraThis proprietary, closed-source indicator is designed to provide traders with a distinct daily advantage by establishing and projecting critical support and resistance levels based on the market's initial reaction to the New York (NY) trading session open. It also features a fully integrated risk management utility.
Detailed Methodology & Usefulness
1. NY Open Price Action Levels (Closed-Source Logic):
This script generates dynamic Buy and Sell lines using a proprietary calculation based on the opening range of the New York trading session.
Underlying Concept: The market’s reaction during the first hour of major session overlaps often sets the volatility and direction for the remainder of the day. Our methodology uses a dynamically defined "Opening Price Box" anchored to a specific time interval around the NY open.
Level Projection: Instead of using standard pivot points or fixed percentages, the Buy and Sell lines are given by the High and Low points of the 30-minute candle before the market opens.
Buy Line: Represents a calculated support level, suggesting an area for potential long entry or short-covering if held.
Sell Line: Represents a calculated resistance level, suggesting an area for potential short entry or long profit-taking if rejected.
Value to the Community: This method provides objective, session-specific price targets and boundaries, helping users move beyond purely discretionary range identification.
2. Integrated Risk Calculator:
The indicator includes a transparent, functional utility to manage position size, addressing the requirement for usefulness and providing actionable utility to the user.
Functionality: The calculator determines the optimal contract or share position size based on three user inputs: Total Capital, Percentage Risk per Trade, and Stop Loss Size (in Pips/Ticks).
Formula: It utilizes the foundational risk formula: Position Size = (Capital * Risk %) / Stop Loss Value. This helps traders adhere strictly to their risk limits and prevents over-leveraging.
Author's Instructions and UI Text Translation
All User Interface (UI) elements are provided with their mandatory English translation first.
Show_NY_Levels: Show NY Open Projected Levels (Boolean)
NY_Open_Time: New York Session Open Time (Time/Session Input)
Capital_Input: Total Trading Capital ($)
Risk_Percent: Risk Percentage per Trade (%)
Stop_Size: Stop Loss Size (Pips/Ticks/Points)
Calculated_Size: Calculated Position Size (Contracts/Shares)
Educational
[KF] Multi-Duration Rate Expectations IndicatorAfter last fed cut in Oct then following jump in rates, I was frustrated at not having access to good rate expectations vs actual because the market usually prices in prior to fed action. This indicator was developed to make futures market rate expectations accessible and interpretable without requiring professional bond analytics systems.
Summary
This Pine Script indicator reveals what the futures market expects for interest rates across three key durations: Fed Funds (overnight), 2-Year, and 10-Year Treasury yields. By comparing futures-implied rates against current spot yields, it provides a clear visual signal of whether the market expects rates to rise, fall, or remain steady.
Understanding Rate Futures
Fed Funds futures (ZQ1!) use a simple design where the expected rate equals 100 minus the futures price. If ZQ1! trades at 96.12, the market expects a 3.88% Fed Funds rate. Treasury futures work differently - they trade as bond prices (typically 102-115) that move inversely to yields. Converting Treasury futures to implied yields requires complex bond mathematics involving duration and conversion factors.
This indicator solves the Treasury futures complexity by implementing a self-calibrating sensitivity model. It observes the historical relationship between futures prices and yields, then uses this to project rate expectations. The model also compares front-month to next-month contracts to detect expected rate direction, automatically adapting as market conditions change.
How to Use
Add the indicator to any chart and select your desired duration in the settings. The display shows the futures-implied rate, current yield, and the difference between them. Green indicates the market expects higher rates, red means lower expectations, and gray shows expectations in line with current rates.
The indicator excels at identifying divergences between market expectations and current rates, which often precede rate movements or futures repricing. Comparing expectations across different durations reveals insights about yield curve positioning and Fed policy anticipation.
Technical Note
While Fed Funds futures provide exact rate expectations, Treasury futures conversions are sophisticated approximations that provide reliable directional signals and reasonable magnitude estimates sufficient for most trading applications.
💸 DCA Accumulation Strategy (USD‑Based Scaling)Buy when blue arrow appears, if the next arrow is lower than the last increase your position. This will pull your average cost down slowly over time.
Gann Astronomical Turning PointsThis is a comprehensive Pine Script that implements W.D. Gann's astronomical theories to identify potential market turning points. Here's a detailed breakdown of the script:
Overview
The script identifies and displays astronomical events (sun angles, moon phases, and Mercury retrogrades) that Gann theorists believe correlate with market turning points. It also analyzes historical price performance following these events to provide statistical significance.
Key Components
1. Input Parameters
Date Range: Users can set the analysis period (start and end dates)
Display Options: Toggle visibility of different astronomical events and tables
Analysis Settings: Configure the lookback period for price change analysis (1-20 days)
2. Astronomical Calculations
The script includes several functions to calculate celestial positions:
getDaysSinceEpoch(t): Calculates days since January 1, 2000 (reference point)
getSunLongitude(t): Computes the Sun's position in the ecliptic (0-360°)
getMoonPhase(t): Determines the Moon's phase angle relative to the Sun
getMercuryLongitude(t): Calculates Mercury's position in the ecliptic
3. Gann Critical Angles (Sun Events)
The script identifies when the Sun reaches four critical angles that Gann considered significant:
0° Aries (Spring Equinox)
90° Cancer (Summer Solstice)
180° Libra (Fall Equinox)
270° Capricorn (Winter Solstice)
These are detected by tracking when the Sun's longitude crosses these specific angles.
4. Moon Phases
Four key moon phases are identified:
New Moon: Moon passes between Earth and Sun
First Quarter: Moon is 90° east of Sun
Full Moon: Moon is opposite the Sun
Last Quarter: Moon is 270° east of Sun
5. Mercury Retrograde Periods
The script detects when Mercury appears to move backward in its orbit:
Identifies start and end dates of retrograde motion
Displays these periods as highlighted zones on the chart
6. Price Change Analysis
For each astronomical event, the script:
Calculates the percentage price change over a user-defined lookback period
Categorizes changes as positive or negative
Stores this data for statistical analysis
7. Statistical Significance
The script calculates several metrics for each event type:
Average Price Change: Mean percentage change following events
Up/Down Ratio: Number of positive vs. negative changes
Accuracy Percentage: How often the dominant direction occurred
8. Visual Elements
The script includes multiple display components:
Event Labels
Sun Angles: Orange sun symbols displayed above price bars
Moon Phases: Moon phase emojis displayed below price bars
Mercury Retrograde: Red boxes highlighting the retrograde periods
Information Tables
Events Table: Shows upcoming and recent astronomical events
Significance Analysis Table: Displays statistical performance of each event type
Forecast Section: Identifies the next upcoming event and predicted direction
9. Forecasting Functionality
The script predicts market direction for the next astronomical event based on:
Historical average price change for that event type
Statistical accuracy of previous similar events
Color-coded forecast (green for bullish, red for bearish)
This script offers an interesting implementation of Gann's astronomical theories, but should be used as part of a broader analysis rather than as a standalone trading system.
Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Always conduct your own research and risk assessment before trading.
Trailing 12M % Gain/Lossthis script shows profit or loss for training 12 months, works only on daily time frame
Lot Size Calculator for FX(JPY Base)-By Jason v1.1 ロッド自動計算ツール🧭概要
このインジケーターは、日本円口座で取引するFXトレーダー専用に設計されたロットサイズ自動計算ツールです。
クロス円だけでなく、ドルストレート通貨ペア(EURUSD・GBPUSD・など)も自動換算に対応。
リアルなJPY換算ベースで、リスクとロットを正確に可視化します。
🎯 主な特徴
✅ JPY自動換算対応
ドルストレート・クロス円ペアを問わず、リアルタイムでJPYベースに換算。
✅ リスク/リワード自動計算
口座残高・ストップロス・リスク割合・固定損失額からロットサイズを即時算出。
✅ 証拠金維持率 / 実効レバレッジ表示
過剰エントリーを防ぎ、リスクを数値で管理。
✅ パネル表示を自由カスタマイズ
* 表示項目を個別にON/OFF可能
* 項目名(ラベル)を自分の言葉に変更可能
* パネル位置・文字サイズ・色・背景も自由設定
✅ 日本口座仕様に最適化
DMM、GMO、外為どっとコムなどJPY建て口座での取引計算に完全対応。
💡 推奨リスク管理ルール(プロトレーダー実践例)
プロ仕様のトレードは、「勝つこと」より「失わないこと」を最優先に行われます。
安定して利益を積み上げるトレーダーは、常に明確なリスク基準をもって行動します。
以下は、その代表的なリスク管理ルールです。
📉 連敗時のリスクコントロール(防御モード)
* 1トレードあたり口座残高の1%以下に抑える
* 連続2~3敗でリスクを半分(例:1%→0.5%)に下げる
* 1日の最大損失率を 3〜5%以内に制限(到達したらその日は終了)
* 「メンタルドローダウン」を避けるために連敗日翌日は休むことも多い
📘 目的:生き残ること。資金を守ることが最大の攻撃。
📈 連勝時のリスクコントロール(拡張モード)
* 2連勝以上の場合、**リスクを段階的に拡大(例:1%→1.5%)**
* ただし、最大でも3%以内
* リワードが積み上がっている時にのみ増加させる(利益分をリスクに再投資)
📘 目的:勝っている時にリスクを“複利的”に活かすが、ルール内にとどめる。
🧠 デイリーマネジメントルール(プロ基準)
1トレードリスク : 1〜2%以内
1日最大損失 :3〜5%以内
1週間最大損失 : 10%以内
リスクリワード比 :最低 1 : 2(理想は 1 : 3 以上)
勝率の目安 : 40〜50%でもRR管理で黒字維持可能
⚙️ このツールを使う理由
このロット計算機を使えば、
「感覚的なロット設定」から「数値的なリスク管理」へ進化できます。
✅ 過剰ロット防止
✅ 損失率の明確化
✅ 勝ち負けのバランス最適化
✅ 冷静なトレード継続が可能に
🧩 使い方
1️⃣ チャートにインジケーターを追加
2️⃣ 「口座残高」「リスク割合」「ストップロス(pips)」を設定
3️⃣ 「ロットサイズ」欄の数値が、**最適ロットサイズ**
4️⃣ リスク指標(証拠金維持率・実効レバレッジ)をチェック
⚠️ 免責事項
このインジケーターは教育目的の補助ツールです。
最終的な売買判断はご自身の責任で行ってください。
---
🧾 クレジット
Developed for Japanese Traders 🇯🇵
Optimized for FX Based Risk Control
Created by
💬 まとめ
資金を守ることは「守り」ではなく、次のチャンスに立ち続けるための最強の戦略です。
リスクを管理できる者だけが、長期的に勝ち続けることができます。
🧩 今後について
このインジケーターは、今後も使いやすさと精度を追求しながら改善を続けていきます。
もちろんです。以下は、あなたの日本語説明文を**自然でプロフェッショナルな英語**に翻訳したものです。
TradingViewのインジケーター説明欄にそのまま使えるトーン(ややフォーマル+分かりやすい)で整えています👇
---
🧭 Overview
This indicator is a **lot size auto-calculator** designed specifically for **FX traders using Japanese Yen (JPY) accounts**.
It automatically converts values not only for JPY crosses but also for **USD-based pairs (e.g., EURUSD, GBPUSD, etc.)**,
providing precise **risk and lot visualization in real JPY terms**.
🎯 Key Features
✅ **Automatic JPY Conversion**
Real-time JPY-based conversion for both USD and JPY pairs.
✅ **Risk / Reward Auto Calculation**
Instantly calculates the optimal lot size based on account balance, stop loss, and defined risk percentage or fixed loss.
✅ **Margin Maintenance Rate / Effective Leverage Display**
Prevents over-leveraging and allows you to monitor your risk numerically.
✅ **Fully Customizable Panel Display**
* Enable or disable each display item individually
* Rename labels freely to your preferred wording
* Adjust panel position, font size, colors, and background
✅ **Optimized for Japanese Brokerage Accounts**
Fully compatible with major JPY-based brokers such as **DMM, GMO, and Gaitame.com**.
💡 Recommended Risk Management Rules (Professional Trader Practices)
Professional trading prioritizes **“not losing” over “winning.”**
Consistent traders operate with a clear and disciplined risk framework.
Here are the most common examples of professional risk management rules:
📉 Loss Streak Risk Control (Defensive Mode)
* Keep risk per trade below **1% of account balance**
* After **2–3 consecutive losses**, reduce risk by half (e.g., 1% → 0.5%)
* Limit daily loss to **3–5%** — stop trading once reached
* Take a break after a losing streak to avoid **mental drawdown**
📘 **Objective:** Survival first. Protecting capital is the strongest form of offense.
📈 Win Streak Risk Control (Expansion Mode)
* After 2 consecutive wins, **gradually increase risk (e.g., 1% → 1.5%)**
* Never exceed **3% total risk per trade**
* Only scale up when trading with accumulated profit — reinvest from gains, not from capital
📘 **Objective:** Use profits to grow risk *compoundedly*, but always within defined limits.
🧠 Daily Risk Management (Professional Standards)
Risk per trade : 1–2% of account balance
Max daily loss : 3–5%
Max weekly loss :10%
Minimum R:R ratio : 1 : 2 (Ideal: 1 : 3 or higher)
Profitability baseline : 40–50% win rate can still stay profitable with proper R:R control
⚙️ Why Use This Tool?
This calculator helps you shift from **“emotional lot sizing” to “numerical risk control.”**
✅ Prevents over-lotting
✅ Clarifies risk exposure
✅ Balances wins and losses
✅ Enables calm, consistent execution
🧩 How to Use
1️⃣ Add the indicator to your chart
2️⃣ Set your **account balance**, **risk percentage**, and **stop loss (pips)**
3️⃣ The **“Lot Size”** value automatically displays the optimal lot size
4️⃣ Check risk indicators such as **Margin Maintenance** and **Effective Leverage**
⚠️ Disclaimer
This indicator is a **support tool for educational purposes only**.
All final trading decisions are the sole responsibility of the user.
🧾 Credits
Developed for **Japanese Traders 🇯🇵**
Optimized for **FX-Based Risk Control**
Created by ** **
💬 Summary
Protecting your capital isn’t a defensive move —
it’s the **strongest strategy to stay in the game and seize the next opportunity**.
Only those who manage risk properly can sustain consistent long-term success.
🧩 Future Updates
This indicator will continue to evolve with improvements in usability and accuracy.
Stay tuned for upcoming updates and refinements.
AlKa alIAlKa Always In indicator.
Displays histogram columns below the chart. Columns display Always in Long or Short while the average is displayed with a black line.
Hover over the black average line to activate a tooltip.
The tooltip reads the current bar as
"With" or "Counter"
a "Weak" "Average" "Strong" "Very Strong" Always in "Long" or "Short"
Displays the always in score of the current bar, the average and the difference between
There is also a counter that resets at the beginning of the session that counts Always in bars as Long or Short.
AlKa ovLAlKa Overlap Indicator
Reads bar overlap percentages. Displays bars as overlapped or non-overlapped with histogram columns below the chart. Non overlapped bars are displayed with columns above and overlapped bars with columns below the center line. Columns are sized according to the percentage of overlap (or non-overlap). The average line displays the average overlap percentage.
Activate the tooltip by hovering above the black average line.
The tooltip displays the percentage of overlap, the average or this value and the percentage of the two values. The tooltip also reads a counter.
RSI Multi-Timeframe S/R - MehtaMulti-Timeframe Dynamic Support & Resistance Indicator
This tool automatically detects key support and resistance levels across multiple timeframes — including 1-Day, 15-Minute, and 5-Minute charts — using a refined momentum-based algorithm with trend and volume confirmation.
It’s designed to help traders quickly identify confluence zones where intraday and higher-timeframe structures align, improving timing and risk management.
Key Features
Detects dynamic support and resistance zones with a built-in strength filter.
Uses multi-timeframe confirmation to reduce false levels.
Integrates volume-based reliability checks.
Automatically updates only the latest active levels to keep charts clean.
Includes a touch counter panel that tracks how often price interacts with each level (a proxy for zone strength).
Color & Structure Guide
🟩 Support Zones: Indicate potential accumulation areas.
🔴 Resistance Zones: Indicate potential supply or reaction areas.
Solid lines = Higher timeframe (stronger zones)
Dotted lines = Lower timeframe (shorter-term zones)
Best Use
Combine with your price-action or volume analysis to confirm reactions.
Particularly useful in spotting multi-timeframe overlaps — where the strongest reactions tend to occur.
Touch Counter: A handy table on the chart tracks how many times the price has tested each level, helping you gauge its strength.
Combine with Your Strategy: This indicator works best when combined with your existing price action analysis, candlestick patterns, or other confirmation indicators.
STRONG DISCLAIMER & RISK WARNING
PLEASE READ THIS CAREFULLY BEFORE USING THE INDICATOR.
No Financial Advice: This indicator is a technical analysis tool for educational and informational purposes only. It is NOT financial, investment, or trading advice. The creator of this script is not a registered financial advisor.
Not a Guarantee: Past performance is not indicative of future results. The signals and levels generated by this indicator are based on historical data and mathematical formulas and are not a guarantee of future price movement. There is a high risk of loss in trading.
Use at Your Own Risk: You are solely responsible for any trading decisions you make and the resulting profits or losses. Always conduct your own due diligence and consult with a qualified financial professional before engaging in any trade.
Backtest First: It is highly recommended to backtest this indicator and understand its behavior in different market conditions (trending, ranging, volatile) before using it with real capital.
Lagging Nature: Like most technical indicators, this tool is lagging. It reflects past and current market data, which may not accurately predict future price action.
By using this indicator, you acknowledge that you understand and accept these risks entirely.
Feel free to leave feedback, report bugs, or suggest improvements in the comments below!
Happy Trading!
The DTC Indicator The Day Trading Channel EditionOverview
The DTC Indicator is a precision-built engulfing confirmation system developed by The Day Trading Channel to simplify structured, session-based trading.
It identifies high-probability engulfing setups during user-defined sessions, automatically marks entry levels, and visualizes target/invalidation zones in real time.
The tool provides traders with a clean, rules-driven framework to analyze market structure objectively without relying on subjective interpretation or multi-indicator clutter.
The DTC Indicator is designed for day traders who value logic over luck — offering full control over session windows, confirmation filters, and risk parameters.
Core Concept
At its foundation, the DTC Indicator revolves around a straightforward yet powerful principle:
The first few candles of a session often define the directional intent of the market.
The script scans the initial candles of each active session for bullish or bearish engulfing structures — one of the most reliable candlestick confirmations in price action theory.
Once identified, it automatically logs the entry price, stop-loss, and take-profit levels based on the trader’s configured risk-to-reward ratio.
From there, the indicator takes over visual tracking — plotting live boxes for target and invalidation levels, marking outcome labels (TP/SL), and updating the internal statistics dashboard to keep a running log of all observed setups.
Key Features
🎯 Session Control & Customization
• Define up to four unique trading sessions (e.g., London, New York, Sydney, Asian).
• Each session is independently configurable, allowing traders to isolate setups only during high-activity periods.
• Visually differentiated sessions make it easy to monitor which time windows produce the best consistency.
🧩 Engulfing Confirmation Logic
• Detects bullish engulfing when a candle fully engulfs the body of the previous bearish candle.
• Detects bearish engulfing when a candle fully engulfs the body of the previous bullish candle.
• Signal confirmation is session-aware — only triggers within the specified start-window of each session.
• False positives are filtered out automatically if price fails to close beyond the engulfing range.
📊 Dynamic Entry Snapshot System
• Every valid setup is recorded as a “snapshot,” capturing the entry price, target, and invalidation levels.
• Boxes are drawn live on the chart, extending until price hits either the target or invalidation.
• Once resolved, the outcome is logged into the performance dashboard automatically.
🧮 Performance Dashboard
• Displays key stats directly on-chart:
Total setups
true / false
true-rate percentage
Latest signal direction
Last target & invalidation values
• The dashboard automatically filters by date range, letting traders review historical session performance.
🔔 Smart Alerts
• Optional alerts trigger on confirmed setups.
• Each alert message includes symbol, timeframe, direction, target/invalidation values, and timestamp.
• Compatible with TradingView’s webhook system for automation or third-party integration.
🎨 Visual Customization
• Choose between Modern Blue, Classic Green-Red , and Gold Edition color themes.
• Adjustable label size, box opacity, line thickness, and text color.
• Option to toggle boxes, lines, or only retain labels for a minimal layout.
Why It’s Different
The DTC Indicator isn’t another candlestick detector — it’s a structured visual journal of real-time session behavior.
Instead of cluttering the screen with redundant signals, it focuses on clarity: showing you when a session produces genuine intent, and how price reacts to that intent across multiple timeframes.
Each setup becomes a mini “trade story” — logged, tracked, and concluded.
This gives traders powerful visual feedback on how specific sessions behave and how consistent a setup truly is over time.
Recommended Use Cases
• Intraday Forex and Gold (XAUUSD) trading
• Scalping and short-term swing trading on 1 hour charts
• Session-based backtesting for pattern validation
• Visual trade journaling and post-session analysis
Recommended Defaults:
Timeframe: 1-hour (h1)
Risk-Reward Ratio: 1 : 2.5
Primary Sessions: London, New York
Commission & Margin (recommended table display) : 0.02% commission, 1:100 margin
Limitations & Transparency Notice
• The indicator tracks simulated outcomes only; it does not represent executed trades.
• Historical win-rates are observational, not predictive of future performance.
• Non-standard chart types (Heikin-Ashi, Renko, Range) are not supported for engulfing detection.
• All results are based on visual backtesting and should be interpreted as educational data.
Access & Licensing
This invite-only version of the DTC Indicator is maintained and distributed by The Day Trading Channel .
Access may be granted to selected traders, educational partners, or evaluation firms for research and testing purposes.
Unauthorized redistribution, decompilation, or commercial replication of the script is strictly prohibited.
Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice, investment recommendations, or trade execution signals.
Trading financial markets carries risk — users are solely responsible for their decisions and results.
© 2025 The Day Trading Channel. All Rights Reserved.
Doctor Scalp (BUY/SELL) [by Adi]A script for fast scalping using. Works best with a 5-minute-to-1-hour interval.
NSE Pairs Screener-20 pair This advanced Pine Script screener is designed for pairs trading on the National Stock Exchange (NSE) of India. It simultaneously monitors up to 20 stock pairs, calculates key statistical metrics, and provides real-time trading signals based on mean reversion strategies.
Key Features
1. Multi-Pair Analysis
Monitor up to 20 stock pairs simultaneously
Customizable number of pairs to display (1-20)
Pre-configured with popular NSE stock pairs across various sectors
2. Statistical Calculations
Correlation Analysis: Measures the strength of relationship between paired stocks
Z-Score Calculation: Identifies extreme deviations from the mean spread
Cointegration Score: Validates long-term equilibrium relationships
Dynamic Hedge Ratio: Calculates optimal position sizing between pairs
3. Trading Signals
Long Signal: When spread is oversold (Z-score ≤ -2.0)
Short Signal: When spread is overbought (Z-score ≥ 2.0)
Exit Signal: When spread returns to mean (Z-score ≤ 0.5)
Watch Status: Pairs requiring monitoring
4. Automated Alert System
Single comprehensive alert for all qualifying pairs
Customizable alert thresholds for correlation, Z-score, and cointegration
On-chart visual alerts with detailed information
Notification support via TradingView's alert system
5. Visual Display
Clean, color-coded table interface
Adjustable table position (9 positions available)
Highlighted trading opportunities
Real-time metric updates
Configuration Parameters
Screener Settings
Number of Pairs to Display: 1-20 pairs (default: 20)
Calculation Parameters
Parameter Default Range Description Correlation Lookback Period25220-500Historical period for correlation calculation Z-Score SMA Length205-100Moving average length for spread calculation Hedge Ratio Length205-100Period for hedge ratio smoothing Minimum Correlation0.70.5-1.0Threshold for pair validation
Alert Settings
Parameter Default Range Description Alert Correlation Threshold0.70.5-1.0Minimum correlation for alerts Alert Z-Score Threshold2.01.0-3.0Z-score trigger level Alert Cointegration Threshold90%80-99%Minimum cointegration percentage
Display Settings
Table Position: 9 position options (default: middle_center)
Table Background Color: Customizable
Highlight Opportunities: Toggle visual highlighting of trading signals
Pre-Configured Stock Pairs
The script includes 20 carefully selected NSE pairs across various sectors:
Financial Services
RELIANCE / ONGC
HDFCBANK / ICICIBANK
SBIN / PNB
KOTAKBANK / AXISBANK
BAJFINANCE / BAJAJFINSV
Information Technology
TCS / INFY
WIPRO / HCLTECH
TECHM / LTIM
Consumer Goods
ITC / HINDUNILVR
TITAN / TANLA
ASIANPAINT / BERGEPAINT
Telecommunications
BHARTIARTL / IDEA
Automotive
MARUTI / TATAMOTORS
Infrastructure & Industrials
LT / UBL
POWERGRID / NTPC
Pharmaceuticals
SUNPHARMA / CIPLA
DIVISLAB / DRREDDY
Materials
ULTRACEMCO / ACC
UPL / JSWSTEEL
Energy
ADANIENT / ADANIPOWER
🎨 Color-Coded Metrics
Correlation
🟢 Green: ≥ Minimum threshold (strong relationship)
🔴 Red: < Minimum threshold (weak relationship)
Z-Score
🔴 Red: |Z| ≥ 2.0 (extreme deviation - trading opportunity)
🟡 Yellow: 0.5 < |Z| < 2.0 (normal range - watch)
🟢 Green: |Z| ≤ 0.5 (mean reversion - exit signal)
Cointegration
🟢 Green: ≥ 70% (strong cointegration)
🟡 Yellow: 50-70% (moderate cointegration)
🔴 Red: < 50% (weak cointegration)
Status
🟢 Green: Long (buy spread)
🔴 Red: Short (sell spread)
🔵 Blue: Exit (close positions)
⚪ Gray: Watch (monitor)
Validation
🟢 Green: Pass (meets all criteria)
🔴 Red: Fail (doesn't meet criteria)
How It Works
1. Data Collection
The script fetches real-time closing prices for all 20 stock pairs from NSE.
2. Statistical Analysis
For each pair, the script calculates:
Log Returns: Natural logarithm of price changes
Correlation: Pearson correlation coefficient between returns
Hedge Ratio: Price ratio smoothed over specified period
Spread: Price difference adjusted by hedge ratio
Z-Score: Standardized spread deviation
3. Signal Generation
Based on Z-score thresholds:
Z ≥ 2.0: Short spread (short overvalued, long undervalued)
Z ≤ -2.0: Long spread (long overvalued, short undervalued)
|Z| ≤ 0.5: Exit positions (spread reverted to mean)
4. Validation
Pairs must meet criteria:
Correlation ≥ minimum threshold
Valid trading signal (entry or exit)
5. Alert Triggering
Alerts fire when pairs simultaneously meet:
Correlation ≥ alert threshold
|Z-score| ≥ alert threshold
Cointegration ≥ alert threshold
Alert System
The script features a single comprehensive alert that monitors all pairs:
Consolidated Notifications: One alert for all qualifying pairs
Detailed Information: Includes pair names, signal type, and key metrics
Visual Indicators: Red label on chart with complete details
Customizable Thresholds: Adjust sensitivity based on trading style
Alert Message Format
PAIR TRADING OPPORTUNITIES
Pair X: STOCK1/STOCK2
Signal: LONG/SHORT Spread
Z-Score: X.XX
Correlation: X.XXX
Cointegration: XX.X%
Trading Strategy Guide
Entry Rules
Long Spread (Z-score ≤ -2.0):
Buy Stock Y
Sell Stock X (in ratio of hedge ratio)
Short Spread (Z-score ≥ 2.0):
Sell Stock Y
Buy Stock X (in ratio of hedge ratio)
Exit Rules
Close positions when Z-score returns to ±0.5
Set stop-loss at Z-score ±3.0 (extreme deviations)
Risk Management
Only trade pairs with correlation ≥ 0.7
Prefer cointegration scores ≥ 90%
Monitor hedge ratio changes
Diversify across multiple pairs
Customization Options
Adding New Pairs
Simply modify the stock symbol inputs in the respective pair groups (Pair 1 through Pair 20).
Adjusting Sensitivity
Conservative: Increase Z-score threshold to 2.5-3.0
Aggressive: Decrease Z-score threshold to 1.5-2.0
Long-term: Increase lookback period to 500
Short-term: Decrease lookback period to 50-100
Visual Preferences
Change table position to suit your layout
Adjust background colors for better contrast
Toggle opportunity highlighting on/off
Technical Notes
Calculation Method
Uses logarithmic returns for correlation (better statistical properties)
Z-score normalized by standard deviation
Cointegration approximated using correlation strength
Hedge ratio smoothed using simple moving average
Performance Considerations
Calculations update on every bar close
Table displays only on the last bar
Alert checks occur at bar close
Maximum 500 labels supported (more than sufficient)
Limitations
Does not account for transaction costs
Assumes linear relationships between pairs
Historical correlation doesn't guarantee future behaviour
Requires sufficient liquidity in both stocks
Best Practices
Back test Thoroughly: Test parameters on historical data before live trading
Monitor Regularly: Check pairs daily for validation changes
Diversify: Trade multiple pairs to reduce risk
Stay Informed: Be aware of corporate actions, news affecting pairs
Adjust Parameters: Optimize for current market conditions
Use Stop-Losses: Protect against extreme divergences
Track Performance: Maintain trading journal for continuous improvement
Indicator Information
Version: Pine Script v5
Overlay: False (separate pane)
Max Labels: 500
Update Frequency: Every bar close
Compatible Timeframes: All (works best on daily or higher)
Getting Started
Add to Chart: Apply indicator to any NSE stock
Configure Pairs: Adjust stock symbols as needed
Set Parameters: Customize calculation and alert settings
Create Alert: Set up Trading View alert for notifications
Monitor: Watch the table for trading opportunities
Execute: Trade based on validated signals
📞Support & Updates
This script is designed for educational and research purposes. Always:
Conduct thorough back testing
Use proper risk management
Consider transaction costs
Consult with financial advisors
Trade responsibly
Disclaimer: This indicator is for educational purposes only. Past performance does not guarantee future results. Always conduct your own research and risk assessment before trading.
Custom Checklist# Custom Checklist - Trading Preparation & Reminders
A fully customizable checklist overlay indicator for TradingView that helps traders maintain discipline and follow their trading routine systematically.
## 🎯 Purpose
This indicator serves as a visual reminder system on your charts to ensure you complete all necessary analysis steps before entering a trade. Perfect for traders who want to maintain consistency and avoid emotional or rushed trading decisions.
## ✨ Key Features
- **20 Customizable Lines**: Create your own checklist items with any text you need
- **Flexible Display Options**:
- Show/hide title header
- Toggle entire checklist on/off
- Position anywhere on chart (9 positions available)
- Adjustable text size (tiny to huge)
- **Symbol Filtering**: Option to show checklist only on specific symbols (BTC/USD, GOLD, SPX500, USOIL)
- **Customizable Appearance**:
- Background color
- Text color
- Border color
- Transparency controls
- **Clean Interface**: Empty by default - add only the items you need
## 📋 Use Cases
- **Morning Routine**: Daily market preparation checklist
- **Trade Entry Rules**: Verify all setup conditions are met
- **Risk Management**: Confirm stop-loss, position size, and exit strategy
- **Multi-Timeframe Analysis**: Ensure you checked all required timeframes
- **Technical Analysis**: Track which indicators and patterns you've reviewed
- **News & Events**: Remember to check economic calendar and news
- **Personal Rules**: Your custom trading rules and reminders
## 🎨 Customization
Every aspect is customizable:
- All 20 lines can be edited to your needs
- Only non-empty lines are displayed
- Table position adjustable to any corner or middle position
- Color scheme fully customizable to match your chart theme
- Text size scalable for different screen sizes
## 💡 How to Use
1. Add indicator to your chart
2. Open Settings > Checklist Items
3. Fill in your checklist items (Line 1, Line 2, etc.)
4. Customize colors and position in Display Settings
5. Optional: Enable "Show Only on Specific Symbols" to show on select instruments
## 🔧 Display Settings
- **Checklist Title**: Custom header for your checklist
- **Show Title Header**: Toggle title display
- **Show Checklist**: Master on/off switch
- **Symbol Filter**: Restrict display to specific trading instruments
- **Position**: 9 placement options (corners and middle positions)
- **Text Size**: 5 size options (tiny, small, normal, large, huge)
- **Colors**: Background, text, and border fully customizable
## 📝 Example Checklist Ideas
**Swing Trading:**
- Support/Resistance levels identified
- Trend direction confirmed
- Volume analysis completed
- RSI/MACD signals checked
- Risk/Reward ratio calculated
**Day Trading:**
- Pre-market review done
- Key levels marked
- Economic calendar checked
- Trading plan written
- Position size calculated
**Technical Analysis:**
- Multiple timeframe alignment
- Chart patterns identified
- Moving averages reviewed
- Fibonacci levels drawn
- Volume profile analyzed
## ⚙️ Technical Details
- Pine Script v6
- Overlay indicator (displays on main chart)
- Lightweight - no complex calculations
- No repainting
- Works on all timeframes and instruments
## 🎓 Perfect For
- Beginner traders learning systematic analysis
- Experienced traders maintaining discipline
- Anyone who wants visual trading reminders
- Traders following multi-step strategies
- Those prone to FOMO or emotional trading
---
**Note**: This is a visual tool only. It does not generate trading signals or perform analysis. It serves as a reminder checklist to help you follow your own trading process consistently.
Fibonacci Auto Retracement & HTF candles ReferenceAdvanced Higher Timeframe (HTF) Candle & Fibonacci Viewer
Overview:
The Advanced HTF Candle & Fibonacci Viewer is a professional Trading View indicator designed to help traders overlay higher timeframe price structures onto lower timeframe charts. By combining daily candle analysis with precise Fibonacci retracement levels, this tool allows traders to identify critical support and resistance zones, potential breakouts, and retracement opportunities without switching charts.
Special Thanks:
This script includes a small part of coding inspired by Zeiierman, whose work on HTF analysis provided the foundation for visualizing higher timeframe structures. Full credit to Zeiierman for their invaluable contribution to the Trading View community.
Key Features:
1. Multi-Day HTF Range Display
Automatically displays high and low of 1–7 previous days.
Highlights candle bodies and wicks for clear structure visualization.
Ideal for spotting daily ranges and breakout levels.
2. Dynamic Fibonacci Levels
Standard levels: 0%, 11.8%, 23.6%, 38.2%, 50%, 61.8%, 76.4%, 88.2%, 100%.
Optional mid-level lines for intraday support/resistance identification.
Levels adjust automatically to reflect price action direction.
3. Customizable Labels & Colors
Adjustable text size, color, transparency, and offset.
Fully customizable candle and Fibonacci colors.
Mid-level lines can be shown or hidden for a cleaner look.
4. Persistent Levels
Levels remain until the next trading session or breakout, helping track trends and retracements consistently.
5. Multi-Timeframe Optimization
Works on any chart timeframe, from 1-minute to weekly charts.
Provides higher timeframe insight while trading on lower timeframes.
Why Traders Love This Indicator:
View higher timeframe action without switching charts.
Identify high-probability entry and exit zones.
Combine with other indicators for complete market analysis.
Useful for swing traders, day traders, and scalpers alike.
Customization Options:
Number of previous days (1–7)
Show/hide mid-level lines
Show/hide labels
Customize label size, color, and offset
Customize Fibonacci and candle colors
Ideal Use Cases:
Swing Trading: Identify daily key levels for entry, exit, and stop-loss.
Day Trading: Use HTF ranges on intraday charts to spot breakouts and reversals.
Fibonacci Analysis: Locate retracement zones efficiently.
Trend Confirmation: Validate trades with higher timeframe structure.
Summary:
The Advanced HTF Candle & Fibonacci Viewer is a powerful tool for traders seeking clarity, structure, and precision. With higher timeframe insight overlaid on active charts and proper credit to Zeiierman for their HTF coding contribution, this indicator helps traders make informed, confident decisions in any market.
Demand and supplyshows basic Demand and Supply.
whenever the price Retest Demand zone -Buy
whenever the price Retest Supply zone -Sell
ATR + EMA + Sessions ProATR + EMA + Sessions Pro By Saeed Fadi to save indicator space, it,s for atr, emas, sessions etc.
580TL — NovaSenseNovaSense by 580TradingLab combines multi-EMA structure, price actions, momentum confirmation, and volatility logic to detect trend strength and early reversals with high accuracy. It filters out market noise, identifies "location zones" for optional entries, and sends timely Buy/Sell alerts when institutional momentum shifts. Designed for traders who value clarity, discipline, and precision.
Trade with clarity. Sense the trend before it flips.
ForexDada Trade LogicIdentifies Boring, Quiet, No Supply / No Demand candles. "
+ "Highlights potential 5★ setups for trading confirmation when price breaks candle highs/lows. "
+ "Helps traders spot low-volume turning points and breakout opportunities.
580TL • ApexFlip (Trend + Reversal Pro)Use EMA to find trends. Look for EMA cross, or EMA break with trends. Combine price action to find entry and set stop loss behind EMA.
3D Institutional Battlefield [SurgeGuru]Professional Presentation: 3D Institutional Flow Terrain Indicator
Overview
The 3D Institutional Flow Terrain is an advanced trading visualization tool that transforms complex market structure into an intuitive 3D landscape. This indicator synthesizes multiple institutional data points—volume profiles, order blocks, liquidity zones, and voids—into a single comprehensive view, helping you identify high-probability trading opportunities.
Key Features
🎥 Camera & Projection Controls
Yaw & Pitch: Adjust viewing angles (0-90°) for optimal perspective
Scale Controls: Fine-tune X (width), Y (depth), and Z (height) dimensions
Pro Tip: Increase Z-scale to amplify terrain features for better visibility
🌐 Grid & Surface Configuration
Resolution: Adjust X (16-64) and Y (12-48) grid density
Visual Elements: Toggle surface fill, wireframe, and node markers
Optimization: Higher resolution provides more detail but requires more processing power
📊 Data Integration
Lookback Period: 50-500 bars of historical analysis
Multi-Source Data: Combine volume profile, order blocks, liquidity zones, and voids
Weighted Analysis: Each data source contributes proportionally to the terrain height
How to Use the Frontend
💛 Price Line Tracking (Your Primary Focus)
The yellow price line is your most important guide:
Monitor Price Movement: Track how the yellow line interacts with the 3D terrain
Identify Key Levels: Watch for these critical interactions:
Order Blocks (Green/Red Zones):
When yellow price line enters green zones = Bullish order block
When yellow price line enters red zones = Bearish order block
These represent institutional accumulation/distribution areas
Liquidity Voids (Yellow Zones):
When yellow price line enters yellow void areas = Potential acceleration zones
Voids indicate price gaps where minimal trading occurred
Price often moves rapidly through voids toward next liquidity pool
Terrain Reading:
High Terrain Peaks: High volume/interest areas (support/resistance)
Low Terrain Valleys: Low volume areas (potential breakout zones)
Color Coding:
Green terrain = Bullish volume dominance
Red terrain = Bearish volume dominance
Purple = Neutral/transition areas
📈 Volume Profile Integration
POC (Point of Control): Automatically marks highest volume level
Volume Bins: Adjust granularity (10-50 bins)
Height Weight: Control how much volume affects terrain elevation
🏛️ Order Block Detection
Detection Length: 5-50 bar lookback for block identification
Strength Weighting: Recent blocks have greater impact on terrain
Candle Body Option: Use full candles or body-only for block definition
💧 Liquidity Zone Tracking
Multiple Levels: Track 3-10 key liquidity zones
Buy/Sell Side: Different colors for bid/ask liquidity
Strength Decay: Older zones have diminishing terrain impact
🌊 Liquidity Void Identification
Threshold Multiplier: Adjust sensitivity (0.5-2.0)
Height Amplification: Voids create significant terrain depressions
Acceleration Zones: Price typically moves quickly through void areas
Practical Trading Application
Bullish Scenario:
Yellow price line approaches green order block terrain
Price finds support in elevated bullish volume areas
Terrain shows consistent elevation through key levels
Bearish Scenario:
Yellow price line struggles at red order block resistance
Price falls through liquidity voids toward lower terrain
Bearish volume peaks dominate the landscape
Breakout Setup:
Yellow price line consolidates in flat terrain
Minimal resistance (low terrain) in projected direction
Clear path toward distant liquidity zones
Pro Tips
Start Simple: Begin with default settings, then gradually customize
Focus on Yellow Line: Your primary indicator of current price position
Combine Timeframes: Use the same terrain across multiple timeframes for confluence
Volume Confirmation: Ensure terrain peaks align with actual volume spikes
Void Anticipation: When price enters voids, prepare for potential rapid movement
Order Blocks & Voids Architecture
Order Blocks Calculation
Trigger: Price breaks fractal swing points
Bullish OB: When close > swing high → find lowest low in lookback period
Bearish OB: When close < swing low → find highest high in lookback period
Strength: Based on price distance from block extremes
Storage: Global array maintains last 50 blocks with FIFO management
Liquidity Voids Detection
Trigger: Price gaps exceeding ATR threshold
Bull Void: Low - high > (ATR200 × multiplier)
Bear Void: Low - high > (ATR200 × multiplier)
Validation: Close confirms gap direction
Storage: Global array maintains last 30 voids
Key Design Features
Real-time Updates: Calculated every bar, not just on last bar
Global Persistence: Arrays maintain state across executions
FIFO Management: Automatic cleanup of oldest entries
Configurable Sensitivity: Adjustable lookback periods and thresholds
Scientific Testing Framework
Hypothesis Testing
Primary Hypothesis: 3D terrain visualization improves detection of institutional order flow vs traditional 2D charts
Testable Metrics:
Prediction Accuracy: Does terrain structure predict future support/resistance?
Reaction Time: Faster identification of key levels vs conventional methods
False Positive Reduction: Lower rate of failed breakouts/breakdowns
Control Variables
Market Regime: Trending vs ranging conditions
Asset Classes: Forex, equities, cryptocurrencies
Timeframes: M5 to H4 for intraday, D1 for swing
Volume Conditions: High vs low volume environments
Data Collection Protocol
Terrain Features to Quantify:
Slope gradient changes at price inflection points
Volume peak clustering density
Order block terrain elevation vs subsequent price action
Void depth correlation with momentum acceleration
Control Group: Traditional support/resistance + volume profile
Experimental Group: 3D Institutional Flow Terrain
Statistical Measures
Signal-to-Noise Ratio: Terrain features vs random price movements
Lead Time: Terrain formation ahead of price confirmation
Effect Size: Performance difference between groups (Cohen's d)
Statistical Power: Sample size requirements for significance
Validation Methodology
Blind Testing:
Remove price labels from terrain screenshots
Have traders identify key levels from terrain alone
Measure accuracy vs actual price action
Backtesting Framework:
Automated terrain feature extraction
Correlation with future price reversals/breakouts
Monte Carlo simulation for significance testing
Expected Outcomes
If hypothesis valid:
Significant improvement in level prediction accuracy (p < 0.05)
Reduced latency in institutional level identification
Higher risk-reward ratios on terrain-confirmed trades
Research Questions:
Does terrain elevation reliably indicate institutional interest zones?
Are liquidity voids statistically significant momentum predictors?
Does multi-timeframe terrain analysis improve signal quality?
How does terrain persistence correlate with level strength?
LuxAlgo BigBeluga hapharmonic
Dual FUT/Spot price with next monthly expiryThis Pine Script dashboard indicator is specifically designed for pair trading strategies in Indian futures markets (NSE). Let me break down how it facilitates pair trading:
Core Pair Trading Concept
The script monitors two correlated stocks simultaneously (Symbol A and Symbol B), comparing their:
Spot prices vs Futures prices
Current month futures vs Next month futures
Premium/discount relationships
Key Pair Trading Features
1. Dual Symbol Monitoring
symbolA = "NSE:TCS" (Default)
symbolB = "NSE:INFY" (Default)
Allows traders to watch two stocks in the same sector (like TCS and Infosys in IT) to identify relative value opportunities.
2. Basis Analysis for Each Stock
The indicator calculates the basis (difference between futures and spot):
Price Difference: FUT - SPOT
Premium/Discount %: ((FUT - SPOT) / SPOT) × 100
This helps identify when one stock's futures are relatively more expensive than the other's.
3. Multi-Expiry View
Near Month Futures (1!): Current active contract
Next Month Futures (2!): Upcoming contract
This enables calendar spread analysis within each stock and helps anticipate rollover effects.
4. Comparative Table
The detailed table displays side-by-side:
Symbol Spot Price Near Future Near Diff (%)Next Monthly Next Diff (%)Lot SizeTCS₹3,500₹3,520+20 (+0.57%)₹3,535+35 (+1.00%)125INFY₹1,450₹1,455+5 (+0.34%)₹1,460+10 (+0.69%)600
5. Lot Size Integration
Critical for position sizing in pair trades - the indicator fetches actual contract lot sizes, enabling proper hedge ratio calculations.
Pair Trading Strategies Enabled
Strategy 1: Basis Divergence Trading
When TCS futures trade at +0.8% premium and INFY at +0.2%
Trade: Short TCS futures, Long INFY futures (betting on convergence)
The indicator highlights these differences with color-coded cells
Strategy 2: Calendar Spread Arbitrage
Compare near month vs next month premium for each stock
If TCS shows wider calendar spread than INFY, potential arbitrage exists
Trade the relative calendar spread difference
Strategy 3: Premium/Discount Reversal
Monitor which stock moves from premium to discount (or vice versa)
Color indicators (green/red) make this immediately visible
Enter pairs when relative premium relationships normalize
Strategy 4: Lot-Adjusted Pair Trading
Use lot size data to create market-neutral positions
Example: If TCS lot = 125 and INFY lot = 600
Ratio = 600/125 = 4.8:1 for rupee-neutral positioning
Visual Trading Cues
Green cells: Futures at premium (contango)
Red cells: Futures at discount (backwardation)
Purple values: Next month contracts
Yellow highlights: Spot prices
Practical Pair Trading Example
Scenario: Both stocks in same sector, historically correlated
Normal state: Both show +0.5% premium
Divergence: TCS jumps to +1.2%, INFY stays at +0.5%
Trade Signal:
Short TCS futures (expensive)
Long INFY futures (relatively cheap)
Exit: When premiums converge back to similar levels
Hedge ratio: Use lot sizes to maintain proper exposure balance
Advantages for Pair Traders
✓ Single-screen monitoring of both legs
✓ Real-time basis calculations eliminate manual math
✓ Multi-timeframe view (near + next month)
✓ Automatic lot size fetching for position sizing
✓ Visual alerts through color coding
✓ Percentage normalization for easy comparison
This indicator essentially transforms raw price data into actionable pair trading intelligence by highlighting relative value discrepancies between correlated assets in the futures market.
Enjoy!!
Connors Double Seven (with options)Rules (original, long-only)
Trade only when Close > 200-day SMA.
Entry: Buy when Close makes a 7-day low.
Exit: Sell when Close makes a 7-day high.






















