Pixel Art ChickenPixel Art Chicken 🐔
This Pine Script (v6) script generates a Pixel Art of a Chicken on the TradingView chart.
📌 Features:
Draws a pixelated chicken using vibrant colors:
🔴 Red (comb)
🟡 Yellow (beak and legs)
⚪ Light gray (body)
⚫ Black (eyes and outline)
Overlays the chart at user-defined intervals.
Functions as a visual design without affecting market data.
Customizable in terms of location and spacing between images.
🎨 Main Use:
This script is perfect for adding a fun and creative touch to your TradingView charts.
🔧 Optional:
If you want to modify the repetition frequency of the pixel art, adjust the separation parameter.
💡 Note:
This script is not a technical indicator and does not influence market analysis.
🚀 Enjoy this Pixel Art on your charts! 🎮🐔🔥
Educational
Prev Day, Premarket, 5m OpenDescription of the Script
This script is a Pine Script (version 5) indicator designed for use in TradingView. It overlays customizable price range lines and backgrounds on a chart to highlight key trading ranges based on different time periods and sessions. The indicator focuses on the following ranges:
Daily Range: Displays the high and low prices from the previous trading day (9:30 AM to 4:00 PM ET).
Premarket Range: Shows the high and low prices during the premarket session (4:00 AM to 9:29 AM ET) of the current day.
5-Minute Opening Range: Captures the high and low prices during the first 5 minutes of the regular trading session (9:30 AM to 9:35 AM ET).
GC Sessions (Gold Commodity): Optionally displays the high and low of the previous day's GC session (9:00 AM to 2:30 PM ET) and London Fix windows (5:00–6:00 AM and 9:30–10:30 AM ET on the current day).
CL Sessions (Crude Oil): Optionally displays the high and low of the previous day's CL session (9:00 AM to 2:30 PM ET) and the EIA window (10:00–11:00 AM ET on Wednesdays).
Each range is represented by horizontal lines (top and bottom) with customizable colors, styles (solid, dashed, dotted), and widths. Background shading between the high and low lines can also be enabled with adjustable colors and transparency. Labels are added to identify each range (e.g., "PDH" for Previous Day High, "PMH" for Premarket High, etc.). The script adjusts for time zones via a user-defined offset and allows manual override of the previous trading day.
Instructions for Setting the Inputs
The script provides a variety of customizable inputs grouped by range type. Below are instructions for setting each input category:
General Settings
Timezone Offset (hours): Adjusts the script's time calculations to your local timezone relative to UTC. Enter the number of hours to subtract from UTC (e.g., -4 for Eastern Time during Daylight Saving Time, -5 during Standard Time). Range: -12 to +12.
Previous Day Settings
Previous Trading Day Override (YYYY-MM-DD): Allows manual specification of the previous trading day in "YYYY-MM-DD" format (e.g., "2025-03-19"). Leave blank for automatic detection (defaults to the prior day). This override expires at midnight ET the next day.
Daily Range Customization
Daily Top Line Color: Choose the color for the previous day's high line (default: green).
Daily Top Line Style: Select the line style (solid, dashed, dotted; default: solid).
Daily Top Line Width: Set the line thickness (1 to 5; default: 2).
Daily Bottom Line Color: Choose the color for the previous day's low line (default: red).
Daily Bottom Line Style: Select the line style (solid, dashed, dotted; default: solid).
Daily Bottom Line Width: Set the line thickness (1 to 5; default: 2).
Daily Show Background?: Enable/disable background shading between the high and low (default: true).
Daily Background Color: Choose the background color (default: orange).
Daily Background Transparency: Set transparency level (0 = opaque, 100 = fully transparent; default: 92).
Premarket Range Customization
Premarket Top Line Color: Choose the color for the premarket high line (default: green).
Premarket Top Line Style: Select the line style (solid, dashed, dotted; default: solid).
Premarket Top Line Width: Set the line thickness (1 to 5; default: 2).
Premarket Bottom Line Color: Choose the color for the premarket low line (default: red).
Premarket Bottom Line Style: Select the line style (solid, dashed, dotted; default: solid).
Premarket Bottom Line Width: Set the line thickness (1 to 5; default: 2).
Premarket Show Background?: Enable/disable background shading (default: true).
Premarket Background Color: Choose the background color (default: blue).
Premarket Background Transparency: Set transparency level (0 to 100; default: 92).
5-Minute Opening Range Customization
5min Opening Top Line Color: Choose the color for the opening range high line (default: black).
5min Opening Top Line Style: Select the line style (solid, dashed, dotted; default: solid).
5min Opening Top Line Width: Set the line thickness (1 to 5; default: 2).
5min Opening Bottom Line Color: Choose the color for the opening range low line (default: black).
5min Opening Bottom Line Style: Select the line style (solid, dashed, dotted; default: solid).
5min Opening Bottom Line Width: Set the line thickness (1 to 5; default: 2).
GC Special Sessions
Show GC Session Range (9:00 AM - 2:30 PM ET)?: Enable/disable the GC session range from the previous day (default: false).
GC Session Top Color: Choose the color for the GC session high line (default: green).
GC Session Bottom Color: Choose the color for the GC session low line (default: red).
Show London Fix Windows (5-6 AM, 9:30-10:30 AM ET)?: Enable/disable the London Fix windows for the current day (default: false).
London Fix Top Color: Choose the color for the London Fix high line (default: green).
London Fix Bottom Color: Choose the color for the London Fix low line (default: red).
CL Special Sessions
Show CL Session Range (9:00 AM - 2:30 PM ET)?: Enable/disable the CL session range from the previous day (default: false).
CL Session Top Color: Choose the color for the CL session high line (default: green).
CL Session Bottom Color: Choose the color for the CL session low line (default: red).
Show EIA Window (Wed, 10-11 AM ET)?: Enable/disable the EIA window for Wednesdays (default: false).
EIA Window Top Color: Choose the color for the EIA high line (default: green).
EIA Window Bottom Color: Choose the color for the EIA low line (default: red).
How to Use
Add to Chart: Copy the script into TradingView's Pine Editor, then add it to your chart.
Adjust Inputs: Open the indicator settings by double-clicking it on the chart. Modify the inputs as described above to suit your preferences.
Verify Timezone: Ensure the "Timezone Offset" matches your desired timezone for accurate range calculations.
Optional Overrides: Use the "Previous Trading Day Override" if you need to analyze a specific past day, ensuring the format is correct (e.g., "2025-03-19").
This indicator is particularly useful for traders who rely on key price levels from previous sessions, premarket activity, or specific commodity-related time windows (GC and CL).
Session Start & Day BackgroundThis indicator visually enhances your TradingView charts by highlighting the start of each new trading day and coloring the background based on the day of the week.
The first candle of each new trading day is marked in gray for better session separation.
The background color changes based on the current day of the week, making it easier to recognize market patterns and trends at a glance.
Works across all markets including Forex, Stocks, and Crypto.
Designed to improve chart readability and market structure visualization.
Ideal for traders who want a clearer overview of daily sessions and better differentiation between trading days! 🚀
DT_GannDT_Gann - Combined Indicator Description
This TradingView indicator implements W.D. Gann's Square 9 concept with several visual enhancements to help traders identify key support and resistance levels. The indicator automatically adapts to different market types (forex or stocks) and includes the following features:
KEY FEATURES:
Support and resistance levels:
Automatically calculates and displays multiple support and resistance levels based on the Gann square theory of 9, with customizable colors (default green for support, red for resistance).
Day Opening Line:
Shows the day's opening price as a reference point, which serves as the base for all Gann calculations.
Previous 4H Range Box:
Displays a rectangular box showing the high-llow range of the previous day's last 4-hour candle, helping traders identify important price zones.
Vertical Time Lines:
Additional temporary vertical lines marking 4-hour intervals to help visualize potential reversal points.
Reject Mode:
Allows you to fine-tune support and resistance levels using percentage deviations.
CUSTOMIZATION OPTIONS:
Line Styles:
Select a solid, dashed, or dotted line.
Colors:
Adjust colors for support, resistance, daily open line, 4H rectangle and time lines.
Line Width:
Customize the thickness of all lines (1-5 pixels)
Opacity settings:
Control the transparency of various elements
Deviation settings:
Apply percentage adjustments to support and resistance levels
TECHNICAL IMPLEMENTATION:
Indicator:
- Automatically determines the appropriate point values depending on the instrument.
- Calculates Gann levels using the mathematical principle of Square 9.
- Finds the nearest support and resistance levels relative to the current price.
- Creates visualizations based on both charts and lines.
- Dynamically updates as price moves.
USAGE:
This indicator is especially useful for swing traders and day traders who follow Gann methods. The combination of price levels (support/resistance) and time markers (vertical lines) helps identify potential reversal zones where price and time align according to Gann principles.
The previous day's 4-hour rectangular frame often serves as an important reference zone that price can return to or respect.
The indicator works on all timeframes, but is most effective on charts from 15-minute to 4-hour charts, where time-based components provide the most value.
Premarket High/Low Breakout AlertsPremarket High/Low Breakout Alerts
Description: This custom TradingView indicator helps you track premarket breakouts and breakdowns for a list of selected stocks. The indicator monitors the premarket session and sends an alert every time the stock's price breaks above the premarket high or below the premarket low.
Key Features:
Track Multiple Stocks: Easily monitor multiple stocks (e.g., AAPL, TSLA, NVDA, etc.) and get alerts when they break premarket levels.
Premarket Session Monitoring: The indicator checks for price movements during the premarket session (4:00 AM to 9:30 AM EST).
Customizable Ticker List: Modify the list of tickers directly from the TradingView settings to suit your daily trading needs.
Breakout and Breakdown Alerts: Receive instant alerts for both breakout (above premarket high) and breakdown (below premarket low) conditions.
Plot Premarket Levels: The premarket high and low levels are plotted on the chart for easy reference.
How to Use:
Add this indicator to your chart.
Go to the indicator settings and input your desired stock tickers (e.g., AAPL, TSLA, MSFT).
The indicator will automatically track the premarket levels and send alerts when those levels are broken.
Customize the tickers daily if needed.
Ideal For:
Day Traders who want to track premarket movements.
Swing Traders looking for strong breakouts from premarket levels.
Scalpers who need quick alerts to catch price action early.
Big Candles FilterHow It Works
A candle is considered "big" only if its body (distance from open to close) exceeds the barHeight value.
** NOT calculated by Range !!!
Features :
Bullish candles (close > open) are marked with a green "Buy" triangle if the body is large enough.
Bearish candles (close < open) are marked with a red "Sell" triangle if the body is large enough.
The bars are colored for big candles, and optional labels show the open and close prices.
Backtesting Stats (Altrady)Track and analyze your backtesting results directly on your chart.
This indicator simplifies manual backtesting by summarizing your trades in a clear, structured table. Enter your R-values (one per line) in the text area, and instantly see:
✅ Trade list – All entries displayed with color-coded wins/losses.
✅ Key stats – Total trades, win rate, and RR sum in the top row.
✅ Quick insights – Spot trends, refine your strategy, and track performance without spreadsheets.
How to Use
1️⃣ Open settings and enter R-values, one per line (e.g., 2.5, -1, 3.2) along with short comments (bad entry, counter trend, etc)
2️⃣ View the table in the top-right corner of your chart.
3️⃣ Analyze your results, adjust your strategy, and improve consistency.
Perfect for manual backtesters who want a fast, no-spreadsheet solution. 🚀
Money Flow Divergence IndicatorOverview
The Money Flow Divergence Indicator is designed to help traders and investors identify key macroeconomic turning points by analyzing the relationship between U.S. M2 money supply growth and the S&P 500 Index (SPX). By comparing these two crucial economic indicators, the script highlights periods where market liquidity is outpacing or lagging behind stock market growth, offering potential buy and sell signals based on macroeconomic trends.
How It Works
1. Data Sources
S&P 500 Index (SPX500USD): Tracks the stock market performance.
U.S. M2 Money Supply (M2SL - Federal Reserve Economic Data): Represents available liquidity in the economy.
2. Growth Rate Calculation
SPX Growth: Percentage change in the S&P 500 index over time.
M2 Growth: Percentage change in M2 money supply over time.
Growth Gap (Delta): The difference between M2 growth and SPX growth, showing whether liquidity is fueling or lagging behind market performance.
3. Visualization
A histogram displays the growth gap over time:
Green Bars: M2 growth exceeds SPX growth (potential bullish signal).
Red Bars: SPX growth exceeds M2 growth (potential bearish signal).
A zero line helps distinguish between positive and negative growth gaps.
How to Use It
✅ Bullish Signal: When green bars appear consistently, indicating that liquidity is outpacing stock market growth. This suggests a favorable environment for buying or holding positions.
❌ Bearish Signal: When red bars appear consistently, meaning stock market growth outpaces liquidity expansion, signaling potential overvaluation or a market correction.
Best Timeframes for Analysis
This indicator works best on monthly timeframes (M) since it is designed for long-term investors and macro traders who focus on broad economic cycles.
Who Should Use This Indicator?
📈 Long-term investors looking for macroeconomic trends.
📊 Swing traders who incorporate liquidity analysis in their strategies.
💰 Portfolio managers assessing market liquidity conditions.
🚀 Use this indicator to stay ahead of market trends and make informed investment decisions based on macroeconomic liquidity shifts! 🚀
Custom Time Alert with Vertical Line📌 Detailed Explanation of the Custom Time Alert with Vertical Line in Pine Script v5
This script is a time-based alert system designed for TradingView. It allows traders to set a specific hour and minute for alerts and provides visual indicators on the chart, including a marker when the alert triggers and a vertical line at the alert time.
🔹 Main Features
Custom Alert Time → Users can specify the exact hour and minute for an alert.
Time Zone Offset Support → Users can manually adjust their local UTC offset to ensure alerts trigger at the correct time.
Real-Time Alert Condition → When the market reaches the set time, an alert notification is triggered.
Chart Visualization → A red marker appears when the alert is activated, and a blue vertical line is drawn at the alert time.
Automated Calculation → The script adjusts the alert time based on the user’s time zone settings.
🛠️ How It Works
User Input for Alert Time
The script allows users to enter their desired alert hour (0-23) and minute (0-59).
This ensures the alert triggers at the exact specified time.
Time Zone Offset Handling
Users enter their UTC offset (e.g., New York is -5, Tokyo is +9).
This ensures alerts work correctly regardless of the user’s location.
Time Calculation
The script adjusts the TradingView time by adding the time zone offset in milliseconds.
This converts the UTC-based TradingView time into the user’s local time.
Checking for a Time Match
The script constantly checks if the current hour and minute match the user-defined alert time.
If they match, the script activates an alert.
Triggering Alerts
The script uses TradingView’s alertcondition() function to create an alert.
When the time matches, TradingView sends a notification (e.g., pop-up, sound, or mobile alert).
Chart Markers for Visual Alerts
A red marker is displayed on the chart when the alert triggers.
A blue vertical line is drawn at the exact alert time.
📌 Example Use Cases
📈 1. Forex Traders Monitoring Market Opens
A forex trader who trades the London session wants an alert when the market opens at 8:00 AM UTC.
The trader sets:
Alert Hour = 8
Alert Minute = 0
Time Zone Offset = 0 (for UTC)
When the market reaches 8:00 AM UTC, the script triggers an alert.
📈 2. Stock Market Open Alerts
A trader in New York (EST) wants an alert at 9:30 AM Eastern Time (New York Stock Exchange open).
New York’s UTC offset is -5.
The trader sets:
Alert Hour = 9
Alert Minute = 30
Time Zone Offset = -5
The script ensures the alert triggers at 9:30 AM EST.
📈 3. Crypto Trader Watching a Specific Time
A crypto trader wants an alert for a specific strategy at 3:00 PM in Tokyo (UTC+9).
Tokyo’s UTC offset is +9.
The trader sets:
Alert Hour = 15
Alert Minute = 0
Time Zone Offset = +9
The script ensures the alert triggers exactly at 3:00 PM Tokyo time.
Lot Size InfoLot Size Info – Quick Futures Lot Size Display
Overview:
The Lot Size Info indicator helps traders quickly determine the lot size of futures contracts for a given symbol.
How It Works:
- Automatically detects whether the current symbol is a futures contract.
- If a futures contract exists, it fetches and displays the lot size.
- If no futures contract is available, it doesn't display anything.
- The information is displayed in a non-intrusive table at the bottom-right of the chart.
Why Use This Indicator?
✅ Instant Futures Lot Size Visibility – No need to check manually.
✅ Prevents Confusion – Displays nothing when no futures contract exists.
✅ Minimal & Non-Distracting UI – Small floating table that updates in real-time.
🔹 Best for: Futures traders, scalpers, and positional traders who frequently switch between stock and futures charts.
🚀 Add this to your TradingView toolkit today!
Alpha Wave System @DaviddTechAlpha Wave DaviddTech System by DaviddTech is an advanced, meticulously engineered trading indicator adhering strictly to the DaviddTech methodology. Rather than simply combining popular indicators, Alpha Wave strategically integrates specially-selected technical components—each optimized to enhance their combined strengths while neutralizing individual weaknesses, providing traders with clear, consistent, and high-probability trading signals.
Valid Setup:
🎯 Why This Combination Matters:
Quantum Adaptive Moving Average (Baseline):
This advanced adaptive MA provides superior responsiveness to market shifts by dynamically adjusting its sensitivity, clearly indicating the primary market direction and reducing lag compared to standard moving averages.
WavePulse Indicator (CoralChannel-based Confirmation #1):
Precisely detects shifts in momentum and price acceleration, allowing traders to anticipate trend continuation or reversals effectively, significantly enhancing trade accuracy.
Quantum Channel (G-Channel-based Confirmation #2):
Dynamically captures price volatility ranges, offering reliable trend structure validation and clear support/resistance channels, further increasing signal reliability.
Momentum Density (Volatility Filter):
Ensures traders enter only during optimal volatility conditions by quantifying momentum intensity, effectively filtering out low-quality, low-momentum scenarios.
Dynamic ATR-based Trailing Stop (Exit System):
Automatically manages trade exits with optimized ATR-based stop levels, systematically securing profits while effectively managing risk.
These meticulously integrated components reinforce each other's strengths, providing traders with a robust, disciplined, and clearly structured approach aligned with the DaviddTech methodology.
🔥 Latest Update – Enhanced BUY & SELL Signals:
Alpha Wave now clearly displays automated BUY and SELL signals directly on your chart, coupled with a comprehensive dashboard table for immediate signal validation. Signals appear only when all components—including baseline, confirmations, and volatility—are in alignment, significantly improving trade accuracy and confidence.
📌 How Traders Benefit from the New Signals:
BUY Signal: Execute long trades when Quantum Adaptive MA signals bullish, confirmed by bullish WavePulse momentum, bullish Quantum Channel structure, and strong Momentum Density readings.
SELL Signal: Clearly marked for entering short positions under bearish market conditions verified through Quantum Adaptive MA, WavePulse bearish momentum, Quantum Channel confirmation, and sufficient Momentum Density.
Signal Validation: A dedicated dashboard provides immediate visual strength metrics, allowing traders to quickly validate signals before execution, significantly enhancing trading discipline and consistency.
📊 Recommended DaviddTech Trading Plan:
Baseline: Determine overall market direction using Quantum Adaptive MA. Only trade in the indicated baseline direction.
Confirmations: Validate potential entries with WavePulse and Quantum Channel alignment.
Volatility Filter: Confirm sufficient market volatility with Momentum Density before entry.
Trailing Stop Loss: Manage risk and secure profits using the dynamic ATR-based trailing stop system.
Entries & Exits: Only execute trades when signals and dashboard components unanimously align.
🖼️ Visual Examples:
Alpha Wave by DaviddTech clearly demonstrates how an intelligently integrated system provides significantly superior trading insights compared to standalone indicators, ensuring precise, disciplined, and profitable market entries and exits across all trading environments.
BTCUSD with adjustable sl,tpThis strategy is designed for swing traders who want to enter long positions on pullbacks after a short-term trend shift, while also allowing immediate short entries when conditions favor downside movement. It combines SMA crossovers, a fixed-percentage retracement entry, and adjustable risk management parameters for optimal trade execution.
Key Features:
✅ Trend Confirmation with SMA Crossover
The 10-period SMA crossing above the 25-period SMA signals a bullish trend shift.
The 10-period SMA crossing below the 25-period SMA signals a bearish trend shift.
Short trades are only taken if the price is below the 150 EMA, ensuring alignment with the broader trend.
📉 Long Pullback Entry Using Fixed Percentage Retracement
Instead of entering immediately on the SMA crossover, the strategy waits for a retracement before going long.
The pullback entry is defined as a percentage retracement from the recent high, allowing for an optimized entry price.
The retracement percentage is fully adjustable in the settings (default: 1%).
A dynamic support level is plotted on the chart to visualize the pullback entry zone.
📊 Short Entry Rules
If the SMA(10) crosses below the SMA(25) and price is below the 150 EMA, a short trade is immediately entered.
Risk Management & Exit Strategy:
🚀 Take Profit (TP) – Fully customizable profit target in points. (Default: 1000 points)
🛑 Stop Loss (SL) – Adjustable stop loss level in points. (Default: 250 points)
🔄 Break-Even (BE) – When price moves in favor by a set number of points, the stop loss is moved to break-even.
📌 Extra Exit Condition for Longs:
If the SMA(10) crosses below SMA(25) while the price is still below the EMA150, the strategy force-exits the long position to avoid reversals.
How to Use This Strategy:
Enable the strategy on your TradingView chart (recommended for stocks, forex, or indices).
Customize the settings – Adjust TP, SL, BE, and pullback percentage for your risk tolerance.
Observe the plotted retracement levels – When the price touches and bounces off the level, a long trade is triggered.
Let the strategy manage the trade – Break-even protection and take-profit logic will automatically execute.
Ideal Market Conditions:
✅ Trending Markets – The strategy works best when price follows strong trends.
✅ Stocks, Indices, or Forex – Can be applied across multiple asset classes.
✅ Medium-Term Holding Period – Suitable for swing trades lasting days to weeks.
5-Min First Candle Breakout/BreakdownAwesome! Here's a basic Pine Script (v5) for a First 5-minute candle breakout/breakdown strategy with Buy/Sell signals and price labels. This script works by capturing the high and low of the first candle of the session and then showing signals when those levels are broken.
You can customize it further for Entry, Stop Loss, Target, etc., but this gives you the foundation with labels for buys/sells based on breakout/breakdown.
V Pattern TrendDESCRIPTION:
The V Pattern Trend Indicator is designed to identify and highlight V-shaped reversal patterns in price action. It detects both bullish and bearish V formations using a five-candle structure, helping traders recognize potential trend reversal points. The indicator filters out insignificant patterns by using customizable settings based on ATR, percentage, or points, ensuring that only meaningful V patterns are displayed.
CALCULATION METHOD
The user can choose how the minimum length of a V pattern is determined. The available options are:
- ATR (Average True Range) – Filters V patterns based on ATR, making the detection adaptive to market volatility.
- Percentage (%) – Considers V patterns where the absolute price difference between the V low and V high is greater than a user-defined percentage of the V high.
- Points – Uses a fixed number of points to filter valid V patterns, making it useful for assets with consistent price ranges.
ATR SETTINGS
- ATR Length – Defines the number of periods for ATR calculation.
- ATR Multiplier – Determines the minimum V length as a multiple of ATR.
PERCENTAGE THRESHOLD
- Sets a minimum percentage difference between the V high and V low for a pattern to be considered valid.
POINTS THRESHOLD
- Defines the minimum price movement (in points) required for a V pattern to be considered significant.
PATTERN VISUALIZATION
- A bullish V pattern is plotted using two upward-sloping lines, with a filled green region to highlight the formation.
- A bearish V pattern is plotted using two downward-sloping lines, with a filled red region to indicate the reversal.
- The indicator dynamically updates and marks only the most recent valid patterns.
UNDERSTANDING V PATTERNS
A V pattern is a sharp reversal formation where price moves strongly in one direction and then rapidly reverses in the opposite direction, forming a "V" shape on the chart.
BULLISH V PATTERN
- A bullish V pattern is formed when the price makes three consecutive lower lows, followed by two consecutive higher lows.
- The pattern is confirmed when the highest high of the formation is greater than the previous highs within the structure.
- This pattern suggests a potential trend reversal from bearish to bullish.
- The lowest point of the pattern represents the V low, which acts as a support level.
bull_five_candle_v = low > low and low > low and low > low and low > low
and high > math.max(high , high , high ) and high > math.max(high , high , high )
BEARISH V PATTERN
- A bearish V pattern is detected when the price makes three consecutive higher highs, followed by two consecutive lower highs.
- The pattern is confirmed when the lowest low of the formation is lower than the previous lows within the structure.
- This pattern signals a possible trend reversal from bullish to bearish.
- The highest point of the pattern represents the V high, which acts as a resistance level.
bear_five_candle_v = high < high and high < high and high < high and high < high
and low < math.min(low , low , low ) and low < math.min(low , low , low )
HOW THIS IS UNIQUE
- Advanced Filtering Mechanism – Unlike basic reversal indicators, this tool provides customizable filtering based on ATR, percentage, or points, ensuring that only significant V patterns are displayed.
- Enhanced Visual Clarity – The indicator uses color-coded fills and structured plotting to make reversal patterns easy to recognize.
- Works Across Market Conditions – Adaptable to different market environments, filtering out weak or insignificant price fluctuations.
- Multi-Timeframe Usability – Can be applied across different timeframes and asset classes, making it useful for both intraday and swing trading.
HOW TRADERS CAN USE THIS INDICATOR
- Identify potential trend reversals early based on structured price action.
- Filter out weak or insignificant reversals to focus only on strong V formations.
- Use the V pattern’s highs and lows as key support and resistance zones for trade entries and exits.
- Combine with other indicators like moving averages, trendlines, or momentum oscillators for confirmation.
20 Day Moving Average with Profit TargetsThis Pine Script indicator plots a 20-day simple moving average (SMA) on the chart and displays profit target labels relative to an initial buy price.
The script allows the user to input a custom buy price and calculates profit levels at 10%, 20%, 30%, and 50% above the buy price. Labels are shown on the last bar of the chart for each profit level and the buy price, with the labels offset to the right to avoid overlapping with the price action.
The labels are color-coded based on the profit levels, and the buy price label is blue.
Elliptic bands
Why Elliptic?
Unlike traditional indicators (e.g., Bollinger Bands with constant standard deviation multiples), the elliptic model introduces a cyclical, non-linear variation in band width. This reflects the idea that price movements often follow rhythmic patterns, widening and narrowing in a predictable yet dynamic way, akin to natural market cycles.
Buy: When the price enters from below (green triangle).
Sell: When the price enters from above (red triangle).
Inputs
MA Length: 50 (This is the period for the central Simple Moving Average (SMA).)
Cycle Period: 50 (This is the elliptic cycle length.)
Volatility Multiplier: 2.0 (This value scales the band width.)
Mathematical Foundation
The indicator is based on the ellipse equation. The basic formula is:
Ellipse Equation:
(x^2) / (a^2) + (y^2) / (b^2) = 1
Solving for y:
y = b * sqrt(1 - (x^2) / (a^2))
Parameters Explained:
a: Set to 1 (normalized).
x: Varies from -1 to 1 over the period.
b: Calculated as:
ta.stdev(close, MA Length) * Volatility Multiplier
(This represents the standard deviation of the close prices over the MA period, scaled by the volatility multiplier.)
y (offset): Represents the band distance from the moving average, forming the elliptic cycle.
Behavior
Bands:
The bands are narrow at the cycle edges (when the offset is 0) and become widest at the midpoint (when the offset equals b).
Trend:
The central moving average (MA) shows the overall trend direction, while the bands adjust according to the volatility.
Signals:
Standard buy and sell signals are generated when the price interacts with the bands.
Practical Use
Trend Identification:
If the price is above the MA, it indicates an uptrend; if below, a downtrend.
Support and Resistance:
The elliptic bands act as dynamic support and resistance levels.
Narrowing bands may signal potential trend reversals.
Breakouts:
Jinx CovarianceThis script calculates and plots the covariance between the closing price of the current trading symbol and the closing prices of several major US stock market components over a user-defined lookback period.
Here's a breakdown:
* Indicator Initialization: The script starts by defining an indicator named "My script".
* Array Declaration: Nine empty arrays (a1 to a9) are created to store historical closing prices.
* Security Data Request: The script then requests historical closing price data for the following symbols using the same timeframe as the current chart: DJI (Dow Jones Industrial Average), SPX (S&P 500), AAPL (Apple), GOOG (Alphabet Inc. Class C), GOOGL (Alphabet Inc. Class A), AMZN (Amazon), META (Meta Platforms), and MSFT (Microsoft). These are stored in variables as2 through as9.
* Data Population Loop: A for loop runs for a number of bars specified by the "Lookback" input (defaulting to the last 100 bars). In each iteration:
* The closing price of the current symbol (close ) is added to the array a1.
* The closing prices of the requested securities (as2 to as9 ) are added to their respective arrays (a2 to a9).
* Covariance Calculation: After the loop, the script calculates the covariance between the array of the current symbol's closing prices (a1) and the array of closing prices for each of the other securities (a2 to a9). The results are stored in variables a1a2 to a1a9.
* Plotting Covariance: Finally, the script plots each of the calculated covariance values on the chart:
* For DJI, the covariance is plotted with the title "DJI". The color of the plot is aqua if the current covariance is greater than the covariance 10 bars ago, and red otherwise. This plot is displayed only in the data window.
* For SPX, the covariance is plotted with the title "SPX". The color is black if the current covariance is greater than the covariance 10 bars ago, and red otherwise. This plot is also displayed only in the data window.
* For AAPL, GOOG, GOOGL, AMZN, META, and MSFT, the covariance is plotted with their respective ticker symbols as titles. The color of each plot changes between a specific color (blue, fuchsia, lime, gray, maroon, navy respectively) and red, depending on whether the current covariance is higher than it was 10 bars prior.
In essence, this script visualizes how the current symbol's price movement correlates with the price movements of these major indices and stocks over the defined historical period. The color change on the plots indicates whether the covariance has increased compared to 10 bars ago, potentially suggesting a strengthening or weakening of the correlation. The display setting for DJI and SPX means their covariance values will only be visible in the data window panel at the bottom of the TradingView chart, not as lines directly overlaid on the price action.
© jeremyandnancy8
Nebula Volatility and Compression Radar (TechnoBlooms)This dynamic indicator spots volatility compression and expansion zones, highlighting breakout opportunities with precision. Featuring vibrant Bollinger Bands, trend-colored candles and real-time signals, Nebula Volatility and Compression Radar (NVCR) is your radar for navigating price moves.
Key Features:-
1. Gradient Bollinger Bands - Visually stunning bands with gradient fills for clear price boundaries.
The gradient filling is coded simply so that even beginners can easily understand the concept. Trader can change the gradient color according to their preference.
fill(pupBB, pbaseBB,upBB,baseBB,top_color=color.rgb(238, 236, 94), bottom_color=color.new(chart.bg_color,100),title = "fill color", display =display.all,fillgaps = true,editable = false)
fill(pbaseBB, plowBB,baseBB,lowBB,top_color=color.new(chart.bg_color,100),bottom_color=color.rgb(230, 20, 30),title = "fill color", display =display.all,fillgaps = true,editable = false)
These two lines are used for giving gradient shades. You can change the colors as per your wish to give preferred color combination.
For Example:
Another Example:
2. Customizable Settings - Adjust Bollinger Bands, ATR and trend lengths to fit your trading styles.
3. Trend Insights - Candles turn green for uptrends, red for downtrends, and gray for neutral zones.
Nebula Volatility and Compression Radar create dynamic cloud like zones that illuminate trends with clarity.
Geometric Momentum Breakout with Monte CarloOverview
This experimental indicator uses geometric trendline analysis combined with momentum and Monte Carlo simulation techniques to help visualize potential breakout areas. It calculates support, resistance, and an aggregated trendline using a custom Geo library (by kaigouthro). The indicator also tracks breakout signals in a way that a new buy signal is triggered only after a sell signal (and vice versa), ensuring no repeated signals in the same direction.
Important:
This script is provided for educational purposes only. It is experimental and should not be used for live trading without proper testing and validation.
Key Features
Trendline Calculation:
Uses the Geo library to compute support and resistance trendlines based on historical high and low prices. The midpoint of these trendlines forms an aggregated trendline.
Momentum Analysis:
Computes the Rate of Change (ROC) to determine momentum. Breakout conditions are met only if the price and momentum exceed a user-defined threshold.
Monte Carlo Simulation:
Simulates future price movements to estimate the probability of bullish or bearish breakouts over a specified horizon.
Signal Tracking:
A persistent variable ensures that once a buy (or sell) signal is triggered, it won’t repeat until the opposite signal occurs.
Geometric Enhancements:
Calculates an aggregated trend angle and channel width (distance between support and resistance), and draws a perpendicular “breakout zone” line.
Table Display:
A built-in table displays key metrics including:
Bullish probability
Bearish probability
Aggregated trend angle (in degrees)
Channel width
Alerts:
Configurable alerts notify when a new buy or sell breakout signal occurs.
Inputs
Resistance Lookback & Support Lookback:
Number of bars to look back for determining resistance and support points.
Momentum Length & Threshold:
Period for ROC calculation and the minimum percentage change required for a breakout confirmation.
Monte Carlo Simulation Parameters:
Simulation Horizon: Number of future bars to simulate.
Simulation Iterations: Number of simulation runs.
Table Position & Text Size:
Customize where the table is displayed on the chart and the size of the text.
How to Use
Add the Script to Your Chart:
Copy the code into the Pine Script editor on TradingView and add it to your chart.
Adjust Settings:
Customize the inputs (e.g., lookback periods, momentum threshold, simulation parameters) to fit your analysis or educational requirements.
Interpret Signals:
A buy signal is plotted as a green triangle below the bar when conditions are met and the state transitions from neutral or sell.
A sell signal is plotted as a red triangle above the bar when conditions are met and the state transitions from neutral or buy.
Alerts are triggered only on the bar where a new signal is generated.
Examine the Table:
The table displays key metrics (breakout probabilities, aggregated trend angle, and channel width) to help evaluate current market conditions.
Disclaimer
This indicator is experimental and provided for educational purposes only. It is not intended as a trading signal or financial advice. Use this script at your own risk, and always perform your own research and testing before using any experimental tools in live trading.
Credit
This indicator uses the Geo library by kaigouthro. Special thanks to Cryptonerds and @Hazzantazzan for their contributions and insights.
ATR Price FrameATR Price Frame
ATR Price Frame is a versatile and customizable TradingView indicator that uses the Average True Range (ATR) to define a dynamic price frame for effective risk management and position sizing.
Risk Management:
This indicator automatically calculates the number of units (shares or contracts) you can trade based on a user-defined maximum risk. By comparing the current price to ATR-based levels, it determines the risk per unit—applying a tailored formula for stocks and futures—so you can maintain proper risk control on every trade.
Informative Labeling:
An optional label is displayed at the far right of your chart, providing clear, concise information about your calculated unit count and, if enabled, the total risk in dollars (formatted like “3 : $45.00”). With configurable text size and horizontal offset, the label is designed to integrate seamlessly into your chart setup.
Unified Line Appearance:
The indicator draws two horizontal lines—one above and one below the current price—to create the price frame. These lines use a unified appearance with settings for length, width, style, and an optional horizontal offset, ensuring a clean and consistent visual representation of market volatility.
ATR Price Frame automatically determines whether the instrument is a stock or a futures contract, applying the appropriate risk calculations. This makes it an essential tool for traders looking to integrate volatility-based risk management into their strategies.
Real Price DotsReal Price Dots
This indicator is designed for use on Heikin Ashi charts.
Its purpose is to enable traders to benefit from price averaging and smoothing effects of Heikin Ashi candles whilst also enabling them to see the current real price close dots on the Heikin Ashi candlesticks.
These dots show where price stopped at when candle closed.
Elliptic Curve SAROverview
The Elliptic Curve SAR indicator is an innovative twist on the traditional Parabolic SAR. Instead of relying solely on a fixed parabolic acceleration, this indicator incorporates elements from elliptic curve mathematics. It uses an elliptic curve defined by the equation y² = x³ + ax + b* along with a configurable base point, dynamically adjusting its acceleration factor to potentially offer different smoothing and timing in trend detection.
How It Works
Elliptic Curve Parameters:
The indicator accepts curve parameters a and b that define the elliptic curve.
A base point (x_p, y_p) on the curve is used as a starting condition.
Dynamic Acceleration:
Instead of a fixed acceleration step, the script computes a dynamic acceleration based on the current value of an intermediate variable (derived via the elliptic curve's properties).
An arctan function is used to non-linearly adjust the acceleration between a defined initial and maximum bound.
Trend & Reversal Detection:
The indicator tracks the current trend (up or down) using the computed SAR value.
It identifies trend reversals by comparing the current price with the SAR, and when a reversal is detected, it resets key parameters such as the Extreme Point (EP).
Visual Enhancements:
SAR Plot: Plotted as circles that change color based on trend direction (blue for uptrends, red for downtrends).
Extreme Point (EP): An orange line is drawn to show the highest high in an uptrend or the lowest low in a downtrend.
Reversal Markers: Green triangles for upward reversals and red triangles for downward reversals are displayed.
Background Color: A subtle background tint (light green or light red) reflects the prevailing trend.
How to Use the Indicator
Input Configuration:
Curve Parameters:
Adjust a and b to define the specific elliptic curve you wish to apply.
Base Point Settings:
Configure the base point (x_p, y_p) to set the starting conditions for the elliptic curve calculations.
Acceleration Settings:
Set the Initial Acceleration and Max Acceleration to tune the sensitivity of the indicator.
Chart Application:
Overlay the indicator on your price chart. The SAR values, Extreme Points, and reversal markers will be plotted directly on the price data.
Use the dynamic background color to quickly assess the current trend.
Customization:
You can further adjust colors, line widths, and shape sizes in the code to better suit your visual preferences.
Differences from the Traditional SAR
Calculation Methodology:
Traditional SAR relies on a parabolic curve with a fixed acceleration factor, which increases linearly as the trend continues.
Elliptic Curve SAR uses a mathematically-derived approach from elliptic curve theory, which dynamically adjusts the acceleration factor based on the curve’s properties.
Sensitivity and Signal Timing:
The use of the arctan function and elliptic curve addition provides a non-linear response to price movements. This may result in a different sensitivity to market conditions and potentially smoother or more adaptive signal generation.
Visual Enhancements:
The enhanced version includes trend-dependent colors, explicit reversal markers, and an Extreme Point plot that are not present in the traditional version.
The background color change further aids in visual trend recognition.
Conclusion
The Elliptic Curve SAR indicator offers an alternative approach to trend detection by integrating elliptic curve mathematics into its calculation. This results in a dynamic acceleration factor and enriched visual cues, providing traders with an innovative tool for market analysis. By fine-tuning the input parameters, users can adapt the indicator to better fit their specific trading style and market conditions.
TRP Stop-Loss and Position SizingScript is based on TRP to see both Long Stop Loss and Short Stop Loss, You can Also adjust the position size based on your capital and percentage risk.