Lakshman Rekha [CSN]Description:
Lakshman Rekha is a powerful and intelligently designed indicator that automatically identifies Support and Resistance levels using advanced mathematical algorithms based on the Gann Fortune methodology. It dynamically calculates and plots Daily, Weekly, Monthly, and Yearly levels to help traders recognize crucial price zones, potential reversal areas, and breakout points with exceptional accuracy.
This indicator seamlessly integrates the Gann Fortune Algorithm with the Relative Strength Index (RSI) and the Simple Moving Average (SMA) to deliver a well-structured and reliable trading system.
It uses the following configurations on a 5-minute timeframe:
SMA (14-period)
RSI (10-period)
Trading Approach:
In Nifty, traders are advised to book profits after a 60-point move or apply a trailing stop to capture extended trends.
In Bank Nifty, the recommended target or trailing level is 100 points for optimal trade management.
Lakshman Rekha offers traders a balanced combination of algorithmic precision, technical confluence, and price-action reliability.
We are providing free access to this indicator, allowing users to test, experience, and contribute valuable insights to enhance its performance.
This indicator is ideally suited for intraday and short-term swing traders seeking a systematic approach that blends mathematical structure, momentum analysis, and trend confirmation for consistent trading outcomes.
지표 및 전략
SFC Bollinger Band and Bandit概述 (Overview)
SFC 布林通道與海盜策略 (SFC Bollinger Band and Bandit Strategy) 是一個基於 Pine Script™ v6 的技術分析指標,結合布林通道 (Bollinger Bands)、移動平均線 (Moving Averages) 以及布林海盜 (Bollinger Bandit) 交易策略,旨在為交易者提供多時間框架的趨勢分析與進出場訊號。該腳本支援風險管理功能,並提供視覺化圖表與交易訊號提示,適用於多種金融市場。
This script, written in Pine Script™ v6, combines Bollinger Bands, Moving Averages, and the Bollinger Bandit strategy to provide traders with multi-timeframe trend analysis and entry/exit signals. It includes risk management features and visualizes data through charts and trading signals, suitable for various financial markets.
功能特點 (Key Features)
布林通道 (Bollinger Bands)
提供可調整的標準差參數 (σ1, σ2),支援多層布林通道顯示。
進場訊號基於價格穿越布林通道上下軌,並結合連續K線確認機制。
Provides adjustable standard deviation parameters (σ1, σ2) for multi-layer Bollinger Bands display.
Entry signals are based on price crossing the upper/lower bands, combined with a consecutive bar confirmation mechanism.
移動平均線 (Moving Averages)
支援簡單移動平均線 (SMA) 或指數移動平均線 (EMA),可自訂快、中、慢線週期。
Supports Simple Moving Average (SMA) or Exponential Moving Average (EMA) with customizable fast, medium, and slow line periods.
布林海盜策略 (Bollinger Bandit Strategy)
基於變動率 (ROC) 與布林通道動態止損,提供做多與做空訊號。
包含動態止損均線與平倉天數設定,增強交易靈活性。
Utilizes Rate of Change (ROC) and Bollinger Bands with dynamic stop-loss for long and short signals.
Includes dynamic stop-loss moving average and liquidation days for enhanced trading flexibility.
多時間框架分析 (Multi-Timeframe Analysis)
支援六個時間框架 (5分、15分、1小時、4小時、日線、週線) 的趨勢分析。
通過表格顯示各時間框架的連續上漲/下跌趨勢,輔助交易決策。
Supports trend analysis across six timeframes (5m, 15m, 1h, 4h, daily, weekly).
Displays consecutive up/down trends in a table to aid decision-making.
風險管理 (Risk Management)
提供基於 ATR 或布林通道的停利/停損設定。
自動計算交易手數,根據報價貨幣匯率調整風險敞口。
Offers take-profit/stop-loss settings based on ATR or Bollinger Bands.
Automatically calculates trading lots, adjusting risk exposure based on quote currency exchange rates.
視覺化與提示 (Visualization and Alerts)
繪製布林通道、移動平均線、海盜策略動態止損線及交易訊號。
提供多時間框架趨勢表格、交易手數標籤及浮水印。
支援交易訊號快訊,方便即時監控。
Plots Bollinger Bands, Moving Averages, Bandit strategy stop-loss lines, and trading signals.
Includes multi-timeframe trend tables, trading lot labels, and watermark.
Supports alert conditions for real-time trade monitoring.
使用說明 (Usage Instructions)
設置參數 (Parameter Setup)
布林通道 (Bollinger Bands): 可調整週期 (預設21)、標準差 (σ1=1, σ2=2) 及停利/停損依據 (ATR 或 BAND)。
移動平均線 (Moving Averages): 可選擇顯示快線 (10)、中線 (20)、慢線 (60),並切換 SMA/EMA。
布林海盜 (Bollinger Bandit): 調整通道週期 (50)、平倉均線週期 (50) 及 ROC 週期 (30)。
時間框架 (Timeframes): 自訂六個時間框架,預設為 5分、15分、1小時、4小時、日線、週線。
Adjust Bollinger Band period (default 21), standard deviations (σ1=1, σ2=2), and take-profit/stop-loss basis (ATR or BAND).
Configure Moving Averages (fast=10, medium=20, slow=60) and toggle SMA/EMA.
Set Bollinger Bandit parameters: channel period (50), liquidation MA period (50), ROC period (30).
Customize six timeframes (default: 5m, 15m, 1h, 4h, daily, weekly).
交易訊號 (Trading Signals)
買入訊號 (Buy): 價格穿越下軌且滿足連續K線條件。
賣出訊號 (Sell): 價格穿越上軌且滿足連續K線條件。
海盜策略訊號: 基於 ROC 與布林通道穿越,結合動態止損。
Buy signal: Price crosses below lower band with consecutive bar confirmation.
Sell signal: Price crosses above upper band with consecutive bar confirmation.
Bandit strategy signals: Based on ROC and band crossings with dynamic stop-loss.
視覺化 (Visualization)
布林通道以不同顏色顯示上下軌與中軌。
移動平均線以快、中、慢線區分顏色。
趨勢表格顯示各時間框架的趨勢狀態 (🔴上漲, 🟢下跌, ⚪中性)。
海盜策略顯示動態止損線與交易狀態。
Bollinger Bands display upper, lower, and middle bands in distinct colors.
Moving Averages use different colors for fast, medium, and slow lines.
Trend table shows timeframe trends (🔴 up, 🟢 down, ⚪ neutral).
Bandit strategy displays dynamic stop-loss and trading status.
MACD Filter Test - MTF Alignment with Scoring System# MACD Multi-Timeframe Scoring System
## Overview
**MACD MTF Scoring** is an advanced, multi-timeframe trading indicator that combines classical MACD analysis with a sophisticated scoring algorithm to generate high-quality trading signals. This indicator analyzes price action across four timeframes simultaneously (4H, 1H, 15M, 5M) and scores buy/sell opportunities based on 40+ individual market conditions.
### Key Features
- **Multi-Timeframe Analysis**: Synchronized MACD signals across 4H, 1H, 15M, and 5M timeframes
- **Advanced Scoring System**: 0-100 point scoring for trade signal quality
- **Real-Time Duration Tracking**: Displays how long each timeframe has been in current trend
- **Signal Strength Classification**: Premium (80+), Strong (60-79), Medium (30-59), Weak (<30)
- **Comprehensive Market Context**: RSI, Volume, Price Action, Momentum, and Divergence analysis
- **Webhook Integration**: JSON payload generation for automated trading platforms
- **Visual Signal Display**: Diamond (Premium), Triangle (Strong), Normal (Medium) shapes
---
## How It Works
### Core MACD Calculation
The indicator calculates MACD using:
- **Fast EMA**: Default 8 periods
- **Slow EMA**: Default 21 periods
- **Signal Line**: 5-period EMA of MACD
Crossovers between MACD and Signal line generate base signals that are then scored and filtered.
### Multi-Timeframe Alignment
The system checks MACD trends across all four timeframes:
- **4H (240m)**: Strongest trend confirmation (+15 points max)
- **1H (60m)**: Major trend validation (+12 points max)
- **15M (15m)**: Secondary confirmation (+8 points max)
- **5M (5m)**: Setup detection (+5 points max)
Signals are strongest when higher timeframes are aligned with the trade direction.
---
## Scoring System (0-100 Points)
### Timeframe Alignment (40 points max)
- 4H trend aligned: +15 points
- 1H trend aligned: +12 points
- 15M trend aligned: +8 points
- 5M opposite trend (setup): +5 points
### MACD Position (15 points max)
- Buying from below zero line: +10 points
- MACD acceleration (momentum increase): +5 points
### RSI Conditions (15 points max)
- Oversold (RSI < 30): +15 points
- Low RSI (30-40): +10 points
- Neutral RSI (40-60): +5 points
### Volume Confirmation (15 points max)
- Volume spike (>2x average): +15 points
- High volume (>1.5x average): +10 points
- Normal volume (0.8-1.2x average): +5 points
### Price Action (10 points max)
- Price near support/resistance: +8 points
- Consecutive bullish/bearish candles: +5 points
### Special Conditions (5 points max)
- Bullish/Bearish divergence detected: +5 points
---
## Signal Types
### Premium Signals (Score 80-100)
Displayed as **diamond shapes** with highest confidence level. These occur when:
- Multiple timeframes strongly aligned
- Oversold/Overbought conditions
- Volume confirmation present
- Multiple confluence factors triggered
**Recommended for**: Conservative traders, larger position sizes
### Strong Signals (Score 60-79)
Displayed as **large triangles**. Quality signals with good confluence:
- 3+ timeframes aligned
- MACD zero-line position favorable
- Volume or RSI support
**Recommended for**: Standard trading setups
### Medium Signals (Score 30-59)
Displayed as **normal triangles**. Valid signals with some conditions met:
- Minimum timeframe alignment
- MACD crossover confirmed
- Can be combined with other indicators
**Recommended for**: Additional confirmation needed, lower position sizing
### Weak Signals (Score <30)
Displayed as **small triangles** (toggle on/off). Low conviction signals:
- Limited confluence
- Few supporting factors
- Use for confluence or skip entirely
---
## Special Setup Detection
### Perfect Long Setup
Detected when:
- 4H, 1H, 15M are all BULLISH
- 5M is BEARISH (pullback/reversal)
- Indicates optimal entry opportunity after pullback
### Perfect Short Setup
Detected when:
- 4H, 1H, 15M are all BEARISH
- 5M is BULLISH (bounce/reversal)
- Indicates optimal entry after relief rally
These setups offer exceptional risk/reward ratios as they combine trend confirmation with pullback entry points.
---
## Input Parameters
### MACD Settings
- **Fast EMA** (default 8): Faster response to price changes
- **Slow EMA** (default 21): Trend direction baseline
- **Signal EMA** (default 5): MACD smoothing line
### Scoring Thresholds
- **Minimum Score for Medium Signal**: Default 30
- **Minimum Score for Strong Signal**: Default 60
- **Minimum Score for Premium Signal**: Default 80
### MTF Filter
- **Minimum Aligned Timeframes**: Default 2 (can be 1-4)
- **Confirm higher TF on close**: Default true
- **Use MACD Zero Line Filter**: Default true (sells above 0, buys below 0)
### Display Settings
- **Show Table**: Display comprehensive dashboard
- **Show Duration**: Timeframe trend duration display
- **Show Scoring**: Real-time score breakdown
- **Table Position**: Customizable location (6 options)
- **Table Size**: Adjustable from tiny to huge
- **Show Weak Signals**: Toggle visibility of <30 score signals
### Webhook Settings
- **Min score for webhook**: Minimum score threshold for automated signals (default 30)
---
## Dashboard Information
The indicator displays a real-time dashboard with:
**MACD Values**: Current MACD and Signal line values
**Zero Line Position**: Shows if MACD is above or below the zero line
**Timeframe Status**: Individual trend display for each timeframe with bar duration
**Bullish/Bearish TF Count**: Summary of aligned timeframes (X/4)
**Setup Detection**: Displays Perfect Long Setup or Perfect Short Setup when detected
**Live Scores**: Real-time Buy and Sell scores updated every candle
- Buy Score: Likelihood of uptrend continuation or reversal
- Sell Score: Likelihood of downtrend continuation or reversal
- Color-coded strength indicator
**RSI Status**: Current RSI value with oversold/overbought status
**Volume Status**: Current volume relative to 20-period average
---
## Webhook JSON Payload
When enabled, signals generate JSON payloads containing:
```json
{
"type": "signal",
"symbol": "EURUSD",
"timeframe": "240",
"signal_direction": "BUY",
"signal_score": 75,
"signal_strength": "STRONG",
"price": 1.0850,
"macd": 0.00125,
"signal_line": 0.00089,
"rsi": 28.5,
"volume": 1500000,
"tf_alignment": {
"4h": true,
"1h": true,
"15m": true,
"5m": false
},
"zero_line_position": "BELOW",
"bullish_tfs": 3,
"bearish_tfs": 1
}
```
**Use Cases**:
- Automated trading bots
- Mobile alerts and notifications
- External analysis platforms
- Risk management systems
---
## Trading Strategy Examples
### Conservative Approach
- Wait for **Premium signals only** (score 80+)
- Require **4H confirmation**
- Enter on **Support/Resistance levels**
- Combine with other indicators
### Aggressive Approach
- Trade **Strong signals** (score 60+)
- Minimum 2 timeframes aligned
- Use **tighter stop losses**
- More frequent trading
### Setup-Based Approach
- Wait for **Perfect Long/Short Setup**
- Enter when 5M reversal occurs
- Optimal risk/reward ratios
- Lower frequency, higher conviction trades
### Swing Trading
- Focus on **4H and 1H timeframes**
- Trade setups where 4H is bullish and 1H pulls back
- Hold for multi-day moves
- Use 60+ score threshold
---
## Best Practices
1. **Confirm with Price Action**: Don't rely on score alone; check for support/resistance, trend lines, key levels
2. **Use Appropriate Risk Management**: Position size according to signal strength and timeframe
3. **Monitor Volume**: Strong signals should have volume confirmation
4. **Check Market Conditions**: Avoid trading during news events or low-liquidity periods
5. **Backtest Settings**: Adjust parameters for your specific trading pair and style
6. **Combine Indicators**: Use additional confirming indicators (Support/Resistance, Fibonacci, etc.)
7. **Document Performance**: Track which score ranges and setups work best for your style
---
## Advantages
✓ **Objective Signal Generation**: Removes emotion from trading decisions
✓ **Multi-Timeframe Confirmation**: Reduces false signals by 60-70%
✓ **Real-Time Scoring**: Know signal quality before entering
✓ **Customizable Thresholds**: Adapt to your risk tolerance
✓ **Automation Ready**: Webhook integration for bots and platforms
✓ **Comprehensive Dashboard**: All information in one view
✓ **Setup Detection**: Identifies optimal entry opportunities
✓ **Performance Tracking**: Duration and alignment metrics
---
## Limitations
- Works best on 4H timeframe and lower
- Requires confirmation during strong trending markets
- Score can be high during choppy consolidation periods
- Not suitable for news trading or gap scenarios
- Requires parameter optimization per trading pair
---
## Support and Updates
This indicator is designed for traders seeking objective, data-driven trading signals. Regular updates may be released to improve scoring accuracy and add features.
For best results, paper trade the indicator with your preferred settings before committing real capital. Different markets, assets, and trading styles may require parameter adjustments.
---
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Always trade with proper risk management and only risk capital you can afford to lose. Test thoroughly before live trading.
FVG Bibliothek BeispielZeigt die Fair Value Gap für Long und Short und löscht die geschlossenen FVGaps automatisch.
Momentum/Breakout Strategy A professional-grade trend–momentum hybrid strategy designed for high–timeframe precision and long-term consistency.
It combines exponential moving averages (EMA 20/50) to define directional bias, RSI and MACD to confirm momentum strength, and a manually coded ADX filter to validate market trend quality.
ATR-based stop placement and trailing mechanisms control downside volatility, while an optional daily EMA trend filter aligns trades with higher–timeframe direction for smoother performance.
DM Order BlocksBullish setup:
Wait for a bullish OB to form (price broke structure upward).
Wait for price to return into that blue box (mitigation).
Drop to a lower timeframe (e.g., from 5 min → 1 min) and look for:
Bullish engulfing candle
BOS / liquidity sweep inside OB
Enter long near the OB’s low or midpoint.
Stop loss below OB’s low.
Target previous highs or the next bearish OB above.
Bearish setup:
Wait for a bearish OB to form (price broke down).
Wait for price to retrace into the red box.
Look for a rejection candle or structure shift down.
Enter short near the OB’s high or midpoint.
Stop loss above the OB’s high.
Target previous lows or next bullish OB below.
Timeframe Combination Ideas
Style Chart Confirmation
Scalping 1 min or 3 min Entry on 15 sec or 30 sec
Day Trade 5 min or 15 min Entry on 1 min or 3 min
Swing 1 h Entry on 5 min or 15 min
Example Strategy
Example (Scalping):
On the 1-min chart, you see a new blue internal OB.
Price pulls back into it.
You see a small bullish engulfing candle at the OB’s bottom.
You enter long.
Stop loss just below the box.
Target 2×–3× risk reward (often around the previous swing high).
High Breakout Strategy SmartMoneybreakout_lookback = input.int(52, title="Breakout Lookback Period", minval=1)
// Trend & Trailing Stop Filter
ema_length = input.int(15, title="EMA Length", minval=1)
// Risk Management
risk_percent = input.float(6.0, title="Risk Stop-Loss (%)", minval=0.1)
Outside Candle Session Breakout [CHE]Outside Candle Session Breakout
Session - anchored HTF levels for clear market-structure and precise breakout context
Summary
This indicator is a relevant market-structure tool. It anchors the session to the first higher-timeframe bar, then activates only when the second bar forms an outside condition. Price frequently reacts around these anchors, which provides precise breakout context and a clear overview on both lower and higher timeframes. Robustness comes from close-based validation, an adaptive volatility and tick buffer, first-touch enforcement, optional retest, one-signal-per-session, cooldown, and an optional trend filter.
Pine version: v6. Overlay: true.
Motivation: Why this design?
Short-term breakout tools often trigger during noise, duplicate within the same session, or drift when volatility shifts. The core idea is to gate signals behind a meaningful structure event: a first-bar anchor and a subsequent outside bar on the session timeframe. This narrows attention to structurally important breaks while adaptive buffering and debouncing reduce false or mid-run triggers.
What’s different vs. standard approaches?
Baseline: Simple high-low breaks or fixed buffers without session context.
Architecture: Session-anchored first-bar high/low; outside-bar gate; close-based confirmation with an adaptive ATR and tick buffer; first-touch enforcement; optional retest window; one-signal-per-session and cooldown; optional EMA trend and slope filter; higher-timeframe aggregation with lookahead disabled; themeable visuals and a range fill between levels.
Practical effect: Cleaner timing at structurally relevant levels, fewer redundant or late triggers, and better multi-timeframe situational awareness.
How it works (technical)
The chart timeframe is mapped to an analysis timeframe and a session timeframe.
The first session bar defines the anchor high and low. The setup becomes active only after the next bar forms an outside range relative to that first bar.
While active, the script tracks these anchors and checks for a breakout beyond a buffered threshold, using closing prices or wicks by preference.
The buffer scales with volatility and is limited by a minimum tick floor. First-touch enforcement avoids mid-run confirmations.
Optional retest requires a pullback to the raw anchor followed by a new close beyond the buffered level within a user window.
Optional trend gating uses an EMA on the analysis timeframe, including an optional slope requirement and price-location check.
Higher-timeframe data is requested with lookahead disabled. Values can update during a forming higher-timeframe bar; waiting and confirmation mitigate timing shifts.
Parameter Guide
Enable Long / Enable Short — Direction toggles. Default: true / true. Reduces unwanted side.
Wait Candles — Minimum bars after outside confirmation before entries. Default: five. More waiting increases stability.
Close-based Breakout — Confirm on candle close beyond buffer. Default: true. For wick sensitivity, disable.
ATR Buffer — Enables adaptive volatility buffer. Default: true.
ATR Multiplier — Buffer scaling. Default: zero point two. Increase to reduce noise.
Ticks Buffer — Minimum buffer in ticks. Default: two. Protects in quiet markets.
Cooldown Bars — Blocks new signals after a trigger. Default: three.
One Signal per Session — Prevents duplicates within a session. Default: true.
Require Retest — Pullback to raw anchor before confirming. Default: false.
Retest Window — Bars allowed for retest completion. Default: five.
HTF Trend Filter — EMA-based gating. Default: false.
EMA Length — EMA period. Default: two hundred.
Slope — Require EMA slope direction. Default: true.
Price Above/Below EMA — Require price location relative to EMA. Default: true.
Show Levels / Highlight Session / Show Signals — Visual controls. Default: true.
Color Theme — “Blue-Green” (default), “Monochrome”, “Earth Tones”, “Classic”, “Dark”.
Time Period Box — Visibility, size, position, and colors for the info box. (Optional)
Reading & Interpretation
The two level lines represent the session’s first-bar high and low. The filled band illustrates the active session range.
“OUT” marks that the outside condition is confirmed and the setup is live.
“LONG” or “SHORT” appears only when the breakout clears buffer, debounce, and optional gates.
Background tint indicates sessions where the setup is valid.
Alerts fire on confirmed long or short breakout events.
Practical Workflows & Combinations
Trend-following: Keep close-based validation, ATR buffer near the default, one-signal-per-session enabled; add EMA trend and slope for directional bias.
Retest confirmation: Enable retest with a short window to prioritize cleaner continuation after a pullback.
Lower-timeframe scalping: Reduce waiting and cooldown slightly; keep a small tick buffer to filter micro-whips.
Swing and position context: Increase ATR multiplier and waiting; maintain once-per-session to limit duplicates.
Timeframe Tiers and Trader Profiles
The script adapts its internal mapping based on the chart timeframe:
Under fifteen minutes → Analysis: one minute; Session: sixty minutes. Useful for scalpers and high-frequency intraday reads.
Between fifteen and under sixty minutes → Analysis: fifteen minutes; Session: one day. Suits day traders who need intraday alignment to the daily session.
Between sixty minutes and under one day → Analysis: sixty minutes; Session: one week. Serves intraday-to-swing transitions and end-of-day planning.
Between one day and under one week → Analysis: two hundred forty minutes; Session: two weeks. Fits swing traders who monitor multi-day structure.
Between one week and under thirty days → Analysis: one day; Session: three months. Supports position traders seeking quarterly context.
Thirty days and above → Analysis: one day; Session: twelve months. Provides a broad annual anchor for macro context.
These tiers are designed to keep anchors meaningful across regimes while preserving responsiveness appropriate to the trader profile.
Behavior, Constraints & Performance
Signals can be validated on closed bars through close-based logic; enabling this reduces intrabar flicker.
Higher-timeframe values may evolve during a forming bar; waiting parameters and the outside-bar gate reduce, but do not remove, this effect.
Resource footprint is light; the script uses standard indicators and a single higher-timeframe request per stream.
Known limits: rare setups during very quiet periods, sensitivity to gaps, and reduced reliability on illiquid symbols.
Sensible Defaults & Quick Tuning
Start with close-based validation on, ATR buffer on with a multiplier near zero point two, tick buffer two, cooldown three, once-per-session on.
Too many flips: increase the ATR multiplier and cooldown; consider enabling the EMA filter and slope.
Too sluggish: reduce the ATR multiplier and waiting; disable retest.
Choppy conditions: keep close-based validation, increase tick buffer, shorten the retest window.
What this indicator is—and isn’t
This is a visualization and signal layer for session-anchored breakouts with stability gates. It is not a complete trading system, risk framework, or predictive engine. Combine it with structured analysis, position sizing, and disciplined risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Valuation 2.0Valuation 2.0 Indicator
The Valuation 2.0 indicator is a powerful and customizable tool designed for traders seeking to assess the relative valuation of an asset against up to four correlated instruments (e.g., DXY, GC1!, ZB1!, or sector ETFs like XLK). Built on the principles of Larry Williams' valuation methods, it provides a visual and data-driven approach to identify overvalued ("Caro") and undervalued ("Barato") conditions, helping traders make informed decisions across various markets such as forex, commodities, bonds, or equities.
Key Features
1. Relative Valuation Calculation
Core Mechanism: Calculates a valuation index by comparing the asset's price to correlated instruments using a ratio-based formula, normalized between 0 and 100.
EMA-Based Smoothing: Utilizes short-term (default: 2 periods) and long-term (default: 22 periods) Exponential Moving Averages (EMAs) to derive a relative valuation index, with a lookback period of 156 bars (approximately 3 years of weekly data) for normalization.
Custom Timeframe: Option to use a custom timeframe (e.g., weekly) or the chart's default timeframe for calculations.
2. Flexible Asset Selection
Supports up to four correlated instruments (default: DXY, GC1!, ZB1!, with the fourth slot disabled by default for sector ETFs like XLK).
Users can enable/disable each instrument individually via the "Inputs" tab, allowing tailored analysis for specific markets or strategies.
3. Customizable Valuation Levels
Manual Levels: Fixed thresholds for overvaluation (85 and 95), undervaluation (15 and 5), neutral (50), and intermediate levels (67.5 and 32.5) for consistent analysis.
Automatic Levels: Dynamically calculated levels based on recent price action, using a lookback period (default: 50 bars) and customizable multipliers for adaptability to market conditions.
Visual Feedback: Levels are plotted as horizontal lines with customizable colors and opacities, and overvaluation/undervaluation zones are filled for quick visual interpretation.
4. Informative Table
Displays a table summarizing each active instrument's details:
Columns: Asset (ticker), Value (current valuation index), Status ("Caro" for overvalued, "Barato" for undervalued, "Normal" otherwise), and Color (visual indicator).
Footer Count: Shows the number of active instruments in overvalued ("Caro: X of Y") or undervalued ("Barato: Z of Y") states, only displaying counts greater than 0 for clarity.
Customization: Adjustable table position (default: Top Right), text size (default: Small), header color, and text color via the "Inputs" tab.
5. Visual Styling
Index Lines: Each instrument's valuation index is plotted with distinct colors for overvalued (#FF0000), undervalued (#16e520), and normal states (customizable, default: #9C27B0 for Index 1, #FF9800 for Index 2, #FFFFFF for Index 3).
Levels and Zones:
Overvaluation Level 1: #f23645
Overvaluation Level 2: #2962ff (60% opacity)
Undervaluation Level 1: #4caf50
Undervaluation Level 2: #2962ff (60% opacity)
Neutral Level: #b8b8b8 (50% opacity)
Intermediate Levels: #3d3d3d (90% opacity)
Overvaluation Zone: #f23645 (10% opacity)
Undervaluation Zone: #4caf50 (10% opacity)
All colors and opacities are editable in the "Style" tab for personalized visualization.
6. Use Cases
Cross-Market Analysis: Ideal for comparing an asset's valuation against indices, commodities, or bonds (e.g., analyzing BTC against DXY, GC1!, and ZB1!).
Sector ETF Integration: Supports sector ETFs (e.g., XLK for tech stocks) to assess relative performance within a sector.
Multi-Timeframe Flexibility: Suitable for day traders, swing traders, or long-term investors by adjusting the timeframe and lookback parameters.
How to Use
Add to Chart: Apply the indicator to any chart in TradingView.
Configure Inputs:
Select correlated instruments in the "Seleção de Ativos" section (default: DXY, GC1!, ZB1!).
Choose manual or automatic levels in the "Níveis de Valuation" section.
Adjust table settings (position, text size, colors) in the "Configurações de Tabela" section.
Customize Style: Modify colors and opacities for index lines, levels, and zones in the "Style" tab.
Interpret Results:
Monitor the plotted lines for each instrument to identify overvalued (>85 or dynamic) or undervalued (<15 or dynamic) conditions.
Use the table for a quick overview of each instrument's status and the footer count for a summary of overvalued/undervalued assets.
Notes
Default Settings: Optimized for three active instruments (DXY, GC1!, ZB1!) with the fourth (ETF) disabled, but fully customizable.
Performance: Designed to compile efficiently in Pine Script v6, with no external dependencies.
Best Practices: Test the indicator on your preferred assets and timeframes to fine-tune levels and multipliers for optimal results.
Enjoy the Valuation 2.0 indicator, and enhance your trading strategy with precise, visually intuitive valuation insights! 🚀
kunalin+KICloud+IndexV2kunalin+KICloud+IndexV2 combines multiple visual and analytical tools into one script — showing a clean watermark, 52-week highs/lows, EMA cloud, index base stats, and adaptive SMAs (50/150/200 on daily, 10W on weekly). Designed for multi-timeframe clarity and professional chart presentation
KI-StageSpot V2KI-StageSpot V2 is a stage analysis and base-tracking tool that overlays key moving averages, highlights crossovers, and marks base highs, lows, and breakouts — now visible on both weekly and daily charts. It also displays each base’s depth and duration stats with customizable labels, alerts, and styling options.
Settings:
1. Start Date → Manually select:
→ After Stage 1 lockout rally, or
→ 1 week before Stage 2’s first base
2. End Date → Choose up to your desired review point (for backtesting).
3. Label View → Compact or Expanded
4. Alert Levels → Identify and adjust for faulty bases
PSP by EleventradesPSP INDICATOR:
this is a free indicator i built that plots psp (precision swing point) on the chart in correlation with the related assets.
i’ve adjusted every setting and fixed every bug myself.
High Breakout Strategy SmartMoney// --- 1. INPUTS & CONFIGURATION ---
// Breakout
breakout_lookback = input.int(52, title="Breakout Lookback Period", minval=1)
// Trend & Trailing Stop Filter
ema_length = input.int(15, title="Stop EMA Length", minval=1)
// Risk Management
risk_percent = input.float(6.0, title="Risk Stop-Loss (%)", minval=0.1)
GC1-XAUUSD Premium Monitor <SunanLabs>Sunan Labs – GC1–XAUUSD Premium (Standard Edition)
This indicator compares COMEX Gold Futures (GC1!) with Spot Gold (XAUUSD) to reveal market regime shifts: Contango (Futures > Spot), Backwardation (Futures < Spot), or Parity (neutral).
Metrics shown:
• Status – Current regime (Contango, Backwardation, or Parity)
• Premium (USD) – Price difference in USD per ounce
• Premium (%) – Relative spread between GC1! and XAUUSD
• Sparkline – 24-bar mini chart of premium history
• Range Position – Shows where the current premium sits in its recent range (0–100%). Near highs = stretched, near lows = compressed.
• Futures & Spot – Latest closing prices for GC1! and XAUUSD
• Alerts – Triggered when premium crosses thresholds or regime shifts occur
Interpretation:
• Contango – Market expects higher future prices; spot may cool.
• Backwardation – Strong near-term demand; spot likely to rise.
• Parity – Neutral zone or transition period.
Includes dynamic alerts, customizable display, and detailed status labels.
Developed by Sunan Labs
Contact: wali9@hotmail.com
© 2025 Sunan Labs – Creative Standard License (CSL-2025)
CVD with Divergences and Alerts (Subwindow)This indicator calculates the Cumulative Volume Delta (CVD) to visualize buying and selling pressure, and automatically detects regular and hidden divergences between price and volume flow. It also includes optional alerts for real-time trade signal generation.
Core Logic:
• Cumulative Volume Delta (CVD):
Tracks the cumulative difference between buy and sell volume. Buy volume is defined as volume on bars where the close ≥ open; sell volume when close < open.
This reveals whether real participation supports price direction or not.
• Regular Divergences:
• Bullish Divergence: Price makes a lower low while CVD forms a higher low → potential upward reversal.
• Bearish Divergence: Price makes a higher high while CVD forms a lower high → potential downward reversal.
• Hidden Divergences:
• Hidden Bullish Divergence: Price pulls back to a lower low, but CVD shows strength with a higher high → possible continuation of an uptrend.
• Hidden Bearish Divergence: Price makes a higher high, but CVD weakens → possible continuation of a downtrend.
Features:
• Adjustable lookback period (default: 500 bars).
• Graphical visualization:
• Plots the CVD as a blue line in a separate panel.
• Marks divergences with green (bullish) and red (bearish) triangle shapes on the chart.
• Draws divergence lines between price and CVD for easy visual identification.
• Alerts:
• Configurable alert types (“Buy Only”, “Sell Only”, “Buy and Sell”).
• Sends alerts for all four divergence types (regular + hidden).
Usage:
Ideal for traders who want to detect shifts in volume momentum that precede price reversals or continuations. Works on all timeframes and instruments that provide volume data.
MINH PHUOC KINH Btrendline , polynomial , ma , fear zone , indicator('MINH PHUOC KINH B', shorttitle='MINH PHUOC KINH B', max_lines_count=500, max_labels_count=500, max_bars_back=5000, overlay=true)
MTF Intraday v2.0📊 Description
MTF Intraday v2.0 is an informative indicator for analyzing trend strength across multiple timeframes simultaneously. Designed specifically for intraday (session) trading during European and US market hours.
The indicator shows the real market picture without lagging signals - you see the trend strength right now for each timeframe.
🎯 Key Features
1. Multi-Timeframe Analysis (D1, H4, H1, M30, M15)
Analyzes 4 indicators on each TF: SuperTrend, RSI, EMA crossover, EMA200
Shows strength for each timeframe: STRONG / MED / WEAK
Color indication: 🟢 green (LONG strong), 🔴 red (SHORT strong), 🟡 yellow (medium), ⚪ gray (weak)
2. Intraday Trading Hierarchy
D1 - global context (affects quality assessment)
H4 - general (sets the main trend)
H1 - reference point for intraday
M30/M15 - finding entry points during sessions
3. Market Pulse
🔥 HOT - when both H4 and H1 are STRONG (best time to enter!)
✓ GOOD - when H4 or H1 is STRONG
L:45 S:20 - balance of power between LONG and SHORT (statistics instead of "wait")
4. Volume Indicator (24 hours)
Shows volume change over the last 24 hours
SPIKE! - when volume increased by the set % (default 50%)
Considers candle color: 🟢 LONG spike (rise + green candle), 🔴 SHORT spike (rise + red candle)
Works on any timeframe (automatically recalculates)
5. Compact Mode
OFF - shows all details: every indicator for each TF
ON - only strength per timeframe (for clean chart)
⚙️ Settings
Main:
SuperTrend Period (21) / Multiplier (6.3)
RSI Length (14)
EMA Short (50) / Long (100) / 200
Compact Mode - hide detailed indicators
Volume:
Show Volume - show/hide volume indicator
Volume Alerts ON/OFF - enable/disable volume alerts
Volume Spike (%) - spike threshold (30% / 50% / 100%)
🔔 Alerts
The indicator has 5 types of alerts:
Market HOT - H4 and H1 simultaneously became STRONG
VOL LONG - volume spike on bullish candle
VOL SHORT - volume spike on bearish candle
EMA200 UP - price crossed EMA200 upward
EMA200 DN - price crossed EMA200 downward
Set up in TradingView: Create Alert → Select desired alert from the list
📈 How to Use
For finding entry points:
Check H4 - should be at least MED (better STRONG)
Verify H1 - main filter for intraday
Wait for pulse "🔥 HOT" or at least "✓ GOOD"
Look at M30/M15 - seek confirmation
Check 24h VOL - if SPIKE, momentum has started
Quality Assessment:
EXCELLENT ⭐ - all stars aligned (D1 with us, high score)
GOOD - good setup
WARNING ⚠️ - D1 against trend (counter-trend, be careful!)
Color Indication:
🟢 Green cells - bullish signal
🔴 Red cells - bearish signal
🟡 Yellow cells - neutral/waiting
🟠 Orange TF labels - for readability
⚠️ Important
This is an informative indicator, not a trading system
Does not give "entry/exit" signals - shows trend strength in the moment
Use together with Price Action and your trading strategy
RSI on M15 is displayed but not counted (too much noise)
💡 Who is it for
✅ Intraday traders (Europe/US sessions)
✅ Scalpers on crypto and forex
✅ Swing traders for trend confirmation
✅ Those who trade on multiple timeframes simultaneously
CVD with SignalsCVD with Divergences and Alerts (Extended)
This indicator calculates the Cumulative Volume Delta (CVD) to visualize buying and selling pressure, and automatically detects regular and hidden divergences between price and volume flow. It also includes optional alerts for real-time trade signal generation.
Core Logic:
• Cumulative Volume Delta (CVD):
Tracks the cumulative difference between buy and sell volume. Buy volume is defined as volume on bars where the close ≥ open; sell volume when close < open.
This reveals whether real participation supports price direction or not.
• Regular Divergences:
• Bullish Divergence: Price makes a lower low while CVD forms a higher low → potential upward reversal.
• Bearish Divergence: Price makes a higher high while CVD forms a lower high → potential downward reversal.
• Hidden Divergences:
• Hidden Bullish Divergence: Price pulls back to a lower low, but CVD shows strength with a higher high → possible continuation of an uptrend.
• Hidden Bearish Divergence: Price makes a higher high, but CVD weakens → possible continuation of a downtrend.
Features:
• Adjustable lookback period (default: 500 bars).
• Graphical visualization:
• Plots the CVD as a blue line in a separate panel.
• Marks divergences with green (bullish) and red (bearish) triangle shapes on the chart.
• Draws divergence lines between price and CVD for easy visual identification.
• Alerts:
• Configurable alert types (“Buy Only”, “Sell Only”, “Buy and Sell”).
• Sends alerts for all four divergence types (regular + hidden).
Usage:
Ideal for traders who want to detect shifts in volume momentum that precede price reversals or continuations. Works on all timeframes and instruments that provide volume data.
CVD Candles + Divergence (Pane) [NIRALA]This indicator provides a powerful way to analyze market dynamics by visualizing Cumulative Volume Delta (CVD) as candlesticks and automatically detecting divergences between price and order flow. It is designed to help traders spot potential trend exhaustion and reversals that may not be apparent from price action alone.
Key Concepts
Cumulative Volume Delta (CVD): CVD is a running total of the difference between buying and selling volume from market orders. A rising CVD indicates aggressive buying, while a falling CVD indicates aggressive selling. Unlike price, which can be influenced by passive limit orders, CVD shows the raw intent of aggressive market participants.
Divergence: A divergence occurs when price and CVD move in opposite directions. This signals a potential conflict between price action and the underlying order flow, often preceding a reversal.
Bearish Divergence: Price makes a new high, but CVD fails to make a new high (or makes a lower high). This suggests buying aggression is weakening despite the higher price, and a reversal to the downside may be imminent.
Bullish Divergence: Price makes a new low, but CVD fails to make a new low (or makes a higher low). This suggests selling pressure is drying up, and a reversal to the upside may be coming.
Features
CVD as Candlesticks: Plots CVD in a familiar OHLC candlestick format in a separate pane, providing a more intuitive view of order flow momentum and volatility compared to a simple line.
Automatic Divergence Detection: The script automatically identifies classic bullish and bearish divergences between price pivots and CVD pivots, drawing lines on both the main price chart and the indicator pane to clearly highlight them.
Multi-Timeframe Analysis: Calculates CVD from a user-defined lower timeframe, offering a more granular and precise view of the order flow that builds up a single candle on your chart.
Customizable Pivot Lookbacks: Allows you to adjust the sensitivity of the pivot detection for finding both short-term and long-term divergences.
Alerts: Includes built-in alerts that can notify you when a new bullish or bearish divergence is confirmed.
How to Use
Look for High-Probability Setups: This indicator is most powerful when its signals appear at key areas of support or resistance. A divergence at a major price level is a much stronger signal than one in the middle of a range.
Confirm with Price Action: Do not trade on a divergence signal alone. Wait for a confirmation candle (e.g., a bearish engulfing candle after a bearish divergence, or a bullish hammer after a bullish divergence) before considering an entry.
Combine with Your Strategy: Use this indicator as a confirmation tool to enhance your existing trading strategy. For example, if your primary strategy gives a sell signal and this indicator simultaneously prints a bearish divergence, it significantly increases the probability of the trade.
This tool is designed for discretionary traders looking to add a layer of order flow analysis to their decision-making process.
SST Table ShekharSST Table Shekhar — v6.10.2
A compact, movable table that displays up to 20 symbols per group (Group A / Group B), shows current price (CMP), previous 20-day high (OLD GTT), current 20-day high (NEW GTT) and an UPDATE flag when NEW GTT < OLD GTT. Adds SMA20 on-chart, with an optional daily closing-basis alert for CMP crossing above SMA20. Designed for daily timeframe usage and efficient multi-symbol monitoring.
Key features
Two symbol groups (Group A / Group B), each up to 20 tickers — switch between groups without editing text fields.
Clean, transparent, movable table: STOCK | CMP | OLD GTT | NEW GTT | UPDATE.
Correct per-symbol OLD GTT (previous bar’s 20-day high) using a single request.security() call per symbol (optimized under TradingView limits).
SMA20 plotted on the chart (blue line).
Toggleable plots: HIGH20 / LOW20 / TARGET for the active chart symbol.
Alternate row shading and header background selector; font size selector.
Alerts:
Update GTT — when NEW 20D HIGH < OLD 20D HIGH (aggregated list).
CMP Cross Above SMA20 (closing basis) — when symbol closes above its SMA20 (uses previous close & previous SMA20 for closing-basis detection).
Alert messages list all symbols that triggered in the active group and include the group name.
Robust parser for input symbol lists — handles commas, semicolons, pipes, newlines and trims empty entries.
Inputs (exposed)
20-Day High/Low Length — period for HIGH/LOW (default 20).
Target % — percent used to compute target (optional plotted).
Group A / Group B — comma-separated lists of tickers (blank by default).
Show Which Group? — select Group A or Group B for display.
Table Corner — position (Top Left / Top Right / Bottom Left / Bottom Right).
Font Size — Small / Normal / Large.
Header Background — Transparent / Silver / Blue / Green / Yellow.
Show HIGH20/LOW20/TARGET Plots — toggle plotting of those lines for the chart symbol.
Alternate Row Shading & opacity.
Enable Update GTT Alert & Alert Only On Bar Close toggle.
Enable CMP Cross Above SMA20 Alert & Cross Only On Bar Close toggle.
Alerts / How to use
Put the script on a chart (recommended timeframe: 1D for reliable closing-basis cross signals).
Populate Group A and/or Group B with up to 20 tickers each (comma-separated). Leave blank to start fresh.
In the indicator’s Inputs, choose which group to view with Show Which Group?.
To create a TradingView alert:
Click the Alarm icon → Add alert.
Condition: choose either the alertcondition lines exposed by the script:
SST Table Shekhar v6.10.2 → Update GTT (any symbol)
SST Table Shekhar v6.10.2 → CMP Cross Above SMA20 (any symbol)
Or choose Any alert() function call if you want the script’s internal alert() messages (aggregated).
Set Options to Once per bar close if you want alerts only at bar close (recommended for daily timeframe), or Once per bar for intrabar.
Choose delivery channels: pop-up, app, email, webhook (webhook recommended for automation).
Alert messages include ticker lists (e.g. Update GTT = YES for: NSE:TCS, NSE:RELIANCE — (Group A)).
Practical examples
Use Group A for your core watchlist, Group B for a secondary watchlist; toggle groups to change the displayed list.
Keep chart on daily timeframe and enable Cross Alert Only On Bar Close for accurate closing-basis signals.
Use webhook alerts to push signals to Google Sheets, Discord/Telegram, or a trading automation system.
Performance & limits
Each symbol uses one request.security() call returning a tuple — optimized to stay below TradingView’s 40 unique-request limit.
Designed for up to 20 symbols per group (40 total), but running both groups simultaneously (40 requests) may approach limits depending on other indicators on your chart. Keep it to 20 per instance for best stability.
Works best on 1D / 4H / 1H timeframes. On very low intraday timeframes (1–5 min) you may see heavier resource usage — reduce number of symbols or plots if needed.
Known limitations
Alerts are aggregated (single alert lists all matching tickers). If you need individual per-symbol alerts you can create separate script instances or ask for per-symbol alert logic.
Only the CMP Cross Above SMA20 (closing basis) is included in this release. If you want downward crosses (CMP crosses below SMA20) or more complex rules (volume filter, RSI, etc.), I can add those.
Changelog
v6.10.2 — stable publish candidate: Group A/B, 20 symbols, robust parser, SMA20 cross alerts, optimized single-request per symbol, UI/appearance options, alert messages.
(previous dev notes kept internally)
Permissions & licensing
You may publish and redistribute this script on TradingView. If you republish code derived from this indicator, please keep author credit as Shekhar / SST Table Shekhar and note any modifications.
This script is provided as-is. Not financial advice. Use at your own risk.
Support / Contact
For feature requests, bug reports, or help configuring alerts/webhooks (Discord/GSheets/Telegram) — message me in the TradingView script comments or reply to this post.
XonTrades Exit Flow | by Bu-RashidThis indicator detects potential institutional exit points and reversal zones using a powerful confluence model combining:
Volume spike analysis (institutional activity)
CVD trend flips (smart money flow reversal)
Price–CVD divergence (hidden accumulation/distribution)
Liquidity sweep detection (stop-run exhaustion)
When these elements align, the indicator highlights possible Exit Flow zones, signaling where smart capital may be closing or reversing positions.
It’s optimized for XAU/USD (Gold) and NAS100 (Nasdaq) on 5-minute and 15-minute charts, with customizable strictness for traders who prefer early or confirmed signals.
Recommended use:
Apply as a confirmation layer alongside your main strategy to identify exhaustion points and institutional exits before trend reversals.
— Developed and engineered by Bu-Rashid (XonTrades1UAE)