POITypesLibrary "POITypes"
TODO: add library description here
ZonePOI
Fields:
right (series int)
top (series float)
left (series int)
bottom (series float)
is_tested (series bool)
start_time_test_4H (series int)
end_time_test_4H (series int)
is_covered (series bool)
is_drawn (series bool)
指標和策略
Up/Down Volume with Table (High Contrast)Up/Down Volume with Table (High Contrast) — Script Summary & User Guide
Purpose of the Script
This TradingView indicator, Up/Down Volume with Table (High Contrast), visually separates and quantifies up-volume and down-volume for each bar, providing both a color-coded histogram and a dynamic table summarizing the last five bars. The indicator helps traders quickly assess buying and selling pressure, recent volume shifts, and their relationship to price changes, all in a highly readable format.
Key Features
Up/Down Volume Columns:
Green columns represent volume on bars where price closed higher than the previous bar (up volume).
Red columns represent volume on bars where price closed lower than the previous bar (down volume).
Delta Line:
Plots the net difference between up and down volume for each bar.
Green when up-volume exceeds down-volume; red when down-volume dominates.
Interactive Table:
Displays the last five bars, showing up-volume, down-volume, delta, and close price.
Color-coding for quick interpretation.
Table position, decimal places, and timeframe are all user-configurable.
Custom Timeframe Support:
Calculate all values on the chart’s timeframe or a custom timeframe of your choice (e.g., daily, hourly).
High-Contrast Design:
Table and plot colors are chosen for maximum clarity and accessibility.
User Inputs & Configuration
Use custom timeframe:
Toggle between the chart’s timeframe and a user-specified timeframe.
Custom timeframe:
Set the timeframe for calculations if custom mode is enabled (e.g., "D" for daily, "60" for 60 minutes).
Decimal Places:
Choose how many decimal places to display in the table.
Table Location:
Select where the table appears on your chart (e.g., Bottom Right, Top Left, etc.).
How to Use
Add the Script to Your Chart:
Copy and paste the code into a new Pine Script indicator on TradingView.
Add the indicator to your chart.
Configure Inputs:
Open the indicator settings.
Adjust the timeframe, decimal places, and table location as desired.
Read the Table:
The table appears on your chart (location is user-selectable) and displays the following for the last five bars:
Bar: "Now" for the current bar, then "Bar -1", "Bar -2", etc. for previous bars.
Up Vol: Volume on bars where price closed higher than previous bar, shown in black text.
Down Vol: Volume on bars where price closed lower than previous bar, shown in black text.
Delta: Up Vol minus Down Vol, colored green for positive, red for negative, black for zero.
Close: Closing price for each bar, colored green if price increased from previous bar, red if decreased, black if unchanged.
Interpret the Histogram and Lines:
Green Columns:
Represent up-volume. Tall columns indicate strong buying volume.
Red Columns:
Represent down-volume. Tall columns indicate strong selling volume.
Delta Line:
Plotted as a line (not a column), colored green for positive values (more up-volume), red for negative (more down-volume).
Large positive or negative spikes may indicate strong buying or selling pressure, respectively.
How to Interpret the Table
Column Meaning Color Coding
Bar "Now" (current bar), "Bar -1" (previous bar), etc. Black text
Up Vol Volume for bars with higher closes than previous bar Black text
Down Vol Volume for bars with lower closes than previous bar Black text
Delta Up Vol - Down Vol. Green if positive, red if negative, black if zero Green/Red/Black
Close Closing price for the bar. Green if price increased, red if decreased, black if unchanged Green/Red/Black
Green Delta: Indicates net buying pressure for that bar.
Red Delta: Indicates net selling pressure for that bar.
Close Price Color:
Green: Price increased from previous bar.
Red: Price decreased.
Black: No change.
Practical Trading Insights
Consistently Green Delta (Histogram & Table):
Sustained buying pressure; may indicate bullish sentiment or accumulation.
Consistently Red Delta:
Sustained selling pressure; may indicate bearish sentiment or distribution.
Large Up/Down Volume Spikes:
Big green or red columns can signal strong market activity or potential reversals if they occur at trend extremes.
Delta Flipping Colors:
Rapid alternation between green and red deltas may indicate a choppy or indecisive market.
Close Price Color in Table:
Use as a quick confirmation of whether volume surges are pushing price in the expected direction.
Troubleshooting & Notes
No Volume Data Error:
If your symbol doesn’t provide volume data (e.g., some indices or synthetic assets), the script will display an error.
Custom Timeframe:
If using a custom timeframe, ensure your chart supports it and that there is enough data for meaningful calculations.
High-Contrast Table:
Designed for clarity and accessibility, but you can adjust colors in the code if needed for your personal preferences.
Summary Table Legend
Bar Up Vol Down Vol Delta Close
Now ... ... ... ...
Bar-1 ... ... ... ...
... ... ... ... ...
Colors reflect the meaning as described above.
In Summary
This indicator visually and numerically breaks down buying and selling volume, helping you spot shifts in market sentiment, volume surges, and price/volume divergences at a glance.
Use the table for precise recent data, the histogram for overall flow, and the color cues for instant market context.
COT_OscilatorThe COT Ocsilator Indicator is a quantitative analysis tool that uses the positioning of so-called Commercials from the weekly Commitments of Traders (COT) report published by the CFTC . It is designed to detect extreme hedging behavior by institutional participants and translates it into a normalized scale from 0 to 100. The goal is to provide early indication of potential market reversals or overextensions.
What is the "Commercial Index"?
Commercials are market participants with a direct connection to the underlying asset – such as producers, processors, or large-scale users of commodities. They are often referred to as "Smart Money" due to their fundamental market insight and hedging purpose.
The Commercial Index measures where the current net position of Commercials (Long - Short) stands within a user-defined historical lookback window:
Index = 100 : the most bullish net position in the selected period.
Index = 0 : the most bearish net position.
How does the indicator work?
Data Source: The script uses the latest TradingView/LibraryCOT/4, which provides structured access to official COT data.
Calculation:
Weekly long and short positions of Commercials are requested based on the selected root symbol (e.g., "HG" for Copper).
Net position is calculated as: Net = Long - Short .
This value is normalized within the selected historical range (e.g., 150 weeks) between the highest and lowest net positions.
Result : A smooth oscillator ranging from 0 to 100 is plotted.
How to use the indicator?
Select your target future market (e.g., "GC" for Gold, "CL" for Crude Oil, "HG" for Copper).
Optionally adjust the three time windows to observe short-, mid-, and long-term sentiment (e.g., 125, 250, 500 weeks).
Watch for extreme readings:
Above 80–100: Commercials are heavily net long.
Below 20–0: Commercials are heavily net short.
These extremes are especially relevant when combined with price action, seasonality, or technical signals.
What makes this script unique?
Objective sentiment evaluation based on real institutional positioning.
Three timeframes shown in parallel for multi-horizon analysis.
No smoothing or distortion – raw positioning is visualized cleanly.
Useful in futures markets, where hedging behavior is a major driver.
Tips for Use:
Best viewed on weekly daily or charts (e.g., COMEX:HG1!, NYMEX:CL1!, CBOT:ZW1!).
Combine with technical setups or external sentiment tools for confirmation.
Can be used as a core building block in COT-based strategies or signal generation systems.
This indicator helps you track the footprints of Smart Money – and anticipate where the market might turn.
Chaikin Money Flow//@version=5
indicator("WTI Short Breakout Alert", overlay=true)
// === Input Parameters ===
supportLevel = input.float(65.50, title="Breakout Support Level", step=0.01) rsiLength = input.int(14, title="RSI Length") emaLength = input.int(21, title="EMA Length")
// === Calculations ===
ema = ta.ema(close, emaLength)
rsi = ta.rsi(close, rsiLength)
// === Conditions ===
belowEMA = close < ema
rsiBearish = rsi < 50
breakSupport = close < supportLevel
// === Final Alert Condition ===
shortSetup = belowEMA and rsiBearish and breakSupport
// === Plotting ===
plot(supportLevel, title="Support Level", color=color.red, linewidth=1, style=plot.style_line) plotshape(shortSetup, title="Short Entry", location=location.belowbar, color=color.red, style=shape.labeldown, text="SHORT")
// === Alert ===
alertcondition(shortSetup, title="Short Breakout Alert", message="WTI SHORT Setup: Price < EMA21, RSI < 50, and breaking below support!")
SPY Hybrid ORE Strategy v3This Pine Script strategy implements a SPY Hybrid Opening Range Expansion (ORE) Strategy that trades breakouts from the daily opening range during specific market hours (9:30-11:30 AM). The strategy identifies "sucker moves" - situations where the opening range is unusually large compared to historical volatility (ATR) - and then trades breakouts in the opposite direction of the initial move.
For long positions, it enters when price breaks above the previous bar's high after a large opening range in bullish market conditions (price above 50-day SMA), using the opening low as a stop loss and targeting a profit equal to half the opening range. For short positions, it enters on breaks below the previous bar's low during bearish conditions (price significantly below 50-day SMA with bearish momentum), using more aggressive stops and partial profit-taking. The strategy incorporates multiple filters including volatility (ATR), volume, RSI momentum, and includes risk management through position sizing based on account equity and stop distance, along with time-based exits and cooldown periods between trades.
Beta calculatorCalculates the market beta for the stock that is on your screen. You may change the parameters by changing the symbol you are using as benchmark to calculate market beta in the settings. This will affect the market beta you get. VTI is used since it has a theoretical market beta of 1.
Stock-Specific SMA200 Volatility NormalizedIt is used for swing treding it is shows for 0 to 100 range for every stock
No Nonsense Forex Moving Averages ATR Bands[T1][T69]🔍 Overview
This indicator implements a No Nonsense Forex-style Baseline combined with ATR Bands, built using the moving_averages_library by Teyo69. It plots a configurable moving average and dynamically adjusts upper/lower ATR bands for trade zone detection and baseline confirmation.
✨ Features
30+ Moving Average types
ATR bands to define dynamic trade zones
Visual background highlighting for trade signals
Supports both "Within Range" and "Baseline Bias" display modes
Clean, minimal overlay with effective zone coloring
⚙️ How to Use
Choose MA Type: Select the baseline logic (SMA, EMA, HMA, etc.)
Configure ATR Bands: Adjust the ATR length and multiplier
Select Background Mode:
Within Range: Yellow = price inside band, Gray = outside
Long/Short Baseline Signal: Green = price above baseline, Red = below
Trade Setup:
Use the baseline for trend direction
Wait for confirmation or avoidance when price is outside the band
🛠 Configuration
Source: Price source for MA
MA Type: Any supported MA from the library
MA Length: Number of bars for smoothing
ATR Length: Period for Average True Range
ATR Multiplier: Width of the bands
Background Signal Mode: Choose visual signal type
⚠️ Limitations
Works with one MA at a time
Requires the moving_averages_library imported
Does not include confirmation or exit logic — use with full NNFX stack
💡 Tips
Combine with Volume or Confirmation indicators for NNFX strategy
Use adaptive MAs like KAMA, JMA, or VIDYA for dynamic baselines
Adjust ATR settings based on asset volatility
📘 Credits
Library: Teyo69/moving_averages_library/1
Inspired by: No Nonsense Forex (VP) Baseline + ATR Band methodology & MigthyZinger
High Win Rate Trader by iambuoyant# High Win Rate Trader by iambuoyant - Complete Guide
## Introduction
The "High Win Rate Trader by iambuoyant" is a comprehensive Pine Script indicator designed to identify high-probability trading opportunities across various market conditions. Built with a multi-faceted approach, it integrates several key technical analysis concepts to provide robust buy and sell signals, aiming to maximize potential returns while managing risk. This indicator is particularly useful for traders looking for confirmed entries based on a confluence of factors rather than relying on a single signal.
## Core Philosophy
This indicator operates on the principle that **multiple confirming factors create higher probability trades**. Instead of relying on a single indicator, it combines trend analysis, momentum oscillators, volume confirmation, market structure, and mathematical levels to identify optimal entry points. The more confluence factors that align, the stronger the trading signal.
## Strategies and Confluence Factors
### 1. Trend Analysis
**Purpose**: Establishes the overall market direction to ensure trades align with momentum.
**Components**:
- **Fast EMA (Default: 9)**: Short-term trend detection
- **Slow EMA (Default: 21)**: Medium-term trend confirmation
- **Trend EMA (Default: 50)**: Long-term trend establishment
**How it works**:
- **Bullish Trend**: Fast EMA > Slow EMA > Trend EMA
- **Bearish Trend**: Fast EMA < Slow EMA < Trend EMA
- Signals are filtered to only trigger in the direction of the established trend
**Default Settings**:
- Fast EMA Period: 9
- Slow EMA Period: 21
- Trend EMA Period: 50
### 2. Oscillator Confirmation
**Purpose**: Identifies overbought/oversold conditions and momentum shifts.
#### RSI (Relative Strength Index)
- **Period (Default: 14)**: Standard RSI calculation period
- **Overbought Level (Default: 70)**: RSI level considered overbought
- **Oversold Level (Default: 30)**: RSI level considered oversold
**How it works**:
- **Bullish**: RSI < 40 and turning upward (oversold recovery)
- **Bearish**: RSI > 60 and turning downward (overbought rejection)
#### Stochastic Oscillator
- **K Period (Default: 14)**: Stochastic %K calculation period
- **D Period (Default: 3)**: Stochastic %D smoothing period
- **Overbought Level (Default: 80)**: Stochastic overbought threshold
- **Oversold Level (Default: 20)**: Stochastic oversold threshold
**How it works**:
- **Bullish**: %K < 30 and (%K turning up OR %K > %D)
- **Bearish**: %K > 70 and (%K turning down OR %K < %D)
### 3. MACD (Moving Average Convergence Divergence)
**Purpose**: Confirms momentum shifts and trend changes.
**Components**:
- **Fast Period (Default: 12)**: Fast EMA for MACD calculation
- **Slow Period (Default: 26)**: Slow EMA for MACD calculation
- **Signal Period (Default: 9)**: Signal line smoothing period
**How it works**:
- **Bullish**: MACD line > Signal line OR (MACD rising AND histogram increasing)
- **Bearish**: MACD line < Signal line OR (MACD falling AND histogram decreasing)
### 4. Volume Analysis
**Purpose**: Confirms price moves with volume conviction.
**Components**:
- **Volume MA Period (Default: 20)**: Period for volume moving average
- **Volume Multiplier (Default: 1.5)**: Volume threshold multiplier
**How it works**:
- **Bullish**: Current volume > (Volume MA × 1.5)
- **Bearish**: Current volume > (Volume MA × 1.5)
### 5. Market Structure and Volatility
#### Support and Resistance Levels
- **Pivot Length (Default: 10)**: Period for pivot high/low detection
- **Dynamic Levels**: Automatically identifies recent swing highs and lows
- **Proximity Check**: Ensures trades aren't initiated too close to S/R levels
#### ATR (Average True Range)
- **ATR Period (Default: 14)**: Volatility measurement period
- **ATR Multiplier (Default: 2.0)**: Stop loss distance multiplier
- **Volatility Filter (Default: 50.0%)**: Maximum allowed volatility percentage
**How it works**:
- Calculates market volatility using ATR
- Prevents trades in excessively volatile conditions
- Helps determine dynamic stop loss levels
### 6. Fibonacci Retracements
**Purpose**: Identifies key mathematical support/resistance levels.
**Components**:
- **Lookback Period (Default: 50)**: Period for swing high/low calculation
- **Tolerance (Default: 2.0%)**: Price proximity tolerance to Fib levels
**Key Levels**: 23.6%, 38.2%, 50%, 61.8%, 78.6%
**How it works**:
- **Bullish**: Price near 38.2%, 50%, or 61.8% retracement levels in uptrend
- **Bearish**: Price near 38.2%, 50%, or 61.8% retracement levels in downtrend
### 7. Risk Management
#### Risk:Reward Ratio
- **Minimum RR Ratio (Default: 1.0)**: Minimum acceptable risk:reward ratio
- **Dynamic Calculation**: Based on support/resistance levels and ATR
#### Dynamic Stop Loss
- **ATR-based**: Stop loss = Entry ± (ATR × 1.5)
- **S/R-based**: Uses nearby support/resistance levels when available
### 8. Signal Confirmation
**Confirmation Bars (Default: 0)**:
- **0**: Immediate signals (recommended for testing)
- **1+**: Delayed confirmation for reduced false signals
## How to Use the Indicator
### Step 1: Initial Setup
1. **Add to Chart**: Apply the "High Win Rate Trader by iambuoyant" indicator to your desired chart in TradingView
2. **Verify Display**: Ensure you can see the indicator plots and debug pane below the main chart
### Step 2: Understanding the Signals
#### Visual Elements:
- **Green Triangles (Buy)**: Appear below price bars for long entry signals
- **Red Triangles (Sell)**: Appear above price bars for short entry signals
- **Labels**: Show "BUY" or "SELL" with current RSI value
- **EMA Lines**: Blue (Fast), Orange (Slow), Gray (Trend) - visible when enabled
#### Signal Types:
- **Flash Signals**: Immediate signals when conditions are first met
- **Confirmed Signals**: Signals that have passed confirmation criteria
### Step 3: Debugging and Optimization
#### Access Debug Features:
1. Click the gear icon next to the indicator name
2. Navigate to "Signal Components (Debugging)" section
3. All confluence factors start **disabled** by default
#### Initial Testing Process:
1. **Start Simple**: Keep all "Enable X Condition" toggles **OFF**
2. **Enable Basic**: Turn on "Enable RSI Condition" first
3. **Observe Signals**: Check if buy/sell signals appear
4. **Gradual Addition**: Enable one condition at a time
5. **Monitor Debug Plots**: Watch the colored crosses in the lower pane
#### Debug Plot Interpretation:
- **Green Crosses (Value 1)**: Bullish conditions met
- **Red Crosses (Value 2)**: Bearish conditions met
- **No Cross**: Condition not met
- **"Debug: Final Long/Short Signal"**: Combined signal output
### Step 4: Fine-tuning Parameters
#### If Signals Are Too Rare:
1. **Reduce Thresholds**: Lower RSI overbought/oversold levels
2. **Relax Filters**: Increase volatility filter percentage
3. **Adjust Timeframes**: Modify EMA periods for your trading style
4. **Disable Strict Conditions**: Turn off conditions that are too restrictive
#### If Signals Are Too Frequent:
1. **Increase Thresholds**: Raise RSI levels
2. **Add Filters**: Enable more confluence conditions
3. **Stricter Confirmation**: Increase confirmation bars
4. **Higher RR Ratio**: Increase minimum risk:reward requirement
### Step 5: Display Configuration
#### Display Options:
- **Show Buy/Sell Labels**: Toggle signal labels on/off
- **Show Support/Resistance**: Toggle S/R level lines
- **Show Trend EMAs**: Toggle EMA trend lines
### Step 6: Setting Up Alerts
#### Alert Conditions:
- **"Confirmed Buy Signal"**: Triggers on confirmed long entries
- **"Confirmed Sell Signal"**: Triggers on confirmed short entries
#### Alert Message Format:
- Buy: "BUY - RSI: , Price: "
- Sell: "SELL - RSI: , Price: "
## Recommended Settings by Market Type
### Trending Markets:
- Enable: Trend Alignment, RSI, MACD
- Disable: Volume (optional)
- Confirmation Bars: 1-2
### Ranging Markets:
- Enable: RSI, Stochastic, Support/Resistance
- Disable: Trend Alignment
- Confirmation Bars: 0
### Volatile Markets:
- Enable: Volatility Filter, ATR-based stops
- Reduce: RSI thresholds (60/40 instead of 70/30)
- Increase: Confirmation bars to 2-3
## Troubleshooting
### No Signals Appearing:
1. Check if any "Enable X Condition" is turned ON
2. Verify debug plots show activity
3. Reduce parameter thresholds
4. Check if market conditions match your settings
### Too Many False Signals:
1. Enable more confluence conditions
2. Increase confirmation bars
3. Adjust RSI/Stochastic thresholds
4. Enable volatility filter
### Signals Not Aligning with Price Action:
1. Check trend alignment settings
2. Verify EMA periods match your timeframe
3. Adjust Fibonacci lookback period
4. Review support/resistance proximity settings
## Best Practices
1. **Start Conservative**: Begin with fewer confluence factors and gradually add more
2. **Test Thoroughly**: Use demo accounts to test parameter combinations
3. **Monitor Debug Plots**: Regularly check which conditions are failing
4. **Adapt to Market**: Adjust settings based on current market conditions
5. **Use Multiple Timeframes**: Consider higher timeframe trend direction
6. **Risk Management**: Always use proper position sizing and stop losses
## Default Settings Summary
### Trend Analysis:
- Fast EMA: 9
- Slow EMA: 21
- Trend EMA: 50
### Oscillators:
- RSI Period: 14, Overbought: 70, Oversold: 30
- Stochastic K: 14, D: 3, Overbought: 80, Oversold: 20
### MACD:
- Fast: 12, Slow: 26, Signal: 9
### Volume:
- MA Period: 20, Multiplier: 1.5
### Market Structure:
- ATR Period: 14, Multiplier: 2.0
- Volatility Filter: 50.0%
- Pivot Length: 10
### Fibonacci:
- Lookback: 50, Tolerance: 2.0%
### Signal Quality:
- Confirmation Bars: 0
- Min RR Ratio: 1.0
### Display:
- Show Labels: ON
- Show S/R: ON
- Show Trend: ON
### Debug (All Disabled by Default):
- Enable RSI: OFF
- Enable Stochastic: OFF
- Enable MACD: OFF
- Enable Price Structure: OFF
- Enable Trend Alignment: OFF
- Enable Volume: OFF
- Enable Fibonacci: OFF
- Enable Risk:Reward: OFF
- Enable Volatility: OFF
moving_averages_library_public🔍 Overview
A comprehensive open‑source Pine Script library offering a wide variety of moving average functions, including dynamic int-series support for variable-length MA calculations
Reddit
✨ Features
Dozens of moving averages supported:
SMA, EMA, WMA, TMA
Advanced types: ALMA, VRAMA, EFRAMA, EHMA, THMA, etc.
Each function supports both fixed-length and series-length input
Easily integrated into other indicators and strategies via dynamic length parameters
⚙️ How to Use
Import the library:
import T69/Moving_Averages/1 as ma
Call your desired MA function using source and length:
ma.hma(src, len)
ma.frama(src, len)
For dynamic integration, use an input type and pass to the matching function.
🛠 Example Code
src = input.source(close, "Source")
len = input.int(14, "Length")
type = input.string("HMA", "MA Type", options= )
ma_value = switch type
"EMA" => ma.ema(src,len)
"HMA" => ma.hma(src,len)
"FRAMA" => ma.frama(src,len)
=> na
plot(ma_value, color=color.blue)
⚠️ Limitations
Internal calculation precision may differ slightly from TradingView’s built‑in MA functions
Users must manually map input strings to MA functions
Does not include built‑in GUI dropdowns for selecting type
💡 Tips
Use adaptive MAs like VIDYA, JMA, or KAMA for volatility-aware smoothing
Combine with oscillators or ATR bands to define trend strength or entry zones
Utilize series‑based MA inputs for backtesting variability or optimization
📘 Credits
Author: MightyZinger
Published: June 2022 (Public Library), regularly updated
License: Open‑source. Reuse subject to TradingView House Rules
//====================TECHNICAL STUFFS====================
Library "moving_averages_library_public"
TODO: add library description here
new_def_teyoparams()
get_all_ma_enums()
get_ma_out(p_type, src, len, update_instances)
TODO: add function description here
Parameters:
p_type (series ma_type)
src (float) : TODO: Source of the candle for computation
len (simple int) : TODO: Length of lookback of the candle for computation
update_instances (teyo_parameters)
Returns: TODO: add what function returns
==============================================================================
Moving Average Selector
==============================================================================
teyo_parameters
Fields:
p1 (series float)
p2 (series float)
p3 (series float)
p4 (series float)
p5 (series float)
p6 (series float)
p7 (series float)
p8 (series float)
p9 (series float)
p10 (series float)
p11 (series float)
p12 (series float)
p13 (series float)
p14 (series float)
p15 (series float)
p16 (series float)
p17 (series float)
p18 (series float)
p19 (series float)
p20 (series float)
Daily Weekly Monthly Highs & Lows [Dova Lazarus]Daily Weekly Monthly Highs & Lows
📊 Overview
This Pine Script indicator displays key support and resistance levels by plotting the highs and lows from Daily, Weekly, and Monthly timeframes on your current chart. It's designed as an educational tool to help traders understand multi-timeframe analysis and identify significant price levels.
🎯 Key Features
Multi-Timeframe Support & Resistance
- Daily Levels: Shows previous daily highs and lows
- Weekly Levels: Displays weekly highs and lows
- Monthly Levels: Plots monthly highs and lows
- Smart Display: Only shows relevant timeframes based on your current chart timeframe
Fully Customizable Appearance
- Individual Colors: Set unique colors for each timeframe
- Line Styles: Choose between Solid, Dashed, or Dotted lines
- Line Width: Adjust thickness from 1-4 pixels
- Lookback Periods: Control how many historical levels to display
User-Friendly Options
- Enable/Disable: Toggle any timeframe on/off
- Line Extension: Option to extend lines into the future
- Clean Interface: Organized settings groups for easy configuration
🔧 Settings
Timeframes Group
- Show Daily/Weekly/Monthly Levels: Enable or disable each timeframe
- Lookback Periods: Number of historical levels to display (1-10)
Line Settings Group
- Color: Choose custom colors for each timeframe
- Style: Select line appearance (Solid/Dashed/Dotted)
- Width: Set line thickness (1-4 pixels)
Display Options Group
- Extend Lines Forward: Project lines 20 bars into the future
📈 How to Use
1. Add to Chart: Apply the indicator to any timeframe chart
2. Configure Timeframes: Enable the timeframes you want to see
3. Customize Appearance: Set colors and line styles for easy identification
4. Identify Levels: Use the plotted levels as potential support/resistance zones
5. Plan Trades: Look for price reactions at these key levels
💡 Trading Applications
- Support & Resistance: Identify key price levels where reversals may occur
- Entry Points: Look for bounces or breaks at these levels
- Stop Loss Placement: Use levels to set logical stop losses
- Target Setting: Previous highs/lows can serve as profit targets
- Multi-Timeframe Analysis: Understand the bigger picture context
🎓 Educational Value
This indicator is perfect for:
- Learning Pine Script: Clean, well-commented code structure
- Understanding Multi-Timeframe Analysis: See how different timeframes interact
- Practicing Technical Analysis: Identify key support/resistance concepts
- Code Study: Full variable names and detailed comments for learning
⚙️ Technical Details
- Version: Pine Script v6
- Overlay: True (plots directly on price chart)
- Max Lines: 500 (handles multiple timeframes efficiently)
- Compatibility: Works on all timeframes (shows relevant levels only)
🔍 What Makes This Different
- Educational Focus: Designed for learning with clear code structure
- Simplified Interface: Easy-to-use settings without overwhelming options
- Visual Clarity: Clean line display with customizable appearance
- Practical Application: Real trading tool, not just a demonstration
📋 Requirements
- TradingView account (any plan)
- Basic understanding of support/resistance concepts
- Any chart timeframe (indicator adapts automatically)
🚀 Quick Start
1. Add indicator to your chart
2. Default settings work great out of the box
3. Customize colors if desired (Green=Daily, Orange=Weekly, Red=Monthly)
4. Watch for price reactions at the plotted levels
5. Use as part of your technical analysis toolkit
---
*This indicator is designed as an educational tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results.*
Advanced DMA Pattern Detection SystemAdvanced DMA Pattern Detection System with Smart Intelligence
Professional-grade moving average indicator that combines traditional DMA analysis with advanced pattern recognition and probabilistic forecasting.
Core Features:
6 Key DMAs (5, 10, 20, 50, 100, 200) with descriptive labels showing trading purpose
Advanced Pattern Recognition - Detects Institutional Accumulation, Distribution Phases, Bull/Bear Transitions, and Choppy Markets
Probability Engine - Assigns confidence scores (0-100%) with Low/Medium/High classifications
Historical Validation - Tracks success rate of last 20 pattern signals for real performance data
Smart Alert System - Only triggers on significant pattern changes (20%+ probability shifts)
Dual Display System:
Movable Information Table - Shows current pattern, probability, confidence level, success rate, and recommended action
Chart Alerts & Background Colors - Visual confirmation of high-confidence setups (80%+ patterns)
Traditional DMA Labels - Clear identification of each average's trading significance
Complete Customization:
Master on/off controls for entire system
Individual toggles for all components (DMAs, table, alerts, colors)
Adjustable alert sensitivity (Conservative/Medium/Aggressive)
6 table positions to fit any chart layout
Perfect For: Swing traders, position traders, and anyone wanting systematic trend analysis with quantified probability scores rather than subjective interpretation.
Bottom Line: Transforms basic moving averages into an intelligent trading system that tells you exactly what the market structure means and what to do about it.
BB with Heikin Ashi + Reversal CheckThis indicator combines Bollinger Bands (BB) with Heikin Ashi candles to detect potential reversal points after price breaks the BB boundaries. It works on any symbol and timeframe, retrieving Heikin Ashi data via request.security().
Core Features
Heikin Ashi Candle Plot
Smooths price action by using Heikin Ashi candles instead of regular candles.
Candles are plotted directly on the chart with green (bullish) and red (bearish) colors.
Bollinger Bands (BB)
Calculated from Heikin Ashi close price.
Includes Basis (MA), Upper Band, and Lower Band, with customizable MA type, length, and standard deviation multiplier.
Break & Reversal Detection
The indicator tracks whether the price has broken above the Upper Band (p1) or below the Lower Band (p2).
It remembers the last breakout direction until the opposite breakout occurs (mutually exclusive logic).
Signal Logic
Long Signal (▲):
Price was previously below the Lower Band and then reversed upward (BB Lower rising + Heikin Ashi candle rising).
Short Signal (▼):
Price was previously above the Upper Band and then reversed downward (BB Upper falling + Heikin Ashi candle falling).
Alerts
Custom alert conditions trigger when Long or Short signals occur, allowing automated notifications or bot integration.
Use Cases
✅ Swing Trading / Trend Reversal – Identify potential bottom/top reversals after BB breakouts.
✅ Mean Reversion Strategies – Enter trades when the price reverts to the BB mean after an extreme breakout.
✅ Multi-Timeframe Analysis – Works with any timeframe and symbol via request.security().
Customization
MA Type: SMA, EMA, RMA, WMA, VWMA
BB Length & StdDev Multiplier
Timeframe & Symbol Selection
Common DMAs with LabelsHere's a short description for publishing:
Common Daily Moving Averages (DMA) Indicator with Smart Labels
Displays the most widely-used moving averages that professional traders watch: 5, 10, 20, 50, 100, and 200 DMAs with clear color-coding and descriptive labels.
Key Features:
Smart Labels - Each DMA shows its trading purpose (Day Trading, Swing Trading, Bull/Bear Line, etc.)
Customizable Display - Toggle any DMA on/off individually
Golden/Death Cross Alerts - Optional 50/200 crossover signals
Live Status Table - Shows current DMA values vs price with up/down arrows
Professional Styling - Color-coded lines with appropriate thickness (200 DMA emphasized)
Perfect for:
Multi-timeframe trend analysis
Support/resistance identification
Bull/bear market confirmation
Entry/exit timing
Usage: Add to chart, customize which DMAs to display in settings. Labels appear on the right showing each average's trading significance. Enable the status table for quick price-vs-DMA reference.
Ideal for both beginners learning key moving averages and experienced traders wanting a clean, informative DMA setup.
DTA Seven-Candle Trend IndicatorSeven candles Trend Identifier
📊 Output:
* Trend shown in table: "Uptrend", "Downtrend", or "Sideways"
* Strength level:
* "Strong" = 10+ confirmations (HH/HL or LL/LH)
* "Moderate" = 6–9 confirmations
* "Weak" = anything else (Sideways)
* All colors sync with background and label styles
The yellow background color in the script indicates a sideways trend — meaning:
🟨 Yellow Background = Sideways Market
This occurs when:
* The last 7 candles do not form a clear uptrend (higher highs & higher lows)
* And also do not form a clear downtrend (lower highs & lower lows)
🔍 Why It Happens:
* Mixed candle structure
* Price is oscillating in a range
* No dominant directional momentum
* Often seen before breakouts or during consolidation
✅ Example:
Imagine the last 7 candles had highs and lows like this:
Bar High Low
1 100 95
2 98 94
3 101 96
4 100 95
5 99 93
6 102 97
7 100 95
In this case:
* Not consistently making higher highs/lows (so not uptrend)
* Not consistently making lower highs/lows (so not downtrend)
➡️ Therefore, the script marks it as sideways, and the background turns yellow.
Nasdaq 1m - Asia Resaltada + Manipulación + CHOCH + EMA200Strategy that will help you take some entry only with the nasqad
XRP Scalping Bot v2 (Freq-Boost + Risk Mgmt)sumn i made with help from ai. uses bollinger, adx, atr, macd, rsi, ema. originally for XRP/USDC for 3commas. just trying to get something right
US Index First 30m Candle Strategy (10m Chart)Strategy Description for Publishing
Title: US Index First 30-Minute Candle Strategy (10m Chart)
Overview:
This Pine Script implements a trading strategy designed to capitalize on price movements within the first 30 minutes of the U.S. stock market opening. It is specifically tailored for use on a 15-minute chart and is optimized for trading U.S. indices during regular market hours.
Features:
Session Time Configuration: The strategy operates within the U.S. market hours, specifically from 9:30 AM to 4:00 PM (Eastern Time).
First 30-Minute Candle Aggregation: The script identifies the high and low of the first 30-minute candle, which is considered a critical time frame for market momentum.
Single Trade Per Day: To minimize risk, the strategy is designed to execute only one trade per day based on the established range of the first 30 minutes.
Dynamic Trade Conditions: Buy and sell signals are generated when the price breaks above the high or below the low of the first 30-minute candle, with defined stop-loss and take-profit levels based on a customizable risk-reward ratio.
How It Works:
Initialization:
At the start of each trading day, the script resets the high and low values for the first 30 minutes.
Range Locking: After the first 30 minutes, the high and low values are locked, allowing for trade entries based on these levels.
Trade Execution:
Long Entry: Triggered when the price moves above the locked high.
Short Entry: Triggered when the price drops below the locked low.
Risk Management: Each trade comes with a stop-loss and take-profit mechanism to manage potential losses and secure profits.
Visuals:
The script also plots the locked high and low levels on the chart, providing a visual reference for traders.
Conclusion:
This strategy leverages the volatility often seen in the first 30 minutes of trading, aiming to capture significant price movements while maintaining a disciplined trading approach. It is suitable for traders looking to implement a systematic strategy based on early market behavior.
Usage:
To use this strategy, simply add the script to your TradingView chart, set your desired parameters, and monitor for trade signals during the specified market hours. Adjust the risk-reward ratio as needed to align with your trading style.
4H Box+ m15 Separador4-Hour Boxed Period Separator for H4 Candlestick Analysis by Liquidity Collection
with TimeZone and M15 Period Separator
[Pandora] Laguerre Ultimate Explorations MulticatorIt's time to begin demonstrations differentiating the difference between known and actual feasibility beyond imagination... Welcome to my algorithmic twilight zone .
INTRODUCTION:
Hot off my press, I present this Laguerre multicator employing PSv6.0, originally formulated by John Ehlers for TASC - July 2025 Traders Tips. Basically I transcended Ehlers' notions of transversal filtration with an overhaul of his Laguerre design with my "what if" Pandora notions included. Striving beyond John Ehlers' original intended design. This action packed indicator is a radically revamped version of his original filter using novel techniques. My aim was to explore whether providing even more enhanced responsiveness and lesser lag is possible and how. Presented here is my mind warping results to witness.
EHLERS' LAGUERRE EXPLAINED:
First and foremost, the concept of Ehlers' Laguerre-izing method deserves a comprehensive deep dive. Ehlers' Laguerre filter design, as it functions originally, begins with his Ultimate Smoother (US) followed by a gang of four LERP (jargon for Linear intERPolation) filters. Following a myriad of cascading LERPs is a window-like FIR filter tapped into the LERP delay values to provide extra smoothness via the output.
On a side note, damping factor controlled LERP filters resemble EMAs indeed, but aren't exactly "periodic" filters that would have a period/length parameter and their subsequent calculations. I won't go into fine-grained relationship details, but EMA and LERP are indeed related in approach, being cousins of similar pedigree.
EXAMINING LAGUERRE:
I focused firstly on US initialization obstacles at Pine's bar_index==0 with nz() in abundance. The next primary notion of intrigue I mostly wondered about was, why are there four LERP elements instead of fewer or more. Why not three or why not two LERPs, etc... 1-4-6-4-1, I remember seeing those coefficients before in high pass filters.
Gathering my thoughts from that highpass knowledge base, I devised other tapped configuration modes to inspect their behavior out of curiosity. Eureka! There is actually more to Laguerre than Ehlers' mind provided, now that I had formulated additional modes. Each mode exhibits it's own lag/smoothness characteristics better than the quad LERPed version. I narrowed it down to a total of 5 modes for exploration. Mode 0 is just the raw US by itself.
ANALYZING FILTER BEHAVIORS:
Which option might be possibly superior, and how may I determine that? Fortunately, I have a custom-built analyzer allowing me to thoroughly examine transient responses across multiple periodicities simultaneously, providing remarkable visual insights.
While Ehlers has meagerly touched upon presenting general frequency responses in his books, I have excelled far beyond that. This robust filter analysis capability enables me to observe finer aspects hidden to others, ultimately leading to the deprecation of numerous existing filters. Not only this, but inventing entirely new species of filtration whether lowpass, highpass, or bandpass is already possible with a thorough comprehensive evaluation.
Revealing what's quirky with each filter and having the ability to discover what filters may be lacking in performance, is one of it's implications. I'm just going to explain this: For example US has a little too much overshoot to my liking, along with nonconformant cutoff frequency compliance with the period parameter. Perhaps Ehlers should inspect US coefficients a bit closer... I hope stating this is not received in an ill manner, as it's not my intention here.
What this technically eludes to is that UltimateSmoother can be further improved, analogous to my Laguerre alterations described above. I will also state Laguerre can indeed be reformulated to an even greater extent concerning group delay, from what I have already discussed. Another exciting time though... More investigative research is warranted.
LAGUERRE CONCLUSIONS:
After analyzing Laguerre's frequency compliance, transient responses, amplitudes, lag, symmetry across periodicities, noise rejection, and smoothness... I favor mode 3 for a multitude of reasons over the mode 4 configuration, but mostly superb smoothing with less lag, AND I also appreciated mode 1 & 2 for it's lower lag performance options.
Each mode and lag (phase shift) damping value has it's own unique characteristics at extremes, yet they demonstrate additional finesse in it's new hybrid form without adding too much more complexity. This multicator has a bunch of Laguerre filters in the overlay chart over many periodicities so you can easily witness it's differing periodic symmetries on an input signal while adjusting lag and mode.
LAGUERRE OSCILLATOR:
The oscillator is integrated into the laguerreMulti() function for the intention of posterity only. I performed no evaluation on it, only providing the code in Pine. That wasn't part of my intended exploration adventure, as I'm more TREND oriented for the time being, focusing my efforts there.
Market analysis has two primary aspects in my observations, one cyclic while the other is trending dynamics... There's endless oscillators, but my expectations for trend analysis seems a little lesser explored in my opinion, hence my laborious trend endeavors. Ehlers provided both indicator facets this time around, and I hope you find the filtration aspect more intriguing after absorption of this reading.
FUNCTION MODULES EXPLAINED:
The Ultimate Smoother is an advanced IIR lowpass smoothing filter intended to minimize noise in time series data with minimal group delay, similar to a traditional biquad filter. This calculation helps to create a smoother version of the original signal without the distortions of short-term fluctuations and with minimal lag, adjustable by period.
The Modified Laguerre Lowpass Filter (MLLF) enhances the functionality of US by introducing a Laguerre mode parameter along side the lag parameter to refine control over the amount of additional smoothing/lag applied to the signal. By tethering US with this LERPed lag mechanism, MLLF achieves an effective balance between responsiveness and smoothness, allowing for customizable lag adjustments via multiple inputs. This filter ends with selecting from a choice of weighted averages derived from a gang of up to four cascading LERP calculations, resulting with smoother representations of the data.
The Laguerre Oscillator is a momentum-like indicator derived from the output of US and a singular LERPed lowpass filter. It calculates the difference between the US data and Laguerre filter data, normalizing it by the root mean square (RMS). This quasi-normalization technique helps to assess the intensity of the momentum on any timeframe within an expected bound range centered around 0.0. When the Laguerre Oscillator is positive, it suggests that the smoothed data is trending upward, while a negative value indicates a downward trend. Adjustability is controlled with period, lag, Laguerre mode, and RMS period.
Pre-Market High and LowThis indicator automatically tracks and plots the daily pre-market high and low levels on your chart for U.S. stocks. It monitors the pre-market session from 4:30 AM to 9:30 AM Eastern Time (New York) and captures the highest and lowest prices during this period.
At exactly 9:30 AM ET, when the regular market opens, the indicator draws dashed horizontal lines representing the pre-market high and pre-market low, extending them forward for better visibility throughout the trading day.
MVRV Altcoins📌 Technical Description of Indicator: MVRV Altcoins
This advanced script calculates the Market Value to Realized Value (MVRV) ratio across multiple cryptocurrencies simultaneously. It offers two analytical modes: Normal and Z-Score, optimized for visual comparison and real-time monitoring of up to 13 predefined assets. If a user applies the indicator to a symbol that is not among the 13 programmed assets, the default behavior displays the Bitcoin chart as a fallback reference.
🔍 What Is MVRV and Why Is It Important?
MVRV is an on-chain metric designed to assess whether a cryptocurrency is overvalued or undervalued by comparing its market capitalization to its realized capitalization.
- Market Cap: The total circulating supply multiplied by the current market price.
- Realized Cap: The sum value of all coins based on the price at the time they last moved on-chain, offering a time-weighted valuation.
Normal Calculation:
MVRV_Normal = Market Cap / Realized Cap
This version reflects investor profitability and identifies potential accumulation or distribution zones.
📊 Z-Score Calculation:
MVRV_ZScore = (Market Cap − Realized Cap) / Standard Deviation of Market Cap
This formula evaluates how extreme the current market conditions are compared to historical norms. It normalizes the difference using statistical dispersion, turning it into a volatility-aware metric that better reflects valuation extremes.
🔎 How Market Cap Is Computed
Unlike conventional indicators relying on consolidated feeds, this script uses modular components from CoinMetrics to construct the active capitalization more accurately, especially for altcoins. Here's the breakdown:
Active Capitalization = MARKETCAPFF + MARKETCAPACTSPLY
Realized Capitalization = MARKETCAPREAL
Component Definitions:
- MARKETCAPFF: Market Cap Free Float — total valuation based only on truly circulating coins.
- MARKETCAPACTSPLY: Capitalization from actively circulating supply — filters dormant or locked coins.
- MARKETCAPREAL: Realized Cap — historical valuation weighted by the last on-chain movement of each coin.
This method offers enhanced precision and compatibility across assets that may lack comprehensive data from centralized providers.
⚙️ User-Configurable Parameters
- MVRV Mode: Choose between Normal and Z-Score.
- Percentage Scale View: If enabled, visual output is scaled using predefined divisors (100 / 3.5 or 100 / 6).
- Thresholds for Analysis:
- Normal mode: Define overbought and oversold levels (default 1.0 and 3.5).
- Z-Score mode: Configure statistical boundaries (default 0.0 and 6.0).
- Table Controls:
- Adjustable position on screen (9 options).
- Font size customization: tiny, small, normal, large.
- Color scheme personalization:
- Header: text and background
- Body: text and background
- Central column separator color
📊 Multicrypto Table Architecture
The indicator renders a high-performance visual table displaying data from up to 13 assets simultaneously. Each asset is represented as a vertical column featuring eigth historical data points plus the most recent value.
- Assets are displayed in two blocks separated by a decorative column.
- Each value is rounded to one decimal place for clarity.
- Cells are styled dynamically based on user settings.
🎨 Decorative Column Separator
Since the entire table is built as a unified structure, a color-configurable empty column is inserted mid-table to act as a visual divider. This approach improves readability and aesthetic balance without duplicating code or splitting table logic.
🔁 Default Behavior on Unsupported Assets
If the active chart is not one of the 13 predefined assets, the indicator will automatically display Bitcoin’s data. This ensures the chart remains functional and informative even outside the target asset group.
🎯 Color Interpretation by Condition
The MVRV value for each asset is highlighted using a traffic light system:
- Green: Undervalued (below oversold threshold)
- Red: Overvalued (above overbought threshold)
- Yellow: Neutral zone
This coding simplifies decision-making and visual scanning across assets.
Final Notes
This indicator is modular and fully adaptable, with well-commented sections designed for efficient customization. Its multiactive architecture makes it a valuable tool for crypto analysts tracking diversified portfolios beyond Bitcoin and Ethereum.
It supports visual storytelling across assets, comparative historical evaluation, and identification of strategic zones — whether for accumulation, distribution, or monitoring on-chain sentiment.
MACD 衰减信号For Max's MACD Decay Signal
A non-repainting signal based on MACD histogram momentum decay combined with price structure divergence. This script helps traders identify potential trend reversal points using multi-wave analysis.
📈 Bullish Signal
Triggered when:
MACD histogram prints three weakening red waves (histogram bars are rising toward zero)
Price makes lower lows, while MACD histogram rises (bullish divergence)
Histogram just turns green
🟢 Label: "MACD多头" appears below the candle
📢 Alert: "MACD 多头信号"
📉 Bearish Signal
Triggered when:
MACD histogram prints three weakening green waves (histogram bars falling toward zero)
Price makes higher highs, while MACD histogram falls (bearish divergence)
Histogram just turns red
🔴 Label: "MACD空头" appears above the candle
📢 Alert: "MACD 空头信号"
⚙️ Features
Adjustable MACD parameters: Fast, Slow, Signal lengths
Uses arrays to track momentum and price shift patterns
Built to avoid repainting, works on all timeframes
Comes with alert conditions for automation or manual notifications
✅ Best For
Catching early trend reversal opportunities
Combining with price action or support/resistance levels
Traders who value momentum + structure-based signals