Fair Value Gap (FVG) Detector Fair Value Gap (FVG) is an imbalance in price action that occurs when there is a strong displacement (big movement) in the market, leaving a gap between wicks. This gap represents an area where price moved too quickly, and liquidity was not fully filled.
Traders use FVGs as potential areas where price might retrace and react before continuing in the original direction.
Educational
Pixel Art CloudPixel Art Cloud ☁️ (Super Mario Bros. 2 NES Style)
This Pine Script (v6) script generates a Pixel Art Cloud, inspired by the classic clouds from Super Mario Bros. 2 (NES).
📌 Features:
Displays a pixelated cloud in 8-bit retro style.
Overlays the chart at user-defined intervals.
Uses a color combination to simulate the classic cloud:
⚫ Black for the outline (classic pixelated border).
🔵 Light blue (#3CBCFC) for internal details, matching the clouds in the game.
Automatic repetition on the chart based on the separation parameter.
Does not affect market data, purely a visual decorative element.
🎨 Main Use:
This script is perfect for adding a nostalgic and creative touch to TradingView charts, bringing back the Super Mario Bros. 2 (NES) vibe.
🔧 Optional:
You can modify the cloud's appearance frequency by adjusting the separation parameter.
💡 Note:
This script is not a technical indicator and does not influence market analysis.
🚀 Add a retro touch to your charts with this pixelated cloud! ☁️🎮
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! 🎮🐔🔥
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! 🚀
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.
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:
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.
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.
DynamicHeikin-Ashi-RKDynamic Heikin-Ashi RK is an advanced Heikin-Ashi candle indicator with a unique ATR-based offset mechanism. This script refines traditional Heikin-Ashi calculations while dynamically shifting the candles using ATR multipliers, helping traders visualize market trends with greater clarity.
🔹 Features:
✔ Customizable Heikin-Ashi colors
✔ ATR-based dynamic candle offset
✔ Enhanced trend visualization
This tool is ideal for traders looking for a smoother trend representation while incorporating volatility-based adjustments. 🚀
Customizations Available in Dynamic Heikin-Ashi RK
This indicator allows several customizations to suit different trading styles:
🔹 Heikin-Ashi Candle Display: Toggle the visibility of Heikin-Ashi candles.
🔹 Custom Colors: Choose custom colors for bullish and bearish Heikin-Ashi candles.
🔹 ATR-Based Dynamic Offset: Adjust the ATR multiplier to control the offset of Heikin-Ashi candles, helping fine-tune trend visualization.
🔹 Refined Heikin-Ashi Calculation: Uses a smoother formula for Heikin-Ashi candles, enhancing clarity.
With these options, traders can personalize the indicator for better trend detection and volatility analysis. 🚀
Point and Figure Target ForecastPoint and Figure Target Forecast
This Pine Script provides a simple Point and Figure (P&F) chart target forecasting tool, designed to help traders estimate potential price targets based on the Point and Figure charting methodology.
The script calculates target levels using a user-defined box size and reversal factor, which are essential components of the Point and Figure technique. The targets are displayed as green (upward) and red (downward) lines on the chart, with labels marking the calculated target levels.
Key Features:
Box Size and Reversal Control: Allows users to set the size of each box and the number of boxes required for a reversal.
Target Forecasting: Calculates and plots potential upward and downward targets based on the selected parameters.
Visual Labels: Displays target levels with clear labels for easy visualization.
This tool provides a simplified approach to forecasting price targets using the Point and Figure charting method, ideal for traders looking to anticipate potential price movements and structure their trades accordingly.
Volume Buy/Sell ChartVolume Buy/Sell Chart
This script visualizes the distribution of buying and selling volume within each candlestick, helping traders identify dominant market pressure at a glance. It separates volume into Buy Volume (Green) and Sell Volume (Red) using a unique calculation based on price movement within a candle.
Features:
✅ Customizable Bar Display: Choose to display 5, 10, or 100 bars using a simple dropdown selection.
✅ Buy & Sell Volume Calculation: The script determines buying and selling volume dynamically based on price action within the candle.
✅ Custom Volume Threshold for Alerts: Set a percentage threshold (0–100) to trigger alerts when buy or sell volume exceeds a predefined level.
✅ Color-Coded Histogram:
Green Bars: Represent the estimated buy volume.
Red Bars: Represent the estimated sell volume.
✅ Alerts Integration: Automatically detect strong buy or sell signals when the respective volume percentage exceeds your set threshold.
How It Works:
The script calculates total price movement within a candle.
It then estimates buying and selling volume ratios based on whether the price closes higher or lower than it opened.
Finally, it normalizes the buy/sell volume against the total volume and plots it as a column chart.
Usage Guide:
Add the script to your chart.
Select how many bars to display (5, 10, or 100).
Adjust the Custom Volume Percentage Threshold (default: 75%).
Watch for significant buy/sell volume imbalances that might indicate market turning points!
This tool is great for traders looking to analyze volume flow and market sentiment with a simple yet effective visualization. 🚀
EZ_Algo Copyright label
This script overlays a fully adjustable watermark on your chart, featuring:
A bold Main Title (e.g., your brand or name) and Subtitle (e.g., a tagline or ID).
Optional extras like a copyright notice, logo symbol, warning message, and chart info (symbol, timeframe, timestamp, or close price).
A subtle repeating overlay pattern to deter theft.
Flexible positioning, sizing, and color options to match your vib
e
It’s built for traders who want to protect their charts and make them stand out, all in a few clicks.
How to Use It
Add to Chart: Click "Add to Chart" and watch the default watermark appear (e.g., "EZ ALGO" at the top).
Customize It:
Main Title: Set your brand (e.g., "EZ ALGO") under "Main Title". Tweak color, size, and alignment.
Subtitle: Add a tagline (e.g., "Algo Trading") and trader ID (e.g., "@EZ_Algo
") with matching style options.
Text Opacity: Adjust "Text Opacity" in "Appearance" to control title and subtitle transparency (0 = solid, 100 = invisible).
Chart Info: Toggle "Show Chart Info" to display symbol and timestamp, or add "Show Close Price" for extra data.
Extras: Enable "Show Copyright" for a © notice, "Show Logo" for a symbol (e.g., ★), or "Show Warning" to shout "DO NOT COPY".
Overlay Pattern: Turn on "Show Overlay Pattern" to repeat a phrase (e.g., "EZ Algo") across the chart.
Positioning: Pick vertical/horizontal spots (top, middle, bottom; left, center, right) or try "Randomize Main Position" for a surprise placement.
Appearance: Set a "Background Color" and "Background Opacity" for the watermark’s backdrop.
Cell Size: Adjust "Cell Width (%)" and "Cell Height (%)" to resize the watermark (0 = auto-fit).
Apply & Share: Hit "OK" to save settings, then screenshot or share your branded chart with confidence!
Tips
Use a semi-transparent background (e.g., 50 opacity) to keep the chart readable.
Experiment with "Randomize Main Position" for a dynamic look.
Pair a bold logo with a faint overlay pattern for max branding power.
Credits
Inspired by @KristaKT
thanks for the great ideas!
Enjoy marking your charts with flair and protection! Questions? Drop a comment below.