Breakout Zones • No Repaint (Daily Levels)📌 Breakout Zones • No Repaint (Daily Levels)
This indicator is designed to help intraday and swing traders identify high-probability breakout levels based on the previous day’s price action. It uses pivot logic derived from the prior daily high, low, and close to generate precise Buy/Sell entries and Take Profit (TP) levels.
🧠 How It Works:
Daily Levels Calculation:
At the start of each trading day, the script calculates:
Sideways Zone = (Previous Day High + Low + Close) ÷ 3
Buy Entry (r1) = Sideways + 38.2% of yesterday’s range
Buy TP (r2) = Sideways + 61.8% of yesterday’s range
Sell Entry (s1) = Sideways – 38.2% of range
Sell TP (s2) = Sideways – 61.8% of range
Signals Generation (No Repaint):
A Buy Signal is generated when price closes above r1 (confirmed on the next candle).
A Sell Signal occurs when price closes below s1.
Signals are generated only once per day, ensuring clarity and avoiding noise.
Simulated Trade Tracking:
Each signal is tracked as a simulated trade.
If TP is hit (r2 or s2), it's counted as a win.
If TP isn't hit by the end of the day, it's a loss.
The system never repaints signals — what you see in backtest is what happened live.
Stop Loss Logic (Optional):
In strategy mode (not this script), SL can be set at the Sideways Zone (p) to manage risk.
📊 Live Trading Statistics:
A dynamic table updates in real-time, showing:
Current Trade Status (Buy Active, Sell Active, Sideways)
Today’s Entry & TP Levels
Historical Accuracy
Buy Win %
Sell Win %
Total Win %
Number of trades tracked (up to 300 lookback)
🔎 How to Use:
Add to your chart and switch to intraday timeframes like 5m, 15m, 1h.
Observe the Buy/Sell arrows and TP levels — they are confirmed signals, not repainting.
Use the accuracy table to gauge performance historically and for the current session.
Combine with volume, momentum, or trend filters for enhanced decision making.
🧩 Designed For:
Intraday scalpers looking for breakout zones
Swing traders analyzing daily structure
Users who want clean, reliable, non-repainting signals
Traders who prefer to visualize risk/reward zones automatically
🔒 About Access:
✅ This script is free to use, but source code is locked to preserve functionality, prevent tampering, and ensure clean performance for all users.
📢 Feedback Welcome!
We’re constantly improving the tool. If you find bugs, want new features, or have a use-case you'd like supported, just leave a comment.
➕ Add this indicator to your toolkit and stop chasing false breakouts.
📈 Let the chart tell you when a real opportunity forms — no repainting, no guesswork.
Indicators and strategies
Bitcoin Lagging (N Days)This indicator overlays Bitcoin’s price on any chart with a user-defined N-day lag. You can select the BTC symbol and timeframe (daily recommended), choose which price source to use (open, high, low, close, hlc3, ohlc4), and shift the series by a chosen number of days. An option to normalize the series to 100 at the first visible value is also available, along with the ability to display the original BTC line for comparison.
It is designed for traders and researchers who want to test lagging relationships between Bitcoin and other assets, observe correlation changes, or visualize how BTC’s past prices might align with current market movements. The lagging is calculated based on daily candles, so even if applied on intraday charts, the shift remains in daily units.
이 지표는 비트코인 가격을 원하는 차트 위에 N일 지연된 상태로 표시해 줍니다. 심볼과 타임프레임(일봉 권장)을 선택할 수 있으며, 가격 소스(시가, 고가, 저가, 종가, hlc3, ohlc4)도 설정 가능합니다. 또한 시리즈를 첫 값 기준으로 100에 맞춰 정규화하거나, 원래의 비트코인 가격선을 함께 표시할 수도 있습니다.
비트코인과 다른 자산 간의 시차 효과를 분석하거나 상관관계 변화를 관찰할 때 유용하게 활용할 수 있습니다. 지연은 일봉 기준으로 계산되므로, 분·시간 차트에 적용해도 항상 일 단위로 반영됩니다.
ATR Enhanced [DCAUT]█ ATR Enhanced
📊 OVERVIEW
Standard ATR uses only RMA smoothing, while ATR Enhanced provides 20+ professional smoothing algorithms , offering precise volatility measurement solutions for different trading scenarios and market environments.
💡 CORE VALUE
- 20+ algorithm choices : SMA, EMA, RMA, WMA, HMA, T3, KAMA, FRAMA, Kalman Filter, etc.
📋 PARAMETER SETUP
ATR Length : Calculation period (default: 14)
Moving Average Type : Choose the most suitable smoothing method from 20+ algorithms
🎨 COLOR CODING
Green : Rising volatility
Red : Falling volatility
Trading Department MomentumA clean, color-coded trend/momentum tool inspired by Decentrader’s Predator.
It fuses trend , momentum , and trend strength into one readable signal and paints candles + an optional histogram with smooth transitions (Strong Bull → Weak Bull → Neutral → Weak Bear → Strong Bear).
How it works
* Trend filter: three EMAs (fast/slow/long) define bullish/bearish context.
* Momentum: MACD histogram and RSI drift capture direction and acceleration.
* Strength / Chop: Wilder’s ADX detects low-quality, choppy conditions.
* These components are normalized into a single score , smoothed, and mapped to colors; optional white dots mark score crossovers when ADX confirms.
Best use
* Designed for 4H / 1D+ to identify market regime at a glance.
* Use as a filter : favor longs in green phases, avoid risk or manage tightly in orange/weak colors, and stand aside in chop. Combine with price action, S/R, or your entry model.
Key settings
* EMA lengths, RSI smoothing, MACD (12/26/9 default).
* ADX length & Chop threshold .
* Score smoothing, candle coloring, background heatmap, histogram, markers, and optional higher-timeframe source.
Notes
* This is an independent implementation; it does not replicate the proprietary Predator formula.
* No trade signals are generated; colors are informational. Always add your own risk management.
CFR - Candle Formation RatioDescription
This indicator is designed to detect candles with small bodies and significant wick-to-body ratios, often useful for identifying doji-like structures and potential accumulation areas.
Features
Filter candles by maximum body size (% of the total candle range).
Require that wicks are at least X times larger than the body.
Define the position of the body within the candle (e.g., body must be between 40% and 60% of the candle height).
Visual output: a single arrow marker when conditions are met.
Fully customizable marker color and size.
⚠️ Note: The settings of this version are currently in Turkish. An English version of the settings will be released in the future.
Liquidity+FVG+OB Strategy (v6)How the strategy works (summary)
Entry Long when a Bullish FVG is detected (optionally requires a recent Bullish OB).
Entry Short when a Bearish FVG is detected (optionally requires a recent Bearish OB).
Stop Loss and Take Profit are placed using ATR multiples (configurable).
Position sizing is fixed contract/lot size (configurable).
You can require OB confirmation (within ob_confirm_window bars).
Alerts still exist and visuals are preserved.
Liquidity + FVG + OB Markings (Fixed v6)This indicator is built for price-action traders.
It automatically finds and plots three key structures on your chart:
Liquidity Levels – swing highs & lows that often get targeted by price.
Fair-Value Gaps (FVG) – inefficient price gaps between candles.
Order-Blocks (OB) – zones created by strong, high-volume impulsive candles.
It also provides alerts and a small information table so you can quickly gauge the current market context.
Valuation Bands (Dynamic + Table)Valuation Bands (Dynamic + Table)
This indicator helps investors assess whether a stock is trading at cheap, fair, or expensive levels relative to its historical valuation multiples. It dynamically calculates valuation ratios such as P/E, P/B, P/S, P/Operating Income, P/Cash Flow, or Dividend Yield over a customizable lookback period (e.g., 10 years).
Using these ratios, the script plots the long-term average alongside ±1σ and ±2σ standard deviation bands, highlighting valuation zones. The included data table displays both the multiple values and their corresponding price levels, making it easy to interpret fair value ranges.
Alerts are built in to notify when the current ratio crosses into undervalued (–2σ) or overvalued (+2σ) zones, helping investors spot potential opportunities or risks.
In short, this tool bridges fundamentals with technical visualization, giving a quick snapshot of how today’s valuation compares to historical norms.
Session Volume Profile HVN210
Session Volume Profile HVN - Comprehensive Indicator Description
Overview
The Session Volume Profile HVN is an advanced volume analysis indicator that provides traders with a visual representation of volume distribution across price levels within defined trading sessions. This powerful tool combines traditional volume profile analysis with High Volume Node (HVN) detection and Volume Point of Control (VPOC) tracking to help identify key support and resistance areas based on trading activity.
Key Features
1. Dynamic Volume Profile Visualization
Creates a comprehensive volume profile for each trading session (daily, weekly, or custom timeframes)
Displays volume distribution as a horizontal histogram, showing where the most trading activity occurred
Automatically scales to fit the price range of each session
Customizable number of price levels (rows) for granular or broad analysis
Profile extension capability to project volume areas into subsequent sessions
2. Volume Point of Control (VPOC)
Automatically identifies and marks the price level with the highest volume in each session
Displays VPOC as a prominent horizontal line that can extend into future sessions
Tracks multiple historical VPOCs with customizable extension limits
Optional date labels for easy identification of when each VPOC was formed
Particularly useful for identifying potential support/resistance levels based on peak trading activity
3. High Volume Node (HVN) Detection
Sophisticated algorithm that identifies significant volume clusters within the profile
Validates HVNs based on customizable strength criteria
Two display options:
Levels: Shows HVNs as horizontal lines (solid for VPOC, dotted for other nodes)
Areas: Displays HVNs as shaded boxes covering the full price range of the node
Color-coded based on price position relative to previous close:
Bullish color for HVNs below the previous close (potential support)
Bearish color for HVNs above the previous close (potential resistance)
4. Multi-Timeframe Analysis
Profile Timeframe: Defines the session boundaries (e.g., daily, weekly, monthly)
Resolution Timeframe: Uses lower timeframe data for more accurate volume distribution
Automatically adjusts to ensure compatibility with chart timeframe
Enables precise volume analysis even on higher timeframe charts
Practical Applications
Support and Resistance Identification
VPOCs and HVNs often act as significant support/resistance levels
Multiple confluent HVNs can indicate strong price zones
Historical VPOC levels provide context for potential price reactions
Trading Strategy Development
Entry/exit points near HVN boundaries
Stop loss placement beyond significant volume nodes
Trend continuation or reversal signals when price breaks through HVN areas
Market Structure Analysis
Identify accumulation/distribution zones
Recognize price acceptance or rejection at specific levels
Understand market participant behavior through volume concentration
Customization Options
Visual Settings
Adjustable colors for profile, VPOC lines, and HVN areas
Line width controls for better visibility
Label size options from tiny to huge
Profile transparency for chart clarity
Technical Parameters
Number of price levels (rows) for profile resolution
HVN detection strength for sensitivity adjustment
VPOC extension count for historical reference
Profile extension percentage for future projection
Display Preferences
Toggle VPOC visibility
Enable/disable HVN display
Choose between line or area representation for HVNs
Control date label display based on timeframe
Best Practices
Timeframe Selection: Choose profile timeframes that align with your trading style (day traders might use hourly profiles, swing traders daily or weekly)
HVN Strength Calibration: Adjust the HVN strength parameter based on market volatility and desired sensitivity
Multiple Timeframe Confirmation: Use different profile timeframes to identify confluence zones
Combination with Other Indicators: Enhance analysis by combining with trend indicators, momentum oscillators, or price action patterns
Performance Considerations
The indicator is optimized for smooth performance while maintaining accuracy through:
Efficient data processing algorithms
Smart memory management for historical data
Automatic cleanup of old visual elements
Scalable architecture supporting up to 500 visual elements
Ideal For
Day Traders: Identifying intraday support/resistance levels
Swing Traders: Finding multi-day accumulation zones
Position Traders: Analyzing longer-term volume structures
Market Analysts: Understanding market participant behavior
Algorithmic Traders: Incorporating volume-based levels into automated strategies
Nadaraya-Watson Multi-TF DashboardThis script is a Multi-Timeframe Flip State Dashboard based on Nadaraya-Watson: Rational Quadratic Kernel (Non-Repainting) indicator. It visualizes trend "flip" states across up to 8 custom timeframes using a consistent, non-repainting methodology. Built on 1-minute data, each timeframe row in the table updates only after its bar fully closes, ensuring accuracy and eliminating repainting issues.
Key features:
✅ Based on the Nadaraya-Watson Rational Quadratic Kernel, used to estimate trend direction
🧠 Each timeframe uses the same base 1-minute data for consistency across resolutions
🔄 Flip state detection is defined by slope reversals in the kernel regression
🧱 Fully supports non-repainting, close-confirmed states using lookahead=off
🧮 Configurable lookback window, kernel weighting, lag, and timeframes
🎨 Visual dashboard plots each TF’s state as a colored cell (green for bullish, red for bearish)
🛠️ Includes inline plots and debug traces to help visualize regression and flip logic
This dashboard is ideal for traders who want a compact visual overview of confirmed trend shifts across multiple timeframes, all using a mathematically grounded, TF-consistent model.
X Trend dashboard (Lite)X Trend Dashboard
The X Trend Dashboard provides an instant snapshot of market sentiment by analyzing the aggregate "pressure" from 11 classic technical indicators. This version features a flexible EMA Fan (Fast, Medium, and Slow EMAs) instead of fixed timeframes, allowing for greater adaptability to any chart.
This tool is ideal for quickly assessing current market strength and identifying moments when bulls or bears are in control. The panel also displays the asset's correlation with BTC and ETH for additional market context.
Settings
Dashboard Settings: Change the panel's appearance and position.
Correlation Settings: Configure the BTC and ETH correlation.
Indicator Components: Enable or disable any of the indicators, including the three customizable EMAs, to tailor the pressure calculation to your trading style.
Valuation Bands (Dynamic + Table)Valuation Bands (Dynamic + Table)
This indicator helps investors assess whether a stock is trading at cheap, fair, or expensive levels relative to its historical valuation multiples. It dynamically calculates valuation ratios such as P/E, P/B, P/S, P/Operating Income, P/Cash Flow, or Dividend Yield over a customizable lookback period (e.g., 10 years).
Using these ratios, the script plots the long-term average alongside ±1σ and ±2σ standard deviation bands, highlighting valuation zones. The included data table displays both the multiple values and their corresponding price levels, making it easy to interpret fair value ranges.
Alerts are built in to notify when the current ratio crosses into undervalued (–2σ) or overvalued (+2σ) zones, helping investors spot potential opportunities or risks.
In short, this tool bridges fundamentals with technical visualization, giving a quick snapshot of how today’s valuation compares to historical norms.
TOP-RSI Double Confirm + Heiken Ashi + Buy/Sell Labels v01📊 RSI Double Confirm + Heiken Ashi + Labels
🔎 Concept
This indicator combines a Zero-based RSI filter with strict candle close confirmation, overlays Heiken Ashi candles for clearer trend visualization, and adds Buy/Sell labels directly on the chart for easier interpretation.
⚙️ Components
1. RSI Double Confirm
RSI is calculated from OHLC4 (open+high+low+close)/4.
The RSI value is shifted by -50 to center it around zero (above 0 = bullish, below 0 = bearish).
Uses user-defined thresholds: Overbought (OB) and Oversold (OS).
📌 Entry conditions:
Buy Signal → RSI crosses upward through OS and the last closed candle is higher than the previous candle.
Sell Signal → RSI crosses downward through OB and the last closed candle is lower than the previous candle.
2. Heiken Ashi Candles
Custom Heiken Ashi values are calculated: haOpen, haClose, haHigh, haLow.
Candles are colored green (if haClose > haOpen) or red (if haClose < haOpen).
Helps smooth price action and highlight trend direction.
3. Alerts
alertcondition is set for both Buy and Sell signals.
Users can create TradingView alerts that trigger whenever a new signal appears.
4. Signals & Labels
A green up arrow is plotted under the candle when a Buy signal is triggered.
A red down arrow is plotted above the candle when a Sell signal is triggered.
Additionally, labels ("Buy" or "Sell") are added at the respective candle to make signals more visible.
📝 How to Use
Add the indicator to your chart (it overlays directly on price).
Adjust inputs:
OB (Overbought) → e.g. 20
OS (Oversold) → e.g. -20
RSI Length → e.g. 7
Watch for signals:
Buy Signal → Green arrow + "Buy" label → potential bullish entry.
Sell Signal → Red arrow + "Sell" label → potential bearish entry.
Set up alerts in TradingView to be notified when new signals appear.
✅ Benefits
Combines RSI confirmation + Heiken Ashi trend filter + Clear chart labels.
Reduces false signals by requiring both RSI cross and strict close confirmation.
Easy to interpret visually with arrows and text labels.
⚠️ Notes
This indicator is meant as a signal confirmation tool, not a standalone strategy.
Best used alongside support/resistance analysis, price action, or volume.
Does not provide automatic stop loss / take profit levels → risk management must be applied by the trader.
Dizzy HOLO🚀 Dizzy HOLO is an all-in-one professional trading suite designed for serious traders.
It combines Pivot Points, Opening Range Breakout (ORB), HOLO (High of Low / Low of High), Weekly Levels, SMA Thresholds, and Real-Time Alerts into a single lightweight indicator.
🔑 Key Features:
✅ Pivot Points (Fibonacci & Camarilla) – Automatic support & resistance with labels.
✅ Opening Range Breakout (ORB) – Custom session ORB with historical data and breakout alerts.
✅ HOLO Strategy – Daily High/Low, Highest H1 Open, Lowest H1 Close with dynamic buy/sell zones.
✅ Weekly Levels – Previous Week High/Low/Open/Close with extended dotted projections.
✅ SMA Threshold Zones – Dynamic SMA with gray zone filter and trend-based candle coloring.
✅ Multi-Timeframe Analysis – Auto-switching pivots & real-time confirmation.
✅ Smart Alerts – Pivot breakouts, ORB levels, HOLO crosses, and Weekly breaks.
🎯 Why Use Dizzy HOLO?
This indicator is built for breakout, reversal, and trend traders. It provides clear market structure, liquidity zones, and actionable alerts so you never miss important setups.
🛠️ Best Suited For:
Intraday scalpers
Swing traders
Breakout traders
HOLO strategy followers
Multi-timeframe traders
Nick2k Trend Tracker MT botNick2k Trend Tracker MT bot
Type: Indicator (signals + PineConnector alerts for EAs)
Markets: Designed for XAUUSD (gold), adaptable to other symbols
Timeframes: Optimized for M5/M15
---
What it does
Nick2k Trend Tracker MT bot identifies trend flips using a percentile-normalized SMA slope with hysteresis, then applies a multi-layer filter suite to avoid false signals in low-quality conditions.
It can optionally auto-manage trades via PineConnector:
Send open orders with SL/TP (ATR- or pip-based)
Breakeven activation
Dual trailing stops (pip-based or ATR-based)
Staged partial closes (up to 3 levels)
The indicator also:
Highlights chop zones in the background
Provides diagnostic labels showing which filters passed/failed
Lets you disable all alerts with one checkbox (visual testing mode)
---
Core logic (simplified)
Trend Engine: SMA slope normalized by a rolling percentile; flips with hysteresis at +0.1/–0.1.
Filters: optional checks for slope strength, ADX, narrow range ratio, ATR squeeze, higher-timeframe slope.
Sessions: entry/management can be gated to London, NY, Tokyo, Sydney sessions and weekdays.
Chop highlight: background shading when ranges/low-volatility are detected for consecutive bars.
---
Visuals
Colored SMA line (gradient by slope)
BUY/SELL labels at valid flip bars
Chop background (yellow overlay)
Filter score/diagnostic label (optional)
---
Alerts & PineConnector integration
Open orders: sent at valid BUY/SELL flips with embedded SL/TP + BE/trailing if enabled
Partial closes: 3 configurable milestones (ATR or pip based, % or fixed lots)
Master toggle: switch all alerts ON/OFF instantly
Alerts are formatted in PineConnector EA syntax for compatibility with MetaTrader auto-trading.
---
Inputs (organized by group)
SMA & Theme (length, colors)
Auto Trading (license, symbol, lots, master toggle)
SL/TP Target Type (prices vs pips)
ATR SL/TP (length, multipliers, rounding)
Breakeven (trigger/offset)
Pip Trailing (trigger/dist/step)
ATR Trailing (TF, period, multiplier, trigger)
Partial Closes (mode, lots or %)
Time Filters (sessions, weekdays)
Filters (Slope, ADX, NRR, ATR squeeze, HTF confirm)
Chop Zone Highlight (on/off, hold bars, color)
---
Why this script is unique (and closed-source)
This is not a simple moving-average crossover. It combines several custom-built methods that are rarely seen in public scripts:
Normalized SMA slope with hysteresis: avoids whipsaws, adapts to volatility regimes.
Multi-filter confirmation: ADX, NRR, ATR squeeze, HTF slope — stacked to improve quality.
Chop detection with persistence: custom counter/hold logic to highlight ranging markets.
Integrated trade management: PineConnector-ready messages with SL/TP, breakeven, dual trailing stops, staged partial closes.
EA-compatible syntax: formatted exactly for PineConnector EAs, including safety toggles.
This represents a full trading framework designed for semi-automated gold scalping, not just a “signal indicator.”
The source is protected to prevent clones and preserve development effort invested in unique logic and PineConnector integration.
---
Recommended starting settings (XAUUSD M5/M15)
Pip size: 0.10
Slope threshold: 0.20 (M5), 0.16–0.20 (M15)
ADX min: 18–22
NRR floor: 2.0–2.4
ATR ratio: 0.65–0.75
ATR SL/TP: SL = 1.5×ATR, TP = 2.5×ATR
Sessions: London & NY
---
Limitations & disclaimer
Not financial advice. Test on demo before live trading.
Performance depends on broker symbols, spread, and volatility regime.
Auto-trading requires PineConnector EA set up correctly.
---
Changelog
v1.0 – Initial release (trend engine, filters, sessions, chop highlight, PineConnector alerts, BE/trailing, partial closes, diagnostics)
Automatic Candle Date - BVKAutomatic Candle Date
It is related to automatic Date indicator , so you can fetch it
Daily VWAPs & 420 EMAAuto-plots AVWAPS at ETH & RTH of US indice futures open. Additional option for EMA of user's choice.
EMA CROSS STRATEGY MAXTRA ENTRY LOGIC
Long Entry (Buy Signal):
Condition: Short EMA crosses above Long EMA (Golden Cross)
Interpretation: A potential upward trend is beginning
Short Entry (Sell Signal):
Condition: Short EMA crosses below Long EMA (Death Cross)
Interpretation: A potential downward trend is beginning
EXIT LOGIC
There are a few options depending on the style of strategy:
Option 1: Opposite Crossover
Exit Long: When Short EMA crosses below Long EMA
Exit Short: When Short EMA crosses above Long EMA
This method keeps you in the trade until the trend reverses.
Option 2: Fixed Stop Loss / Take Profit
Exit trade when a profit target or stop loss is hit
Example: 2% stop loss and 4% take profit
Note : In Properties, go to Initial Margin. Add one more zero to get the backtest results for futures trades. For spot, use it as it is.
Distance from SMAsimportant in trending markets. 1% deviation from 20D sma is a good point to sell 10-15 delta puts or calls depending upon the direction
PubLibPivotLibrary "PubLibPivot"
Pivot detection library for harmonic pattern analysis - Fractal and ZigZag methods with validation and utility functions
fractalPivotHigh(depth)
Fractal pivot high condition
Parameters:
depth (int)
Returns: bool
fractalPivotLow(depth)
Fractal pivot low condition
Parameters:
depth (int)
Returns: bool
fractalPivotHighPrice(depth, occurrence)
Get fractal pivot high price
Parameters:
depth (int)
occurrence (simple int)
Returns: float
fractalPivotLowPrice(depth, occurrence)
Get fractal pivot low price
Parameters:
depth (int)
occurrence (simple int)
Returns: float
fractalPivotHighBarIndex(depth, occurrence)
Get fractal pivot high bar index
Parameters:
depth (int)
occurrence (simple int)
Returns: int
fractalPivotLowBarIndex(depth, occurrence)
Get fractal pivot low bar index
Parameters:
depth (int)
occurrence (simple int)
Returns: int
zigzagPivotHigh(deviation, backstep, useATR, atrLength)
ZigZag pivot high condition
Parameters:
deviation (float)
backstep (int)
useATR (bool)
atrLength (simple int)
Returns: bool
zigzagPivotLow(deviation, backstep, useATR, atrLength)
ZigZag pivot low condition
Parameters:
deviation (float)
backstep (int)
useATR (bool)
atrLength (simple int)
Returns: bool
zigzagPivotHighPrice(deviation, backstep, useATR, atrLength, occurrence)
Get ZigZag pivot high price
Parameters:
deviation (float)
backstep (int)
useATR (bool)
atrLength (simple int)
occurrence (simple int)
Returns: float
zigzagPivotLowPrice(deviation, backstep, useATR, atrLength, occurrence)
Get ZigZag pivot low price
Parameters:
deviation (float)
backstep (int)
useATR (bool)
atrLength (simple int)
occurrence (simple int)
Returns: float
zigzagPivotHighBarIndex(deviation, backstep, useATR, atrLength, occurrence)
Get ZigZag pivot high bar index
Parameters:
deviation (float)
backstep (int)
useATR (bool)
atrLength (simple int)
occurrence (simple int)
Returns: int
zigzagPivotLowBarIndex(deviation, backstep, useATR, atrLength, occurrence)
Get ZigZag pivot low bar index
Parameters:
deviation (float)
backstep (int)
useATR (bool)
atrLength (simple int)
occurrence (simple int)
Returns: int
isValidPivotVolume(pivotPrice, pivotBarIndex, minVolumeRatio, volumeLength)
Validate pivot quality based on volume
Parameters:
pivotPrice (float)
pivotBarIndex (int)
minVolumeRatio (float)
volumeLength (int)
Returns: bool
isValidPivotATR(pivotPrice, lastPivotPrice, minATRMultiplier, atrLength)
Validate pivot based on minimum ATR movement
Parameters:
pivotPrice (float)
lastPivotPrice (float)
minATRMultiplier (float)
atrLength (simple int)
Returns: bool
isValidPivotTime(pivotBarIndex, lastPivotBarIndex, minBars)
Validate pivot based on minimum time between pivots
Parameters:
pivotBarIndex (int)
lastPivotBarIndex (int)
minBars (int)
Returns: bool
isPivotConfirmed(pivotBarIndex, depth)
Check if pivot is not repainting (confirmed)
Parameters:
pivotBarIndex (int)
depth (int)
Returns: bool
addPivotToArray(pivotArray, barArray, pivotPrice, pivotBarIndex, maxSize)
Add pivot to array with validation
Parameters:
pivotArray (array)
barArray (array)
pivotPrice (float)
pivotBarIndex (int)
maxSize (int)
Returns: array - updated pivot array
getPivotFromArray(pivotArray, barArray, index)
Get pivot from array by index
Parameters:
pivotArray (array)
barArray (array)
index (int)
Returns: tuple - (price, bar_index)
getPivotsInRange(pivotArray, barArray, startIndex, count)
Get all pivots in range
Parameters:
pivotArray (array)
barArray (array)
startIndex (int)
count (int)
Returns: tuple, array> - (prices, bar_indices)
pivotDistance(barIndex1, barIndex2)
Calculate distance between two pivots in bars
Parameters:
barIndex1 (int)
barIndex2 (int)
Returns: int - distance in bars
pivotPriceRatio(price1, price2)
Calculate price ratio between two pivots
Parameters:
price1 (float)
price2 (float)
Returns: float - price ratio
pivotRetracementRatio(startPrice, endPrice, currentPrice)
Calculate retracement ratio
Parameters:
startPrice (float)
endPrice (float)
currentPrice (float)
Returns: float - retracement ratio (0-1)
pivotExtensionRatio(startPrice, endPrice, currentPrice)
Calculate extension ratio
Parameters:
startPrice (float)
endPrice (float)
currentPrice (float)
Returns: float - extension ratio (>1 for extension)
isInFibZone(startPrice, endPrice, currentPrice, fibLevel, tolerance)
Check if price is in Fibonacci retracement zone
Parameters:
startPrice (float)
endPrice (float)
currentPrice (float)
fibLevel (float)
tolerance (float)
Returns: bool - true if in zone
getPivotType(pivotPrice, pivotBarIndex, lookback)
Get pivot type (high/low) based on surrounding prices
Parameters:
pivotPrice (float)
pivotBarIndex (int)
lookback (int)
Returns: string - "high", "low", or "unknown"
calculatePivotStrength(pivotPrice, pivotBarIndex, lookback)
Calculate pivot strength based on volume and price action
Parameters:
pivotPrice (float)
pivotBarIndex (int)
lookback (int)
Returns: float - strength score (0-100)
Volume-Weighted RSI & Multi-Normalized MACD Overlay**Description**:
The "Volume-Weighted RSI & Multi-Normalized MACD Overlay" is a sophisticated indicator that plots a volume-weighted Relative Strength Index (VW-RSI) and a customizable Moving Average Convergence Divergence (MACD) directly on the price chart, enhancing momentum and trend analysis for traders. Designed for stocks, forex, crypto, and more, it supports multi-timeframe (MTF) analysis and offers flexible normalization and scaling options for precise visualization.
**Key Features**:
- **Volume-Weighted RSI**: A volume-sensitive RSI normalized to a configurable range (default: -50/+50), with optional smoothing (SMA, EMA, WMA, VWMA, SMMA, or Bollinger Bands). Overbought (+20) and oversold (-20) lines are plotted relative to a user-defined price source (default: ohlc4).
- **Multi-Normalized MACD**: Supports five bounded normalization methods: Min-Max, Volatility Min-Max, Hyperbolic Tangent, Arctangent, and Min-Max with Smoothing, scaled to the same range as RSI for unified analysis.
- **Price Chart Overlay**: Plots RSI, RSI MA, MACD, MACD Signal, zero-line, overbought (+20), and oversold (-20) lines, anchored to a customizable price source (e.g., ohlc4, hl2).
- **Flexible Scaling**: Choose between high/low range (default) or ATR-based scaling, with separate lookbacks for RSI and MACD (default: 128). Adjust offset and scale factor multipliers for fine-tuned visuals.
- **Customizable Display**: Toggles for RSI (with MA), MACD (with Signal), zero-line, overbought/oversold lines, and RSI background coloring (>20/< -20). Dynamic MACD colors (cyan/magenta) and transparency options enhance clarity.
**How to Use**:
1. Add to any chart (e.g., BTCUSD, SPY, 1H, 1D).
2. Configure settings:
- **General**: Set bounds (-50/+50), timeframe, scaling (high/low or ATR), zero-line source (e.g., ohlc4), and multipliers.
- **RSI**: Adjust price source, length (9), and smoothing options.
- **MACD**: Select price source, lengths (9/21/9), and normalization (e.g., Volatility Min-Max).
- **Display Options**: Toggle lines and background; adjust transparency.
3. Interpret signals: RSI > +20 (overbought), < -20 (oversold); MACD/Signal crosses for momentum; zero-line as reference.
4. Use with the companion "Volume-Weighted RSI & Multi-Normalized MACD" script for pane-based analysis if desired.
**Why Use It?**
Ideal for traders seeking a visually intuitive overlay of RSI and MACD on price action, with customizable scaling and MTF support. Perfect for trend-following, mean-reversion, and cross-market strategies.
**Notes**:
- Ensure a bounded normalization (e.g., Volatility Min-Max) is selected for MACD plotting.
- Adjust scaling multipliers for optimal visibility on volatile assets.
- Feedback welcome to enhance future versions!
**Author**: nepolix
MA Divergence中文介绍:
均线背离指标是一款用于分析价格与均线(如EMA或SMA)之间的背离情况的技术分析工具。该指标结合了标准差、波动性分析和背离信号的检测,旨在帮助交易者识别市场中的潜在反转信号。
主要功能:
背离检测: 该指标根据价格与指定均线(EMA或SMA)之间的乖离(百分比差异),绘制背离柱状图,便于快速识别背离信号。
标准差与阈值: 根据过去一段时间内的历史数据,自动计算标准差并设置动态阈值,用以判断价格背离的异常程度。当背离信号超出设定的阈值时,柱状图将标记为蓝色,突出显示潜在的反转信号。
警报功能: 为用户提供警报设置,当背离信号突破上阈值或下阈值时,能够及时提醒交易者,帮助做出决策。
适用对象:
短期交易者: 用于快速捕捉反转信号,帮助制定更具针对性的交易策略。
中长期交易者: 通过背离与均线的结合,帮助识别趋势的潜在转折点。
技术分析爱好者: 提供了一种新的背离分析视角,帮助用户理解市场行为。
英文介绍:
The Moving Average Divergence (MA Divergence) Indicator is a technical analysis tool designed to analyze the divergence between price and a moving average (such as EMA or SMA). The indicator combines standard deviation, volatility analysis, and divergence signal detection to help traders identify potential reversal signals in the market.
Key Features:
Divergence Detection: The indicator plots divergence histograms based on the percentage difference between price and the selected moving average (EMA or SMA), making it easy to spot divergence signals at a glance.
Standard Deviation & Thresholds: The indicator automatically calculates the standard deviation based on historical data over a specified period and sets dynamic thresholds to assess the abnormality of price divergence. When the divergence signal exceeds the set thresholds, the histogram is highlighted in blue, emphasizing potential reversal signals.
Alert Functionality: The indicator includes alert conditions, allowing users to receive notifications when the divergence breaks above or below a defined threshold, helping traders take timely actions.
Target Audience:
Short-term traders: Designed for quick identification of reversal signals to formulate more targeted trading strategies.
Mid-to-long-term traders: Helps to identify potential trend reversal points by combining divergence with moving averages.
Technical analysis enthusiasts: Provides a new perspective on divergence analysis, helping users better understand market behavior.
总结:
无论是短期的交易决策,还是长期的市场趋势判断,“均线背离”指标都能为交易者提供强大的支持。通过标准差、波动性分析、警报提醒等功能,帮助用户实时捕捉市场中的背离信号,并快速做出反应。