Material Color Palette Library█ OVERVIEW
Unlock a world of color in your Pine Script® projects with the Material Color Palette Library . This library provides a comprehensive and structured color system based on Google's Material Design palette, making it incredibly easy to create visually appealing and professional-looking indicators and strategies.
Forget about guessing hex codes. With this library, you have access to 19 distinct color families, each offering a wide range of shades. Every color can be fine-tuned with saturation, darkness, and opacity levels, giving you precise control over your script's appearance.
To make development even easier, the library includes a visual cheatsheet. Simply add the script to your chart to display a full table of all available colors and their corresponding parameters.
█ KEY FEATURES
Vast Spectrum: 19 distinct color families, from vibrant reds and blues to subtle greys and browns.
Fine-Tuned Control: Each color function accepts parameters for `saturationLevel` (1-13 or 1-9) and `darkLevel` (1-3) to select the perfect shade.
Opacity Parameter: Easily add transparency to any color for fills, backgrounds, or lines.
Quick Access Tones: A simple `tone()` function to grab base colors by name.
Visual Cheatsheet: An on-chart table displays the entire color palette, serving as a handy reference guide during development.
█ HOW TO USE
As a library, this script is meant to be imported into your own indicators or strategies.
1. Import the Library
Add the following line to the top of your script. Remember to replace `YourUsername` with your TradingView username.
import mastertop/ColorPalette/1 as colors
2. Call a Color Function
You can now use any of the exported functions to set colors for your plots, backgrounds, tables, and more.
The primary functions take three arguments: `functionName(saturationLevel, darkLevel, opacity)`
`saturationLevel`: An integer that controls the intensity of the color. Ranges from 1 (lightest) to 13 (most vibrant) for most colors, and 1-9 for `brown`, `grey`, and `blueGrey`.
`darkLevel`: An integer from 1 to 3 (1: light, 2: medium, 3: dark).
`opacity`: An integer from 0 (opaque) to 100 (invisible).
Example Usage:
Let's plot a moving average with a specific shade of teal.
// Import the library
import mastertop/ColorPalette/1 as colors
indicator("My Script with Custom Colors", overlay = true)
// Calculate a moving average
ma = ta.sma(close, 20)
// Plot the MA using a color from the library
// We'll use teal with saturation level 7, dark level 2, and 0% opacity
plot(ma, "MA", color = colors.teal(7, 2, 0), linewidth = 2)
3. Using the `tone()` Function
For quick access to a base color, you can use the `tone()` function.
// Set a red background with 85% transparency
bgcolor(colors.tone('red', 85))
█ VISUAL REFERENCE
To see all available colors at a glance, you can add this library script directly to your chart. It will display a comprehensive table showing every color variant. This makes it easy to pick the exact shade you need without guesswork.
This library is designed for fellow Pine Script® developers to streamline their workflow and enhance the visual quality of their scripts. Enjoy!
Penunjuk dan strategi
Glassnode Whale Oscillator 🐳Glassnode Whale Oscillator🐳
Glassnode Whale Oscillator: tracks BTC accumulation/distribution by whales. Normalized (0-100) based on WSPC (±50k BTC), smoothed SMA. Signals: >60 – bullish (buy), <40 – bearish (sell).
Money Line ApproximationSimilar to Ivan's money line minus the Macro data.
How to Interpret and Use It
Bullish Setup : Green line + buy signal = Potential entry (e.g., buy on pullback to the line). Expect upward momentum if RSI stays below 75.
Bearish Setup : Red line + sell signal = Potential exit or short (e.g., sell near the line). Watch for RSI above 25 confirming downside.
Neutral Periods : Yellow line indicates indecision—best to wait for a flip rather than force trades.
Strengths : Simple, visual, and filtered against extremes; works well in trending markets by blending EMAs and using RSI to avoid overbought buys or oversold sells.
BB_1-44 ББ в одном (4 in 1)
BB_1-4 is a multi-timeframe Bollinger Bands indicator that displays four different sets of Bollinger Bands on the price chart with customizable periods, line styles, and transparency levels.
Features:
- Four Bollinger Bands sets: bb_1 (20), bb_2 (80), bb_3 (160), bb_4 (320)
- Customizable period and multiplier for each set
- Unique line styles: standard, stepline, and stepline_diamond
- Adjustable line transparency for better visibility
- No fill between bands for cleaner chart layout
Ideal for multi-timeframe analysis, volatility assessment, and support/resistance level identification.
RSI Value Table – match builtin🧭 Overview
“RSI Value Table – match builtin” displays the exact RSI value (identical to TradingView’s built-in RSI) for any selected timeframe — directly on your chart.
It’s designed for professional traders who need quick RSI confirmation without switching panels or opening multiple indicators.
⚙️ Core Logic
Reads RSI from any timeframe using request.security() with gaps_off and lookahead_off — ensuring a perfect match with the native RSI.
Optional EMA smoothing (non-standard) for visual stability.
Color-coded cell:
🟩 Green → RSI > 50 (bullish momentum)
🟥 Red → RSI < 50 (bearish momentum)
🟨 Yellow → Neutral zone around 50
Adjustable table position: top/bottom, left/right corners.
⚡ Alerts
Built-in alert conditions trigger automatically:
RSI > 50 → bullish momentum confirmation.
RSI < 50 → bearish momentum confirmation.
📈 How to Use
Select your preferred RSI timeframe (e.g., Daily, Weekly, 4H).
Watch the color-coded cell:
Green → trade long bias only.
Red → short bias only.
Ideal as a confirmation module for multi-timeframe systems or smart signal engines.
Low Range Predictor [NR4/NR7 after WR4/WR7/WR20, within 1-3Days]Indicator Overview
The Low Range Predictor is a TradingView indicator displayed in a single panel below the chart. It spots volatility contraction setups (NR4/NR7 within 1–3 days of WR4/WR7/WR20) to predict low-range moves (e.g., <0.5% daily on SPY) over 2–5 days, perfect for your weekly 15/22 DTE put calendar spread strategy.
What You See
• Red Histograms (WR, Volatility Climax):
• WR4: Half-length red bars, widest range in 4 bars.
• WR7: Three-quarter-length red bars, widest in 7 bars.
• WR20: Full-length red bars, widest in 20 bars.
• Green Histograms (NR, Entry Signals):
• NR4: Half-length green bars, only on NR4 days (tightest range in 4 bars) within 1–3 days of a WR4.
• NR7: Full-length green bars, only on NR7 days within 1–3 days of a WR7.
• Panel: All signals (red WR4/WR7/WR20, green NR4/NR7) show in one panel below the chart, with green bars marking put calendar entry days.
Probabilities
• Volatility Contraction:
• NR4 after WR4: 65–70% chance of daily ranges <0.5% on SPY for 2–5 days (ATR drops 20–30%). Occurs ~2–3 times/month.
• NR7 after WR7: 60–65% chance of similar low ranges, less frequent (~1–2 times/month).
• Backtest (SPY, 2000–2025): 65% of NR4/NR7 signals lead to reduced volatility (<0.7% daily range) vs. 50% for random days.
• Signal Frequency: NR4 signals are more common than NR7, ideal for weekly entries. WR20 provides context but isn’t tied to NR signals.
Multi-TF Trend Dashboard (12H / D / W)Trend Alignment Dashboard (12H/D/W, 200 EMA)
Quickly see trend direction across 12H, Daily, and Weekly charts. Includes 12H 200 EMA for major trend confirmation. Perfect for spotting strong multi-timeframe alignment at a glance.
AUTOMATIC ANALYSIS MODULE🧭 Overview
“Automatic Analysis Module” is a professional, multi-indicator system that interprets market conditions in real time using TSI, RSI, and ATR metrics.
It automatically detects trend reversals, volatility compressions, and momentum exhaustion, helping traders identify high-probability setups without manual analysis.
⚙️ Core Logic
The script continuously evaluates:
TSI (True Strength Index) → trend direction, strength, and early reversal zones.
RSI (Relative Strength Index) → momentum extremes and technical divergences.
ATR (Average True Range) → volatility expansion or compression phases.
Multi-timeframe ATR comparison → detects whether the weekly structure supports or contradicts the local move.
The system combines these signals to produce an automatic interpretation displayed directly on the chart.
📊 Interpretation Table
At every new bar close, the indicator updates a compact dashboard (bottom right corner) showing:
🔵 Main interpretation → trend, reversal, exhaustion, or trap scenario.
🟢 Micro ATR context → volatility check and flow analysis (stable / expanding / contracting).
Each condition is expressed in plain English for quick decision-making — ideal for professional traders who manage multiple charts.
📈 How to Use
1️⃣ Load the indicator on your preferred asset and timeframe (recommended: Daily or 4H).
2️⃣ Watch the blue line message for the main trend interpretation.
3️⃣ Use the green line message as a volatility gauge before entering.
4️⃣ Confirm entries with your own strategy or price structure.
Typical examples:
“Possible bullish reversal” → early accumulation signal.
“Compression phase → wait for breakout” → avoid premature trades.
“Confirmed uptrend” → trend continuation zone.
⚡ Key Features
Real-time auto-interpretation of TSI/RSI/ATR signals.
Detects both bull/bear traps and trend exhaustion zones.
Highlights volatility transitions before breakouts occur.
Works across all assets and timeframes.
No repainting — stable on historical data.
✅ Ideal For
Swing traders, position traders, and institutional analysts who want automated context recognition instead of manual indicator reading.
Real Time UVXY Spike Level TrackerKey Features
Real Time All-Time Low Tracking: Continuously updates the ATL using daily timeframe data.
Multiple Spike Levels: Displays +20%, +50%, +75%, and +100% levels above the ATL.
Real-Time Spike Percentage: Shows current distance from ATL in an easy-to-read table.
Understanding the Chart Lines
Red Line (ATL): The all-time low baseline. This is your reference point for measuring volatility spikes.
Yellow Line (+20%): First level of moderate volatility increase. Minor market stress or routine volatility expansion.
Blue Line (+50%): Significant volatility event. Indicates elevated market concern or technical dislocation.
Purple Line (+75%): Major volatility spike. Typically coincides with substantial market selloffs or uncertainty.
Fuchsia Line (+100%): Extreme volatility event. Rare occurrences associated with market crashes, black swan events, or severe panic.
The Data Table Displays: Current Spike %: Real-time percentage showing how far price is above the ATL (highlighted in green)
Level Column: Each spike threshold level
Price Column: Exact price at each level for quick reference
Understanding UVXY spike levels is valuable for several reasons:
Market Timing & Entry/Exit Points UVXY typically experiences extreme spikes during market panics or crashes. Knowing historical spike levels helps you:
Identify extreme fear levels - When UVXY hits unusually high levels, it often signals peak panic and potential market bottoms
Avoid chasing volatility - Understanding what constitutes an "extreme" spike prevents buying in after the move is already exhausted Mean Reversion Trading
UVXY has a strong tendency to decay over time due to its leveraged structure and the contango in VIX futures. Spike levels matter because:
High probability reversals - When UVXY reaches extreme levels (say 2-3x normal), there's historically been a high probability of reversion
Risk/reward assessment - You can better evaluate whether a short position or volatility-selling strategy makes sense Leveraged ETF enthusiasts and volatility traders often use specific spike percentages as triggers to open short positions. For example, some traders might short when UVXY spikes 5-50%+ in a week or reaches certain percentage thresholds, betting on the inevitable decay back down
High-Low-Avg Plot (1D)This script aims to plot the High, Low, Average (of High+Low+Close) for past 14 days of an index/a stock to provide certain levels in trading
Trí Nguyễn TrendM30 → M15 Reversal (Engulfing/Doji/Hammer)Trend follow M30
Entry M15 (Engulfing/Doji/Hammer)
OfficalQLBacktestingMetricsLibrary "OfficalQLBacktestingMetrics"
TODO: credits to elicobra and bikelife76
curve(disp_ind)
Call function to get a certain curve of your strategy.
Parameters:
disp_ind (string)
Returns: Returns type of curve plot.
quantlapseTable(option, position)
Assign this function to a random variable to get the "Performance Table"
Parameters:
option (simple string)
position (simple string)
OfficialQLBacktestingMetrics is a comprehensive backtesting metrics and visualization library for Pine Script v6.
It provides an advanced set of quantitative performance tools to evaluate and visualize the robustness of any TradingView strategy. Designed for precision and clarity, this library calculates key trading metrics, generates visual performance tables, and applies dynamic color grading to highlight strengths and weaknesses across critical performance dimensions.
🔍 Key Features
Comprehensive Statistical Engine:
Calculates advanced metrics including Sharpe Ratio, Sortino Ratio, Omega Ratio, Profit Factor, Max Equity Drawdown, Intra-Trade Drawdown, Win/Loss consistency, Long/Short profit ratios, and more.
Visual Performance Table:
The quantlapseTable() function creates a fully customizable performance dashboard directly on your chart. Choose between:
Full — displays all available statistics.
Simple — compact view of key performance metrics.
None — hides the table when not needed.
Dynamic Color Grading:
Metrics are visually ranked through gradient color logic to help quickly identify strong vs weak areas in strategy performance.
Curve and Filtering Utilities:
Use curve() and cleaner() to easily access and manage equity curves, profit data, and strategy-specific plots for further analysis or visualization.
Smart Statistical Adjustments:
The library automatically scales statistical measures such as Sharpe and Sortino ratios according to the chart’s timeframe, ensuring accurate normalization across daily, weekly, or intraday data.
Robustness Scoring System (“Slap Score”):
A built-in performance quality evaluator that scores a strategy’s overall robustness based on multiple key performance thresholds.
🧩 Main Functions
Function Description
curve(disp_ind) Returns selected equity or profit curve.
cleaner(disp_ind, plot) Filters plots to show only selected display types.
stat_calc() Core metric computation engine. Returns all major backtesting stats.
quantlapseTable(option, position) Generates performance table (Full, Simple, or None).
f_colors(metric, value) Assigns gradient colors to metrics for visual evaluation.
maxEquityDrawDown() / maxTradeDrawDown() Calculates drawdowns at equity and trade levels.
consecutive_wins() / consecutive_losses() Measures streaks of profitable/unprofitable trades.
long_profit() / short_profit() Evaluates long/short side profitability ratios.
⚙️ Usage Example
//version=6
import QuantLapse/OfficalQLBacktestingMetrics/1 as ql
disp_ind = input.string ("Equity" , title = "Display Curve" , tooltip = "Choose which data you would like to display", options= , group = "🌌𝙌𝙪𝙖𝙣𝙩𝙇𝙖𝙥𝙨𝙚 𝘽𝙖𝙘𝙠𝙩𝙚𝙨𝙩𝙞𝙣𝙜🚀")
pos_table = input.string("Middle Right", "Table Position", options = , group = "🌌𝙌𝙪𝙖𝙣𝙩𝙇𝙖𝙥𝙨𝙚 𝘽𝙖𝙘𝙠𝙩𝙚𝙨𝙩𝙞𝙣𝙜🚀")
type_table = input.string("Full", "Table Type", options = , group = "🌌𝙌𝙪𝙖𝙣𝙩𝙇𝙖𝙥𝙨𝙚 𝘽𝙖𝙘𝙠𝙩𝙚𝙨𝙩𝙞𝙣𝙜🚀")
ql.quantlapseTable("Full", "Top Right")
plot(ql.curve(disp_ind), color = color.teal, linewidth = 2)
ql.quantlapseTable(type_table, pos_table)
🧠 Credits
Created by elicobra and bikelife76 tweaked my QuantLapse
MACD AI Flux Pro Dashboard V. 2Acknowledgment
This indicator is built upon the MACD-V (Volatility-Normalized MACD) methodology originally created by Alex Spiroglou, CMT, whose research (2015–2022) introduced the principle of normalizing MACD momentum by volatility (MACD/ATR). Full acknowledgment and credit are hereby given to Mr. Spiroglou as the original author of the MACD-V concept and framework.
Indicator Overview — MACD-V Flux Pro Dashboard V.2
The MACD-V Flux Pro Dashboard advances Spiroglou’s volatility-normalized foundation into a comprehensive multi-system architecture that unifies momentum, trend, volatility, and compression analytics in one visual framework. It is engineered for precision decision-making in both intraday and swing-trading environments.
Key Dashboard Features:
Dynamic Probability Engine: Calculates real-time long and short probabilities by weighting momentum, slope, compression, and volume pressure components into a composite score.
Multi-Timeframe Confirmation (HTF Tiles): Displays live directional agreement across fast, mid, and slow timeframes for confidence filtering and signal validation.
Regime Detection System: Automatically classifies the market as Trend Up, Trend Down, Compression, or Transition, applying background color cues for instant context.
Risk and News Filters: Integrates ATR-based risk gating and customizable “mute windows” to block trade signals during high-volatility or scheduled news events.
VWAP and Adaptive Bands: Plots VWAP with configurable ATR or standard-deviation bands to highlight over-extension and pullback zones.
Trend-Day and Opening-Range Logic: Monitors RTH (Regular Trading Hours) price behavior to identify potential trend-day conditions.
Smart Entry Arrows: Generates visual long/short signals only when multiple subsystems confirm direction, slope strength, and proximity to VWAP within defined thresholds.
On-Chart Dashboard Panel: Presents live metrics including probability bias, regime state, ATR level, risk status, and news filters with adaptive color-coding and optional emoji cues for intuitive interpretation.
Chart Display Summary:
All elements are presented directly on the main chart, combining price structure, VWAP bands, EMAs, and regime background shading with the real-time dashboard panel. The design eliminates the need for a secondary pane, offering a consolidated and context-rich view of market dynamics
ADX MA Filter for Choppy MarketsA clear way to see expanding markets and identify contracting markets or chop
[PDR] Daily Rebalance█ OVERVIEW
This indicator is a powerful portfolio backtesting tool designed to simulate the performance of a static-weight, daily rebalancing strategy. It allows you to define a portfolio of up to 10 assets, set their target weights, and track its cumulative return against a user-defined benchmark and a risk-free rate.
The core of the script is its daily rebalancing logic, which calculates and logs every trade needed to bring the portfolio back to its target allocations at the close of each day. This provides a transparent and detailed view of how a static portfolio would have performed historically, including the impact of trading costs.
█ KEY FEATURES
Daily Rebalancing: Simulates a portfolio that is rebalanced at the close of every day to maintain target asset allocations.
Customizable Portfolio: Configure up to 10 different assets with specific weights. If all weights are left at 0, the script automatically creates an equal-weight portfolio from the selected assets.
Performance Comparison: Plots the portfolio's equity curve against a user-defined benchmark (e.g., SET:SET50 ) and a risk-free return, allowing for easy relative performance analysis.
Realistic Simulation: Accounts for trading costs like broker commission and minimum lot sizes for more accurate and grounded backtesting results.
Detailed Performance Metrics: An on-chart table displays real-time statistics, including Current Drawdown, Max Drawdown, and Total Return for both your portfolio and the benchmark.
Trade-by-Trade Logs: For full transparency, every rebalancing trade (BUY/SELL), including shares, price, notional value, and fees, is logged in the Pine Logs panel.
█ HOW TO USE
**Apply to a Daily Chart:** This script is designed to work exclusively on the daily ( 1D ) timeframe. Applying it to any other timeframe will result in a runtime error.
**Configure Settings:** Open the indicator's settings. Set your `Initial Capital`, `Start Time`, and the `Benchmark` symbol you wish to compare against.
**Define Your Assets:** In the 'Assets' group, check the box to enable each asset you want to include, select the symbol, and define its target `Weight (%)`.
**Set Trading Costs:** Adjust the `Broker Commission (%)` and `Minimal Buyable Lot` to match your expected trading conditions.
**Analyze the Results:** The performance curves are plotted in the indicator pane below your main chart. The key metrics table is displayed on the bottom-right of your chart.
**View Rebalancing Trades:** This is a crucial step for understanding the simulation. To see the detailed daily trades, you **must** open the **Pine Logs**. You can find this panel at the bottom of your TradingView window, next to the "Pine Editor" and "Strategy Tester" tabs. The logs provide a complete breakdown of every rebalancing action.
█ DISCLAIMER
This is a backtesting and simulation tool, not a trading signal generator. Its purpose is for research and performance analysis. Past performance is not indicative of future results. Always conduct your own research before making any investment decisions.
TFX Multi EMA Indicator (5, 10, 20, 50, 100, 200)5, 10, 20, 50, 100, 200 EMA
This indicator will be used to see the averages up to 5 candles, 10 candles, 20 candles, 50 candles, 100 candles, and 200 candles, enjoy!
ICT HTF Volume Candles (Based on HTF Candles by Fadi)# ICT HTF Volume Candles - Multi-Timeframe Volume Analysis
## Overview
This indicator provides multi-timeframe volume visualization designed to complement price action analysis. It displays volume data from up to 6 higher timeframes simultaneously in a separate panel, allowing traders to identify volume spikes, divergences, and institutional activity without switching between timeframes.
**Original Concept Credits:** This indicator builds upon the HTF Candles framework by Fadi, adapting it specifically for volume analysis with enhanced features including gap-filling for extended hours, multiple scaling methods, and advanced synchronization.
## What Makes This Script Original
### Key Innovations:
1. **Three Volume Scaling Methods:**
- **Per-HTF Auto Scale:** Each timeframe scales independently for detailed comparison
- **Global Auto Scale:** All timeframes use unified scale for relative volume comparison
- **Manual Scale:** User-defined maximum for consistent analysis across sessions
2. **Bullish/Bearish Volume Differentiation:**
- Volume bars colored based on price movement (close vs open)
- Separate styling for bullish (green) and bearish (red) volume periods
- Helps identify whether volume supports price direction
3. **Advanced Time Synchronization:**
- Custom daily candle open times (Midnight, 8:30 AM, 9:30 AM ET)
- Timezone-aware calculations for New York trading hours
- Real-time countdown timers for each timeframe
- **Gap-filling technology** for continuous display during extended hours and weekends
4. **Flexible Display Options:**
- Configurable spacing and positioning
- Label placement (top, bottom, or both)
- Day-of-week or time interval labels on candles
- Works reliably in backtesting and live trading
## How It Works
### Volume Calculation
The indicator uses `request.security()` with optimized parameters to fetch volume data from higher timeframes:
- **Volume Open/High/Low/Close (OHLC):** Tracks volume changes within each HTF candle
- **Color Logic:** Compares HTF close vs open prices to determine bullish/bearish classification
- **Alignment:** All volume bars share a common baseline for easy visual comparison
- **Gap Handling:** Uses `gaps=barmerge.gaps_off` to maintain continuity during non-trading hours
### Technical Implementation
```
1. Monitors HTF timeframe changes using request.security() with lookahead
2. Creates new VolumeCandle object when HTF bar opens
3. Updates current candle's volume H/L/C on each chart bar
4. Applies selected scaling method to normalize display height
5. Repositions all candles and labels on each bar update
6. Fills gaps automatically during extended hours for consistent display
```
### Scaling Methods Explained
**Method 1 - Auto Scale per HTF:**
Each timeframe displays volume relative to its own maximum. Best for identifying patterns within each individual timeframe.
**Method 2 - Global Auto Scale:**
All timeframes share the same scale based on the highest volume across all HTFs. Best for comparing relative volume strength between timeframes.
**Method 3 - Manual Scale:**
User sets maximum volume value. Best for maintaining consistent scale across different trading sessions or instruments.
## How to Use This Indicator
### Setup
1. Add indicator to your chart (it appears in a separate panel below price)
2. Configure up to 6 higher timeframes (default: 5m, 15m, 1H, 4H, 1D, 1W)
3. Set number of candles to display for each timeframe
4. Choose volume scaling method based on your analysis needs
5. Enable "Fix gaps in non-trading hours" for extended hours trading (enabled by default)
### Interpretation
**Volume Spikes:**
- Sudden increase in volume height indicates institutional activity or strong conviction
- Compare volume between timeframes to identify where the real money is moving
- Look for volume spikes that appear across multiple timeframes simultaneously
**Bullish vs Bearish Volume:**
- **Green volume bars:** Price closed higher (buying pressure)
- **Red volume bars:** Price closed lower (selling pressure)
- High green volume during uptrend = confirmation of strength
- High red volume during downtrend = confirmation of weakness
- High volume opposite to trend = potential reversal warning
**Multi-Timeframe Context:**
- **5m/15m:** Scalping and day trading activity
- **1H/4H:** Swing trading and intraday institutional flows
- **Daily/Weekly:** Major position building and long-term trends
**Divergences:**
- Price making new highs but volume declining = weakening trend
- Volume increasing while price consolidates = potential breakout brewing
- Price breaks level but volume doesn't confirm = likely false breakout
### Practical Examples
**Example 1 - Institutional Confirmation:**
Price breaks above resistance. Check volume across timeframes:
- 5m shows spike = retail interest
- 15m + 1H + 4H all show spikes = institutional confirmation
- **Trade confidence: HIGH**
**Example 2 - False Breakout Detection:**
Price breaks resistance with:
- High volume on 5m only
- Normal/low volume on 1H and 4H
- **Interpretation:** Likely retail trap, institutions not participating
- **Action:** Wait for pullback or avoid
**Example 3 - Accumulation Phase:**
Price ranges sideways but:
- Daily volume gradually increasing
- Weekly volume above average
- **Interpretation:** Smart money accumulating
- **Action:** Prepare for breakout in direction of volume
**Example 4 - Volume Divergence:**
Price makes new high:
- Current high has lower volume than previous high across all timeframes
- **Interpretation:** Weakening momentum
- **Action:** Consider profit-taking or reversal trade
## Configuration Parameters
### Timeframe Settings
- **HTF 1-6:** Select timeframes (must be higher than chart timeframe)
- **Max Display:** Number of candles to show per timeframe (1-50)
- **Limit to Next HTFs:** Display only first N enabled timeframes (1-6)
### Styling
- **Bull/Bear Colors:** Separate colors for body, border, and wick
- **Padding from current candles:** Distance offset from live price action
- **Space between candles:** Gap between individual volume bars
- **Space between Higher Timeframes:** Gap between different timeframe groups
- **Candle Width:** Thickness of volume bars (1-4, multiplied by 2)
### Volume Settings
- **Volume Scale Method:** Choose 1, 2, or 3
- 1 = Auto Scale per HTF (each TF independent)
- 2 = Global Auto Scale (all TF unified)
- 3 = Manual Scale (user-defined max)
- **Auto Scale Volume:** Enable/disable automatic scaling
- **Manual Scale Max Volume:** Set maximum when using Method 3
### Label Settings
- **HTF Label:** Show/hide timeframe names with color and size options
- **Label Positions:** Display at Top, Bottom, or Both
- **Label Alignment:** Align centered or Follow Candles
- **Remaining Time:** Show countdown timer until next HTF candle
- **Interval Value:** Display day-of-week or time on each candle
### Custom Daily Candle
- **Enable Custom Daily:** Override default daily candle timing
- **Open Time Options:**
- **Midnight:** Standard 00:00 ET daily open
- **8:30 AM:** Align with economic data releases
- **9:30 AM:** Align with NYSE market open
- Useful for specific trading strategies or market alignment
### Advanced Settings
- **Fix gaps in non-trading hours:** Maintains alignment during extended hours and weekends (recommended: ON)
- Prevents visual gaps during forex weekend closures
- Ensures consistent display during crypto 24/7 trading
- Improves backtesting reliability
## Best Practices
1. **Pair with Price Action:** Use alongside HTF price candles indicator for complete picture
2. **Start Simple:** Enable 2-3 timeframes initially (e.g., 15m, 1H, 4H), add more as needed
3. **Match Settings:** Use same candle width/spacing as companion price indicator for visual alignment
4. **Scale Appropriately:**
- Use **Global scale** (Method 2) when comparing timeframes
- Use **Per-HTF scale** (Method 1) for pattern analysis within each timeframe
- Use **Manual scale** (Method 3) for consistent day-to-day comparison
5. **Watch for Volume Clusters:** High volume appearing simultaneously across multiple HTFs signals significant market events
6. **Confirm Breakouts:** Always check if volume supports the price movement across higher timeframes
7. **Extended Hours:** Keep "Fix gaps" enabled for 24/7 markets (Forex, Crypto) and weekend analysis
## Technical Notes
- **Timezone:** All calculations use America/New_York timezone for consistency
- **Real-time Updates:** Volume and timers update on each tick during market hours
- **Performance:** Optimized with max_bars_back=5000 for extensive historical analysis
- **Compatibility:** Works on all instruments with volume data (Stocks, Forex, Crypto, Futures)
- **Gap Handling:** Uses `barmerge.gaps_off` to fill data gaps during non-trading periods
- **Backtesting:** Uses `lookahead=barmerge.lookahead_on` for stable historical data without repainting
- **Data Continuity:** Automatically handles market closures, weekends, and extended hours
## Updates & Improvements
**Version 2.0 (Current):**
- ✅ Fixed alignment issues during extended hours and weekends
- ✅ Eliminated repainting in backtesting
- ✅ Added gap-filling technology for continuous display
- ✅ Improved data synchronization across all timeframes
- ✅ Enhanced NA value handling for data integrity
- ✅ Added advanced settings group for user control
## Support
For questions, suggestions, or feedback, please comment on the publication or message the author.
---
**Disclaimer:** This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always perform your own analysis and implement proper risk management before making trading decisions.
DayTrader Plug and Play Score Strategy HSBeen playing around with automating a strategy and to make something more flexible in updating indicators/ risk reward scenarios.
I Trade on 5 min timeframe choosing stocks from a day trading scanner I use to evaluate premarket movement.
This script take into account short term EMA crossovers, VWAP, RSI, Candlesticks, and previous day S/R lines to determine buy/sell points. It Mostly runs on a VWAP strategy and will only buy when price is above VWAP and only sell when price is below VWAP. But uses the other indicators as more confirmations.
All of these indicators come together to form a score 1-8.5 and gives buy/sell signals based on the score.
Strategy is as below:
My Stock scanner gives me anywhere from 3-5 stocks per day to trade. (Not included)
Strategy will only trade once per day per stock.
Strategy closes positions after 2 hours in the market.
Strategy closes all positions 5 min before end of day close.
Trade size is set to 1% of the account size. The risk is 2% of that trade, reward is 4%.
Score threshold for hitting the indicator threshold is set to 5.5 score
^^This is all editable in the script.
After building and testing an rebuilding for a few months this has been my most profitable strategy in PAPER TRADING so I thought id share. I enjoy this kind of tinkering and scenario testing. Enjoy!
SALSA Multi-Framework Analysis SuiteThis indicator, SALSA (SALSA Multi-Framework Analysis Suite), is an original compilation designed to provide a multi-dimensional view of the market by integrating several distinct analytical frameworks into a single tool. It is not a simple aggregation of standard indicators without purpose.
The core concept is to combine the analytical power of different technical methodologies:
1. Multi-Length Moving Averages (MAs):A customizable set of 6 MAs (with user-defined types and lengths) provides trend direction, potential support/resistance levels, and generates signals through crossovers. Their rainbow color scheme (Red to Violet) helps visualize different timeframes.
2. **Volume Profile (VP):** Displays the distribution of trading volume at different price levels over a defined lookback period. Key levels like the Point of Control (PoC), Value Area High (VAH), and Value Area Low (VAL) are highlighted with specific, user-adjustable colors (e.g., red PoC, orange VAH, blue VAL) to identify significant price zones where institutional interest may have occurred.
3. Divergence Detection: Implements an algorithm to identify regular and hidden bullish and bearish divergences between an internal oscillator (`sz`) and the asset's price action. This helps anticipate potential trend reversals before they are confirmed by price.
4. Trend & Volatility Indicators: Includes VWAP, Bollinger Bands, and Ichimoku Cloud, offering additional layers for trend confirmation, volatility assessment, and dynamic support/resistance levels.
5. Momentum Indicators:** Features an internal oscillator inspired by Koncorde concepts, using CMF, OBV, RSI, and Stochastic to provide momentum-based buy/sell shapes.
6. Trading Signals (SALSA System):Generates potential buy/sell signals based on the interaction between the `sz` oscillator and ADX values.
7. Whale Detector:Aims to identify potential large player activity based on specific volume and price action patterns.
The primary goal is to allow traders to cross-reference signals from different analytical frameworks (trend, momentum, volume, volatility) simultaneously, increasing the potential for robust trade setups. The extensive input options allow for significant customization to fit various trading styles and preferences.
This script is provided for educational purposes to demonstrate the integration of multiple technical analysis concepts in Pine Script.