Personal Time Zone: Days of WeekThis is probably the simplest indicator I have ever made.
It just gives you a the days of weeks in your specified time zone and puts the day on the first bar in your time zone.
You can use UTC time format or named time zones like the default.
Just for fun I tried to give it symbols that sort of relate the old gods that the days of week were named after and even colors that one could argue match, but it was all in fun because it was so simple I felt I had to add something.
Enjoy.
Indicators and strategies
RSI with Trend LinesThe RSI with Trend Lines indicator is a tool designed to analyze the behavior of the Relative Strength Index (RSI) combined with dynamic trend lines. This indicator not only provides the standard RSI reading but also identifies pivot points on the RSI and draws bullish and bearish trend lines based on these points. It also includes customizable options for adjusting trend lines, displaying the RSI moving average, and highlighting key levels such as overbought, oversold, and the center line.
This indicator is ideal for finding and identifying clear trends in the RSI and taking advantage of market breakout or consolidation signals. It also includes a table with the POC value, which represents the price level at which the most trading activity has occurred, indicating the highest liquidity and highest trading volume.
Key Features:
1. Basic RSI:
• Calculates the RSI using a configurable period length (default 14).
• Colors the RSI based on its direction (green for rising, red for falling) and its position relative to the center line (50).
2. Key Levels:
• Displays overbought (70 and 80), oversold (20 and 30), and the center line (50) levels for easy visual interpretation.
3. RSI Moving Average:
• Enables and configures an RSI moving average (SMA, EMA, WMA, or ALMA) to smooth out fluctuations and detect clearer trends.
4. Dynamic Trend Lines:
• Identifies pivot points on the RSI and draws bullish and bearish trend lines.
• Trend lines can be extended into the future or limited to the visible range.
• Includes options to display broken lines (trends that are no longer valid) and customize the style (solid or dashed).
5. Pivot Points:
• Displays the high and low pivot points on the chart for a better understanding of trend changes.
6. Advanced Customization:
• Adjust the pivot point period.
• Control the number of pivot points to consider for trend lines.
• Customize the line thickness and style.
How to Use the Indicator:
1. RSI Interpretation:
• Overbought Zone (RSI > 70): Indicates that the asset may be overvalued and could correct downward.
• Oversold Zone (RSI < 30): Suggests that the asset may be undervalued and could rebound.
• Centerline Crossover (50): A cross above 50 indicates bullish strength, while a cross below suggests weakness.
2. Trend Lines:
• Bullish Lines: Drawn when the RSI forms ascending low pivot points. These lines represent dynamic support.
• Bearish Lines: These are drawn when the RSI forms descending high pivot points. These lines represent dynamic resistance.
• Broken Lines: When a trend line becomes invalid (the RSI breaks the line), they are displayed in a dotted style to highlight the breakout.
3. Possible Trading Signals:
• Buy: When the RSI breaks an upward downtrend line.
• Sell: When the RSI breaks a downward uptrend line.
• Trend Confirmation: When the RSI stays within a valid trend line, it suggests that the current trend is strong.
4. A chart with the POC value:
• The point of control is a price level at which the highest trading volume occurs in a given time period. It is a key component of the Volume Profile indicator, which displays volume by price.
• Use of the POC in trading:
• The POC is used to identify areas of high interest and liquidity for trading.
• The POC provides information about the equilibrium point where buyers and sellers are most evenly matched.
• Therefore, it can be considered a zone of interest, meaning it can act as support or resistance.
Recency-Weighted Market Memory w/ Quantile-Based DriftRecency-Weighted Market Memory w/ Quantile-Based Drift
This indicator combines market memory, recency-weighted drift, quantile-based volatility analysis, momentum (RoC) filtering, and historical correlation checks to generate dynamic forecasts of possible future price levels. It calculates bullish and bearish forecast lines at each horizon, reflecting how the price might behave based on historical similarities.
Trading Concepts & Mathematical Foundations Explained
1) Market Memory
Concept:
Markets tend to repeat past behaviors under similar conditions. By identifying historical market states that closely match current conditions, we predict future price movements based on what happened historically.
Calculation Steps:
We select a historical lookback window (for example, 210 bars).
Each historical bar within this window is evaluated to see if its conditions match the current market. Conditions include:
Correlation between price change and bullish/bearish volume changes (over a user-defined correlation lookback period).
Momentum (Rate of Change, RoC) measured over a separate lookback period.
Only bars closely matching current conditions (within user-defined tolerance percentages) are included.
2) Recency-Weighted Drift
Concept:
Recent market movements often influence future direction. We assign more importance to recent bars to capture the current market bias effectively.
Calculation Steps:
Consider recent price changes between opens and closes for a user-defined drift lookback (for example, last 20 bars).
Give higher weight to recent bars (the most recent bar gets the highest weight, and weights decrease progressively for older bars).
Average these weighted changes separately for upward and downward movements, then combine these averages to calculate a final drift percentage relative to the current price.
3) Correlation Filtering
Concept:
Price changes often correlate strongly with bullish or bearish volume activity. By using historical correlation comparisons, we focus only on past market states with similar volume-price dynamics.
Calculation Steps:
Compute current correlations between price changes and bullish/bearish volume over the user-defined correlation lookback.
Evaluate each historical bar to see if its correlation closely matches the current correlation (within a user-specified percentage tolerance).
Only historical bars meeting this correlation criterion are selected.
4) Momentum (RoC) Filtering
Concept:
Two market periods may exhibit similar correlation structures but differ in how fast prices move (momentum). To ensure true similarity, momentum is checked as an additional filter.
Calculation Steps:
Compute the current Rate of Change (RoC) over the specified RoC lookback.
For each candidate historical bar, calculate its historical RoC.
Only include historical bars whose RoC closely matches the current RoC (within the RoC percentage tolerance).
5) Quantile-Based Volatility and Drift Amplification
Concept:
Quantiles (such as the 95th, 50th, and 5th percentiles) help gauge if current prices are near historical extremes or the median. Quantile bands measure volatility expansions and contractions.
Calculation Steps:
Calculate the 95%, 50%, and 5% quantiles of price over the quantile lookback period.
Add and subtract multiples of the standard deviation to these quantiles, creating upper and lower bands.
Measure the bands' widths relative to the current price as volatility indicators.
Determine the active quantile (95%, 50%, or 5%) based on proximity to the current price (within a percentage tolerance).
Compute the rate of change (RoC) of the active quantile to detect directional bias.
Combine volatility and quantile RoC into a scaling factor that amplifies or dampens expected price moves.
6) Expected Value (EV) Computation & Forecast Lines
Concept:
We forecast future prices based on how similarly-conditioned historical periods performed. We average historical moves to estimate the expected future price.
Calculation Steps:
For each forecast horizon (e.g., 1 to 27 bars ahead), collect all historical price moves that passed correlation and RoC filters.
Calculate average historical moves for bullish and bearish cases separately.
Adjust these averages by applying recency-weighted drift and quantile-based scaling.
Translate adjusted percentages into absolute future price forecasts.
Draw bullish and bearish forecast lines accordingly.
Indicator Inputs & Their Roles
Correlation Tolerance (%)
Adjusts how strictly the indicator matches historical correlation. Higher tolerance includes more matches, lower tolerance selects fewer but closer matches.
Price RoC Lookback and Price RoC Tolerance (%)
Controls how momentum (speed of price moves) is matched historically. Increasing tolerance broadens historical matches.
Drift Lookback (bars)
Determines the number of recent bars influencing current drift estimation.
Quantile Lookback Period and Std Dev Multipliers
Defines quantile calculation and the size of the volatility bands.
Quantile Contact Tolerance (%)
Sets how close the current price must be to a quantile for it to be considered "active."
Forecast Horizons
Specifies how many future bars to forecast.
Continuous Forecast Lines
Toggles between drawing continuous lines or separate horizontal segments for each forecast horizon.
Practical Trading Applications
Bullish & Bearish EV Lines
These forecast lines indicate expected price levels based on historical similarity. Green indicates positive expectations; red indicates negative.
Momentum vs. Mean Reversion
Wide quantile bands and high drift suggest momentum, while extremes may signal possible reversals.
Volatility Sensitivity
Forecasts adapt dynamically to market volatility. Broader bands increase forecasted price movements.
Filtering Non-Relevant Historical Data
By using both correlation and RoC filtering, irrelevant past periods are excluded, enhancing forecast reliability.
Multi-Timeframe Suitability
Adaptable parameters make this indicator suitable for different trading styles and timeframes.
Complementary Tool
This indicator provides probabilistic projections rather than direct buy or sell signals. Combine it with other trading signals and analyses for optimal results.
Important Considerations
While historically-informed forecasts are valuable, market behavior can evolve unpredictably. Always manage risks and use supplementary analysis.
Experiment extensively with input settings for your specific market and timeframe to optimize forecasting performance.
Summary
The Recency-Weighted Market Memory w/ Quantile-Based Drift indicator uniquely merges multiple sophisticated concepts, delivering dynamic, historically-informed price forecasts. By combining historical similarity, adaptive drift, momentum filtering, and quantile-driven volatility scaling, traders gain an insightful perspective on future price possibilities.
Feel free to experiment, explore, and enjoy this powerful addition to your trading toolkit!
Cumulative Weighted Change (Session) with 14 MAThis indicator provides the session weighted cumulative change of the Magnificent 7(AAPL META GOOG AMZN MSFT NVDA TSLA), it is weighted according to their market capitalization and size in relation to size of the market. The bar to bar current change is plotted by the fast line that begins its calculations at the start of each daily session, the smoother(slower) line is the 14 period Volume Weighted Moving Average of the cumulative change.
I use this in conjunction with a timeframe continuity indicator in order to weed out invalid signals, I have one that I have recently published. I use this to trade futures and index stock options, since the 7 tickers that this indicator is built off of are the biggest force that moves markets this ends up acting as an alpha indicator if you can find a consistent and reliable way to weed out false signals.
Happy Trading!
-Drgzzz
Rolling HH with Future ProjectionHighest High line of last X bars
Plus a deferred line which shifts the first one by factor Y
Smart MA CrossoverThe Smart MA Crossover indicator is a trend-following tool designed to help traders identify high-probability buy and sell signals based on a dynamic moving average and volume confirmation.
This indicator allows traders to customize the moving average type (SMA, EMA, HMA, WMA, VWMA, SMMA, or VWAP) while incorporating an ATR-based filter for better signal clarity.
How It Works
The script analyzes price movements in relation to a selected moving average and volume conditions to generate trend-based trade signals:
🟢 Buy Signal:
- Price is trading above the moving average for at least two bars.
- A sudden upward momentum is detected (price > open * 1.005).
- Volume is higher than the 50-period SMA of volume.
- The price was trading below the moving average three bars ago.
🔴 Sell Signal:
- Price is trading below the moving average for at least two bars.
- A sudden downward movement is detected (price < open * 0.995).
- Volume is higher than the 50-period SMA of volume.
- The price was trading above the moving average three bars ago.
- When these conditions are met, a label appears on the chart, marking the potential trade signal.
Key Features
- Customizable Moving Averages – Choose between SMA, EMA, HMA, WMA, VWMA, SMMA, or VWAP.
- Dynamic Trend Detection – Moving average color changes based on trend direction.
- Volume Confirmation – Avoid false signals by filtering trades using SMA-based volume analysis.
- ATR-Based Signal Placement – Labels are positioned dynamically based on ATR values to improve visibility.
- Background Trend Highlighting – The background changes color depending on whether price is above (green) or below (red) the moving average.
- Alerts for Buy & Sell Signals – Get real-time notifications when a trade signal is generated.
How to Use
- This indicator is best suited for trend-following strategies and works across different markets, including stocks, forex, and crypto.
- It can be used on multiple timeframes, but traders should combine it with additional analysis to refine trade decisions.
- ATR-based signal placement ensures that buy/sell labels do not clutter the chart.
Important Notes
- This indicator does not predict future price movements—it is a trend-based tool meant to assist with trade decisions.
- No financial advice – Always use risk management when trading.
- TradingView users who do not read Pine Script can still fully utilize this script thanks to clear labels and alerts.
RSI & MACD Exit IndicatorThis indicator is designed to assist traders in identifying potential exit points for long and short trades by combining the Relative Strength Index (RSI) and Moving Average Convergence Divergence (MACD).
Unlike traditional indicators that provide entry signals, this script is specifically optimized for exit strategies, helping traders manage their positions efficiently.
How It Works
The script identifies potential exit points based on the following conditions:
🔴 Exit Long:
- RSI crosses above the user-defined overbought threshold (default: 65).
- MACD crosses below the signal line (bearish crossover).
🟢 Exit Short:
- RSI crosses below the user-defined oversold threshold (default: 35).
- MACD crosses above the signal line (bullish crossover).
When these conditions align, a label appears on the price chart indicating an exit point.
Key Features
- Customizable RSI & MACD Settings – Adjust lengths and thresholds to suit your strategy.
- ATR-Based Adjustments – The script incorporates an ATR multiplier for dynamic signal adjustments based on market volatility.
- Clear Visual Labels – Exit points are clearly marked on price candles.
- Color-Coded Background – Highlights buy/sell zones for quick identification.
- Alerts for Exit Signals – Receive notifications when exit conditions are met.
- Clean Chart Design – The MACD plots are placed below the main chart to avoid clutter.
How to Use
⚠ This indicator is for exits only and does not generate buy/sell entry signals.
For long trades: When an Exit Long signal appears, traders may consider closing or reducing their long positions.
For short trades: When an Exit Short signal appears, traders may consider closing or reducing their short positions.
ATR Settings: Users can adjust the ATR multiplier to fine-tune the signal frequency based on market conditions.
Important Notes
- This indicator does not guarantee future performance—it should be used alongside other analysis methods.
- No financial advice – Always use proper risk management.
- TradingView users who do not read Pine Script can still fully utilize this script thanks to the detailed signal labels and alerts.
💡 Developed with advice from @CoffeeshopCrypto based on user feedback.
TradingView Financial Data ViewerTrading view provides request.security function to view the financial information of a script. The available sets of data is documented on below link
www.tradingview.com
The problem is there is no easy way to view this data as there are limitations to the # of unique requests that can be made. The limit is 40 for general paid accounts. So its makes it impossible to view the data in case you are looking to build a plugin related to some financial analysis.
So I came up with this trading view plugin which based on the documentation bifurcates the values available in the FQ, TTM and FY periods. Then you can select which period you would like to see. How many values you want to see at a time. And then next set of data can be viewed by increasing the Set # from 1 to which ever number keeps giving you the data.
Notes:
This is a data view only indicator and it will only display the latest data available for which quarter was there.
In case you want to view past data then you should go to replay mode and cut to the relative earning tags where you want to view the data
This is again for educational or study purpose only and is majorly helpful for those who want to create indicators based on Trading view supported financials and want to view what values are given for specific financial ids
The documentation reference and source of the plugin can be checked
Pattern Finder & ForecastThis script is a pattern-finding and forecasting tool that analyzes historical price data based on EMA (Exponential Moving Averages) and RSI (Relative Strength Index). It identifies past occurrences where the last 30 bars of data resemble the most recent 30 bars and predicts the future price movement based on those past patterns.
High Volatility and Big Price Change ScannerThis Pine Script scans for high volatility and significant price changes on the chart. It uses Average True Range (ATR) to measure volatility and calculates the percentage change in price over a specified lookback period. When both conditions—high volatility (ATR above a threshold) and a significant price change (greater than the set percentage threshold)—are met, a signal is plotted below the bar. Additionally, an alert condition is included for notifications when these conditions are satisfied.
This script is useful for identifying stocks with large price movements and increased volatility, which may indicate potential trading opportunities.
Best MA Pair Finder (Crossover Strategy)This indicator automatically identifies the optimal pair of moving averages (MAs) for a crossover strategy using all available historical data. It offers several MA options—including SMA, EMA, and TEMA—allowing users to select the desired type in the settings. The indicator supports two strategy modes: “Long Only” and “Buy & Sell”, which can be chosen via the options.
For each MA pair combination, the indicator performs a backtest and calculates the profit factor, considering only those pairs where the total number of trades meets or exceeds the user-defined "Minimum Trades" threshold. This parameter ensures that the selected optimal pair is based on a statistically meaningful sample rather than on a limited number of trades.
The results provided by this indicator are based on historical data and backtests, which may not guarantee future performance. Users should conduct their own analysis and use proper risk management before making trading decisions.
Gold Price LevelsThis indicator identifies and displays key price levels for gold trading. It highlights important psychological and technical price points that often act as support and resistance levels.
Features
Automatically identifies and displays key price levels ending in 92, 84, 78, 55, 42, 27, and 00
Special emphasis on critical levels ending in 68, 32, and 10 with increased line width
Color-coded visualization: green for levels above current price, red for levels below
Customizable line style, width, and label visibility
Automatically adjusts to different price ranges (works with any gold price)
How to Use
This indicator helps gold traders identify potential support and resistance zones. Watch for price reactions at these levels for potential trade entries, exits, or stop placement. The thicker lines (68, 32, 10) often represent more significant price levels where stronger reactions may occur.
Perfect for both day traders and swing traders looking to optimize their gold trading strategy with key price levels.
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.
Lemon/Lime Volume Lookback IndicatorThe indicator focuses on analyzing volume patterns.
It calculates a relative volume metric by comparing the current volume to a short-term simple moving average of volume.
The code identifies volume spikes when the relative volume exceeds a user-defined threshold.
These volume spikes are visually represented on the chart as small circles:
Yellow circles appear above bars for bearish volume spikes (when price closed lower)
Green circles appear below bars for bullish volume spikes (when price closed higher)
Users can adjust settings such as the lookback period for volume comparison and the percentage increase that defines a volume spike. This would adjust the readings based on incoming volume. Adjust as needed during different market conditions.
This tool essentially helps traders identify and visualize significant increases in trading volume compared to recent average volume, which could potentially signal important price movements or trend changes.
Volume-Price Divergence RSIUnderstanding the Display
Once added, you'll see a new panel below your price chart with:
Purple Line: This is the RSI (Relative Strength Index)
Red Dashed Line: The overbought threshold (default: 70)
Green Dashed Line: The oversold threshold (default: 30)
Blue Columns: Volume histogram
Dark Blue Line: Volume moving average
Trading Signals
Look for these markers on the indicator panel:
Green Triangle (↑): Buy signal - appears when there's a bullish divergence AND RSI conditions are met (oversold and rising)
Red Triangle (↓): Sell signal - appears when there's a bearish divergence AND RSI conditions are met (overbought and falling)
Lime Diamond (◆): Bullish divergence without RSI confirmation
Orange Diamond (◆): Bearish divergence without RSI confirmation
What These Signals Mean
Buy Signal (Green Triangle):
Price is making lower lows BUT volume is making higher lows
RSI is in oversold territory (below 30) and starting to rise
This suggests potential upward reversal
Sell Signal (Red Triangle):
Price is making higher highs BUT volume is making lower highs
RSI is in overbought territory (above 70) and starting to fall
This suggests potential downward reversal
Customizing the Indicator
To adjust settings:
Right-click on the indicator
Select "Settings"
In the "Inputs" tab, you can modify:
RSI Period (default: 14)
Volume MA Period (default: 20)
Lookback Period for finding pivot points (default: 10)
RSI Overbought level (default: 70)
RSI Oversold level (default: 30)
Setting Alerts
To get notified when a signal appears:
Right-click on the indicator
Select "Add Alert"
Choose the condition you want to be alerted for:
Buy Signal
Sell Signal
Bullish Divergence
Bearish Divergence
Configure notification preferences and save
Trading Strategy
This indicator is best used:
On higher timeframes (4H, Daily) for more reliable signals
As confirmation with other indicators or price action
At market extremes where divergences are more meaningful
With proper risk management (stop losses below recent swing lows for buys, above recent swing highs for sells)
Remember that no indicator is 100% accurate. This tool works by identifying situations where price movement isn't confirmed by volume, suggesting a potential reversal, especially when RSI conditions align.
Valerio Diotallevi
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:
VWAP with ADX Buy/Sell Signals and 50 MA BackgroundThis Pine Script combines several technical indicators to create a comprehensive chart with buy and sell signals based on the ADX and VWAP, as well as background color changes depending on the price relative to the 50-period simple moving average (SMA). Here's a breakdown of what each part of the code does:
1. VWAP Settings
Anchor Period: You can select different periods such as "Session", "Week", "Month", etc. to define the anchor period for the VWAP.
Source: The source for VWAP is set to the typical price (hlc3).
Offset: Allows for shifting the VWAP by a specified amount.
2. ADX Settings
ADX Length: The period used to calculate the ADX.
ADX Smoothing: Used to smooth the ADX for better clarity.
ADX Threshold: Used to filter out weak trends (i.e., signals when ADX > 20).
3. ADX and VWAP Calculation
The ADX values are calculated using ta.dmi(), which returns the +DI, -DI, and ADX lines.
VWAP is calculated using ta.vwap(), based on the selected price source.
4. Buy/Sell Conditions
Buy Signal: A buy signal is generated when:
The +DI crosses above the -DI (indicating an uptrend).
The ADX is above 20 (indicating a strong trend).
The closing price is above the VWAP (indicating bullish market sentiment).
Sell Signal: A sell signal occurs when:
The -DI crosses above the +DI (indicating a downtrend).
The ADX is above 20 (indicating a strong trend).
The closing price is below the VWAP (indicating bearish market sentiment).
5. VWAP Bands
The standard deviation of the price is calculated using ta.stdev(), and the bands are plotted at multiples of the standard deviation (1, 2, and 3).
These bands are used to highlight possible overbought or oversold conditions.
6. 50-period SMA and Background Color
The script calculates a 50-period Simple Moving Average (SMA).
The background color is then changed based on whether the price is above or below the 50-period SMA. If the price is above the SMA, the background is green (bullish), and if it’s below, it’s red (bearish).
7. Plots
The script includes plots for the VWAP line, the ADX and DI lines (optional), and the upper and lower bands.
The buy and sell signals are plotted as shapes with text labels ("BUY" and "SELL") that appear below or above the price bars.
Final Notes:
Band Plots: Three levels of bands (green, olive, teal) are plotted using standard deviation multipliers (1, 2, and 3 times the standard deviation).
Background Color: The background color changes depending on whether the price is above or below the 50 SMA, giving a visual cue for bullish or bearish market conditions.
This indicator aims to offer a multi-faceted view of the market with trend-following signals (via ADX), VWAP for intraday support/resistance, and background coloring to indicate the current trend strength based on the 50 SMA.
DenP Ichimoku Interpreter (DII)A simple indicator using Ishimoku as a basis, giving entry and exit signals.
Components of the Ichimoku Cloud
The Ichimoku system consists of multiple lines that help traders understand market trends, momentum, and potential reversals.
1. Tenkan-Sen (Conversion Line) - Blue
Formula: (Highest High + Lowest Low) / 2 over the last 9 periods (default).
Purpose: Measures short-term trend direction.
Interpretation:
Upward movement: Indicates bullish momentum.
Downward movement: Indicates bearish momentum.
Flat line: Indicates consolidation.
2. Kijun-Sen (Base Line) - Red
Formula: (Highest High + Lowest Low) / 2 over the last 26 periods (default).
Purpose: Represents medium-term trend.
Interpretation:
Price above Kijun-Sen: Bullish signal.
Price below Kijun-Sen: Bearish signal.
Flat Kijun-Sen: Market in consolidation.
3. Senkou Span A (Leading Span A) - Light Green
Formula: (Tenkan-Sen + Kijun-Sen) / 2, plotted 26 periods ahead.
Purpose: Forms one of the Ichimoku Cloud boundaries.
Interpretation:
If Senkou Span A is rising, the market is bullish.
If Senkou Span A is falling, the market is bearish.
4. Senkou Span B (Leading Span B) - Light Red
Formula: (Highest High + Lowest Low) / 2 over the last 52 periods, plotted 26 periods ahead.
Purpose: Forms the second boundary of the Ichimoku Cloud.
Interpretation:
If price is above the cloud, the market is in a strong uptrend.
If price is below the cloud, the market is in a strong downtrend.
If price is inside the cloud, the market is consolidating.
5. Kumo (Cloud)
The area between Senkou Span A and Senkou Span B is shaded.
Green Cloud (Span A above Span B): Bullish trend.
Red Cloud (Span B above Span A): Bearish trend.
The thickness of the cloud represents market volatility.
6. Chikou Span (Lagging Line) - Green
Formula: Current closing price plotted 26 periods back.
Purpose: Confirms trend direction.
Interpretation:
Chikou Span above price 26 periods ago: Bullish.
Chikou Span below price 26 periods ago: Bearish.
Buy and Sell Conditions
The indicator generates buy and sell signals based on Ichimoku components.
1. Kijun Cross (Medium-Term Trend)
Buy Signal: When the closing price crosses above the Kijun-Sen (red line).
Sell Signal: When the closing price crosses below the Kijun-Sen.
2. Cloud Breakout (Senkou Span Cross)
Buy Signal:
When Senkou Span A is above Senkou Span B, and the price crosses above the cloud.
Indicates a strong uptrend.
Sell Signal:
When Senkou Span B is above Senkou Span A, and the price crosses below the cloud.
Indicates a strong downtrend.
3. Chikou Span Confirmation (Momentum Confirmation)
Buy Signal:
If Chikou Span (green) crosses above past price action, it confirms a bullish trend.
Used to validate Kijun and Cloud Buy signals.
Sell Signal:
If Chikou Span crosses below past price action, it confirms a bearish trend.
Visual Signals
The indicator plots triangles on the chart to indicate buy and sell signals:
Kijun Buy Signal: Upward triangle (green).
Kijun Sell Signal: Downward triangle (red).
Cloud Buy Signal: Upward triangle (green) near the cloud.
Cloud Sell Signal: Downward triangle (red) near the cloud.
Chikou Confirmation Buy: Upward triangle (green, confirming previous signals).
Chikou Confirmation Sell: Downward triangle (red, confirming previous signals).
Additional Features
Customizable Colors & Settings: Users can adjust colors, time periods, and display settings.
On-Chart Table: Displays current trend interpretations for easy reference.
How to Use the Indicator?
Check the Cloud Position:
Price above the cloud = bullish.
Price below the cloud = bearish.
Price inside the cloud = consolidation.
Look for Kijun Crosses:
Buy when price crosses above Kijun-Sen.
Sell when price crosses below Kijun-Sen.
Confirm with Chikou Span:
If Chikou Span supports the buy/sell signal, it's more reliable.
Use Cloud Breakouts for Trend Reversals:
If price moves from below to above the cloud = strong buy.
If price moves from above to below the cloud = strong sell.
Volume with Sessions, SMA, and ATR Pine Script creates a custom volume indicator with several features, including:
SMA of Volume: It calculates the simple moving average (SMA) of the volume, which helps identify trends and determine if the current volume is above or below the average.
ATR (Average True Range): It calculates the ATR, which measures market volatility over a defined period.
Bullish/Bearish Volume Coloring: The script colors the volume bars depending on whether the price is moving up (bullish) or down (bearish), and whether the volume is above or below the SMA of volume.
Session Highlighting: It defines two major trading sessions:
NYSE (New York Stock Exchange) session from 9:30 AM to 4:00 PM Eastern Time.
LSE (London Stock Exchange) session from 8:00 AM to 4:30 PM GMT. These sessions are highlighted with background colors for easy identification.
Plotting: The volume is plotted as a histogram with varying colors depending on price movement and volume relative to its SMA. The ATR is also plotted as a purple line, and the SMA of volume is displayed as an orange line.
Background Colors: Background colors are applied during the NYSE and LSE sessions to visually differentiate between these trading periods.
Here's a breakdown of each section:
Key Inputs:
smaLength and atrLength: User-defined values for the lengths of the SMA and ATR calculations.
Main Calculations:
smaVolume: The SMA of the volume over the user-defined length (smaLength).
atrValue: The Average True Range over the user-defined length (atrLength).
Color Logic for Volume Bars:
If the current close is higher than the previous close, the volume is considered bullish, and the bar is colored green. If the volume is above the SMA, it’s a darker green; otherwise, it’s a lighter shade.
If the current close is lower than the previous close, the volume is considered bearish, and the bar is colored red. If the volume is above the SMA, it’s a darker red; otherwise, it’s a lighter red.
Plotting:
The script plots the volume as a histogram with dynamic coloring.
The SMA of the volume is plotted as a line.
ATR is plotted as a purple line for reference.
Background Color Highlighting:
The background is colored green during the NYSE session and blue during the LSE session.
On Balance VolumeThe traditional OBV (On-Balance Volume) indicator line chart has been replaced with a candlestick-based OBV chart, offering a more granular and visually comprehensive approach to volume-price analysis. This transformation allows traders to analyze OBV fluctuations in the form of candlestick patterns, making it easier to identify critical price action signals such as support and resistance levels, breakouts, and breakdowns.
By integrating OBV candlesticks with the price chart, traders can better assess volume accumulation and distribution phases, detect divergences, and confirm trend strength. This enhanced visualization helps in identifying momentum shifts, liquidity imbalances, and institutional activity with greater accuracy. The OBV candlestick chart provides a deeper layer of market structure analysis, allowing price action traders to refine their strategies and improve trade execution based on real-time volume dynamics."
ATR Impact CandlesATR Impact Candles: Simplify Your Trading with Pure Price Action
You don’t need dozens of cluttered indicators to catch what really matters. With ATR Impact Candles, you get a powerful, single-tool solution that cuts through the noise by focusing on what truly drives the market: price action and volatility. This indicator highlights only those candlesticks that pack a punch—showing you when the market’s range is exceptionally strong relative to its recent behavior. Whether you’re a scalper or a swing trader, ATR Impact Candles empowers you to time your entries and exits with confidence, letting you trade based on real market momentum.
⸻
Indicator Overview
The indicator is designed for TradingView and is implemented in Pine Script (version 5). Its primary purpose is to highlight specific candles that meet a defined volatility condition based on the Average True Range (ATR). Instead of modifying every candle’s appearance, the indicator only changes the color of those “signal” candles that exceed a user-defined multiple of the ATR. The rest of the candles remain in their traditional black and white appearance—preserving the classic candlestick chart look.
⸻
Key Features
1. ATR-Based Signal Identification:
• ATR Calculation:
The indicator calculates the ATR using a configurable lookback period (default is 14 periods). The ATR is a common volatility measure that reflects the average range of price movement.
• Threshold Condition:
A candle is flagged as a signal if its range (high minus low) meets or exceeds a specified multiple (the “ATR Factor”) of the ATR. By default, this factor is set to 2, meaning any candle whose range is at least twice the ATR is considered significant.
2. Dynamic Candle Coloring:
• Signal Candles:
• When a candle meets the ATR threshold condition:
• Up Candles: are colored green.
• Down Candles: are colored red.
• Non-Signal Candles:
• Candles that do not meet the threshold condition retain their classic appearance:
• Up candles are white.
• Down candles are black.
3. User Configurability:
• ATR Period:
Traders can adjust the ATR period to tailor the volatility measure to different markets or timeframes.
• ATR Factor:
The multiple of the ATR that defines a signal candle is also configurable, giving flexibility to experiment with different thresholds for what constitutes “significant” price movement.
• Overlay Display:
The indicator runs in overlay mode on the chart, meaning it directly affects the appearance of the candlestick bars without interfering with other chart elements.
4. Additional Visual Aid:
• Threshold Line Plot:
The script optionally plots a line representing the ATR multiplied by the chosen factor. This line serves as a visual benchmark on the chart, allowing traders to see at what level the ATR threshold lies relative to the price action.
⸻
How It Works
1. ATR Calculation:
The indicator first calculates the Average True Range (ATR) for the defined period. This value is updated for each new candle.
2. Range Comparison:
For each candle, the indicator calculates the range (high - low) and compares it to the threshold, which is the ATR multiplied by the user-defined factor.
3. Conditional Coloring:
• If the Candle’s Range ≥ (ATR * Factor):
• The candle is marked as a “signal candle.”
• Its color is set to green if it is an up candle (close is greater than or equal to open) or red if it is a down candle.
• Otherwise:
• The candle retains its classic look, with up candles in white and down candles in black.
4. Chart Display:
By applying these rules to every candle, the indicator visually emphasizes those moments when the market shows unusually large price movements relative to its recent average volatility. This helps traders quickly spot potential breakouts or reversals.
⸻
Practical Applications
• Volatility Breakouts:
Identify candles that may signal the start of a breakout or strong reversal.
• Risk Management:
Adjust stop-loss levels or position sizes when unusually volatile candles are detected.
• Signal Confirmation:
Combine with other technical indicators or chart patterns to reinforce entry or exit decisions.
⸻
ATR Impact Candles is your essential, no-nonsense tool for filtering out market noise and focusing solely on significant price action. Simplify your trading decisions and harness the power of volatility with one clear, effective indicator.
Pipsttocra Technical Patterns: EV HV FVG & OBPipstocrat Technical Patterns , identifies and visualizes key technical analysis patterns and structures on a TradingView chart. Here's a simple breakdown of what it does:
Fair Value Gaps (FVG):
Detects and highlights bullish and bearish Fair Value Gaps as colored boxes.
Adds centerline markers to indicate potential price levels.
Order Blocks (OB):
Identifies bullish and bearish order blocks (areas of significant buying or selling).
Displays them as colored rectangles extending to the right of the chart.
Candlestick Patterns:
Detects Engulfing Patterns (bullish and bearish) with volume confirmation.
Highlights Hammer and Inverted Hammer patterns with customizable shapes and colors.
Customization Options:
Allows users to adjust colors, sizes, and styles for all patterns and structures.
Provides options to show/hide specific patterns like FVGs, engulfing candles, hammers, etc.
Alerts:
Generates alerts for detected patterns, such as FVGs, order blocks, engulfing candles, and confluence zones (combination of FVGs and order blocks).
Management Features:
Automatically removes older or "filled" patterns (optional).
Tracks and updates patterns dynamically as new bars form.
Purpose:
This tool helps traders spot high-probability trading opportunities by identifying key market structures (like FVGs and order blocks) and candlestick patterns. It combines multiple technical analysis concepts into one comprehensive indicator for better decision-making.