Top 30 Crypto IndexAttempt at creating a Crypto Index.
Data from the top 30 used as data for top 100/500 is limited on TV
Indicators and strategies
Signal Quality Validator - Lite# Signal Quality Validator Lite - Technical Documentation
## Introduction
The Signal Quality Validator (SQV) Lite represents a comprehensive approach to technical signal validation, designed to evaluate trading opportunities through multi-dimensional market analysis. This indicator provides traders with objective quality assessments for their entry signals across various market conditions and timeframes.
## Core Architecture
### Component-Based Validation System
SQV Lite employs five fundamental market components, each contributing weighted scores to produce a final quality assessment. The system analyzes multiple market dimensions simultaneously to provide comprehensive signal validation.
Each component uses proprietary algorithms to evaluate specific market conditions:
- Directional bias and strength assessment
- Market participation and flow analysis
- Price acceleration patterns
- Key technical level identification
- Optimal volatility conditions
The final score represents a weighted combination of all components, with thresholds adjusted for different market conditions and timeframes.
## Scoring Methodology
### Quality Grades
- **Grade A+ (90-100)**: Exceptional setup quality with maximum component confluence
- **Grade A (80-89)**: High-quality signals suitable for full position sizing
- **Grade B (65-79)**: Acceptable signals meeting minimum validation criteria
- **Grade C (<65)**: Substandard conditions, signal rejected
### Timeframe Profiles
Pre-configured profiles optimize component weights and thresholds:
| Profile | Typical Use Case | Min/High/Perfect Scores |
|---------|------------------|------------------------|
| 1-5 min | Scalping | 60/75/85 |
| 15-30 min | Day Trading | 65/80/90 |
| 1H-4H | Intraday Swing | 70/85/95 |
| Daily+ | Position Trading | 75/88/95 |
| Custom | User Defined | Configurable |
## Integration Guide
### Standalone Usage
1. Add SQV Lite to your chart
2. Select appropriate timeframe profile
3. Monitor real-time quality grades on signal bars
4. Use dashboard for current market assessment
### Bidirectional Strategy Integration
SQV Lite supports complete two-way communication with your custom strategies, enabling sophisticated signal validation workflows.
#### Step 1: Setting Up Your Strategy to Send Signals
In your custom strategy/indicator, export your signals as plots:
```pinescript
//@version=6
indicator("My Custom Strategy", overlay=true)
// Your signal logic
longSignal = ta.crossover(ema9, ema21) // Example
shortSignal = ta.crossunder(ema9, ema21) // Example
// CRITICAL: Export signals for SQV to read
// Use display=display.none to hide the plots
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
```
#### Step 2: Configure SQV Lite to Receive Signals
1. Add SQV Lite to the same chart as your strategy
2. In SQV Lite settings, enable "Use External Signals"
3. Click on "External Long Signal Source" and select your strategy's "Long Signal Output"
4. Click on "External Short Signal Source" and select your strategy's "Short Signal Output"
#### Step 3: Import SQV Validation Back to Your Strategy
Complete the bidirectional flow by importing SQV's validation results:
```pinescript
//@version=6
strategy("My Strategy with SQV Integration", overlay=true)
// Import SQV validation results
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
sqvLongValid = input.source(close, "SQV Long Valid Source", group="SQV Integration")
sqvShortValid = input.source(close, "SQV Short Valid Source", group="SQV Integration")
sqvTradingMode = input.source(close, "SQV Trading Mode", group="SQV Integration")
// Your original signals
longSignal = ta.crossover(ema9, ema21)
shortSignal = ta.crossunder(ema9, ema21)
// Export for SQV
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
// Use SQV validation in entry logic
if longSignal and sqvLongValid > 0
strategy.entry("Long", strategy.long)
// Optional: Use sqvScore for position sizing
if shortSignal and sqvShortValid > 0
strategy.entry("Short", strategy.short)
```
#### Step 4: Complete Integration Setup
After adding both scripts to your chart:
1. In your strategy settings → SQV Integration:
- Set "SQV Score Source" → Select SQV Lite: SQV Score
- Set "SQV Long Valid Source" → Select SQV Lite: SQV Long Valid
- Set "SQV Short Valid Source" → Select SQV Lite: SQV Short Valid
2. In SQV Lite settings → Signal Import:
- Enable "Use External Signals"
- Set "External Long Signal Source" → Select Your Strategy: Long Signal Output
- Set "External Short Signal Source" → Select Your Strategy: Short Signal Output
### Available Data Exports from SQV
```pinescript
// Core validation data
plot(currentTotalScore, "SQV Score", display=display.none) // 0-100
plot(sqvLongValid ? 1 : 0, "SQV Long Valid", display=display.none) // 0 or 1
plot(sqvShortValid ? 1 : 0, "SQV Short Valid", display=display.none) // 0 or 1
// Component scores for advanced usage
plot(currentTrendScore, "SQV Trend Score", display=display.none)
plot(currentVolumeScore, "SQV Volume Score", display=display.none)
plot(currentMomentumScore, "SQV Momentum Score", display=display.none)
plot(currentStructureScore, "SQV Structure Score", display=display.none)
plot(currentVolatilityScore, "SQV Volatility Score", display=display.none)
// Additional data
plot(orderFlowDelta, "SQV Order Flow Delta", display=display.none)
plot(tradingMode == "Long" ? 1 : tradingMode == "Short" ? -1 : 0, "SQV Trading Mode", display=display.none)
```
### Advanced Integration Examples
#### Example 1: Quality-Based Position Sizing
```pinescript
// In your strategy
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
// Dynamic position sizing based on signal quality
positionSize = sqvScore >= 90 ? 3 : // A+ quality = 3 units
sqvScore >= 80 ? 2 : // A quality = 2 units
sqvScore >= 65 ? 1 : 0 // B quality = 1 unit
if longSignal and sqvLongValid > 0 and positionSize > 0
strategy.entry("Long", strategy.long, qty=positionSize)
```
#### Example 2: Filtering by Component Scores
```pinescript
// Import individual components
sqvTrend = input.source(close, "SQV Trend Score", group="SQV Integration")
sqvVolume = input.source(close, "SQV Volume Score", group="SQV Integration")
sqvMomentum = input.source(close, "SQV Momentum Score", group="SQV Integration")
// Custom filtering logic
strongTrend = sqvTrend > 80
goodVolume = sqvVolume > 70
strongSetup = strongTrend and goodVolume
if longSignal and sqvLongValid > 0 and strongSetup
strategy.entry("Strong Long", strategy.long)
```
#### Example 3: Order Flow Integration
```pinescript
// Import order flow data
sqvOrderFlow = input.source(close, "SQV Order Flow Delta", group="SQV Integration")
// Use order flow for additional confirmation
bullishFlow = sqvOrderFlow > 100 // Significant buying pressure
bearishFlow = sqvOrderFlow < -100 // Significant selling pressure
if longSignal and sqvLongValid > 0 and bullishFlow
strategy.entry("Long+Flow", strategy.long)
```
### Visual Feedback Configuration
#### Label Display Modes
1. **Autonomous Mode** (standalone testing):
- Enable "Show Labels Without Signals"
- Labels appear on every bar where score >= minimum threshold
- Useful for initial testing without strategy integration
2. **Signal Mode** (production use):
- Disable "Show Labels Without Signals"
- Enable "Use External Signals"
- Labels appear ONLY when your strategy generates signals
- Prevents chart clutter, shows validation exactly when needed
#### Troubleshooting Integration
**Common Issues:**
1. **Labels not appearing:**
- Verify "Use External Signals" is enabled
- Check signal sources are properly connected
- Ensure your strategy is actually generating signals (add visible plots temporarily)
2. **Wrong source selection:**
- Source dropdowns should show your indicator/strategy name
- Each output plot should be visible in the dropdown
- If not visible, check plot titles in your strategy
3. **Validation always failing:**
- Check Trading Mode matches your signal types
- Verify minimum score thresholds aren't too high
- Use Autonomous Mode to test if SQV is working properly
### Best Practices
1. **Always use `display=display.none`** for communication plots to keep charts clean
2. **Name your plots clearly** for easy identification in source dropdowns
3. **Test in Autonomous Mode first** to understand SQV behavior
4. **Use consistent signal logic** - ensure signals are binary (1 or 0)
5. **Consider adding a small delay** between signal and entry for validation processing
### Complete Integration Template
Here's a full template for a strategy with complete SQV integration:
```pinescript
//@version=6
strategy("Complete SQV Integration Template", overlay=true)
// ========== SQV Integration Inputs ==========
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
sqvLongValid = input.source(close, "SQV Long Valid Source", group="SQV Integration")
sqvShortValid = input.source(close, "SQV Short Valid Source", group="SQV Integration")
sqvOrderFlow = input.source(close, "SQV Order Flow Delta", group="SQV Integration")
// ========== Strategy Parameters ==========
emaFast = input.int(9, "Fast EMA")
emaSlow = input.int(21, "Slow EMA")
useQualitySizing = input.bool(true, "Use Quality-Based Sizing")
// ========== Indicators ==========
ema1 = ta.ema(close, emaFast)
ema2 = ta.ema(close, emaSlow)
// ========== Signal Logic ==========
longSignal = ta.crossover(ema1, ema2)
shortSignal = ta.crossunder(ema1, ema2)
// ========== Export Signals to SQV ==========
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
// ========== Position Sizing ==========
baseSize = 1
qualityMultiplier = useQualitySizing ?
(sqvScore >= 90 ? 3 : sqvScore >= 80 ? 2 : 1) : 1
positionSize = baseSize * qualityMultiplier
// ========== Entry Logic with SQV Validation ==========
if longSignal and sqvLongValid > 0
strategy.entry("Long", strategy.long, qty=positionSize)
if shortSignal and sqvShortValid > 0
strategy.entry("Short", strategy.short, qty=positionSize)
// ========== Exit Logic ==========
if strategy.position_size > 0 and shortSignal
strategy.close("Long")
if strategy.position_size < 0 and longSignal
strategy.close("Short")
// ========== Visual Feedback ==========
plotshape(longSignal and sqvLongValid > 0, "Valid Long",
location=location.belowbar, color=color.green, style=shape.triangleup)
plotshape(shortSignal and sqvShortValid > 0, "Valid Short",
location=location.abovebar, color=color.red, style=shape.triangledown)
```
This template provides everything needed for professional bidirectional integration between your custom strategy and SQV Lite.
## Order Flow Analysis
The integrated Order Flow system automatically adapts to market conditions, providing intelligent analysis of buying and selling pressure. The system handles various market scenarios including low liquidity and minimal price movement conditions through advanced algorithms.
## Visual Interface
### Signal Labels
Displays three-line information blocks:
- Grade designation (A+, A, B, C)
- Numerical quality score
- Order flow direction and magnitude
### Dashboard Elements
- **Profile Display**: Active configuration and thresholds
- **Score Visualization**: Real-time quality assessment
- **Flow Indicator**: Directional bias representation
- **Status Monitor**: Ready/Wait signal state
### Customization Options
- Label distance adjustment (0.5-3.0x ATR)
- Profile selection and custom configuration
- Component weight modifications (Custom mode)
- Threshold adjustments for different market conditions
## Trading Mode Selection
Three operational modes accommodate different trading styles:
- **Long Only**: Validates bullish signals exclusively
- **Short Only**: Validates bearish signals exclusively
- **Both**: Bi-directional signal validation
## Performance Considerations
SQV Lite maintains computational efficiency through:
- Optimized calculation cycles
- Selective component updates
- Efficient data structure usage
- Minimal redundant processing
---
## Feature Comparison: SQV Lite vs Full Version
### Core Components
| Component | SQV Lite | SQV Full | Details |
|-----------|----------|----------|---------|
| **Trend Analysis** | ✅ Full | ✅ Full | Professional trend evaluation |
| **Volume Dynamics** | ✅ Full | ✅ Full | Advanced volume analysis |
| **Momentum Assessment** | ✅ Full | ✅ Full | Multi-factor momentum |
| **Market Structure** | ✅ Basic | ✅ Enhanced | Key level detection |
| **Volatility Filter** | ✅ Full | ✅ Full | Risk-adjusted filtering |
| **Performance Analytics** | ❌ | ✅ | Real-time performance tracking |
| **Impulse Detection** | ❌ | ✅ | Advanced signal filtering |
### Advanced Features
| Feature | SQV Lite | SQV Full | Benefits |
|---------|----------|----------|----------|
| **Multi-Timeframe Analysis** | ❌ | ✅ | Higher timeframe confirmation |
| **Dynamic Position Sizing** | ❌ | ✅ Automatic | Dynamic size optimization |
| **Auto Mode** | ❌ | ✅ | Self-optimizing system |
| **Advanced Profiling** | ❌ | ✅ | Market depth analysis |
| **Recovery Mode** | ❌ | ✅ | Adaptive drawdown handling |
| **Statistical Validation** | ❌ | ✅ | Confidence-based filtering |
### Profiles & Configuration
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Timeframe Profiles** | 5 | 8 |
| **Available Profiles** | 1-5m, 15-30m, 1-4H, Daily+, Custom | All Lite + ES, NQ, Auto |
| **Custom Weights** | ✅ Manual | ✅ Manual + Auto-optimization |
| **Threshold Adjustment** | ✅ | ✅ Enhanced |
### Visual Interface
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Dashboard Styles** | 1 (Standard) | 4 (Multiple layouts) |
| **Signal Labels** | ✅ Basic | ✅ Enhanced with sizing |
| **Advanced Visualizations** | ❌ | ✅ |
| **Component Breakdown** | ❌ | ✅ Detailed view |
| **Performance Display** | ❌ | ✅ Live statistics |
| **Debug Mode** | ❌ | ✅ |
### Integration Capabilities
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Script Type** | Indicator | Strategy |
| **Signal Import** | ✅ | Via strategy conditions |
| **Data Export** | ✅ All via plots | Internal to strategy |
| **Bidirectional Flow** | ✅ Full support | One-way (strategy-based) |
### Risk Management
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Position Sizing** | Manual | ✅ Automatic |
| **Quality-Based Sizing** | Via integration | ✅ Built-in |
| **Performance Adjustment** | ❌ | ✅ |
| **Risk Grade System** | ❌ | ✅ Risk grading system |
| **Statistical Filtering** | ❌ | ✅ |
### Market Analysis
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Order Flow Analysis** | ✅ Automatic | ✅ Advanced |
| **Market Manipulation Detection** | ❌ | ✅ |
| **Multi-Timeframe Validation** | ❌ | ✅ |
| **Advanced Momentum Analysis** | Basic | ✅ Enhanced |
| **Market Regime Adaptation** | Basic | ✅ Full Auto Mode |
### Summary
| Aspect | SQV Lite | SQV Full |
|--------|----------|----------|
| **Best For** | Signal validation, integration with custom strategies | Complete trading system with built-in strategy |
| **Learning Curve** | Easy | Moderate |
| **Customization** | High (via integration) | Very High (all parameters) |
| **Price** | Free | $29/month |
---
## SQV Bridge System
### Overview
The SQV Bridge System allows you to connect any TradingView indicator or strategy with the Signal Quality Validator (SQV) system. This enables you to add professional-grade signal validation to your existing trading tools without modifying their code.
### System Components
1. **SQV Lite** (Required) - The core validation engine
2. **Bridge** (Choose one):
- **Indicator Bridge** - For visual signals and alerts
- **Strategy Bridge** - For automated backtesting and trading
3. **Your Trading Tool** - Any indicator or strategy that generates signals
---
## SQV Indicator Bridge
### //@version=6
### indicator("SQV Indicator Bridge", overlay=true)
### Purpose
The Indicator Bridge displays validated entry signals on your chart. It receives signals from any indicator and validation from SQV Lite, showing only high-quality trade opportunities.
### Features
- Visual labels for validated signals
- Customizable appearance (size, color, position)
- Alert capabilities
- Hidden signal exports for other tools
### Setup Instructions
1. **Add Your Indicator**
- Apply your trading indicator to the chart
- Note which plots contain long/short signals
2. **Add SQV Lite**
- Add SQV Lite indicator to the same chart
- Configure SQV settings as needed
3. **Add Indicator Bridge**
- Add "SQV Indicator Bridge" to chart
- Connect the sources:
- Long Signal Source → Your indicator's long signal
- Short Signal Source → Your indicator's short signal
- SQV Long Valid → From SQV Lite
- SQV Short Valid → From SQV Lite
- SQV Score → From SQV Lite (for alerts)
### Configuration Options
#### Visual Settings
- **Show Labels**: Toggle signal labels on/off
- **Label Offset**: Distance from candles (0-5 ATR)
- **Label Size**: Tiny, Small, or Normal
- **Colors**: Customize long/short colors
#### Alerts
- Enable/disable alert notifications
- Alerts include SQV score in message
### Example Code (Add to Your Indicator)
```pinescript
// Export signals from your indicator
plot(longCondition ? 1 : 0, "Long Signal", display=display.none)
plot(shortCondition ? 1 : 0, "Short Signal", display=display.none)
```
### Complete Indicator Bridge Code
```pinescript
//@version=6
indicator("SQV Indicator Bridge", overlay=true)
// ===================================================================
// SQV INDICATOR BRIDGE - CLEAN VERSION
// Version 1.0
//
// Simple bridge that shows validated entry signals.
// Receives signals from any indicator and validation from SQV Lite.
//
// SETUP:
// 1. Add your indicator to chart
// 2. Add SQV Lite to chart
// 3. Add this bridge
// 4. Connect sources in settings
// ===================================================================
// ===================================================================
// INPUT SOURCES
// ===================================================================
// From your indicator
longSignal = input.source(close, "Long Signal Source", group="Signal Sources",
tooltip="Select Long Signal from your indicator")
shortSignal = input.source(close, "Short Signal Source", group="Signal Sources",
tooltip="Select Short Signal from your indicator")
// From SQV Lite
sqvLongValid = input.source(close, "SQV Long Valid", group="SQV Sources",
tooltip="Select 'SQV Long Valid' from SQV Lite")
sqvShortValid = input.source(close, "SQV Short Valid", group="SQV Sources",
tooltip="Select 'SQV Short Valid' from SQV Lite")
sqvScore = input.source(close, "SQV Score", group="SQV Sources",
tooltip="Select 'SQV Score' from SQV Lite (for alerts)")
// ===================================================================
// SETTINGS
// ===================================================================
showLabels = input.bool(true, "Show Labels", group="Visual")
labelOffset = input.float(0.0, "Label Offset (ATR)", minval=0.0, maxval=5.0, step=0.5, group="Visual",
tooltip="0 = Labels at candle edges, higher = further away")
labelSize = input.string("small", "Label Size", options= , group="Visual")
longColor = input.color(color.green, "Long Color", group="Visual")
shortColor = input.color(color.red, "Short Color", group="Visual")
enableAlerts = input.bool(false, "Enable Alerts", group="Alerts")
// ===================================================================
// MAIN LOGIC
// ===================================================================
// Calculate offset
atr = ta.atr(14)
offset = labelOffset > 0 ? atr * labelOffset : 0
// Check for validated signals
hasValidLong = longSignal > 0 and sqvLongValid > 0 and barstate.isconfirmed
hasValidShort = shortSignal > 0 and sqvShortValid > 0 and barstate.isconfirmed
// Show labels
if showLabels
if hasValidLong
label.new(bar_index, low - offset, "LONG",
style=label.style_label_up,
color=longColor,
textcolor=color.white,
size=labelSize == "tiny" ? size.tiny :
labelSize == "small" ? size.small : size.normal)
if hasValidShort
label.new(bar_index, high + offset, "SHORT",
style=label.style_label_down,
color=shortColor,
textcolor=color.white,
size=labelSize == "tiny" ? size.tiny :
labelSize == "small" ? size.small : size.normal)
// Alerts
if enableAlerts
if hasValidLong
alert("Long Signal Validated | Score: " + str.tostring(sqvScore, "#"), alert.freq_once_per_bar_close)
if hasValidShort
alert("Short Signal Validated | Score: " + str.tostring(sqvScore, "#"), alert.freq_once_per_bar_close)
// Hidden exports
plot(hasValidLong ? 1 : 0, "Valid Long", display=display.none)
plot(hasValidShort ? 1 : 0, "Valid Short", display=display.none)
```
---
## SQV Strategy Bridge
### //@version=6
### strategy("SQV Strategy Bridge", overlay=true, ...)
### Purpose
The Strategy Bridge executes trades with SQV validation, enabling backtesting and live trading with quality-filtered signals. It can receive position sizing, stop loss, and take profit levels from your strategy.
### Features
- Automated trade execution with SQV validation
- Dynamic position sizing support
- Stop loss and take profit integration
- Position status display
- Alert system for trade notifications
### Setup Instructions
1. **Prepare Your Strategy**
- Export required values as plots (see examples below)
- Ensure signals are clear (1 for entry, 0 for no signal)
2. **Add SQV Lite**
- Add SQV Lite indicator to the chart
- Configure validation parameters
3. **Add Strategy Bridge**
- Add "SQV Strategy Bridge" to chart
- Connect all required sources
### Source Connections
#### Required Sources
- **Long Signal Source** → Your strategy's long signal
- **Short Signal Source** → Your strategy's short signal
- **SQV Long Valid** → From SQV Lite
- **SQV Short Valid** → From SQV Lite
- **SQV Score** → From SQV Lite
#### Optional Sources (Advanced)
- **Position Size Source** → Dynamic position sizing
- **Long/Short Stop Loss** → Stop loss prices
- **Long/Short Take Profit** → Take profit prices
### Configuration Options
#### Position Management
- **Use Position Size from Strategy**: Enable dynamic sizing
- **Default Position Size %**: Fallback size (0.1-100%)
#### Risk Management
- **Use Stop Loss from Strategy**: Enable dynamic stops
- **Use Take Profit from Strategy**: Enable dynamic targets
### Example Code (Add to Your Strategy)
```pinescript
// Basic signal export
plot(buySignal ? 1 : 0, "Long Signal", display=display.none)
plot(sellSignal ? 1 : 0, "Short Signal", display=display.none)
// Advanced exports (optional)
// Position size (0.1 = 10% of equity)
plot(myPositionSize, "Position Size Output", display=display.none)
// Stop loss prices
plot(longStopPrice, "Long Stop Price", display=display.none)
plot(shortStopPrice, "Short Stop Price", display=display.none)
// Take profit prices
plot(longTPPrice, "Long TP Price", display=display.none)
plot(shortTPPrice, "Short TP Price", display=display.none)
```
### Complete Strategy Bridge Code
```pinescript
//@version=6
strategy("SQV Strategy Bridge",
overlay=true,
initial_capital=10000,
default_qty_type=strategy.percent_of_equity,
default_qty_value=10,
commission_type=strategy.commission.percent,
commission_value=0.1)
// ===================================================================
// SQV STRATEGY BRIDGE - SIMPLE VERSION
// Version 1.0
//
// Receives everything from your strategy:
// - Signals (when to trade)
// - Position size (how much to trade)
// - Stop loss levels (optional)
// - Take profit levels (optional)
//
// Bridge only executes trades with SQV validation
// ===================================================================
// ===================================================================
// SIGNAL SOURCES
// ===================================================================
longSignal = input.source(close, "Long Signal Source", group="Signal Sources",
tooltip="Connect to Long Signal from your strategy")
shortSignal = input.source(close, "Short Signal Source", group="Signal Sources",
tooltip="Connect to Short Signal from your strategy")
// ===================================================================
// SQV SOURCES
// ===================================================================
sqvLongValid = input.source(close, "SQV Long Valid", group="SQV Sources")
sqvShortValid = input.source(close, "SQV Short Valid", group="SQV Sources")
sqvScore = input.source(close, "SQV Score", group="SQV Sources")
// ===================================================================
// POSITION SIZE SOURCES (FROM YOUR STRATEGY)
// ===================================================================
usePositionFromStrategy = input.bool(false, "Use Position Size from Strategy", group="Position")
positionSizeSource = input.source(close, "Position Size Source", group="Position",
tooltip="Your strategy should export position size (% or fixed quantity)")
defaultPositionSize = input.float(10, "Default Position Size %", minval=0.1, maxval=100, group="Position",
tooltip="Used if 'Use Position Size from Strategy' is disabled")
// ===================================================================
// STOP LOSS SOURCES (FROM YOUR STRATEGY)
// ===================================================================
useStopFromStrategy = input.bool(false, "Use Stop Loss from Strategy", group="Risk Management")
longStopSource = input.source(close, "Long Stop Loss Price", group="Risk Management",
tooltip="Your strategy should export exact stop price for longs")
shortStopSource = input.source(close, "Short Stop Loss Price", group="Risk Management",
tooltip="Your strategy should export exact stop price for shorts")
// ===================================================================
// TAKE PROFIT SOURCES (FROM YOUR STRATEGY)
// ===================================================================
useTakeProfitFromStrategy = input.bool(false, "Use Take Profit from Strategy", group="Risk Management")
longTakeProfitSource = input.source(close, "Long Take Profit Price", group="Risk Management",
tooltip="Your strategy should export exact TP price for longs")
shortTakeProfitSource = input.source(close, "Short Take Profit Price", group="Risk Management",
tooltip="Your strategy should export exact TP price for shorts")
// ===================================================================
// ALERTS
// ===================================================================
enableAlerts = input.bool(true, "Enable Alerts", group="Alerts")
// ===================================================================
// TRADING LOGIC
// ===================================================================
// Check signals with SQV validation
hasLongSignal = longSignal > 0 and sqvLongValid > 0 and barstate.isconfirmed
hasShortSignal = shortSignal > 0 and sqvShortValid > 0 and barstate.isconfirmed
// Position state
inLong = strategy.position_size > 0
inShort = strategy.position_size < 0
// Get position size
getPositionSize() =>
if usePositionFromStrategy and positionSizeSource > 0
positionSizeSource
else
defaultPositionSize / 100
// LONG ENTRY
if hasLongSignal and not inLong
if inShort
strategy.close("Short")
qty = getPositionSize()
strategy.entry("Long", strategy.long, qty=qty)
// Set exit orders if provided by strategy
if useStopFromStrategy or useTakeProfitFromStrategy
stopPrice = useStopFromStrategy and longStopSource > 0 ? longStopSource : na
tpPrice = useTakeProfitFromStrategy and longTakeProfitSource > 0 ? longTakeProfitSource : na
if not na(stopPrice) or not na(tpPrice)
strategy.exit("Long Exit", "Long", stop=stopPrice, limit=tpPrice)
if enableAlerts
alert("Long Entry | Score: " + str.tostring(sqvScore, "#"), alert.freq_once_per_bar_close)
// SHORT ENTRY
if hasShortSignal and not inShort
if inLong
strategy.close("Long")
qty = getPositionSize()
strategy.entry("Short", strategy.short, qty=qty)
// Set exit orders if provided by strategy
if useStopFromStrategy or useTakeProfitFromStrategy
stopPrice = useStopFromStrategy and shortStopSource > 0 ? shortStopSource : na
tpPrice = useTakeProfitFromStrategy and shortTakeProfitSource > 0 ? shortTakeProfitSource : na
if not na(stopPrice) or not na(tpPrice)
strategy.exit("Short Exit", "Short", stop=stopPrice, limit=tpPrice)
if enableAlerts
alert("Short Entry | Score: " + str.tostring(sqvScore, "#"), alert.freq_once_per_bar_close)
// ===================================================================
// POSITION INFO
// ===================================================================
var label infoLabel = label.new(bar_index, high, "", style=label.style_label_left)
if barstate.islast
posText = "Bridge Status "
posText := inLong ? posText + "Position: LONG " : inShort ? posText + "Position: SHORT " : posText + "Position: FLAT "
posText := "SQV Score: " + str.tostring(sqvScore, "#")
label.set_xy(infoLabel, bar_index + 1, high)
label.set_text(infoLabel, posText)
label.set_color(infoLabel, inLong ? color.new(color.green, 80) : inShort ? color.new(color.red, 80) : color.new(color.gray, 80))
label.set_textcolor(infoLabel, color.white)
// ===================================================================
// HOW TO EXPORT FROM YOUR STRATEGY:
//
// // In your strategy, export these values:
//
// // Position size (% as decimal: 0.1 = 10%, or fixed: 0.2 = 0.2 BTC)
// plot(myPositionSize, "Position Size Output", display=display.none)
//
// // Stop loss prices
// plot(longStopPrice, "Long Stop Price", display=display.none)
// plot(shortStopPrice, "Short Stop Price", display=display.none)
//
// // Take profit prices
// plot(longTPPrice, "Long TP Price", display=display.none)
// plot(shortTPPrice, "Short TP Price", display=display.none)
// ===================================================================
```
---
## Quick Start Guide
### For Indicators (Visual Signals)
1. Add these three indicators in order:
- Your trading indicator
- SQV Lite
- SQV Indicator Bridge
2. In Bridge settings, connect:
- Signal sources from your indicator
- Validation sources from SQV Lite
3. Adjust visual settings to preference
### For Strategies (Automated Trading)
1. Modify your strategy to export signals:
```pinescript
plot(longSignal ? 1 : 0, "Long Signal", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal", display=display.none)
```
2. Add to chart:
- Your modified strategy (as indicator)
- SQV Lite
- SQV Strategy Bridge
3. Connect all sources in Bridge settings
4. Run backtest or enable live trading
---
## Tips & Best Practices
### Signal Quality
- SQV validates signals based on 5 market components (7 in full version)
- Only signals with sufficient quality score pass validation
- Adjust SQV settings to match your trading style
### Position Sizing
- Default sizing uses percentage of equity
- Advanced users can export dynamic sizing from strategy
- Size based on signal quality or market conditions
### Risk Management
- Always use stop losses (manual or from strategy)
- Consider using SQV's quality score for position sizing
- Monitor win rate and Sharpe ratio in SQV dashboard (full version)
### Troubleshooting
- **No signals showing**: Check source connections
- **Too few signals**: Lower SQV minimum score
- **Too many signals**: Increase SQV requirements
- **Backtest issues**: Ensure strategy calculations match
---
## Example Setups
### Simple Moving Average Cross + SQV
```pinescript
// In your indicator
ma_fast = ta.sma(close, 20)
ma_slow = ta.sma(close, 50)
longSignal = ta.crossover(ma_fast, ma_slow)
shortSignal = ta.crossunder(ma_fast, ma_slow)
plot(longSignal ? 1 : 0, "Long Signal", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal", display=display.none)
```
### RSI Strategy with Dynamic Stops
```pinescript
// In your strategy
rsi = ta.rsi(close, 14)
longSignal = rsi < 30
shortSignal = rsi > 70
// Dynamic stops based on ATR
atr = ta.atr(14)
longStop = close - (atr * 2)
shortStop = close + (atr * 2)
// Export everything
plot(longSignal ? 1 : 0, "Long Signal", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal", display=display.none)
plot(longStop, "Long Stop Price", display=display.none)
plot(shortStop, "Short Stop Price", display=display.none)
```
---
## Advanced Features
### Multi-Timeframe Validation
SQV automatically checks higher timeframes for confluence, improving signal reliability (Full version only).
### Adaptive Profiles
Use "Auto" profile in SQV for dynamic parameter adjustment based on market conditions (Full version only).
### Performance Tracking
SQV tracks win rate, Sharpe ratio, and other metrics to ensure consistent performance (Full version only).
### Order Flow Analysis
Validates signals using volume delta and buying/selling pressure (included in Lite version).
---
## Upgrade to SQV Full Version
### Enhanced Capabilities in Full Version
The complete SQV system extends validation capabilities with advanced components:
#### 🎯 **Performance Analytics Component**
- Real-time Sharpe Ratio calculation
- Win rate tracking with confidence intervals
- Risk-adjusted performance metrics
- Adaptive threshold adjustments
#### ⚡ **Impulse Detection with Trap Analysis**
- Advanced momentum surge detection
- Market manipulation identification
- False breakout filtering
- Volume/price divergence analysis
#### 📊 **Multi-Timeframe Confluence**
- Three-timeframe trend alignment
- Higher timeframe confirmation requirements
- Confluence strength scoring
- Directional bias validation
#### 🎰 **Dynamic Position Sizing**
- Automatic position multipliers based on signal quality
- Grade A+ signals (90+) = Maximum multiplier
- Grade A signals (80-89) = Scaled multiplier
- Grade B signals (65-79) = Base position size
- Risk-adjusted position management
- Sharpe-influenced adjustments
#### 🔄 **Auto Mode**
- Market-adaptive parameter optimization
- Dynamic weight redistribution
- Volatility-based threshold adjustments
- Self-calibrating component settings
#### 📈 **Volume Profile Integration**
- Point of Control (POC) identification
- Value Area analysis (VAH/VAL)
- Profile-based support/resistance
- Volume distribution visualization
#### 🛡️ **Recovery Mode**
- Drawdown detection and adaptation
- Conservative validation during recovery
- Gradual threshold normalization
- Performance-based re-engagement
#### 📊 **Extended Visualizations**
- Multiple dashboard layouts
- Component breakdown displays
- Performance statistics panels
- Risk grade assessments
### Why Upgrade?
While SQV Lite provides robust signal validation, the Full Version transforms your trading with:
- **Automated risk management** through dynamic sizing
- **Superior signal filtering** via Impulse and MTF components
- **Performance optimization** with real-time analytics
- **Market adaptation** through Auto Mode
- **Additional dashboard layouts** for complete market insight
The Full Version includes everything in Lite plus seven additional premium components.
---
## 💰 **SQV Full Version Pricing**
### **Monthly Subscription: $29/month**
Get instant access to the complete Signal Quality Validator system with all premium features:
- ✅ All 7 additional advanced components
- ✅ Automatic position sizing optimization
- ✅ Performance analytics & Sharpe tracking
- ✅ Impulse detection with trap analysis
- ✅ Multi-timeframe confluence validation
- ✅ Auto Mode with self-optimization
- ✅ Recovery mode for drawdown management
- ✅ 4 dashboard layouts
- ✅ Lifetime updates included
- ✅ Priority support
**The automatic position sizing feature alone can pay for months of subscription with a single properly-sized winning trade.**
### 📩 **How to Subscribe**
To get access to SQV Full Version:
1. **Send me a DM** on TradingView
2. **Include your TradingView username/ID** in the message
3. Receive payment instructions and access upon confirmation
*Your TradingView ID is required to grant access to the private indicator.*
### 🔧 **Custom Integration Services**
**Need direct integration into your Pine Script strategy?**
For traders requiring seamless library-based integration without the 500-bar limitation:
- Full backtesting on complete price history
- Zero signal delay
- Custom parameter optimization
- Private library implementation
**📩 DM me for custom integration pricing and details**
---
## Support and Updates
- Both bridges are regularly updated
- SQV Lite receives regular maintenance updates
- For technical questions or feature requests, please reach out through TradingView's messaging system
- Check for new features and improvements in the script descriptions
## Disclaimer
Signal Quality Validator provides technical analysis assistance only. All trading decisions remain the sole responsibility of the user. Past performance does not guarantee future results. Trade responsibly and within your risk tolerance.
*Note: This system is designed for educational purposes. Always test thoroughly before live trading.*
SuperTrend - Dynamic Lines and ChannelsSuperTrend Indicator: Comprehensive Description
Overview
The SuperTrend indicator is Pine Script V6 designed for TradingView to plot dynamic trend lines & channels across multiple timeframes (Daily, Weekly, Monthly, Quarterly, and Yearly/All-Time) to assist traders in identifying potential support, resistance, and trend continuation levels. The script calculates trendlines based on high and low prices over specified periods, projects these trendlines forward, and includes optional reflection channels and heartlines to provide additional context for price action analysis. The indicator is highly customizable, allowing users to toggle the visibility of trendlines, projections, and heartlines for each timeframe, with a focus on the DayTrade channel, which includes unique reflection channel features.
This description provides a detailed explanation of the indicator’s features, functionality, and display, with a specific focus on the DayTrade channel’s anchoring, the role of static and dynamic channels in projecting future price action, the heartline’s potential as a volume indicator, and how traders can use the indicator for line-to-line trading strategies.
Features and Functionality
1. Dynamic Trend Channels
The SuperTrend indicator calculates trend channels for five timeframes:
DayTrade Channel: Tracks daily highs and lows, updating before 12 PM each trading day.
Weekly Channel: Tracks highs and lows over a user-selected period (1, 2, or 3 weeks).
Monthly Channel: Tracks monthly highs and lows.
Quarterly Channel: Tracks highs and lows over a user-selected period (1 or 2 quarters).
Yearly/All-Time Channel: Tracks highs and lows over a user-selected period (1 to 10 years or All Time).
Each channel consists of:
Upper Trendline: Connects the high prices of the previous and current periods.
Lower Trendline: Connects the low prices of the previous and current periods.
Projections: Extends the trendlines forward based on the trend’s slope.
Heartline: A dashed line drawn at the midpoint between the upper and lower trendlines or their projections.
DayTrade Channel Anchoring
The DayTrade channel anchors its trendlines to the high and low prices of the previous and current trading days, with updates restricted to before 12 PM to capture significant price movements during the morning session, which is often more volatile due to market openings or news events. The "Show DayTrade Trend Lines" toggle enables this channel, and after 12 PM, the trendlines and projections remain static for the rest of the trading day. This static anchoring provides a consistent reference for potential support and resistance levels, allowing traders to anticipate price reactions based on historical highs and lows from the previous day and the morning session of the current day.
The static nature of the DayTrade channel after 12 PM ensures that the trendlines and projections do not shift mid-session, providing a stable framework for traders to assess whether price action respects or breaks these levels, potentially indicating trend continuation or reversal.
Static vs. Dynamic Channels
Static Channels: Once set (e.g., after 12 PM for the DayTrade channel or at the start of a new period for other timeframes), the trendlines remain fixed until the next period begins. This static behavior allows traders to use the channels as reference levels for potential price targets or reversal points, as they are based on historical price extremes.
Dynamic Projections: The projections extend the trendlines forward, providing a visual guide for potential future price action, assuming the trend’s momentum continues. When a trendline is broken (e.g., price closes above the upper projection or below the lower projection), it may suggest a breakout or reversal, prompting traders to reassess their positions.
2. Reflection Channels (DayTrade Only)
The DayTrade channel includes optional lower and upper reflection channels, which are additional trendlines positioned symmetrically around the main channel to provide extended support and resistance zones. These are controlled by the "Show Reflection Channel" dropdown.
Lower Reflection Channel:
Position: Drawn below the lower trendline at a distance equal to the range between the upper and lower trendlines.
Projection: Extends forward as a dashed line.
Heartline: A dashed line drawn at the midpoint between the lower trendline and the lower reflection trendline, controlled by the "Show Lower Reflection Heartline" toggle.
Upper Reflection Channel:
Position: Drawn above the upper trendline at the same distance as the main channel’s range.
Projection: Extends forward as a dashed line.
Heartline: A dashed line drawn at the midpoint between the upper trendline and the upper reflection trendline, controlled by the "Show Upper Reflection Heartline" toggle.
Display Control: The "Show Reflection Channel" dropdown allows users to select:
"None": No reflection channels are shown.
"Lower": Only the lower reflection channel is shown.
"Upper": Only the upper reflection channel is shown.
"Both": Both reflection channels are shown.
Purpose: Reflection channels extend the price range analysis by providing additional levels where price may react, acting as potential targets or reversal zones after breaking the main trendlines.
3. Heartlines
Each timeframe, including the DayTrade channel and its reflection channels, can display a heartline, which is a dashed line plotted at the midpoint between the upper and lower trendlines or their projections. For the DayTrade channel:
Main DayTrade Heartline: Midpoint between the upper and lower trendlines, controlled by the "Show DayTrade Heartline" toggle.
Lower Reflection Heartline: Midpoint between the lower trendline and the lower reflection trendline, controlled by the "Show Lower Reflection Heartline" toggle.
Upper Reflection Heartline: Midpoint between the upper trendline and the upper reflection trendline, controlled by the "Show Upper Reflection Heartline" toggle.
Independent Toggles: Visibility is controlled by:
"Show DayTrade Heartline": For the main DayTrade heartline.
"Show Lower Reflection Heartline": For the lower reflection heartline.
"Show Upper Reflection Heartline": For the upper reflection heartline.
Potential Volume Indicator: The heartline represents the average price level between the high and low of a period, which may correlate with areas of high trading activity or volume concentration, as these midpoints often align with price levels where buyers and sellers have historically converged. A break above or below the heartline, especially with strong momentum, may indicate a shift in market sentiment, potentially leading to accelerated price movement in the direction of the break. However, this is an observation based on the heartline’s position, not a direct measure of volume, as the script does not incorporate volume data.
4. Alerts
The script includes alert conditions for all timeframes, triggered when a candle closes fully above the upper projection or below the lower projection. For the DayTrade channel:
Upper Trend Break: Triggers when a candle closes fully above the upper projection.
Lower Trend Break: Triggers when a candle closes fully below the lower projection.
Alerts are combined across all timeframes, so a break in any timeframe triggers a general "Upper Trend Break" or "Lower Trend Break" alert with the message: "Candle closed fully above/below one or more projection lines." Alerts fire once per bar close.
5. Customization Options
The script provides extensive customization through input settings, grouped by timeframe:
DayTrade Channel:
"Show DayTrade Trend Lines": Toggle main trendlines and projections.
"Show DayTrade Heartline": Toggle main heartline.
"Show Lower Reflection Heartline": Toggle lower reflection heartline.
"Show Upper Reflection Heartline": Toggle upper reflection heartline.
"DayTrade Channel Color": Set color for trendlines.
"DayTrade Projection Channel Color": Set color for projections.
"Heartline Color": Set color for all heartlines.
"Show Reflection Channel": Dropdown to show "None," "Lower," "Upper," or "Both" reflection channels.
Other Timeframes (Weekly, Monthly, Quarterly, Yearly/All-Time):
Toggles for trendlines (e.g., "Show Weekly Trend Lines," "Show Monthly Trend Lines") and heartlines (e.g., "Show Weekly Heartline," "Show Monthly Heartline").
Period selection (e.g., "Weekly Period" for 1, 2, or 3 weeks; "Yearly Period" for 1 to 10 years or All Time).
Separate colors for trendlines (e.g., "Weekly Channel Color"), projections (e.g., "Weekly Projection Channel Color"), and heartlines (e.g., "Weekly Heartline Color").
Max Bar Difference: Limits the distance between anchor points to ensure relevance to recent price action.
Display
The indicator overlays the following elements on the chart:
Trendlines: Solid lines connecting the high and low anchor points for each timeframe, using user-specified colors (e.g., set via "DayTrade Channel Color").
Projections: Dashed lines extending from the current anchor points, indicating potential future price levels, using colors set via "DayTrade Projection Channel Color" or equivalent.
Heartlines: Dashed lines at the midpoint of each channel, using the color set via "Heartline Color" or equivalent.
Reflection Channels (DayTrade Only):
Lower reflection trendline and projection: Below the lower trendline, using the same colors as the main channel.
Upper reflection trendline and projection: Above the upper trendline, using the same colors.
Reflection heartlines: Midpoints between the main trendlines and their respective reflection trendlines, using the "Heartline Color."
Visual Clarity: Lines are only drawn if the relevant toggles (e.g., "Show DayTrade Trend Lines") are enabled and data is available. Lines are deleted when their conditions are not met to avoid clutter.
Trading Applications: Line-to-Line Trading
The SuperTrend indicator can be used to inform trading decisions by providing a framework for line-to-line trading, where traders use the trendlines, projections, and heartlines as reference points for entries, exits, and risk management. Below is a detailed explanation of how to use the DayTrade channel and its reflection channels for trading, focusing on their anchoring, static/dynamic behavior, and the heartline’s role.
1. Why DayTrade Channel Anchoring
The DayTrade channel’s anchoring to the previous day’s high/low and the current day’s high/low before 12 PM, controlled by the "Show DayTrade Trend Lines" toggle, captures significant price levels during high-volatility periods:
Previous Day High/Low: These represent key levels where price found resistance (high) or support (low) in the prior session, often acting as psychological or technical barriers in the current session.
Current Day High/Low Before 12 PM: The morning session (before 12 PM) often sees increased volatility due to market openings, news releases, or institutional activity. Anchoring to these early highs/lows ensures the channel reflects the most relevant price extremes, which are likely to influence intraday price action.
Static After 12 PM: By fixing the anchor points after 12 PM, the trendlines and projections become stable references for the afternoon session, allowing traders to anticipate price reactions at these levels without the lines shifting unexpectedly.
This anchoring makes the DayTrade channel particularly useful for intraday traders, as it provides a consistent framework based on recent price history, which can guide decisions on trend continuation or reversal.
2. Using Static Channels and Projections
The static nature of the DayTrade channel after 12 PM, enabled by "Show DayTrade Trend Lines," and the dynamic projections, set via "DayTrade Projection Channel Color," provide a structured approach to trading:
Support and Resistance:
The upper trendline and lower trendline act as dynamic support/resistance levels based on the previous and current day’s price extremes.
Traders may observe price reactions (e.g., bounces or breaks) at these levels. For example, if price approaches the lower trendline and bounces, it may indicate support, suggesting a potential long entry.
Projections as Price Targets:
The projections extend the trendlines forward, offering potential price targets if the trend continues. For instance, if price breaks above the upper trendline and continues toward the upper projection, traders might consider it a bullish continuation signal.
A candle closing fully above the upper projection or below the lower projection (triggering an alert) may indicate a breakout, prompting traders to enter in the direction of the break or reassess if the break fails.
Static Channels for Breakouts:
Because the trendlines are static after 12 PM, they serve as fixed reference points. A break above the upper trendline or its projection may suggest bullish momentum, while a break below the lower trendline or projection may indicate bearish momentum.
Traders can use these breaks to set entry points (e.g., entering a long position after a confirmed break above the upper projection) and place stop-losses below the broken level to manage risk.
3. Line-to-Line Trading Strategy
Line-to-line trading involves using the trendlines, projections, and reflection channels as sequential price targets or reversal zones:
Trading Within the Main Channel:
Long Setup: If price bounces off the lower trendline and moves toward the heartline (enabled by "Show DayTrade Heartline") or upper trendline, traders might enter a long position near the lower trendline, targeting the heartline or upper trendline for profit-taking. A stop-loss could be placed below the lower trendline to protect against a breakdown.
Short Setup: If price rejects from the upper trendline and moves toward the heartline or lower trendline, traders might enter a short position near the upper trendline, targeting the heartline or lower trendline, with a stop-loss above the upper trendline.
Trading to Reflection Channels:
If price breaks above the upper trendline and continues toward the upper reflection trendline or its projection (enabled by "Show Reflection Channel" set to "Upper" or "Both"), traders might treat this as a breakout trade, entering long with a target at the upper reflection level and a stop-loss below the upper trendline.
Similarly, a break below the lower trendline toward the lower reflection trendline or its projection (enabled by "Show Reflection Channel" set to "Lower" or "Both") could signal a short opportunity, with a target at the lower reflection level and a stop-loss above the lower trendline.
Reversal Trades:
If price reaches the upper reflection trendline and shows signs of rejection (e.g., a bearish candlestick pattern), traders might consider a short position, anticipating a move back toward the main channel’s upper trendline or heartline.
Conversely, a rejection at the lower reflection trendline could prompt a long position targeting the lower trendline or heartline.
Risk Management:
Use the heartline as a midpoint to gauge whether price is likely to continue toward the opposite trendline or reverse. For example, a failure to break above the heartline after bouncing from the lower trendline might suggest weakening bullish momentum, prompting a tighter stop-loss.
The static nature of the channels after 12 PM allows traders to set precise stop-loss and take-profit levels based on historical price levels, reducing the risk of chasing moving targets.
4. Heartline as a Volume Indicator
The heartline, controlled by toggles like "Show DayTrade Heartline," "Show Lower Reflection Heartline," and "Show Upper Reflection Heartline," may serve as an indirect proxy for areas of high trading activity:
Rationale: The heartline represents the average price between the high and low of a period, which often aligns with price levels where significant buying and selling have occurred, as these midpoints can correspond to areas of consolidation or high volume in the order book. While the script does not directly use volume data, the heartline’s position may reflect price levels where market participants have historically balanced supply and demand.
Breakout Potential: A break above or below the heartline, particularly with a strong candle (e.g., wide range or high momentum), may indicate a shift in market sentiment, potentially leading to accelerated price movement in the direction of the break. For example:
A close above the main DayTrade heartline could suggest buyers are overpowering sellers, potentially leading to a move toward the upper trendline or upper reflection channel.
A close below the heartline could indicate seller dominance, targeting the lower trendline or lower reflection channel.
Trading Application:
Traders might use heartline breaks as confirmation signals for trend continuation. For instance, after a bounce from the lower trendline, a close above the heartline could confirm bullish momentum, prompting a long entry.
The heartline can also act as a dynamic stop-loss or trailing stop level. For example, in a long trade, a trader might exit if price falls below the heartline, indicating a potential reversal.
For reflection heartlines, a break above the upper reflection heartline or below the lower reflection heartline could signal strong momentum, as these levels are further from the main channel and may require significant buying or selling pressure to breach.
5. Practical Trading Considerations
Timeframe Context: The DayTrade channel, enabled by "Show DayTrade Trend Lines," is best suited for intraday trading due to its daily anchoring and morning update behavior. Traders should consider higher timeframe channels (e.g., enabled by "Show Weekly Trend Lines" or "Show Monthly Trend Lines") for broader context, as breaks of the DayTrade channel may align with or be influenced by larger trends.
Confirmation Tools: Use additional indicators (e.g., RSI, MACD, or volume-based indicators) or candlestick patterns to confirm signals at trendlines, projections, or heartlines. The script’s alerts can help identify breakouts, but traders should verify with other technical or fundamental factors.
Risk Management: Always define risk-reward ratios before entering trades. For example, a 1:2 risk-reward ratio might involve risking a stop-loss below the lower trendline to target the heartline or upper trendline.
Market Conditions: The effectiveness of the channels and heartlines depends on market conditions (e.g., trending vs. ranging markets). In choppy markets, price may oscillate within the main channel, favoring range-bound strategies. In trending markets, breaks of projections or reflection channels may signal continuation trades.
Limitations: The indicator relies on historical price data and does not incorporate volume, news, or other external factors. Traders should use it as part of a broader strategy and avoid relying solely on its signals.
How to Use in TradingView
Add the Indicator: Copy the script into TradingView’s Pine Editor, compile it, and add it to your chart.
Configure Settings:
Enable "Show DayTrade Trend Lines" to display the main DayTrade trendlines and projections.
Use the "Show Reflection Channel" dropdown to select "Lower," "Upper," or "Both" to display reflection channels.
Toggle "Show DayTrade Heartline," "Show Lower Reflection Heartline," and "Show Upper Reflection Heartline" to control heartline visibility.
Adjust colors using "DayTrade Channel Color," "DayTrade Projection Channel Color," and "Heartline Color."
Enable other timeframes (e.g., "Show Weekly Trend Lines," "Show Monthly Trend Lines") for additional context, if desired.
Set Alerts: Configure alerts in TradingView for "Upper Trend Break" or "Lower Trend Break" to receive notifications when a candle closes fully above or below any timeframe’s projections.
Analyze the Chart:
Monitor price interactions with the trendlines, projections, and heartlines.
Look for bounces, breaks, or rejections at these levels to plan entries and exits.
Use the heartline breaks as potential confirmation of momentum shifts.
Test Strategies: Backtest line-to-line trading strategies in TradingView’s strategy tester or demo account to evaluate performance before trading with real capital.
Conclusion
The SuperTrend indicator provides a robust framework for technical analysis by plotting dynamic trend channels, projections, and heartlines across multiple timeframes, with advanced features for the DayTrade channel, including lower and upper reflection channels. The DayTrade channel’s anchoring to previous and current day highs/lows before 12 PM, enabled by "Show DayTrade Trend Lines," creates a stable reference for intraday trading, while static trendlines and dynamic projections guide traders in anticipating price movements. The heartlines, controlled by toggles like "Show DayTrade Heartline," offer potential insights into high-activity price levels, with breaks possibly indicating momentum shifts. Traders can use the indicator for line-to-line trading by targeting moves between trendlines, projections, and reflection channels, while managing risk with stop-losses and confirmations from other tools. The indicator should be used as part of a comprehensive trading plan.
Top 30 Crypto IndexAttempt at creating an Index for the Crypto Market, data based on top 30 as data-sources are limited on TV
[Top] Multi-Candle Pattern DetectorThe Multi-Candle Pattern Detector is a powerful tool that scans for a wide variety of high-probability candlestick formations directly on the chart. It highlights key multi-bar reversal and continuation patterns using intuitive emoji-based labels and descriptive tooltips, helping traders quickly assess market conditions and potential setups.
Supported patterns include:
Bullish & Bearish Engulfing
Morning Star / Evening Star
Three Line Strike
Rising / Falling Three Methods
Hammer / Inverted Hammer / Hanging Man / Gravestone Doji
To reduce false signals, this script includes a built-in trend filter using a custom LHAMA (Low-High Adaptive Moving Average) calculation. Patterns are only displayed when recent price action is not flat, helping traders avoid entries during consolidation.
Users can toggle each pattern type individually, making the script adaptable for various strategies and timeframes.
⸻
Potential Uses
Reversal Spotting: Identify key inflection points at the end of trends.
Continuation Confirmation: Confirm trend strength following brief pauses in momentum.
Price Action Training: Visually reinforce recognition of textbook candlestick patterns.
Strategy Integration: Combine with trend or volume filters for more advanced rule-based systems.
⸻
This indicator is suitable for traders who rely on price action and candlestick psychology, and is useful across all asset classes and chart intervals.
Breaker Blocks with Signals + Dynamic 5-Day SMA FilterUsing Lux algo ICT breaker block script along with a dynamic 5 day moving average
[Top] Unified Divergence DetectorThe Unified Divergence Detector (UDD) is a powerful tool designed to identify both regular and hidden divergences across multiple oscillators—RSI, CCI, and Stochastic—in a single unified indicator.
Unlike other divergence tools that focus on one source at a time, this script cross-checks multiple indicators simultaneously and consolidates the results into a single signal. Labels appear only when at least one divergence is detected, with optional color-coding to distinguish the number and type of divergences:
🐂 Bullish Divergence: Signals a potential reversal or continuation to the upside.
🐻 Bearish Divergence: Signals a potential reversal or continuation to the downside.
The script lets users configure:
Whether to detect regular, hidden, or both types of divergence.
Pivot lookback parameters and divergence detection range.
Separate label colors for 1, 2, or 3+ confirmations from different indicators.
Tooltips are dynamically generated and offer guidance on interpreting each signal based on the oscillator sources involved and the divergence type. Labels are intelligently placed to avoid clutter and display only the strongest, most relevant signals.
⸻
Potential Uses
Trend Reversals: Spot early signs of exhaustion and prepare for a trend change.
Trend Continuations: Confirm existing trends via hidden divergence signals.
Multi-Timeframe Confirmation: Combine this indicator with higher timeframe trend tools to validate entries or exits.
Custom Strategy Building: Integrate into more complex strategies involving price action or volume filters.
⸻
This indicator is ideal for traders who value confirmation from multiple sources and prefer clear, high-confidence signals over constant alerts. It works well across all timeframes and asset classes.
Signal Quality Validator - Lite# Signal Quality Validator Lite - Technical Documentation
## Introduction
The Signal Quality Validator (SQV) Lite represents a comprehensive approach to technical signal validation, designed to evaluate trading opportunities through multi-dimensional market analysis. This indicator provides traders with objective quality assessments for their entry signals across various market conditions and timeframes.
## Core Architecture
### Component-Based Validation System
SQV Lite employs five fundamental market components, each contributing weighted scores to produce a final quality assessment. The system analyzes multiple market dimensions simultaneously to provide comprehensive signal validation.
Each component uses proprietary algorithms to evaluate specific market conditions:
• Directional bias and strength assessment
• Market participation and flow analysis
• Price acceleration patterns
• Key technical level identification
• Optimal volatility conditions
The final score represents a weighted combination of all components, with thresholds adjusted for different market conditions and timeframes.
## Scoring Methodology
### Quality Grades
• **Grade A+ (90-100)** - Exceptional setup quality with maximum component confluence
• **Grade A (80-89)** - High-quality signals suitable for full position sizing
• **Grade B (65-79)** - Acceptable signals meeting minimum validation criteria
• **Grade C (<65)** - Substandard conditions, signal rejected
### Timeframe Profiles
Pre-configured profiles optimize component weights and thresholds:
**1-5 min (Scalping)**
• Min Score: 60
• High Score: 75
• Perfect Score: 85
**15-30 min (Day Trading)**
• Min Score: 65
• High Score: 80
• Perfect Score: 90
**1H-4H (Intraday Swing)**
• Min Score: 70
• High Score: 85
• Perfect Score: 95
**Daily+ (Position Trading)**
• Min Score: 75
• High Score: 88
• Perfect Score: 95
**Custom (User Defined)**
• All thresholds configurable
## Integration Guide
### Standalone Usage
1. Add SQV Lite to your chart
2. Select appropriate timeframe profile
3. Monitor real-time quality grades on signal bars
4. Use dashboard for current market assessment
### Bidirectional Strategy Integration
SQV Lite supports complete two-way communication with your custom strategies, enabling sophisticated signal validation workflows.
#### Step 1: Setting Up Your Strategy to Send Signals
In your custom strategy/indicator, export your signals as plots:
```
//@version=6
indicator("My Custom Strategy", overlay=true)
// Your signal logic
longSignal = ta.crossover(ema9, ema21) // Example
shortSignal = ta.crossunder(ema9, ema21) // Example
// CRITICAL: Export signals for SQV to read
// Use display=display.none to hide the plots
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
```
#### Step 2: Configure SQV Lite to Receive Signals
1. Add SQV Lite to the same chart as your strategy
2. In SQV Lite settings, enable "Use External Signals"
3. Click on "External Long Signal Source" and select your strategy's "Long Signal Output"
4. Click on "External Short Signal Source" and select your strategy's "Short Signal Output"
#### Step 3: Import SQV Validation Back to Your Strategy
Complete the bidirectional flow by importing SQV's validation results:
```
//@version=6
strategy("My Strategy with SQV Integration", overlay=true)
// Import SQV validation results
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
sqvLongValid = input.source(close, "SQV Long Valid Source", group="SQV Integration")
sqvShortValid = input.source(close, "SQV Short Valid Source", group="SQV Integration")
sqvTradingMode = input.source(close, "SQV Trading Mode", group="SQV Integration")
// Your original signals
longSignal = ta.crossover(ema9, ema21)
shortSignal = ta.crossunder(ema9, ema21)
// Export for SQV
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
// Use SQV validation in entry logic
if longSignal and sqvLongValid > 0
strategy.entry("Long", strategy.long)
if shortSignal and sqvShortValid > 0
strategy.entry("Short", strategy.short)
```
#### Step 4: Complete Integration Setup
After adding both scripts to your chart:
**In your strategy settings → SQV Integration:**
• Set "SQV Score Source" → Select SQV Lite: SQV Score
• Set "SQV Long Valid Source" → Select SQV Lite: SQV Long Valid
• Set "SQV Short Valid Source" → Select SQV Lite: SQV Short Valid
**In SQV Lite settings → Signal Import:**
• Enable "Use External Signals"
• Set "External Long Signal Source" → Select Your Strategy: Long Signal Output
• Set "External Short Signal Source" → Select Your Strategy: Short Signal Output
### Available Data Exports from SQV
```
// Core validation data
plot(currentTotalScore, "SQV Score", display=display.none) // 0-100
plot(sqvLongValid ? 1 : 0, "SQV Long Valid", display=display.none) // 0 or 1
plot(sqvShortValid ? 1 : 0, "SQV Short Valid", display=display.none) // 0 or 1
// Component scores for advanced usage
plot(currentTrendScore, "SQV Trend Score", display=display.none)
plot(currentVolumeScore, "SQV Volume Score", display=display.none)
plot(currentMomentumScore, "SQV Momentum Score", display=display.none)
plot(currentStructureScore, "SQV Structure Score", display=display.none)
plot(currentVolatilityScore, "SQV Volatility Score", display=display.none)
// Additional data
plot(orderFlowDelta, "SQV Order Flow Delta", display=display.none)
plot(tradingMode == "Long" ? 1 : tradingMode == "Short" ? -1 : 0, "SQV Trading Mode", display=display.none)
```
### Advanced Integration Examples
#### Example 1: Quality-Based Position Sizing
```
// In your strategy
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
// Dynamic position sizing based on signal quality
positionSize = sqvScore >= 90 ? 3 : // A+ quality = 3 units
sqvScore >= 80 ? 2 : // A quality = 2 units
sqvScore >= 65 ? 1 : 0 // B quality = 1 unit
if longSignal and sqvLongValid > 0 and positionSize > 0
strategy.entry("Long", strategy.long, qty=positionSize)
```
#### Example 2: Filtering by Component Scores
```
// Import individual components
sqvTrend = input.source(close, "SQV Trend Score", group="SQV Integration")
sqvVolume = input.source(close, "SQV Volume Score", group="SQV Integration")
sqvMomentum = input.source(close, "SQV Momentum Score", group="SQV Integration")
// Custom filtering logic
strongTrend = sqvTrend > 80
goodVolume = sqvVolume > 70
strongSetup = strongTrend and goodVolume
if longSignal and sqvLongValid > 0 and strongSetup
strategy.entry("Strong Long", strategy.long)
```
#### Example 3: Order Flow Integration
```
// Import order flow data
sqvOrderFlow = input.source(close, "SQV Order Flow Delta", group="SQV Integration")
// Use order flow for additional confirmation
bullishFlow = sqvOrderFlow > 100 // Significant buying pressure
bearishFlow = sqvOrderFlow < -100 // Significant selling pressure
if longSignal and sqvLongValid > 0 and bullishFlow
strategy.entry("Long+Flow", strategy.long)
```
### Visual Feedback Configuration
#### Label Display Modes
**1. Autonomous Mode (standalone testing):**
• Enable "Show Labels Without Signals"
• Labels appear on every bar where score >= minimum threshold
• Useful for initial testing without strategy integration
**2. Signal Mode (production use):**
• Disable "Show Labels Without Signals"
• Enable "Use External Signals"
• Labels appear ONLY when your strategy generates signals
• Prevents chart clutter, shows validation exactly when needed
#### Troubleshooting Integration
**Common Issues:**
**Labels not appearing:**
• Verify "Use External Signals" is enabled
• Check signal sources are properly connected
• Ensure your strategy is actually generating signals (add visible plots temporarily)
**Wrong source selection:**
• Source dropdowns should show your indicator/strategy name
• Each output plot should be visible in the dropdown
• If not visible, check plot titles in your strategy
**Validation always failing:**
• Check Trading Mode matches your signal types
• Verify minimum score thresholds aren't too high
• Use Autonomous Mode to test if SQV is working properly
### Best Practices
1. **Always use display=display.none** for communication plots to keep charts clean
2. **Name your plots clearly** for easy identification in source dropdowns
3. **Test in Autonomous Mode first** to understand SQV behavior
4. **Use consistent signal logic** - ensure signals are binary (1 or 0)
5. **Consider adding a small delay** between signal and entry for validation processing
### Complete Integration Template
Here's a full template for a strategy with complete SQV integration:
```
//@version=6
strategy("Complete SQV Integration Template", overlay=true)
// ========== SQV Integration Inputs ==========
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
sqvLongValid = input.source(close, "SQV Long Valid Source", group="SQV Integration")
sqvShortValid = input.source(close, "SQV Short Valid Source", group="SQV Integration")
sqvOrderFlow = input.source(close, "SQV Order Flow Delta", group="SQV Integration")
// ========== Strategy Parameters ==========
emaFast = input.int(9, "Fast EMA")
emaSlow = input.int(21, "Slow EMA")
useQualitySizing = input.bool(true, "Use Quality-Based Sizing")
// ========== Indicators ==========
ema1 = ta.ema(close, emaFast)
ema2 = ta.ema(close, emaSlow)
// ========== Signal Logic ==========
longSignal = ta.crossover(ema1, ema2)
shortSignal = ta.crossunder(ema1, ema2)
// ========== Export Signals to SQV ==========
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
// ========== Position Sizing ==========
baseSize = 1
qualityMultiplier = useQualitySizing ?
(sqvScore >= 90 ? 3 : sqvScore >= 80 ? 2 : 1) : 1
positionSize = baseSize * qualityMultiplier
// ========== Entry Logic with SQV Validation ==========
if longSignal and sqvLongValid > 0
strategy.entry("Long", strategy.long, qty=positionSize)
if shortSignal and sqvShortValid > 0
strategy.entry("Short", strategy.short, qty=positionSize)
// ========== Exit Logic ==========
if strategy.position_size > 0 and shortSignal
strategy.close("Long")
if strategy.position_size < 0 and longSignal
strategy.close("Short")
// ========== Visual Feedback ==========
plotshape(longSignal and sqvLongValid > 0, "Valid Long",
location=location.belowbar, color=color.green, style=shape.triangleup)
plotshape(shortSignal and sqvShortValid > 0, "Valid Short",
location=location.abovebar, color=color.red, style=shape.triangledown)
```
## Order Flow Analysis
The integrated Order Flow system automatically adapts to market conditions, providing intelligent analysis of buying and selling pressure. The system handles various market scenarios including low liquidity and minimal price movement conditions through advanced algorithms.
## Visual Interface
### Signal Labels
Displays three-line information blocks:
• Grade designation (A+, A, B, C)
• Numerical quality score
• Order flow direction and magnitude
### Dashboard Elements
• **Profile Display** - Active configuration and thresholds
• **Score Visualization** - Real-time quality assessment
• **Flow Indicator** - Directional bias representation
• **Status Monitor** - Ready/Wait signal state
### Customization Options
• Label distance adjustment (0.5-3.0x ATR)
• Profile selection and custom configuration
• Component weight modifications (Custom mode)
• Threshold adjustments for different market conditions
## Trading Mode Selection
Three operational modes accommodate different trading styles:
• **Long Only** - Validates bullish signals exclusively
• **Short Only** - Validates bearish signals exclusively
• **Both** - Bi-directional signal validation
## Performance Considerations
SQV Lite maintains computational efficiency through:
• Optimized calculation cycles
• Selective component updates
• Efficient data structure usage
• Minimal redundant processing
---
## Feature Comparison: SQV Lite vs Full Version
### Core Components
**SQV Lite includes:**
• ✅ Trend Analysis (Full)
• ✅ Volume Dynamics (Full)
• ✅ Momentum Assessment (Full)
• ✅ Market Structure (Basic)
• ✅ Volatility Filter (Full)
**SQV Full adds:**
• ✅ Performance Analytics - Real-time performance tracking
• ✅ Impulse Detection - Advanced signal filtering
### Advanced Features
**SQV Lite:**
• Manual position sizing via integration
• 5 timeframe profiles
• Standard dashboard
• Basic signal labels
**SQV Full adds:**
• ✅ Multi-Timeframe Analysis - Higher timeframe confirmation
• ✅ Automatic Position Sizing - Dynamic optimization
• ✅ Auto Mode - Self-optimizing system
• ✅ Advanced Profiling - Market depth analysis
• ✅ Recovery Mode - Adaptive drawdown handling
• ✅ Statistical Validation - Confidence-based filtering
• ✅ 4 Dashboard Layouts - Extended, Vertical, Minimal options
• ✅ Enhanced Signal Labels with sizing display
• ✅ Component Breakdown View
• ✅ Live Performance Statistics
• ✅ Debug Mode
### Integration Capabilities
**SQV Lite:**
• Script Type: Indicator
• Full bidirectional data flow support
• All data available via plots
• Excellent external integration
**SQV Full:**
• Script Type: Strategy
• Built-in trading logic
• Internal position management
• One-way integration (strategy-based)
### Risk Management
**SQV Lite:**
• Manual position sizing through your strategy
• Basic quality grading (A+, A, B, C)
**SQV Full adds:**
• ✅ Automatic position sizing
• ✅ Built-in quality-based sizing
• ✅ Performance-based adjustments
• ✅ Professional risk grading system
• ✅ Statistical filtering
### Market Analysis
**Both versions include:**
• Order Flow Analysis
**SQV Full adds:**
• ✅ Market Manipulation Detection
• ✅ Multi-Timeframe Validation
• ✅ Enhanced Momentum Analysis
• ✅ Full Auto Mode Market Regime Adaptation
---
## Upgrade to SQV Full Version
### Enhanced Capabilities in Full Version
The complete SQV system extends validation capabilities with advanced components:
#### 🎯 **Performance Analytics Component**
• Real-time Sharpe Ratio calculation
• Win rate tracking with confidence intervals
• Risk-adjusted performance metrics
• Adaptive threshold adjustments
#### ⚡ **Impulse Detection with Trap Analysis**
• Advanced momentum surge detection
• Market manipulation identification
• False breakout filtering
• Volume/price divergence analysis
#### 📊 **Multi-Timeframe Confluence**
• Three-timeframe trend alignment
• Higher timeframe confirmation requirements
• Confluence strength scoring
• Directional bias validation
#### 🎰 **Dynamic Position Sizing**
• Automatic position multipliers based on signal quality
• Grade A+ signals (90+) = Maximum multiplier
• Grade A signals (80-89) = Scaled multiplier
• Grade B signals (65-79) = Base position size
• Risk-adjusted position management
• Sharpe-influenced adjustments
#### 🔄 **Auto Mode**
• Market-adaptive parameter optimization
• Dynamic weight redistribution
• Volatility-based threshold adjustments
• Self-calibrating component settings
#### 📈 **Volume Profile Integration**
• Point of Control (POC) identification
• Value Area analysis (VAH/VAL)
• Profile-based support/resistance
• Volume distribution visualization
#### 🛡️ **Recovery Mode**
• Drawdown detection and adaptation
• Conservative validation during recovery
• Gradual threshold normalization
• Performance-based re-engagement
#### 📊 **Extended Visualizations**
• Multiple dashboard layouts
• Component breakdown displays
• Performance statistics panels
• Risk grade assessments
### Why Upgrade?
While SQV Lite provides robust signal validation, the Full Version transforms your trading with:
• **Automated risk management** through dynamic sizing
• **Superior signal filtering** via Impulse and MTF components
• **Performance optimization** with real-time analytics
• **Market adaptation** through Auto Mode
• **Additional dashboard layouts** for complete market insight
---
## 💰 SQV Full Version Pricing
### Monthly Subscription: $29/month
Get instant access to the complete Signal Quality Validator system with all premium features:
✅ All 7 additional advanced components
✅ Automatic position sizing optimization
✅ Performance analytics & Sharpe tracking
✅ Impulse detection with trap analysis
✅ Multi-timeframe confluence validation
✅ Auto Mode with self-optimization
✅ Recovery mode for drawdown management
✅ 4 dashboard layouts
✅ Priority support
### 📩 How to Subscribe
To get access to SQV Full Version:
1. **Send me a DM** on TradingView
2. **Include your TradingView username/ID** in the message
3. Receive payment instructions and access upon confirmation
*Your TradingView ID is required to grant access to the private indicator.*
### 🔧 Custom Integration Services
**Need direct integration into your Pine Script strategy?**
For traders requiring seamless library-based integration without external signal limitations:
• Full backtesting on complete price history
• Zero signal delay
• Custom parameter optimization
• Private library implementation
**📩 DM me for custom integration pricing and details**
---
## Support and Updates
SQV Lite receives regular maintenance updates. For technical questions or feature requests, please reach out through TradingView's messaging system.
## Disclaimer
Signal Quality Validator provides technical analysis assistance only. All trading decisions remain the sole responsibility of the user. Past performance does not guarantee future results. Trade responsibly and within your risk tolerance.
Horas inicio velas 4HThis indicator highlights the start of every 4-hour candle across all intraday timeframes. It places a vertical line and an optional label displaying the exact opening time (e.g., "08:00", "12:00") at each 4H interval.
It helps traders quickly identify 4-hour blocks for intraday analysis, strategy alignment, or timing entries around higher timeframe levels.
Customizable features include:
Line color
Label visibility and style
Perfect for traders who work with multi-timeframe strategies and want to track key 4-hour zones visually on lower timeframes like 5m, 15m, or 1h.
52SIGNAL RECIPE CME Gap Support & Resistance Detector═══ 52SIGNAL RECIPE CME Gap Support & Resistance Detector ═══
◆ Overview
The 52SIGNAL RECIPE CME Gap Support & Resistance Detector is an advanced technical indicator that automatically detects and visualizes all types of price gaps occurring in the CME Bitcoin futures market on trading charts. It captures not only gaps formed during weekend and holiday closures, but also those created during the daily 1-hour maintenance period on weekdays, and sudden price gaps resulting from economic indicator releases or news events.
The core value of this indicator lies beyond simply displaying gaps; it visualizes how these price discontinuities act as powerful support and resistance zones that influence future price movements. In real markets, these CME gaps have a high probability of either being "filled" or functioning as important reaction zones, providing traders with valuable entry and exit signals.
─────────────────────────────────────
◆ Key Features
• Comprehensive Gap Detection: Detects gaps in all market conditions
- Weekend/holiday closure gaps
- Weekday 1-hour maintenance period gaps
- Gaps from economic indicators/news events causing rapid price changes
• Intuitive Color Coding:
- Blue: When gaps act as support (price is above the gap)
- Red: When gaps act as resistance (price is below the gap)
- Gray: Filled gaps (price has completely passed through the gap area)
• Real-time Role Switching: Automatically changes colors as price moves above/below gaps, visualizing support↔resistance role transitions
• Status Tracking System: Automatically tracks whether gaps are "Filled" or "Unfilled"
• Dynamic Boxes: Clearly marks gap areas with boxes and dynamically changes colors based on price movement
• Precise Labeling: Accurately displays the price range of each gap to support trader decision-making
• Smart Filtering: Improved algorithm that solves consecutive gap detection issues for complete gap tracking
• Key Usage Points:
- Pay special attention when price approaches gap areas
- Color changes in gaps signal important market sentiment shifts
- Areas with multiple clustered gaps are particularly strong reaction zones
─────────────────────────────────────
◆ User Guide: Understanding Gap Roles Through Colors
■ Color System Interpretation
• Blue Gaps (Support Role):
▶ Meaning: Current price is above the gap, making the gap act as support
▶ Trading Application: Consider buying opportunities when price approaches blue gap areas
▶ Psychological Meaning: Buying pressure likely to increase at this price level
• Red Gaps (Resistance Role):
▶ Meaning: Current price is below the gap, making the gap act as resistance
▶ Trading Application: Consider selling opportunities when price approaches red gap areas
▶ Psychological Meaning: Selling pressure likely to increase at this price level
• Gray Gaps (Filled Gaps):
▶ Meaning: Price has completely passed through the gap area, filling the gap
▶ Reference Value: Still valuable as reference for past important reaction zones
▶ Trading Application: Used to confirm trend strength and identify key psychological levels
■ Understanding Color Transitions
• Blue → Red Transition:
▶ Meaning: Price has fallen below the gap, changing its role from support to resistance
▶ Market Interpretation: Breakdown of previous support strengthens bearish signals
▶ Trading Application: Consider potential further decline; check gap bottom as resistance during bounces
• Red → Blue Transition:
▶ Meaning: Price has risen above the gap, changing its role from resistance to support
▶ Market Interpretation: Breakout above previous resistance strengthens bullish signals
▶ Trading Application: Consider potential further rise; check gap top as support during pullbacks
─────────────────────────────────────
◆ Practical Application Guide
■ Basic Trading Scenarios
• Blue Gap Support Strategy:
▶ Entry Point: When price approaches the top of a blue gap and forms a bounce candle
▶ Stop Loss: Below the gap bottom (if price completely breaks down through the gap)
▶ Take Profit: Previous swing high or next resistance level above
▶ Probability Enhancers: Gap aligned with major moving averages, oversold RSI, strong bounce candle pattern
• Red Gap Resistance Strategy:
▶ Entry Point: When price approaches the bottom of a red gap and forms a rejection candle
▶ Stop Loss: Above the gap top (if price completely breaks up through the gap)
▶ Take Profit: Previous swing low or next support level below
▶ Probability Enhancers: Gap aligned with major moving averages, overbought RSI, strong rejection candle pattern
■ Advanced Pattern Applications
• Multiple Gap Cluster Identification:
▶ Several gaps in close price proximity form extremely powerful support/resistance zones
▶ Same-color gap clusters: Very strong single-direction reaction zones
▶ Mixed-color gap clusters: High volatility zones with bidirectional reactions expected
• Gap Sequence Analysis:
▶ Consecutive same-direction gaps: Strong trend confirmation signal
▶ Increasing gap size pattern: Trend acceleration signal
▶ Decreasing gap size pattern: Trend weakening signal
• News/Indicator Release Gap Utilization:
▶ Gaps formed immediately after economic indicators: Measure market shock intensity
▶ Gap color change observation: Track market reinterpretation of news
▶ Gap filling speed analysis: Evaluate news impact duration
• Key Attention Points:
▶ Pay special attention to the chart whenever price approaches gap areas
▶ Gap color changes signal important market sentiment shifts
▶ Areas with multiple concentrated gaps are likely to show strong price reactions
─────────────────────────────────────
◆ Technical Foundation
■ CME Gap Formation Principles
• Key Gap Formation Scenarios:
▶ Weekend Closures (Friday close → Monday open): Most common CME gap formation point
▶ Holiday Closures: Gaps occurring due to CME closures on US holidays
▶ Weekday 1-hour Maintenance: Gaps during daily CME maintenance period (16:00-17:00 CT)
▶ Major Economic Indicator Releases: Gaps from rapid price changes during US employment reports, FOMC decisions, CPI releases, etc.
▶ Significant News Events: Gaps from regulatory announcements, geopolitical events, market shocks, etc.
• Psychological Importance of Gaps:
▶ Zones where price formation did not occur, representing imbalance between buying/selling forces
▶ Gap areas have no actual trading, resulting in accumulated potential orders
▶ Reflect institutional investor positions and liquidity distribution in the CME futures market
■ Support/Resistance Mechanism
• Psychological Level Formation Mechanism:
▶ Unexecuted order accumulation in gap areas: Loss of ordering opportunity at those price levels
▶ Liquidity imbalance: No trading occurred in gap areas, creating liquidity voids
▶ Institutional activity: Institutional participants in CME futures markets pay attention to these gap areas
• Evidence of Support/Resistance Function:
▶ Statistical gap fill phenomenon: Most gaps eventually "fill" (price returns to gap area)
▶ Gap-based reactions: Increased frequency of price reactions (bounces/rejections) when reaching gap areas
▶ Market psychology impact: Influences traders' perceived value and fair price assessment
─────────────────────────────────────
◆ Advanced Configuration Options
■ Visualization Settings
• Show Gap Labels (Default: On)
▶ On: Displays price ranges of each gap numerically for precise support/resistance level identification
▶ Off: Hides labels for visual cleanliness
• Color Settings
▶ Filled Gap Color: Gray tones, shows gaps already traversed by price
▶ Unfilled Gap Color - Support: Blue, shows gaps currently acting as support
▶ Unfilled Gap Color - Resistance: Red, shows gaps currently acting as resistance
■ Data Management Settings
• Filled Gap Storage Limit (Default: 10)
▶ Sets maximum number of filled gaps to retain on chart
▶ Recommended settings: Short-term traders (5-8), Swing traders (8-12), Position traders (10-15)
• Maximum Gap Retention Period (Default: 12 months)
▶ Sets period after which old unfilled gaps are automatically removed
▶ Recommended settings: Short-term analysis (3-6 months), Medium-term analysis (6-12 months), Long-term analysis (12-24 months)
─────────────────────────────────────
◆ Synergy with Other Indicators
• Volume Profile: Greatly increased reaction probability when CME gaps align with Volume Profile value areas
• Fibonacci Retracements: Formation of powerful reaction zones when major Fibonacci levels coincide with gap areas
• Moving Averages: Areas where major moving averages overlap with CME gaps act as "composite support/resistance"
• Horizontal Support/Resistance: Very strong price reactions expected when historical key price levels align with CME gaps
• Market Sentiment Indicators (RSI/MACD): Assess reaction probability by checking oversold/overbought conditions when price approaches gap areas
─────────────────────────────────────
◆ Conclusion
The 52SIGNAL RECIPE CME Gap Support & Resistance Detector is not merely a gap display tool, but an advanced analytical tool that visualizes important support/resistance areas where price may strongly react, using intuitive color codes (blue=support, red=resistance). It detects all types of gaps without omission, whether from weekend and holiday closures, weekday 1-hour maintenance periods, important economic indicator releases, or market shock situations.
The core value of this indicator lies in clearly expressing through intuitive color coding that gaps are not simple price discontinuities, but psychological support/resistance areas that significantly influence future price action. Traders can instantly identify areas where blue gaps act as support and red gaps act as resistance, enabling quick and effective decision-making.
By referencing the color codes when price approaches gap areas to predict possible price reactions, and especially interpreting color transition moments (blue→red or red→blue) as signals of important market sentiment changes and integrating them into trading strategies, traders can capture higher-probability trading opportunities.
─────────────────────────────────────
※ Disclaimer: Like all trading tools, the CME Gap Detector should be used as a supplementary indicator and not relied upon alone for trading decisions. Past gap reaction patterns cannot guarantee the same behavior in the future. Always use appropriate risk management strategies.
═══ 52SIGNAL RECIPE CME Gap Support & Resistance Detector ═══
◆ 개요
52SIGNAL RECIPE CME Gap Support & Resistance Detector는 CME 비트코인 선물 시장에서 발생하는 모든 유형의 가격 갭(Gap)을 자동으로 감지하여 트레이딩 차트에 시각화하는 고급 기술적 지표입니다. 주말과 공휴일 휴장은 물론, 평일 1시간 휴장 시간, 그리고 중요 경제지표 발표나 뉴스 이벤트 시 발생하는 급격한 가격 갭까지 누락 없이 포착합니다.
이 인디케이터의 핵심 가치는 단순히 갭을 표시하는 것을 넘어, 이러한 가격 불연속성이 미래 가격 움직임에 영향을 미치는 강력한 지지(Support)와 저항(Resistance) 영역으로 작용한다는 원리를 시각화하는 데 있습니다. 실제 시장에서 이러한 CME 갭은 높은 확률로 미래에 "매꿔지거나" 중요한 반응 구간으로 기능하여 트레이더에게 귀중한 진입/퇴출 신호를 제공합니다.
─────────────────────────────────────
◆ 주요 특징
• 전방위 갭 감지: 모든 시장 조건에서 발생하는 갭을 감지
- 주말/공휴일 휴장 갭
- 평일 1시간 휴장 시간 갭
- 경제지표/뉴스 이벤트 시 급격한 가격 변동 갭
• 직관적 색상 구분:
- 파란색: 갭이 지지 역할을 할 때(가격이 갭 위에 있을 때)
- 빨간색: 갭이 저항 역할을 할 때(가격이 갭 아래에 있을 때)
- 회색: 이미 매꿔진 갭(가격이 갭 영역을 완전히 통과)
• 실시간 역할 전환: 가격이 갭 위/아래로 이동함에 따라 지지↔저항 역할 전환을 자동으로 색상 변경으로 시각화
• 상태 추적 시스템: 갭이 "매꿔짐(Filled)" 또는 "매꿔지지 않음(Unfilled)" 상태를 자동 추적
• 다이나믹 박스: 갭 영역을 명확한 박스로 표시하고 가격 움직임에 따라 동적으로 색상 변경
• 정밀 레이블링: 각 갭의 가격 범위를 정확히 표시하여 트레이더의 의사결정 지원
• 스마트 필터링: 연속적 갭 감지 문제를 해결하는 개선된 알고리즘으로 누락 없는 갭 추적
• 핵심 활용 포인트:
- 가격이 갭 영역에 접근할 때 특별히 주목하세요
- 갭 색상 변경 시점은 중요한 시장 심리 변화 신호입니다
- 여러 갭이 밀집된 영역은 특히 강한 반응이 예상되는 구간입니다
─────────────────────────────────────
◆ 사용 가이드: 색상으로 이해하는 갭 역할
■ 색상 시스템 해석법
• 파란색 갭 (지지 역할):
▶ 의미: 현재 가격이 갭 위에 있어 갭이 지지선으로 작용
▶ 트레이딩 응용: 가격이 파란색 갭 영역으로 하락 접근 시 매수 기회 고려
▶ 심리적 의미: 매수세력이 이 가격대에서 수요 증가 가능성
• 빨간색 갭 (저항 역할):
▶ 의미: 현재 가격이 갭 아래에 있어 갭이 저항선으로 작용
▶ 트레이딩 응용: 가격이 빨간색 갭 영역으로 상승 접근 시 매도 기회 고려
▶ 심리적 의미: 매도세력이 이 가격대에서 공급 증가 가능성
• 회색 갭 (매꿔진 갭):
▶ 의미: 가격이 갭 영역을 완전히 통과하여 갭이 매꿔진 상태
▶ 참조 가치: 과거 중요 반응 구간으로 여전히 참고 가치 있음
▶ 트레이딩 응용: 추세 강도 확인 및 주요 심리적 레벨 식별에 활용
■ 색상 전환 이해하기
• 파란색 → 빨간색 전환:
▶ 의미: 가격이 갭 아래로 하락하여 갭이 지지에서 저항으로 역할 변경
▶ 시장 해석: 이전 지지선 붕괴로 약세 신호 강화
▶ 트레이딩 응용: 추가 하락 가능성 고려, 반등 시 갭 하단 저항 확인
• 빨간색 → 파란색 전환:
▶ 의미: 가격이 갭 위로 상승하여 갭이 저항에서 지지로 역할 변경
▶ 시장 해석: 이전 저항선 돌파로 강세 신호 강화
▶ 트레이딩 응용: 추가 상승 가능성 고려, 조정 시 갭 상단 지지 확인
─────────────────────────────────────
◆ 실전 활용 가이드
■ 기본 트레이딩 시나리오
• 파란색 갭 지지 전략:
▶ 진입 시점: 가격이 파란색 갭 상단에 접근하여 반등 캔들 형성 시
▶ 손절 위치: 갭 하단 아래(갭 완전히 하향 돌파 시)
▶ 이익실현: 이전 스윙 고점 또는 상방 다음 저항선
▶ 확률 증가 조건: 갭과 주요 이동평균선 일치, 과매도 RSI, 강한 반등 캔들
• 빨간색 갭 저항 전략:
▶ 진입 시점: 가격이 빨간색 갭 하단에 접근하여 거부 캔들 형성 시
▶ 손절 위치: 갭 상단 위(갭 완전히 상향 돌파 시)
▶ 이익실현: 이전 스윙 저점 또는 하방 다음 지지선
▶ 확률 증가 조건: 갭과 주요 이동평균선 일치, 과매수 RSI, 강한 거부 캔들
■ 고급 패턴 활용법
• 다중 갭 클러스터 식별:
▶ 여러 갭이 근접한 가격대에 있다면 더욱 강력한 지지/저항 존
▶ 동일 색상 갭 클러스터: 매우 강력한 단일 방향 반응 구간
▶ 색상 혼합 갭 클러스터: 심한 변동성과 양방향 반응 예상 구간
• 갭 시퀀스 분석:
▶ 연속적인 동일 방향 갭: 강한 추세 확인 신호
▶ 갭 크기 증가 패턴: 추세 가속화 신호
▶ 갭 크기 감소 패턴: 추세 약화 신호
• 뉴스/지표 발표 후 갭 활용:
▶ 경제지표 발표 직후 형성된 갭: 시장 충격 강도 측정
▶ 갭 색상 변화 관찰: 시장의 뉴스 재해석 과정 파악
▶ 갭 매꿈 속도 분석: 뉴스 임팩트의 지속성 평가
• 핵심 주목 포인트:
▶ 가격이 갭 영역에 접근할 때마다 차트를 특별히 주목하세요
▶ 갭 색상이 변경되는 시점은 중요한 시장 심리 변화를 의미합니다
▶ 여러 갭이 밀집된 영역은 가격이 강하게 반응할 가능성이 높습니다
─────────────────────────────────────
◆ 기술적 기반
■ CME 갭의 발생 원리
• 주요 갭 발생 상황:
▶ 주말 휴장 (금요일 종가 → 월요일 시가): 가장 일반적인 CME 갭 형성 시점
▶ 공휴일 휴장: 미국 공휴일에 따른 CME 휴장 시 발생
▶ 평일 1시간 휴장: CME 시장의 일일 정비 시간(16:00~17:00 CT) 동안 발생
▶ 주요 경제지표 발표: 미 고용지표, FOMC 결정, CPI 등 발표 시 급격한 가격 변동으로 인한 갭
▶ 중요 뉴스 이벤트: 규제 발표, 지정학적 이벤트, 시장 충격 등으로 인한 급격한 가격 변화
• 갭의 심리적 중요성:
▶ 가격 형성이 이루어지지 않은 구간으로, 매수/매도 세력의 불균형 영역
▶ 갭 구간에는 실제 거래가 없었기 때문에 잠재적 주문이 누적되는 영역
▶ 기관 투자자들의 선물 포지션과 유동성 분포가 반영된 중요한 가격 레벨
■ 지지/저항으로 작용하는 원리
• 심리적 레벨 형성 메커니즘:
▶ 갭 구간의 미실행 주문 축적: 갭 발생 시 해당 가격대에 대한 주문 기회 상실
▶ 유동성 불균형: 갭 구간에는 거래가 없었으므로 유동성 공백 발생
▶ 기관 투자자 활동: CME 선물 시장의 기관 참여자들은 이러한 갭 영역에 관심
• 지지/저항 작용 증거:
▶ 통계적 갭 필 현상: 대부분의 갭은 미래에 "매꿔짐"(가격이 갭 구간으로 회귀)
▶ 갭 기반 반응: 갭 영역에 도달 시 가격 반응(반등/거부) 발생 빈도 증가
▶ 시장 심리 영향: 트레이더들의 인지된 가치와 공정가격 평가에 영향
─────────────────────────────────────
◆ 고급 설정 옵션
■ 시각화 설정
• 라벨 표시 설정 (Show Gap Labels) (기본값: 켜짐)
▶ 켜짐: 각 갭의 가격 범위를 숫자로 표시하여 정확한 지지/저항 레벨 확인
▶ 꺼짐: 시각적 깔끔함을 위해 라벨 숨김
• 색상 설정
▶ 매꿔진 갭 색상(Filled Gap Color): 회색 계열, 이미 가격이 통과한 갭 표시
▶ 미매꿔진 갭 색상 - 지지(Support): 파란색, 현재 지지 역할을 하는 갭
▶ 미매꿔진 갭 색상 - 저항(Resistance): 빨간색, 현재 저항 역할을 하는 갭
■ 데이터 관리 설정
• 매꿔진 갭 저장 한도 (Filled Gap Storage Limit) (기본값: 10)
▶ 이미 매꿔진 갭을 최대 몇 개까지 차트에 유지할지 설정
▶ 권장 설정: 단기 트레이더(5-8), 스윙 트레이더(8-12), 포지션 트레이더(10-15)
• 최대 갭 보관 기간 (Maximum Gap Retention Period) (기본값: 12개월)
▶ 오래된 미매꿔진 갭을 자동으로 제거하는 기간 설정
▶ 권장 설정: 단기 분석(3-6개월), 중기 분석(6-12개월), 장기 분석(12-24개월)
─────────────────────────────────────
◆ 다른 지표와의 시너지
• 볼륨 프로파일: CME 갭과 볼륨 프로파일의 밸류 영역 일치 시 반응 확률 크게 증가
• 피보나치 리트레이스먼트: 주요 피보나치 레벨과 갭 영역 일치 시 강력한 반응 존 형성
• 이동평균선: 주요 이동평균선과 CME 갭이 겹치는 영역은 "복합 지지/저항"으로 작용
• 수평 지지/저항: 과거 중요 가격대와 CME 갭 일치 시 매우 강력한 가격 반응 예상 가능
• 시장 심리 지표(RSI/MACD): 갭 영역 접근 시 과매수/과매도 확인으로 반응 가능성 판단
─────────────────────────────────────
◆ 결론
52SIGNAL RECIPE CME Gap Support & Resistance Detector는 단순한 갭 표시 도구가 아닌, 가격이 강하게 반응할 수 있는 중요한 지지/저항 영역을 직관적인 색상 코드(파란색=지지, 빨간색=저항)로 시각화하는 고급 분석 도구입니다. 주말과 공휴일 휴장 시간뿐만 아니라, 평일 1시간 휴장 시간, 중요 경제지표 발표, 그리고 시장 충격 상황에서 발생하는 모든 유형의 갭을 누락 없이 감지합니다.
인디케이터의 핵심 가치는 갭이 단순한 가격 불연속성이 아닌, 미래 가격 행동에 중요한 영향을 미치는 심리적 지지/저항 영역임을 직관적인 색상 코드로 명확히 표현하는 데 있습니다. 파란색 갭은 지지 역할을, 빨간색 갭은 저항 역할을 하는 영역을 즉각적으로 식별할 수 있어 트레이더가 빠르고 효과적인 의사결정을 내릴 수 있도록 도와줍니다.
갭 영역에 접근할 때마다 색상 코드를 참고하여 가능한 가격 반응을 예측하고, 특히 색상 전환이 일어나는 순간(파란색→빨간색 또는 빨간색→파란색)은 중요한 시장 심리 변화 신호로 해석하여 트레이딩 전략에 통합한다면, 더 높은 확률의 거래 기회를 포착할 수 있을 것입니다.
─────────────────────────────────────
※ 면책 조항: 모든 트레이딩 도구와 마찬가지로, CME Gap Detector는 보조 지표로 사용되어야 하며 단독으로 거래 결정을 내리는 데 사용해서는 안 됩니다. 과거의 갭 반응 패턴이 미래에도 동일하게 작용한다고 보장할 수 없습니다. 항상 적절한 리스크 관리 전략을 사용하세요.
Period Separator with Dates & PriceSimple period separator with dates and h/l price. Easy to analyze market structure, and thats all you need. Enjoy trading!
ATR Dynamic Stop (Table + Plot + ATR %)📊 This script displays dynamic stop levels based on ATR, designed for active traders.
Features:
- Shows long and short stop levels (price ± ATR × multiplier).
- Displays values as a floating table on the top-right corner.
- Optional plot lines directly on the chart.
- Option to calculate based on realtime price or last close.
- Displays the ATR value both in price units and as a percentage of the selected price.
- Fully customizable table: text size, text color, background color.
Inputs:
- ATR Multiplier and Length.
- Show/hide stop lines on the chart.
- Select price source (realtime or last close).
- Table appearance options.
Ideal for:
- Traders who want a clear visual stop guide.
- Combining volatility with risk management.
Signal Quality Validator - Lite# Signal Quality Validator Lite - Technical Documentation
## Introduction
The Signal Quality Validator (SQV) Lite represents a comprehensive approach to technical signal validation, designed to evaluate trading opportunities through multi-dimensional market analysis. This indicator provides traders with objective quality assessments for their entry signals across various market conditions and timeframes.
## Core Architecture
### Component-Based Validation System
SQV Lite employs five fundamental market components, each contributing weighted scores to produce a final quality assessment. The system analyzes multiple market dimensions simultaneously to provide comprehensive signal validation.
Each component uses proprietary algorithms to evaluate specific market conditions:
- Directional bias and strength assessment
- Market participation and flow analysis
- Price acceleration patterns
- Key technical level identification
- Optimal volatility conditions
The final score represents a weighted combination of all components, with thresholds adjusted for different market conditions and timeframes.
## Scoring Methodology
### Quality Grades
- **Grade A+ (90-100)**: Exceptional setup quality with maximum component confluence
- **Grade A (80-89)**: High-quality signals suitable for full position sizing
- **Grade B (65-79)**: Acceptable signals meeting minimum validation criteria
- **Grade C (<65)**: Substandard conditions, signal rejected
### Timeframe Profiles
Pre-configured profiles optimize component weights and thresholds:
| Profile | Typical Use Case | Min/High/Perfect Scores |
|---------|------------------|------------------------|
| 1-5 min | Scalping | 60/75/85 |
| 15-30 min | Day Trading | 65/80/90 |
| 1H-4H | Intraday Swing | 70/85/95 |
| Daily+ | Position Trading | 75/88/95 |
| Custom | User Defined | Configurable |
## Integration Guide
### Standalone Usage
1. Add SQV Lite to your chart
2. Select appropriate timeframe profile
3. Monitor real-time quality grades on signal bars
4. Use dashboard for current market assessment
### Direct Integration (Limited by TradingView)
Due to TradingView's circular dependency restrictions, direct bidirectional integration between scripts is limited. You can either:
- Send signals TO SQV (one-way)
- Receive validation FROM SQV (one-way)
- But NOT both simultaneously
### Bridge Integration (RECOMMENDED) - Complete Guide
To achieve full functionality and avoid TradingView's circular dependency limitations, use the SQV Bridge scripts:
## SQV Indicator Bridge
### When to Use:
- You have an **indicator** (not strategy)
- Want visual confirmation of validated signals
- Need simple alerts for manual trading
- Don't need backtesting
### What It Does:
- Shows labels only for validated signals
- Combines your signals + SQV validation
- Sends alerts when valid entries occur
- No trading execution (indicators can't trade)
### Setup Instructions:
1. **Add all three to your chart in this order:**
- Your indicator
- SQV Lite
- SQV Indicator Bridge
2. **Configure SQV Lite:**
- Enable "Use External Signals" ✓
- External Long Signal Source → `Your Indicator: Long Signal Output`
- External Short Signal Source → `Your Indicator: Short Signal Output`
3. **Configure SQV Indicator Bridge:**
```
Signal Sources:
- Long Signal Source → Your Indicator: Long Signal Output
- Short Signal Source → Your Indicator: Short Signal Output
SQV Sources:
- SQV Long Valid → SQV Lite: SQV Long Valid
- SQV Short Valid → SQV Lite: SQV Short Valid
- SQV Score → SQV Lite: SQV Score
Visual Settings:
- Show Labels → true (recommended)
- Label Offset → 0 (labels at candles)
```
4. **Disable original labels** in your indicator to avoid duplicates
### Result:
- Your indicator generates signals
- SQV validates quality
- Bridge shows labels ONLY for valid signals
- Clean chart with quality-filtered entries
## SQV Strategy Bridge
### When to Use:
- You have a **strategy** (can execute trades)
- Want accurate backtesting with SQV filtering
- Need automated trading via webhooks
- Want to see real performance after filtering
### What It Does:
- Executes trades only on validated signals
- Shows filtered backtesting results
- Can receive position size, SL, TP from your strategy
- Sends webhook alerts for automation
### Setup Instructions:
1. **Add all three to your chart in this order:**
- Your strategy
- SQV Lite
- SQV Strategy Bridge
2. **Configure SQV Lite:**
- Enable "Use External Signals" ✓
- External Long Signal Source → `Your Strategy: Long Signal Output`
- External Short Signal Source → `Your Strategy: Short Signal Output`
3. **Configure SQV Strategy Bridge:**
```
Signal Sources:
- Long Signal Source → Your Strategy: Long Signal Output
- Short Signal Source → Your Strategy: Short Signal Output
SQV Sources:
- SQV Long Valid → SQV Lite: SQV Long Valid
- SQV Short Valid → SQV Lite: SQV Short Valid
- SQV Score → SQV Lite: SQV Score
Position (optional):
- Use Position Size from Strategy → true/false
- Position Size Source → Your Strategy: Position Size Output
Risk Management (optional):
- Use Stop Loss from Strategy → true/false
- Long Stop Loss Price → Your Strategy: Long Stop Price
- Short Stop Loss Price → Your Strategy: Short Stop Price
```
4. **Compare backtests:**
- Your original strategy = all signals
- Strategy Bridge = only validated signals
- See the difference SQV makes!
### Advanced: Full Data Export
The Strategy Bridge can receive complete trading parameters from your strategy:
```pinescript
// In your strategy, export:
// Position sizing
mySize = strategy.equity * 0.02 / close // 2% risk
plot(mySize, "Position Size Output", display=display.none)
// Stop losses (exact prices)
longStop = close - (atr * 1.5)
shortStop = close + (atr * 1.5)
plot(longStop, "Long Stop Price", display=display.none)
plot(shortStop, "Short Stop Price", display=display.none)
// Take profits (exact prices)
longTP = close + (atr * 3) // 2:1 RR
shortTP = close - (atr * 3)
plot(longTP, "Long TP Price", display=display.none)
plot(shortTP, "Short TP Price", display=display.none)
```
## Quick Comparison: Which Bridge to Use?
| Feature | Indicator Bridge | Strategy Bridge |
|---------|-----------------|-----------------|
| **Script Type** | For indicators | For strategies |
| **Trading** | No (visual only) | Yes (full execution) |
| **Backtesting** | No | Yes (filtered results) |
| **Alerts** | Simple alerts | Webhook compatible |
| **Position Sizing** | No | Yes (custom or default) |
| **Stop/TP Management** | No | Yes (from strategy or default) |
| **Use Case** | Manual trading | Automated trading |
## Common Integration Patterns
### Pattern 1: Simple Signal Filtering
```
Your Script → Signals → SQV → Bridge → Visual Confirmation
```
Use: Indicator Bridge for clean entry visualization
### Pattern 2: Automated Trading
```
Your Strategy → Signals + Risk Params → SQV → Strategy Bridge → Broker
```
Use: Strategy Bridge with webhooks
### Pattern 3: Performance Analysis
```
Original Strategy (all trades) vs Strategy Bridge (filtered trades)
```
Use: Compare results to quantify SQV value
## Troubleshooting Bridge Connections
**Issue: "Cannot find source in dropdown"**
- Check script order: Your script → SQV → Bridge
- Ensure plots have correct names
- Try removing and re-adding scripts
**Issue: "No signals appearing"**
- Verify "Use External Signals" is ON in SQV
- Check your script is generating signals
- Enable debug mode in your script temporarily
**Issue: "Duplicate labels"**
- Disable labels in original script
- Or disable labels in Bridge
- Keep only one set of labels
## Best Practices for Bridge Integration
1. **Always export signals** with `display=display.none`
2. **Name exports clearly**: "Long Signal Output", not just "Signal"
3. **Test each component** separately first
4. **Use consistent logic**: signals should be 1 or 0
5. **Document your setup** for future reference
### Quick Source Reference
When setting up integrations, you'll need to connect these sources:
**Most Common Connections:**
- `Your Script: Long Signal Output` → To send your long signals
- `Your Script: Short Signal Output` → To send your short signals
- `SQV Lite: SQV Long Valid` → To receive long validation (1=valid, 0=invalid)
- `SQV Lite: SQV Short Valid` → To receive short validation (1=valid, 0=invalid)
- `SQV Lite: SQV Score` → To get quality score (0-100) for sizing/filtering
**Additional Sources Available:**
- Component scores (Trend, Volume, Momentum, Structure, Volatility)
- Order Flow Delta (buying/selling pressure)
- Configuration values (Min/High/Perfect scores)
- Trading Mode and Ready status
### Advanced Bridge Integration: Exporting Custom Data
The Strategy Bridge can receive not only signals but also position sizes, stop losses, and take profits directly from your strategy.
#### Exporting Position Size
```pinescript
// Method 1: Percentage of equity (0.1 = 10%)
positionSizePercent = 0.1 // 10% of account
plot(positionSizePercent, "Position Size Output", display=display.none)
// Method 2: Fixed quantity (for crypto/forex)
positionSizeBTC = 0.2 // Always trade 0.2 BTC
plot(positionSizeBTC, "Position Size Output", display=display.none)
// Method 3: Dynamic based on risk
riskPerTrade = 0.02 // 2% risk
stopDistance = 100 // $100 stop
positionSize = (strategy.equity * riskPerTrade) / stopDistance
plot(positionSize, "Position Size Output", display=display.none)
```
#### Exporting Stop Loss Prices
```pinescript
// Calculate stop prices based on your logic
longStopPrice = strategy.position_size > 0 ?
strategy.position_avg_price - 100 : close - 100
shortStopPrice = strategy.position_size < 0 ?
strategy.position_avg_price + 100 : close + 100
// Export for Bridge
plot(longStopPrice, "Long Stop Price", display=display.none)
plot(shortStopPrice, "Short Stop Price", display=display.none)
// Advanced: ATR-based stops
atr = ta.atr(14)
longStopATR = close - (atr * 2)
shortStopATR = close + (atr * 2)
plot(longStopATR, "Long Stop Price", display=display.none)
plot(shortStopATR, "Short Stop Price", display=display.none)
```
#### Exporting Take Profit Prices
```pinescript
// Fixed risk/reward ratio
riskRewardRatio = 2 // 2:1 RR
longTPPrice = close + (100 * riskRewardRatio) // If risk is $100
shortTPPrice = close - (100 * riskRewardRatio)
plot(longTPPrice, "Long TP Price", display=display.none)
plot(shortTPPrice, "Short TP Price", display=display.none)
// Percentage-based TP
tpPercent = 3 // 3% profit target
longTPPercent = close * (1 + tpPercent / 100)
shortTPPercent = close * (1 - tpPercent / 100)
plot(longTPPercent, "Long TP Price", display=display.none)
plot(shortTPPercent, "Short TP Price", display=display.none)
```
#### Complete Example: Strategy with Full Export
```pinescript
//@version=6
strategy("My Strategy with Full Bridge Export", overlay=true)
// === STRATEGY LOGIC ===
fast = ta.ema(close, 9)
slow = ta.ema(close, 21)
longSignal = ta.crossover(fast, slow)
shortSignal = ta.crossunder(fast, slow)
// === RISK MANAGEMENT CALCULATIONS ===
// Position sizing
accountRisk = 0.02 // 2% risk per trade
atr = ta.atr(14)
// Stop loss calculation
stopDistanceLong = atr * 1.5
stopDistanceShort = atr * 1.5
longStopPrice = close - stopDistanceLong
shortStopPrice = close + stopDistanceShort
// Position size based on risk
positionSizeLong = (strategy.equity * accountRisk) / stopDistanceLong
positionSizeShort = (strategy.equity * accountRisk) / stopDistanceShort
// Take profit (2:1 risk/reward)
longTPPrice = close + (stopDistanceLong * 2)
shortTPPrice = close - (stopDistanceShort * 2)
// === EXPORT ALL DATA FOR BRIDGE ===
// Signals
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
// Position sizes (choose one based on direction)
currentPositionSize = longSignal ? positionSizeLong :
shortSignal ? positionSizeShort : 0
plot(currentPositionSize, "Position Size Output", display=display.none)
// Stop losses
plot(longStopPrice, "Long Stop Price", display=display.none)
plot(shortStopPrice, "Short Stop Price", display=display.none)
// Take profits
plot(longTPPrice, "Long TP Price", display=display.none)
plot(shortTPPrice, "Short TP Price", display=display.none)
// === ORIGINAL STRATEGY EXECUTION (optional) ===
if longSignal
strategy.entry("Long", strategy.long)
strategy.exit("Long Exit", stop=longStopPrice, limit=longTPPrice)
if shortSignal
strategy.entry("Short", strategy.short)
strategy.exit("Short Exit", stop=shortStopPrice, limit=shortTPPrice)
```
#### Configuring Strategy Bridge to Receive Data
1. In Strategy Bridge settings:
- Enable "Use Position Size from Strategy" ✓
- Connect "Position Size Source" → Your Strategy: Position Size Output
- Enable "Use Stop Loss from Strategy" ✓
- Connect stop/TP sources to your exported prices
2. The Bridge will now use YOUR calculations instead of its own!
#### Benefits of This Approach
- **Full Control**: Your strategy decides everything
- **Complex Logic**: Use any formula for sizing/stops
- **No Limitations**: Bridge just executes what you calculate
- **Backtesting**: See results with YOUR exact logic + SQV filtering
### Bridge Integration Summary
| What to Export | Plot Name | Example Value | Usage |
|----------------|-----------|---------------|-------|
| Long Signal | "Long Signal Output" | 1 or 0 | Entry trigger |
| Short Signal | "Short Signal Output" | 1 or 0 | Entry trigger |
| Position Size | "Position Size Output" | 0.1 or 0.2 BTC | How much to trade |
| Long Stop | "Long Stop Price" | 49900 | Stop loss for longs |
| Short Stop | "Short Stop Price" | 50100 | Stop loss for shorts |
| Long TP | "Long TP Price" | 50200 | Take profit for longs |
| Short TP | "Short TP Price" | 49800 | Take profit for shorts |
Remember: Export EVERYTHING as price levels or absolute values. The Bridge will handle the execution!
### Setting Up Bridge Integration
#### Step 1: Prepare Your Script
Add to your strategy/indicator:
```pinescript
// Add label toggle to inputs
showOwnLabels = input.bool(true, "Show Buy/Sell Labels", group="Visual Settings",
tooltip="Disable when using SQV Bridge to avoid duplicate labels")
// Your signal logic
longSignal =
shortSignal =
// Export signals (REQUIRED)
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
// Update label code to respect toggle
if longSignal and showOwnLabels
label.new(bar_index, low, "BUY", ...)
```
For detailed Bridge setup instructions, see the complete Bridge Integration guide above.
### Bidirectional Strategy Integration (Original Method)
SQV Lite supports complete two-way communication with your custom strategies, enabling sophisticated signal validation workflows.
#### Step 1: Setting Up Your Strategy to Send Signals
In your custom strategy/indicator, export your signals as plots:
```pinescript
//@version=6
indicator("My Custom Strategy", overlay=true)
// Your signal logic
longSignal = ta.crossover(ema9, ema21) // Example
shortSignal = ta.crossunder(ema9, ema21) // Example
// CRITICAL: Export signals for SQV to read
// Use display=display.none to hide the plots
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
```
#### Step 2: Configure SQV Lite to Receive Signals
1. Add SQV Lite to the same chart as your strategy
2. In SQV Lite settings, enable "Use External Signals"
3. Click on "External Long Signal Source" and select your strategy's "Long Signal Output"
4. Click on "External Short Signal Source" and select your strategy's "Short Signal Output"
#### Step 3: Import SQV Validation Back to Your Strategy
Complete the bidirectional flow by importing SQV's validation results:
```pinescript
//@version=6
strategy("My Strategy with SQV Integration", overlay=true)
// Import SQV validation results
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
sqvLongValid = input.source(close, "SQV Long Valid Source", group="SQV Integration")
sqvShortValid = input.source(close, "SQV Short Valid Source", group="SQV Integration")
sqvTradingMode = input.source(close, "SQV Trading Mode", group="SQV Integration")
// Your original signals
longSignal = ta.crossover(ema9, ema21)
shortSignal = ta.crossunder(ema9, ema21)
// Export for SQV
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
// Use SQV validation in entry logic
if longSignal and sqvLongValid > 0
strategy.entry("Long", strategy.long)
// Optional: Use sqvScore for position sizing
if shortSignal and sqvShortValid > 0
strategy.entry("Short", strategy.short)
```
#### Step 4: Complete Integration Setup
After adding both scripts to your chart:
1. In your strategy settings → SQV Integration:
- Set "SQV Score Source" → Select SQV Lite: SQV Score
- Set "SQV Long Valid Source" → Select SQV Lite: SQV Long Valid
- Set "SQV Short Valid Source" → Select SQV Lite: SQV Short Valid
2. In SQV Lite settings → Signal Import:
- Enable "Use External Signals"
- Set "External Long Signal Source" → Select Your Strategy: Long Signal Output
- Set "External Short Signal Source" → Select Your Strategy: Short Signal Output
### Understanding Source Selection in TradingView
When you click on any source dropdown, you'll see a list like:
- **OHLC Data**: Open, High, Low, Close, (H+L)/2, etc.
- **Your Script Outputs**: Long Signal Output, Short Signal Output
- **SQV Lite Outputs**: All SQV data (Score, Valid signals, Components, etc.)
- **Bridge Outputs**: Valid Long, Valid Short
**Visual Example of Dropdown:**
```
Open
High
Low
Close ← Default selection
(H + L)/2
(H + L + C)/3
(O + H + L + C)/4
─────────────────────
SQV Indicator Bridge: Valid Long
SQV Indicator Bridge: Valid Short
─────────────────────
SQV Lite: SQV Score ← Select this for quality scores
SQV Lite: SQV Long Valid ← Select this for long validation
SQV Lite: SQV Short Valid ← Select this for short validation
SQV Lite: SQV Ready
SQV Lite: SQV Trend Score
... (other SQV outputs)
─────────────────────
Your Strategy: Long Signal Output ← Your signals appear here
Your Strategy: Short Signal Output
```
**Important**: Each script's outputs appear under its name in the dropdown. Make sure you're selecting from the correct script!
### Available Data Exports from SQV
```pinescript
// Core validation data
plot(currentTotalScore, "SQV Score", display=display.none) // 0-100
plot(sqvLongValid ? 1 : 0, "SQV Long Valid", display=display.none) // 0 or 1
plot(sqvShortValid ? 1 : 0, "SQV Short Valid", display=display.none) // 0 or 1
// Component scores for advanced usage
plot(currentTrendScore, "SQV Trend Score", display=display.none)
plot(currentVolumeScore, "SQV Volume Score", display=display.none)
plot(currentMomentumScore, "SQV Momentum Score", display=display.none)
plot(currentStructureScore, "SQV Structure Score", display=display.none)
plot(currentVolatilityScore, "SQV Volatility Score", display=display.none)
// Additional data
plot(orderFlowDelta, "SQV Order Flow Delta", display=display.none)
plot(tradingMode == "Long" ? 1 : tradingMode == "Short" ? -1 : 0, "SQV Trading Mode", display=display.none)
```
### Complete Source List Explained
When connecting sources in TradingView, you'll see these options:
#### From SQV Lite:
**Core Outputs:**
- **SQV Score** - Current quality score (0-100). Use for position sizing or filtering
- **SQV Long Valid** - Binary (1/0). Long signal passed validation
- **SQV Short Valid** - Binary (1/0). Short signal passed validation
- **SQV Ready** - Binary (1/0). Market conditions ready for trading (score >= min threshold)
**Component Scores (0-100):**
- **SQV Trend Score** - Trend alignment and ADX strength score
- **SQV Volume Score** - Volume dynamics and participation score
- **SQV Momentum Score** - RSI and MACD momentum score
- **SQV Structure Score** - Support/resistance and price structure score
- **SQV Volatility Score** - ATR-based volatility conditions score
**Configuration Values:**
- **SQV Min Score** - Minimum score threshold (B grade)
- **SQV High Score** - High quality threshold (A grade)
- **SQV Perfect Score** - Perfect score threshold (A+ grade)
**Order Flow Data:**
- **SQV Order Flow Delta** - Buying vs selling pressure (-1000 to +1000)
- **SQV Flow Direction** - Simplified flow (1=bullish, -1=bearish, 0=neutral)
**Trading Mode:**
- **SQV Trading Mode** - Current mode (1=Long only, -1=Short only, 0=Both)
#### From SQV Indicator Bridge:
- **Valid Long** - Binary (1/0). Combined signal: your signal AND SQV validation
- **Valid Short** - Binary (1/0). Combined signal: your signal AND SQV validation
#### From Your Strategy/Indicator:
- **Long Signal Output** - Your raw long signals before validation
- **Short Signal Output** - Your raw short signals before validation
### How to Use These Sources:
**For Basic Integration:**
```pinescript
// Import only what you need
sqvLongValid = input.source(close, "SQV Long Valid")
sqvShortValid = input.source(close, "SQV Short Valid")
// Trade only validated signals
if myLongSignal and sqvLongValid > 0
strategy.entry("Long", strategy.long)
```
**For Position Sizing:**
```pinescript
// Import score for dynamic sizing
sqvScore = input.source(close, "SQV Score")
// Scale position by quality
size = sqvScore >= 90 ? 3 :
sqvScore >= 80 ? 2 :
sqvScore >= 65 ? 1 : 0
```
**For Custom Filtering:**
```pinescript
// Import specific components
sqvTrend = input.source(close, "SQV Trend Score")
sqvVolume = input.source(close, "SQV Volume Score")
// Filter by components
if mySignal and sqvTrend > 80 and sqvVolume > 70
// Strong trend + good volume
```
**For Order Flow Confirmation:**
```pinescript
// Import order flow
sqvFlow = input.source(close, "SQV Order Flow Delta")
// Confirm direction
if myLongSignal and sqvFlow > 100 // Strong buying
strategy.entry("Long+Flow", strategy.long)
```
**Note**: Most traders only need the basic validation sources (Long Valid, Short Valid, Score). The component scores and other data are for advanced filtering strategies.
### Common Integration Scenarios
**Scenario 1: Basic Signal Filtering**
```
Need: SQV Long Valid, SQV Short Valid
Use: Trade only when signals are validated
```
**Scenario 2: Position Sizing by Quality**
```
Need: SQV Score
Use: Multiply position size based on score (65-100)
```
**Scenario 3: Component-Based Filtering**
```
Need: SQV Trend Score, SQV Volume Score, etc.
Use: Additional filters (e.g., only trade if Trend > 80)
```
**Scenario 4: Order Flow Confirmation**
```
Need: SQV Order Flow Delta
Use: Confirm trade direction matches flow
```
### Advanced Integration Examples
#### Example 1: Quality-Based Position Sizing
```pinescript
// In your strategy
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
// Dynamic position sizing based on signal quality
positionSize = sqvScore >= 90 ? 3 : // A+ quality = 3 units
sqvScore >= 80 ? 2 : // A quality = 2 units
sqvScore >= 65 ? 1 : 0 // B quality = 1 unit
if longSignal and sqvLongValid > 0 and positionSize > 0
strategy.entry("Long", strategy.long, qty=positionSize)
```
#### Example 2: Filtering by Component Scores
```pinescript
// Import individual components
sqvTrend = input.source(close, "SQV Trend Score", group="SQV Integration")
sqvVolume = input.source(close, "SQV Volume Score", group="SQV Integration")
sqvMomentum = input.source(close, "SQV Momentum Score", group="SQV Integration")
// Custom filtering logic
strongTrend = sqvTrend > 80
goodVolume = sqvVolume > 70
strongSetup = strongTrend and goodVolume
if longSignal and sqvLongValid > 0 and strongSetup
strategy.entry("Strong Long", strategy.long)
```
#### Example 3: Order Flow Integration
```pinescript
// Import order flow data
sqvOrderFlow = input.source(close, "SQV Order Flow Delta", group="SQV Integration")
// Use order flow for additional confirmation
bullishFlow = sqvOrderFlow > 100 // Significant buying pressure
bearishFlow = sqvOrderFlow < -100 // Significant selling pressure
if longSignal and sqvLongValid > 0 and bullishFlow
strategy.entry("Long+Flow", strategy.long)
```
### Visual Feedback Configuration
#### Label Display Modes
1. **Autonomous Mode** (standalone testing):
- Enable "Show Labels Without Signals"
- Labels appear on every bar where score >= minimum threshold
- Useful for initial testing without strategy integration
2. **Signal Mode** (production use):
- Disable "Show Labels Without Signals"
- Enable "Use External Signals"
- Labels appear ONLY when your strategy generates signals
- Prevents chart clutter, shows validation exactly when needed
#### Troubleshooting Integration
**Common Issues:**
1. **Labels not appearing:**
- Verify "Use External Signals" is enabled
- Check signal sources are properly connected
- Ensure your strategy is actually generating signals (add visible plots temporarily)
2. **Wrong source selection:**
- Source dropdowns should show your indicator/strategy name
- Each output plot should be visible in the dropdown
- If not visible, check plot titles in your strategy
3. **Validation always failing:**
- Check Trading Mode matches your signal types
- Verify minimum score thresholds aren't too high
- Use Autonomous Mode to test if SQV is working properly
4. **Can't find the right source:**
- Sources are grouped by script name in dropdown
- Look for "SQV Lite:" prefix for SQV outputs
- Look for "SQV Indicator Bridge:" or your script name
- Default OHLC values (Open, High, Low, Close) appear at top
5. **Circular dependency error:**
- You cannot create bidirectional connections directly
- Use Bridge scripts to avoid this limitation
- One script can send, another can receive, but not both
### Best Practices
1. **Always use `display=display.none`** for communication plots to keep charts clean
2. **Name your plots clearly** for easy identification in source dropdowns
3. **Test in Autonomous Mode first** to understand SQV behavior
4. **Use consistent signal logic** - ensure signals are binary (1 or 0)
5. **Consider adding a small delay** between signal and entry for validation processing
### Complete Integration Template
Here's a full template for a strategy with complete SQV integration:
```pinescript
//@version=6
strategy("Complete SQV Integration Template", overlay=true)
// ========== SQV Integration Inputs ==========
sqvScore = input.source(close, "SQV Score Source", group="SQV Integration")
sqvLongValid = input.source(close, "SQV Long Valid Source", group="SQV Integration")
sqvShortValid = input.source(close, "SQV Short Valid Source", group="SQV Integration")
sqvOrderFlow = input.source(close, "SQV Order Flow Delta", group="SQV Integration")
// ========== Strategy Parameters ==========
emaFast = input.int(9, "Fast EMA")
emaSlow = input.int(21, "Slow EMA")
useQualitySizing = input.bool(true, "Use Quality-Based Sizing")
// ========== Indicators ==========
ema1 = ta.ema(close, emaFast)
ema2 = ta.ema(close, emaSlow)
// ========== Signal Logic ==========
longSignal = ta.crossover(ema1, ema2)
shortSignal = ta.crossunder(ema1, ema2)
// ========== Export Signals to SQV ==========
plot(longSignal ? 1 : 0, "Long Signal Output", display=display.none)
plot(shortSignal ? 1 : 0, "Short Signal Output", display=display.none)
// ========== Position Sizing ==========
baseSize = 1
qualityMultiplier = useQualitySizing ?
(sqvScore >= 90 ? 3 : sqvScore >= 80 ? 2 : 1) : 1
positionSize = baseSize * qualityMultiplier
// ========== Entry Logic with SQV Validation ==========
if longSignal and sqvLongValid > 0
strategy.entry("Long", strategy.long, qty=positionSize)
if shortSignal and sqvShortValid > 0
strategy.entry("Short", strategy.short, qty=positionSize)
// ========== Exit Logic ==========
if strategy.position_size > 0 and shortSignal
strategy.close("Long")
if strategy.position_size < 0 and longSignal
strategy.close("Short")
// ========== Visual Feedback ==========
plotshape(longSignal and sqvLongValid > 0, "Valid Long",
location=location.belowbar, color=color.green, style=shape.triangleup)
plotshape(shortSignal and sqvShortValid > 0, "Valid Short",
location=location.abovebar, color=color.red, style=shape.triangledown)
```
This template provides everything needed for professional bidirectional integration between your custom strategy and SQV Lite.
## Order Flow Analysis
The integrated Order Flow system automatically adapts to market conditions, providing intelligent analysis of buying and selling pressure. The system handles various market scenarios including low liquidity and minimal price movement conditions through advanced algorithms.
## Visual Interface
### Signal Labels
Displays three-line information blocks:
- Grade designation (A+, A, B, C)
- Numerical quality score
- Order flow direction and magnitude
### Dashboard Elements
- **Profile Display**: Active configuration and thresholds
- **Score Visualization**: Real-time quality assessment
- **Flow Indicator**: Directional bias representation
- **Status Monitor**: Ready/Wait signal state
### Customization Options
- Label distance adjustment (0.5-3.0x ATR)
- Profile selection and custom configuration
- Component weight modifications (Custom mode)
- Threshold adjustments for different market conditions
## Trading Mode Selection
Three operational modes accommodate different trading styles:
- **Long Only**: Validates bullish signals exclusively
- **Short Only**: Validates bearish signals exclusively
- **Both**: Bi-directional signal validation
## Performance Considerations
SQV Lite maintains computational efficiency through:
- Optimized calculation cycles
- Selective component updates
- Efficient data structure usage
- Minimal redundant processing
---
## Feature Comparison: SQV Lite vs Full Version
### Core Components
| Component | SQV Lite | SQV Full | Details |
|-----------|----------|----------|---------|
| **Trend Analysis** | ✅ Full | ✅ Full | Professional trend evaluation |
| **Volume Dynamics** | ✅ Full | ✅ Full | Advanced volume analysis |
| **Momentum Assessment** | ✅ Full | ✅ Full | Multi-factor momentum |
| **Market Structure** | ✅ Basic | ✅ Enhanced | Key level detection |
| **Volatility Filter** | ✅ Full | ✅ Full | Risk-adjusted filtering |
| **Performance Analytics** | ❌ | ✅ | Real-time performance tracking |
| **Impulse Detection** | ❌ | ✅ | Advanced signal filtering |
### Advanced Features
| Feature | SQV Lite | SQV Full | Benefits |
|---------|----------|----------|----------|
| **Multi-Timeframe Analysis** | ❌ | ✅ | Higher timeframe confirmation |
| **Dynamic Position Sizing** | ❌ | ✅ Automatic | Dynamic size optimization |
| **Auto Mode** | ❌ | ✅ | Self-optimizing system |
| **Advanced Profiling** | ❌ | ✅ | Market depth analysis |
| **Recovery Mode** | ❌ | ✅ | Adaptive drawdown handling |
| **Statistical Validation** | ❌ | ✅ | Confidence-based filtering |
### Profiles & Configuration
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Timeframe Profiles** | 5 | 8 |
| **Available Profiles** | 1-5m, 15-30m, 1-4H, Daily+, Custom | All Lite + ES, NQ, Auto |
| **Custom Weights** | ✅ Manual | ✅ Manual + Auto-optimization |
| **Threshold Adjustment** | ✅ | ✅ Enhanced |
### Visual Interface
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Dashboard Styles** | 1 (Standard) | 4 (Multiple layouts) |
| **Signal Labels** | ✅ Basic | ✅ Enhanced with sizing |
| **Advanced Visualizations** | ❌ | ✅ |
| **Component Breakdown** | ❌ | ✅ Detailed view |
| **Performance Display** | ❌ | ✅ Live statistics |
| **Debug Mode** | ❌ | ✅ |
### Integration Capabilities
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Script Type** | Indicator | Strategy |
| **Signal Import** | ✅ | Via strategy conditions |
| **Data Export** | ✅ All via plots | Internal to strategy |
| **Bidirectional Flow** | ✅ Full support | One-way (strategy-based) |
### Risk Management
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Position Sizing** | Manual | ✅ Automatic |
| **Quality-Based Sizing** | Via integration | ✅ Built-in |
| **Performance Adjustment** | ❌ | ✅ |
| **Risk Grade System** | ❌ | ✅ Risk grading system |
| **Statistical Filtering** | ❌ | ✅ |
### Market Analysis
| Feature | SQV Lite | SQV Full |
|---------|----------|----------|
| **Order Flow Analysis** | ✅ Automatic | ✅ Advanced |
| **Market Manipulation Detection** | ❌ | ✅ |
| **Multi-Timeframe Validation** | ❌ | ✅ |
| **Advanced Momentum Analysis** | Basic | ✅ Enhanced |
| **Market Regime Adaptation** | Basic | ✅ Full Auto Mode |
### Summary
| Aspect | SQV Lite | SQV Full |
|--------|----------|----------|
| **Best For** | Signal validation, integration with custom strategies | Complete trading system with built-in strategy |
| **Learning Curve** | Easy | Moderate |
| **Customization** | High (via integration) | Very High (all parameters) |
| **Price** | Free | $29/month |
---
## Upgrade to SQV Full Version
### Enhanced Capabilities in Full Version
The complete SQV system extends validation capabilities with advanced components:
#### 🎯 **Performance Analytics Component**
- Real-time Sharpe Ratio calculation
- Win rate tracking with confidence intervals
- Risk-adjusted performance metrics
- Adaptive threshold adjustments
#### ⚡ **Impulse Detection with Trap Analysis**
- Advanced momentum surge detection
- Market manipulation identification
- False breakout filtering
- Volume/price divergence analysis
#### 📊 **Multi-Timeframe Confluence**
- Three-timeframe trend alignment
- Higher timeframe confirmation requirements
- Confluence strength scoring
- Directional bias validation
#### 🎰 **Dynamic Position Sizing**
- Automatic position multipliers based on signal quality
- Grade A+ signals (90+) = Maximum multiplier
- Grade A signals (80-89) = Scaled multiplier
- Grade B signals (65-79) = Base position size
- Risk-adjusted position management
- Sharpe-influenced adjustments
#### 🔄 **Auto Mode**
- Market-adaptive parameter optimization
- Dynamic weight redistribution
- Volatility-based threshold adjustments
- Self-calibrating component settings
#### 📈 **Volume Profile Integration**
- Point of Control (POC) identification
- Value Area analysis (VAH/VAL)
- Profile-based support/resistance
- Volume distribution visualization
#### 🛡️ **Recovery Mode**
- Drawdown detection and adaptation
- Conservative validation during recovery
- Gradual threshold normalization
- Performance-based re-engagement
#### 📊 **Extended Visualizations**
- Multiple dashboard layouts
- Component breakdown displays
- Performance statistics panels
- Risk grade assessments
### Why Upgrade?
While SQV Lite provides robust signal validation, the Full Version transforms your trading with:
- **Automated risk management** through dynamic sizing
- **Superior signal filtering** via Impulse and MTF components
- **Performance optimization** with real-time analytics
- **Market adaptation** through Auto Mode
- **Additional dashboard layouts** for complete market insight
The Full Version includes everything in Lite plus seven additional premium components.
---
## 💰 **SQV Full Version Pricing**
### **Monthly Subscription: $29/month**
Get instant access to the complete Signal Quality Validator system with all premium features:
- ✅ All 7 additional advanced components
- ✅ Automatic position sizing optimization
- ✅ Performance analytics & Sharpe tracking
- ✅ Impulse detection with trap analysis
- ✅ Multi-timeframe confluence validation
- ✅ Auto Mode with self-optimization
- ✅ Recovery mode for drawdown management
- ✅ 4 dashboard layouts
- ✅ Priority support
### 📩 **How to Subscribe**
To get access to SQV Full Version:
1. **Send me a DM** on TradingView
2. **Include your TradingView username/ID** in the message
3. Receive payment instructions and access upon confirmation
*Your TradingView ID is required to grant access to the private indicator.*
### 🔧 **Custom Integration Services**
**Need direct integration into your Pine Script strategy?**
For traders requiring seamless library-based integration without external signal limitations:
- Full backtesting on complete price history
- Zero signal delay
- Custom parameter optimization
- Private library implementation
**📩 DM me for custom integration pricing and details**
---
## Support and Updates
SQV Lite receives regular maintenance updates. For technical questions or feature requests, please reach out through TradingView's messaging system.
## Disclaimer
Signal Quality Validator provides technical analysis assistance only. All trading decisions remain the sole responsibility of the user. Past performance does not guarantee future results. Trade responsibly and within your risk tolerance.
High Volume Buyers/Sellers+High Volume Buyers/Sellers+
This indicator helps traders spot bars where unusually high or extreme volume occurs, indicating strong buying or selling pressure.
How it works:
Calculates a volume moving average (SMA) over a user-defined period.
Marks bars where the current volume exceeds:
High Volume Multiplier → small green circle (bullish) or red circle (bearish).
Extreme Volume Multiplier → small green up-triangle (bullish) or red down-triangle (bearish).
Settings:
Volume MA Period → Number of bars used to calculate the average volume.
High Volume Multiplier → Threshold to define high volume.
Extreme Volume Multiplier → Threshold to define extreme volume.
Show Extreme Volume Signals → Option to enable or disable extreme volume markers.
Usage tips:
Apply this indicator on a clean chart to visually highlight momentum bursts or exhaustion points.
It works well for both intraday and swing trading strategies where volume confirmation matters.
⚠ Note: This script only displays on-chart markers and does not plot any lines or indicators.
✅ TrendSniper Pro✅ SPNIPER ENTRY – Precision Trend Reversal Signals
The SPNIPER ENTRY is a smart trend-following and reversal indicator designed for traders who want timely entries, clear trend confirmation, and clean visuals.
Key Features:
✅ Triple TEMA Trend Confirmation (21, 50, 200): Ensures you're entering only when all moving averages agree on direction.
🎯 Dip/Top Detection: Uses pivot analysis and ATR proximity to detect ideal pullback entries in the prevailing trend.
📉 Stop Loss & Take Profit Zones: ATR-based dynamic SL/TP levels plotted automatically.
📛 False Signal Filter: Avoids multiple entries by maintaining a position until an opposite signal occurs.
📊 Clean Chart Coloring: Candles turn green for confirmed uptrend and red for downtrend—easy to follow.
🔔 Built-in Alerts: Be notified when conditions align perfectly for a high-probability trade.
👁️ Optional TEMA Display: Toggle visibility of trend components for deeper insight.
How it Works:
A buy signal occurs only when:
All 3 TEMA slopes are positive
Price pulls back near a recent pivot low (dip)
A valid uptrend is in place
A sell signal occurs only when:
All 3 TEMA slopes are negative
Price nears a recent pivot high (top)
A confirmed downtrend is active
This indicator is ideal for swing traders, intraday traders, and scalpers who want precise entries based on structure, slope, and volatility.
MA Shift (Offset Only + Flip Dots)Indicator Overview
This custom moving average indicator shifts the SMA away from price by a fixed percent or ATR multiple. It delivers a clear, uncluttered view of trend direction and momentum while keeping the price bars visible. A single offset line glows in semi-transparent shading and changes color based on trend state. When the price crosses the base SMA, a small dot marks the flip point.
Key Features
Adjustable Length
Choose any SMA period (default six) to suit your time frame and trading style.
Flexible Offset Mode
Percent mode places the line a fixed percentage above or below the SMA.
ATR mode spaces the line dynamically based on market volatility.
Direction Toggle
Shift the line up or down away from candles.
Glow Effect
A wide, semi-transparent band highlights the offset line for easy visibility.
Trend-Flip Dots
A tiny circle appears below the bar when the trend turns up and above the bar when it turns down, helping you spot reversals at a glance.
Custom Candle and Bar Coloring
Bars and candles recolor to reflect the current trend, reinforcing visual clarity.
How It Works
Base SMA Calculation
The indicator computes a standard SMA on your chosen source (high+low 2 by default).
Offset Application
It then adds or subtracts the percent or ATR-based distance to create a second line.
Trend Detection
When price moves above the SMA, the offset line and bars turn to your “up” color. When price drops below, they switch to your “down” color.
Flip Signals
On the bar that triggers a color change, a dot marks the exact reversal point.
Trading Signals and Usage
Trend Confirmation
Use the offset line as a clean trend guide. Price consistently above the line with green bars signals a bullish regime. Price below the line with orange bars signals bearish control.
Entry and Exit
Long Entry: Wait for a flip-up dot and a green close above the offset line.
Short Entry: Watch for a flip-down dot and an orange close below the offset line.
Stops and Targets: Place stops just inside the offset line on pullbacks for dynamic risk management.
Avoiding Whipsaws
The visual separation helps you ignore minor noise around price. Combine flip dots with bar color to filter false turns.
Confluence with MACD
Pair this offset SMA with the MACD for stronger signals:
MACD Trend Filter
Require the MACD line to be above its signal line (and histogram above zero) before taking a long flip-up from the offset MA.
Momentum Confirmation
When the offset SMA flips to a downtrend, look for the MACD histogram to turn negative. That alignment avoids fade-against-momentum trades.
Entry Timing
Use the MACD crossover as a lead-in filter and the offset SMA flip as the actual trigger. This two-step approach keeps you on the right side of larger moves.
Publishing Tips on TradingView
Description: Summarize features and usage in the indicator’s “About” field.
Inputs: List each setting clearly so users know how to tweak period, offset mode, percent/ATR values and color choices.
Examples: Include a chart snapshot showing a long setup with both the offset SMA flip and a confirming MACD crossover.
Release Notes: Mention version defaults (six-period SMA, ten-percent offset) and invite feedback for improvements.
Tags: Use relevant keywords like “Moving Average,” “Offset Indicator,” “Trend Filter,” and “MACD Confluence” to make it easy to find.
With its simple dot signals and customizable glow, this offset SMA becomes a powerful visual tool—especially when paired with MACD—for spotting clean trend entries and exits.
VWAPs: 7D / 30D / 90D / 365D (Hue Clouds)Another vwap's indicator by another anon. It's a simple rolling vwap's with their clouds (using lows and highs) of 7D / 30D / 90D / 365D using UTC time as reference. You can't change date of timestamp for rolling vwap's: 7D starts on Monday, 30D on 1st of month, 90D on 1st of trimester, 365D 1st of the year.
Enjoy.
Advanced Premium Magic Levels With Table and StrategyAdvanced Premium Magic Levels A Technical Reversal Indicator
Description:
The Premium Magic Levels 2025 script is a powerful technical analysis tool designed to identify potential price reversal zones in financial markets. This script utilizes key price levels derived from the previous close and calculated opponent strike lines to plot actionable levels where reversals are likely to occur.
The concept is built upon the principle that historical price levels often serve as critical decision zones for traders. By analyzing price action relative to these levels, the script offers valuable insights for both day traders and swing traders aiming to capitalize on market reversals.
Core Concept:
Previous Close Level:
The script takes the previous day's (or session’s) close price as a baseline. This level often acts as a magnet for price movements or a point of reaction due to its psychological importance.
Opponent Strike Lines:
These are calculated dynamic levels based on price behavior. They represent zones where the market is likely to encounter resistance or support, depending on whether the price is rising or falling.
Reversal Zones:
The plotted lines signify areas where price reversals are statistically probable. These levels act as critical reference points for traders to anticipate trend changes or confirm their trading strategies.
Key Features:
Dynamic Level Plotting:
The script automatically adjusts and updates the levels based on the latest price action, ensuring relevance across different timeframes.
Visual Guidance:
The script plots clear and distinguishable levels on the chart, providing an intuitive visual aid for identifying potential reversals.
Multi-Asset Compatibility:
Works seamlessly across various asset classes, including stocks, indices, forex, and cryptocurrencies.
Customizable Settings:
Users can adjust parameters to align the calculations with their trading style and strategy preferences.
How to Use:
Add the Script to Your Chart:
Apply the Premium Magic Levels 2025 script to your chart from the Pine Script editor or the trading platform's public library.
Identify Key Levels:
Observe the plotted levels for the session:
Previous Close Level: A baseline price level often retested or respected by the market.
Opponent Strike Lines: Zones indicating potential resistance or support where reversals might occur.
Incorporate with Trading Strategy:
Use the levels as reference points to set entry, exit, or stop-loss orders.
Combine the indicator with other technical tools (e.g., RSI, MACD, Moving Averages) for confirmation.
Monitor Price Action:
Watch how the price reacts around the plotted levels. A rejection or breakout at these levels often signals significant market moves.
Benefits of the Script:
Enhances decision-making by providing clear reversal zones.
Reduces the complexity of manual level plotting and analysis.
Adapts to different market conditions with dynamic updates.
Suitable for traders of all experience levels, from beginners to professionals.
Note:
While the Premium Magic Levels 2026 script is a robust analytical tool, it should be used in conjunction with proper risk management and other trading strategies. Past performance of these levels does not guarantee future results.
Fano algoritmFano Algorithm – Smart FVG Indicator for TradingView
Fano Algorithm is a powerful and minimalist Fair Value Gap (FVG) indicator designed for traders who follow Smart Money Concepts (SMC). Built to highlight potential areas of price inefficiency, this tool automatically detects FVGs across all timeframes and displays them cleanly on the chart – without clutter or distractions.
Core Features:
Automatic detection of Bullish and Bearish FVGs
Clean visual display with customizable color options
Alerts when price enters an FVG zone
Works on any asset and any timeframe
Optimized for precision and clarity
fano 2.0 – completo sin etiquetas FVGFano 2.0 is a powerful and minimalist Fair Value Gap (FVG) indicator designed for traders who follow Smart Money Concepts (SMC). Built to highlight potential areas of price inefficiency, this tool automatically detects FVGs across all timeframes and displays them cleanly on the chart – without clutter or distractions.
Core Features:
Automatic detection of Bullish and Bearish FVGs
Clean visual display with customizable color options
Alerts when price enters an FVG zone
Works on any asset and any timeframe
Optimized for precision and clarity
SILENCE Risk Manager (XAU/USD) v6Calculte riskon XAUbUSD. Calculate risk on XAUUSD based on account size, lotsize and % you want to risk.
Trend EnvelopeTrend Envelope is a visual trend indicator that plots three moving averages (Base, Inner, and Outer) with dynamic upper and lower envelopes. The band colors change based on trend direction, and "▲", "▼" labels highlight turning points.
Fully customizable settings for period, band width, color, and transparency make it suitable for identifying short- to long-term trends. Ideal for traders who want a clear, visual representation of trend shifts.
Multiple SMAsPlots multiple SMAs in a single indicator.
This script only plots the SMAs if the timeframe is set to daily.
- SMA10 in light blue
- SMA20 in yellow
- SMA50 in red
- SMA100 in green
- SMA200 in blue
It also plots the crosses between SMA20 and SMA50