On-Chain Analysis [LuxAlgo]The On-Chain Analysis tool offers a comprehensive overview of essential on-chain metrics, enabling traders and investors to grasp the underlying activity and sentiment within the cryptocurrency market. By integrating metrics like wallet profitability, exchange flows, on-chain volume, social sentiment, and more into your charts, users can gain valuable insights into cryptocurrency network behavior, spot emerging trends, and better manage risk in the cryptocurrency market.
🔶 USAGE
🔹 On-Chain Analysis
When analyzing cryptocurrencies, several fundamental metrics are crucial for assessing the value and potential of a digital asset. This indicator is designed to help traders and analysts evaluate the markets by utilizing various data gathered directly from the blockchain. The gathered on-chain data includes wallet profitability, exchange flows, miner flows, on-chain volume, large buyers/sellers, market capitalization, market dominance, active addresses, total value locked (TVL), market value to realized value (MVRV), developer activity, social sentiment, holder behavior, and balance types.
Use wallet profitability and social sentiment metrics to gauge the overall mood of the market, helping to anticipate potential buying or selling pressure.
On-chain volume and active addresses provide insights into how actively a cryptocurrency is being used, indicating network health and adoption levels.
By tracking exchange flows and holder balance types, you can identify significant moves by whales or institutions, which may signal upcoming price shifts.
Market capitalization and miner flows give you an understanding of the supply side of the market, aiding in evaluating whether an asset is overvalued or undervalued.
The distribution of holdings among retail investors, whales, and institutional groups can greatly influence market dynamics. A large concentration of holdings by whales may indicate the potential for significant price swings, given their capacity to execute substantial trades. A higher proportion of institutional investors often suggests confidence in the asset's long-term potential, as these entities typically conduct thorough research before investing. While retail participation indicates broader adoption, it also introduces higher volatility, as these investors tend to be more reactive to market fluctuations.
Understanding the balance and behavior of short-term traders, mid-term cruisers, and long-term hodlers helps traders and analysts predict market trends and assess the underlying confidence in a particular cryptocurrency.
🔶 DETAILS
This script includes some of the most significant and insightful metrics in the crypto space, designed to evaluate and enhance trading decisions by assessing the value and growth potential of cryptocurrencies. The introduced metrics are:
🔹 Wallet Profitability
Definition: Represents the percentage distribution of addresses by profitability at the current price.
Importance: Indicates potential selling pressure or reduced selling pressure based on whether addresses are in profit or loss.
🔹 Exchange Flow
Definition: The total amount of a cryptocurrency moving in and out of exchanges.
Importance: Large inflows to exchanges can indicate potential selling pressure, while large outflows might suggest accumulation or long-term holding.
🔹 Miner Flow
Definition: Tracks the inflow and outflow of funds by miners.
Importance: High inflows could indicate selling pressure, whereas low inflows or outflows might reflect miner confidence.
🔹 On-Chain Volume
Definition: The total value of transactions conducted on a blockchain within a specific period.
Importance: On-chain volume reflects actual usage of the network, indicating how actively a cryptocurrency is being utilized for transactions.
🔹 Large Buyers/Sellers
Definition: Tracks the number of large buyers (bulls) and sellers (bears) based on transaction volume.
Importance: Comparing the number of large buyers (bulls) to large sellers (bears) helps gauge market trends and sentiment.
🔹 Market Capitalization
Definition: The total value of a cryptocurrency's circulating supply, calculated by multiplying the current price by the total supply.
Importance: Market cap is a key indicator of a cryptocurrency’s size and market dominance. It helps compare the relative size of different cryptocurrencies.
🔹 Market Dominance
Definition: Market dominance represents a cryptocurrency’s share of the total market capitalization of all cryptocurrencies. It is calculated by dividing the market cap of the cryptocurrency by the total market cap of the cryptocurrency market.
Importance: Market dominance is a crucial indicator of a cryptocurrency's influence and relative position in the market. It helps assess the strength of a cryptocurrency compared to others and provides insights into its market presence and potential influence.
Special Consideration: Since BTC and ETH dominance is relatively high compared to other cryptocurrencies, specific adjustments are made during the presentation of values and charts. When analyzing BTC, the total market capitalization is used. For ETH analysis, BTC is excluded from the total market cap. For any other cryptocurrency besides BTC and ETH, both BTC and ETH are excluded from the total market cap to provide a more accurate view.
🔹 Active Addresses
Definition: The number of unique addresses involved in transactions within a specific period.
Importance: A higher number of active addresses suggests greater network activity and user adoption, which can be a sign of a healthy ecosystem.
🔹 Total Value Locked (TVL)
Definition: The total value of assets locked in a decentralized finance (DeFi) protocol.
Importance: TVL is a key metric for DeFi platforms, indicating the level of trust and the amount of liquidity in a protocol.
🔹 Market Value to Realized Value (MVRV)
Definition: A ratio comparing the market cap to realized cap.
Importance: A high ratio may indicate overvaluation (potential selling), while a low ratio could signal undervaluation (potential buying).
🔹 Developer Activity
Definition: The level of activity on a cryptocurrency’s public repositories (e.g., GitHub).
Importance: Strong developer activity is a sign of ongoing innovation, updates, and a healthy project.
🔹 Social Sentiment
Definition: The general sentiment or mood of the community and investors as expressed on social media and forums.
Importance: Positive sentiment often correlates with price increases, while negative sentiment can signal potential downtrends.
🔹 Holder Balance (Behavior)
Definition: Distribution of addresses by holding behavior: Traders (short-term), Cruisers (mid-term), and Hodlers (long-term).
Importance: Helps predict market behavior based on different holder types.
🔹 Holder Balance (Type)
Definition: Distribution of cryptocurrency holdings among Retail (small holders), Whales (large holders), and Investors (institutional players).
Importance: Assesses the potential impact of different user groups on the market. A more decentralized distribution is generally viewed as positive, reducing the risk of price manipulation by large holders.
These metrics provide a comprehensive view of a cryptocurrency’s health, adoption, and potential for growth, making them essential for fundamental analysis in the crypto space.
🔶 SETTINGS
The script offers a range of customizable settings to tailor the analysis to your trading needs.
🔹 On-Chain Analysis
On-Chain Data: Choose the specific on-chain metric from the drop-down menu. Options include Wallet Profitability, Exchange Flow, Miner Flow, On-Chain Volume, Large Buyers/Sellers (Volume), Market Capitalization, Market Dominance, Active Addresses, Total Value Locked, Market Value to Realized Value, Developer Activity, Social Sentiment, Holder Balance (Behavior), and Holder Balance (Type).
Smoothing: Set the smoothing level to refine the displayed data. This can help in filtering out noise and getting a clearer view of trends.
Signal Line: Choose a signal line type (SMA, EMA, RMA, or None) and the length of the moving average for signal line calculation.
🔹 On-Chain Dashboard
On-Chain Stats: Toggle the display of the on-chain statistics.
Dashboard Size, Position, and Colors: Customize the size, position, and colors of the on-chain dashboard on the chart.
🔶 LIMITATIONS
Availability of on-chain data may vary and may not be accessible for all crypto assets.
🔶 RELATED SCRIPTS
Market-Sentiment-Technicals
Indicators and strategies
Absolute Strength Index [ASI] (Zeiierman)█ Overview
The Absolute Strength Index (ASI) is a next-generation oscillator designed to measure the strength and direction of price movements by leveraging percentile-based normalization of historical returns. Developed by Zeiierman, this indicator offers a highly visual and intuitive approach to identifying market conditions, trend strength, and divergence opportunities.
By dynamically scaling price returns into a bounded oscillator (-10 to +10), the ASI helps traders spot overbought/oversold conditions, trend reversals, and momentum changes with enhanced precision. It also incorporates advanced features like divergence detection and adaptive signal smoothing for versatile trading applications.
█ How It Works
The ASI's core calculation methodology revolves around analyzing historical price returns, classifying them into top and bottom percentiles, and normalizing the current price movement within this framework. Here's a breakdown of its key components:
⚪ Returns Lookback
The ASI evaluates historical price returns over a user-defined period (Returns Lookback) to measure recent price behavior. This lookback window determines the sensitivity of the oscillator:
Shorter Lookback: Higher responsiveness to recent price movements, suitable for scalping or high-volatility assets.
Longer Lookback: Smoother oscillator behavior is ideal for identifying larger trends and avoiding false signals.
⚪ Percentile-Based Thresholds
The ASI categorizes returns into two groups:
Top Percentile (Winners): The upper X% of returns, representing the strongest upward price moves.
Bottom Percentile (Losers): The lower X% of returns, capturing the sharpest downward movements.
This percentile-based normalization ensures the ASI adapts to market conditions, filtering noise and emphasizing significant price changes.
⚪ Oscillator Normalization
The ASI normalizes current returns relative to the top and bottom thresholds:
Values range from -10 to +10, where:
+10 represents extreme bullish strength (above the top percentile threshold).
-10 indicates extreme bearish weakness (below the bottom percentile threshold).
⚪ Signal Line Smoothing
A signal line is optionally applied to the ASI using a variety of moving averages:
Options: SMA, EMA, WMA, RMA, or HMA.
Effect: Smooths the ASI to filter out noise, with shorter lengths offering higher responsiveness and longer lengths providing stability.
⚪ Divergence Detection
One of ASI's standout features is its ability to detect and highlight bullish and bearish divergences:
Bullish Divergence: The ASI forms higher lows while the price forms lower lows, signaling potential upward reversals.
Bearish Divergence: The ASI forms lower highs while the price forms higher highs, indicating potential downward reversals.
█ Key Differences from RSI
Dynamic Adaptability: ASI adjusts to market conditions through percentile-based scaling, while RSI uses static thresholds.
█ How to Use ASI
⚪ Trend Identification
Bullish Strength: ASI above zero suggests upward momentum, suitable for trend-following trades.
Bearish Weakness: ASI below zero signals downward momentum, ideal for short trades or exits from long positions.
⚪ Overbought/Oversold Levels
Overbought Zone: ASI in the +8 to +10 range indicates potential exhaustion of bullish momentum.
Oversold Zone: ASI in the -8 to -10 range points to potential reversal opportunities.
⚪ Divergence Signals
Look for bullish or bearish divergence labels to anticipate trend reversals before they occur.
⚪ Signal Line Crossovers
A crossover between the ASI and its signal line (e.g., EMA or SMA) can indicate a shift in momentum:
Bullish Crossover: ASI crosses above the signal line, signaling potential upside.
Bearish Crossover: ASI crosses below the signal line, suggesting downside momentum.
█ Settings Explained
⚪ Absolute Strength Index
Returns Lookback: Sets the sensitivity of the oscillator. Shorter periods detect short-term changes, while longer periods focus on broader trends.
Top/Bottom Percentiles: Adjust thresholds for defining winners and losers. Narrower percentiles increase sensitivity to outliers.
Signal Line Type: Choose from SMA, EMA, WMA, RMA, or HMA for smoothing.
Signal Line Length: Fine-tune the responsiveness of the signal line.
⚪ Divergence
Divergence Lookback: Adjusts the period for detecting divergence. Use longer lookbacks to reduce noise.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
[blackcat] L3 Top and Bottom Divine JudgmentOVERVIEW
The "Top and Bottom Divine Judgment" indicator is designed to identify potential tops and bottoms in the market using a combination of EMAs, SMAs, and custom calculations based on high and low prices. It provides multiple lines and plots to help traders visualize different market conditions and potential turning points.
FEATURES
Customizable EMA and SMA periods for various calculations.
Identification of bullish and bearish trends using EMAs.
Detection of overbought and oversold conditions.
Multiple lines and histograms to indicate specific market conditions and potential reversals.
Visual alerts with colored lines and shapes.
HOW TO USE
Add the script to your TradingView chart.
Customize Settings:
Adjust the short_ema_period, long_ema_period, sma_period, high_period, low_period, and other period inputs in the "Inputs" section.
Bullish and Bearish EMAs:
bullish_ema (yellow) and bearish_ema (fuchsia) are plotted to assess the overall market trend.
When bullish_ema is above bearish_ema, it suggests an uptrend.
When bullish_ema is below bearish_ema, it suggests a downtrend.
High-Low Boundary Line:
A horizontal line at 50 (yellow) represents a midpoint in the normalized price range, helping to identify overbought or oversold conditions.
Danger and Caution, Sell Signal, etc.:
These lines indicate specific conditions where the market might be overextended or due for a reversal.
Histograms for CZS1 and CZS4:
These histograms (aqua and purple) represent changes in certain indicators, possibly related to momentum or volatility, helping traders gauge the strength of trends.
Support Line Cross:
A shape ("●") is plotted when the close price crosses above a calculated support line, which could be a buy signal.
Generate Trading Signals:
Bullish and Bearish Trends:
Use the crossover of bullish_ema and bearish_ema to identify potential trend changes.
Overbought/Oversold Conditions:
Use the High-Low Boundary Line to identify overbought or oversold levels.
Specific Market Conditions:
Use the lines for "Danger and Caution," "Sell Signal," "Weak Out Strong Stay," "Opportunity," "Low Suck," and "High Sell" to identify specific market conditions and potential reversals.
Support Line Cross:
Use the plotted shape to identify potential buy signals when the close price crosses above the support line.
Risk Management:
Use the indicator in conjunction with other tools and risk management strategies to confirm trading signals and manage positions effectively.
LIMITATIONS
The script is based on historical data and does not guarantee future performance.
It is recommended to use the script in conjunction with other analysis tools.
The effectiveness of the strategy may vary depending on the market conditions and asset being traded.
NOTES
The script is designed for educational purposes and should not be considered financial advice.
Users are encouraged to backtest the strategy on a demo account before applying it to live trades.
THANKS
Special thanks to the TradingView community for their support and feedback.
Median MACD - MattesThe Median Based MACD is a new-generation indicator created from old statistical Concepts. It combines a Median Calculation with a MACD to create a smoother signal with less noise and increased robustness.
In this case, the original calculation source of the MACD is replaced with a Median which can be calculated over user set X time.
- Why its good:
This "Phoenix" of sorts brings old concepts together to create a strong, new indicator which can frontrun & see trends from miles up front.
- How it can be used:
While this indicator can be used to follow trends, it can also be used to detect where a trend has weakened and is unlikely to continue. Please keep in mind that its unlikely but the chance is never 0.
In my personal opinion, i think that this indicator should NOT be used as a standalone indicator but rather as a compliment to analysis.
Enjoy!
Bollinger Bands color candlesThis Pine Script indicator applies Bollinger Bands to the price chart and visually highlights candles based on their proximity to the upper and lower bands. The script plots colored candles as follows:
Bullish Close Above Upper Band: Candles are colored green when the closing price is above the upper Bollinger Band, indicating strong bullish momentum.
Bearish Close Below Lower Band: Candles are colored red when the closing price is below the lower Bollinger Band, signaling strong bearish momentum.
Neutral Candles: Candles that close within the bands remain their default color.
This visual aid helps traders quickly identify potential breakout or breakdown points based on Bollinger Band dynamics.
Normalized Jurik Moving Average [QuantAlgo]Upgrade your investing and trading strategy with the Normalized Jurik Moving Average (JMA) , a sophisticated oscillator that combines adaptive smoothing with statistical normalization to deliver high-quality signals! Whether you're a swing trader looking for momentum shifts or a medium- to long-term investor focusing on trend validation, this indicator's statistical approach offers valuable analytical advantages that can enhance your trading and investing decisions!
🟢 Core Architecture
The foundation of this indicator lies in its unique dual-layer calculation system. The first layer implements the Jurik Moving Average, known for its superior noise reduction and responsiveness, while the second layer applies statistical normalization (Z-Score) to create standardized readings. This sophisticated approach helps identify significant price movements while filtering out market noise across various timeframes and instruments.
🟢 Technical Foundation
Three key components power this indicator are:
Jurik Moving Average (JMA): An advanced moving average calculation that provides superior smoothing with minimal lag
Statistical Normalization: Z-Score based scaling that creates consistent, comparable readings across different market conditions
Dynamic Zone Detection: Automatically identifies overbought and oversold conditions based on statistical deviations
🟢 Key Features & Signals
The Normalized JMA delivers market insights through:
Color-adaptive oscillator line that reflects momentum strength and direction
Statistically significant overbought/oversold zones for trade validation
Smart gradient fills between signal line and zero level for enhanced visualization
Clear long (L) and short (S) markers for validated momentum shifts
Intelligent bar coloring that highlights the current market state
Customizable alert system for both bullish and bearish setups
🟢 Practical Usage Tips
Here's how to maximize your use of the Normalized JMA:
1/ Setup:
Add the indicator to your favorites, then apply it to your chart ⭐️
Begin with the default smoothing period for balanced analysis
Use the default normalization period for optimal signal generation
Start with standard visualization settings
Customize colors to match your chart preferences
Enable both bar coloring and signal markers for complete visual feedback
2/ Reading Signals:
Watch for L/S markers - they indicate validated momentum shifts
Monitor oscillator line color changes for direction confirmation
Use the built-in alert system to stay informed of potential trend changes
🟢 Pro Tips
Adjust Smoothing Period based on your trading style:
→ Lower values (8-12) for more responsive signals
→ Higher values (20-30) for more stable trend identification
Fine-tune Normalization Period based on market conditions:
→ Shorter periods (20-25) for more dynamic markets
→ Longer periods (40-50) for more stable markets
Optimize your analysis by:
→ Using +2/-2 zones for primary trade signals
→ Using +3/-3 zones for extreme market conditions
→ Combining with volume analysis for trade confirmation
→ Using multiple timeframe analysis for strategic context
Combine with:
→ Volume indicators for trade validation
→ Price action for entry timing
→ Support/resistance levels for profit targets
→ Trend-following indicators for directional bias
Enhanced SMA Strategy with Trend Lines & S&R by DaxThe Enhanced SMA Strategy with Trend Lines & Support/Resistance (S&R) by Dax indicator is a technical analysis tool designed to improve trading decisions by combining the simplicity of the Simple Moving Average (SMA) with the insight provided by trend lines and support/resistance levels. This hybrid approach aims to create a more robust and reliable trading strategy.
Key Components:
Simple Moving Average (SMA):
SMA is a basic trend-following indicator that calculates the average of a set of price data over a specified period. It helps identify the direction of the market, such as whether an asset is in an uptrend or downtrend.
The Enhanced SMA Strategy may use multiple SMAs, such as short-term (e.g., 20-period) and long-term (e.g., 50-period), to detect crossovers that signal buy or sell opportunities. For example, a bullish crossover occurs when a short-term SMA crosses above a long-term SMA, indicating a potential buying signal, while a bearish crossover signals a potential sell.
Trend Lines:
Trend lines are drawn on the price chart to visually identify the direction of the market, acting as dynamic support and resistance levels. A trend line is drawn by connecting two or more price points that demonstrate the overall price movement.
Trend lines can help traders see potential breakout or breakdown points. A price breaking above a downtrend line or below an uptrend line often signals a trend reversal.
Support and Resistance (S&R):
Support levels are price levels where an asset tends to find buying interest and stop falling, while Resistance levels are points where selling pressure emerges and prevent the price from rising further.
These levels are critical in determining where price reversals or consolidations are likely to occur. Enhanced S&R indicators can automatically identify these levels and draw horizontal lines at these critical points on the chart.
Combining S&R with SMA can help traders decide whether a breakout or bounce is likely at these levels, increasing the odds of a successful trade.
How It Works:
Trend Identification: The SMA is used to determine the trend direction. A rising SMA indicates an uptrend, while a falling SMA suggests a downtrend.
Signal Generation: The strategy often uses a combination of SMA crossovers (bullish or bearish) along with the confirmation of price action near trend lines and support/resistance levels. For example:
If a price breaks above resistance and the short-term SMA crosses above the long-term SMA, a buy signal is confirmed.
Conversely, if the price breaks below support and the short-term SMA crosses below the long-term SMA, a sell signal is given.
Dynamic Support/Resistance: Trend lines are drawn automatically or manually to spot areas where price might reverse. The Enhanced SMA Strategy checks if the price is close to these levels, providing a more precise entry/exit point based on the broader market context.
Advantages of the Enhanced SMA Strategy with Trend Lines & S&R:
Improved Accuracy: By combining trend-following (SMA) with key levels like trend lines and S&R, the strategy filters out false signals, leading to more reliable trade setups.
Trend Confirmation: The use of trend lines and S&R confirms the broader market context, reducing the risk of trading against the trend or entering at weak price points.
Flexible: This strategy can be applied to various timeframes, from short-term day trading to longer-term swing trading.
Visual Clarity: The combination of trend lines, S&R, and moving averages provides a clear and visually intuitive strategy for identifying key price levels and trend shifts.
How to Use It:
Draw Trend Lines: Identify the most recent price peaks and troughs to draw trend lines, marking the potential resistance and support levels.
Use SMAs: Apply two different-period SMAs to detect the trend (e.g., 20-period and 50-period). Pay attention to crossovers for buy/sell signals.
Watch for Breakouts or Reversals: Monitor how the price behaves at support or resistance levels and the trend lines. A price move beyond these levels, accompanied by a confirming SMA crossover, can signal a strong trade opportunity.
Conclusion:
The Enhanced SMA Strategy with Trend Lines & S&R by Dax is a powerful, multi-layered approach to technical analysis. It enhances the basic SMA strategy by incorporating additional tools like trend lines and support/resistance levels, which help traders make more informed decisions with higher accuracy. This method is suitable for both novice and experienced traders, offering clear trade signals while reducing the risk of false entries.
Liquidity Swings And SwingsLiquidity Swings & Sweeps Indicator
Purpose:
The Liquidity Swings & Sweeps indicator is designed to identify key liquidity levels in the market, highlighting areas where significant buying or selling interest may exist. These levels can act as potential support or resistance zones, providing traders with valuable insights for making informed trading decisions.
How It Works:
1. Liquidity Levels: The indicator identifies liquidity levels by detecting swing highs and lows on the price chart. These levels represent areas where the price has previously reversed, indicating potential zones of interest for traders.
2. Bullish and Bearish Liquidity:
Bullish Liquidity (Green Lines): These lines represent areas of significant buying interest, often acting as support levels. When the price approaches a bullish liquidity line, it may find support and reverse upwards.
Bearish Liquidity (Red Lines): These lines indicate areas of strong selling interest, often acting as resistance levels. When the price approaches a bearish liquidity line, it may face resistance and reverse downwards.
Liquidity Sweeps: The indicator also identifies liquidity sweeps, where the price breaks through a liquidity level and then reverses. These sweeps can signal potential reversals or continuation patterns, providing traders with entry or exit opportunities.
Grading System: The indicator assigns letter grades (A+, B+, C+, D+) to liquidity sweeps based on their strength and significance. Higher grades indicate stronger sweeps, which may offer more reliable trading signals.
How to Use:
Identify Key Levels: Use the indicator to identify key liquidity levels on the chart. These levels can serve as potential entry or exit points for trades.
Monitor Liquidity Sweeps: Pay attention to liquidity sweeps, as they can indicate potential reversals or continuation patterns. Consider entering trades in the direction of the sweep, especially if it is graded highly.
Combine with Other Indicators: For more robust trading strategies, combine the Liquidity Swings & Sweeps indicator with other technical indicators, such as moving averages or oscillators, to confirm signals.
Set Alerts: Utilize the alert feature to receive notifications when significant liquidity sweeps occur, allowing you to act promptly on trading opportunities.
Practical Applications:
Support and Resistance Trading: Use the identified liquidity levels as support and resistance zones to plan trades.
Reversal Trading: Look for liquidity sweeps as potential reversal signals, entering trades in the opposite direction of the sweep.
Trend Continuation: In trending markets, use liquidity sweeps to identify continuation patterns and enter trades in the direction of the trend.
By understanding and utilizing the Liquidity Swings & Sweeps indicator, traders can gain valuable insights into market dynamics and enhance their trading strategies.
Options Levels Support and Resistance - Free/LimitedThis indicator visualizes key institutional options levels including short-term and longer-term Put/Call Walls, and projected implied move ranges.
Key Features :
Displays major support/resistance levels derived from options data
Shows institutional Put Walls (PW) and Call Walls (CW) - areas of significant options activity
Identifies short-term and longer-term gamma levels for more precise trading
Includes an option statistics (IV, Put/Call ratio, trend) in a clean dashboard
Automatically(*) updates throughout the trading day to reflect current market positioning
Free Version supports 10 tickers: GOOG, AMNZ, PLTR, AAPL, NFLX, NVDA, AMD, META, HOOD and SHOP and is updated once a day at market closing.
Restricted version supporting 425 tickers and is updated several times a day.
Presents gamma flip levels for indexes SPX, RUT, NDX and VIX (restricted version)
You can use Pine Screener to find tickers that bounced off walls among other conditions like LEAPS and covered calls candidates.
Trading Applications:
Identify key price levels where institutional options activity may influence price movement
Gauge market sentiment through IV levels, Put/Call ratios, and options positioning
Plan entries/exits around major Put/Call walls where price reversals are more likely
Monitor changes in institutional positioning through level trends
Levels are calculated externally using comprehensive options data and updated into the indicator. This process is manual due to limitations in the platform but I try to do my best.
The last update time (New York/EST) is shown in the dashboard.
Pivot Market StructureDescription and Features
This script is designed to enhance technical analysis by identifying key market structure levels. It uses a price action trail (based on the last highest/lowest price) and pivot points to track market trends, offering insights into potential reversal zones or trend continuation signals.
How the Script Works
High/Low Trail Logic: The script includes a trail mechanism that compares the current price with the last highest and lowest price, determining whether the price has breached these levels. This helps pinpoint key price action events and potential trend shifts. Unlike pivot points the price action trail is more responsive changes within the market structure.
Step Size and Length for High/Low Trail:
- The Step Length parameter defines how many bars are used to compare the current price against the last highest/lowest price, providing a measure of price extremes.
- The Length parameter determines the number of bars considered for calculating the highest/lowest price since the last price action event (either price surpassing a previous high or dipping below a previous low).
Pivot Point Calculation: Pivot Point Highs are calculated by the number of bars with lower highs on either side of a Pivot Point High calculation. Similarly, Pivot Point Lows are calculated by the number of bars with higher lows on either side of a Pivot Point Low calculation. The script draws a line from/to every calculated pivot point to highlight market structure extremes. It can optionally extend these pivot lines to the left for added context, providing historical reference for decision-making.
Summary
By combining both pivot analysis and price action trailing techniques, the script provides a comprehensive view of a pivot point based market structure.
5Bar SignalA 5 bar counting on the moving average indicator. It will show a sell signal if there are 5 bars closing below the moving average and a buy signal if there are 5 bars closing above the moving average
Dow waveform analyzerDow Waveform Analyzer
1. Overview and Features of the Indicator
This indicator is a tool designed to analyze chart waveforms based on Dow Theory, identifying swing lows (support) and swing highs (resistance). It allows users to quickly and consistently determine trend direction. Compared to manual analysis, it provides more efficient and accurate results.
By using swing lows and swing highs, the indicator offers a more detailed understanding of trends than simple updates to highs and lows, aiding in the creation of effective trading strategies.
2. Identifying Wave Lows and Highs
Stock prices do not move in straight lines; instead, they rise and fall in waves. This indicator starts by identifying the wave lows and wave highs.
- Wave Low: The lowest point during a temporary price decline.
- Wave High: The highest point during a temporary price increase.
These are automatically identified using Pine Script’s built-in functions `pivotlow` and `pivothigh`.
3. Drawing the Waveform
The identified wave lows and highs are alternately connected to draw the waveform. However, there are cases where wave lows or highs occur consecutively:
- Consecutive Wave Lows: The lower low is used for drawing the waveform.
- Consecutive Wave Highs: The higher high is used for drawing the waveform.
4. Tracking Swing Lows/Highs and Trend Determination
Swing lows and swing highs are crucial markers that indicate the state of wave progression:
- Swing Low: The starting point of a wave (wave low) when the closing price exceeds the previous wave high.
- Swing High: The starting point of a wave (wave high) when the closing price falls below the previous wave low.
The changes in swing lows and swing highs as the waves progress allow for trend state determination.
5. Examples of Trend States
During an Uptrend:
- When the price surpasses a wave high, the swing low is updated, confirming the continuation of the uptrend.
End of an Uptrend:
- When the price falls below the swing low, the swing low disappears, and a swing high appears, signaling the end of the uptrend.
Sideways Movement:
- Swing lows and swing highs alternately appear, indicating a sideways trend.
Start of a Downtrend:
- When the price breaks below a wave low for the first time, the swing high is updated, confirming the start of the downtrend.
During a Downtrend:
- When the price breaks below a wave low, the swing high is updated, confirming the continuation of the downtrend.
End of a Downtrend:
- When the price surpasses a wave high, the swing high disappears, and a swing low reappears, signaling the end of the downtrend.
Restart of an Uptrend:
- When the swing low is updated, the uptrend resumes. The uptrend begins when the price surpasses a wave high, and the swing low is updated for the first time.
6. Applications
Trade Entries and Exits:
- Set stop orders for entry at the price level where a trend starts.
- Set stop orders for exit at the price level where a trend ends.
Trend Filtering:
- Use the indicator to confirm whether market conditions are suitable for entry based on the trend state. Analyze waveforms to aid trading strategies.
Guide for Drawing Trendlines:
- Utilize wave lows and highs as starting and ending points when drawing trendlines with drawing tools.
7. Parameters and Display Items
Pivot Points:
- Wave lows are marked with circles below the candlestick’s low, and wave highs are marked with circles above the candlestick’s high.
Number of Bars for Pivot Calculation:
- Specify the number of bars on either side used to identify highs (default: 2).
Waveform:
- Specify the color (default: blue) or toggle its visibility (default: visible).
Swing Lows/Highs:
- Displayed as large circles. The rightmost large circle on the chart indicates the current swing low or swing high. Historical swing points are also displayed to show the progression of state changes. Specify the color (default: green) or toggle visibility (default: visible).
1. インジケーターの概要と特徴
このインジケーターは、ダウ理論を基にチャートの波形を分析し、押し安値や戻り高値を特定するツールです。これにより、トレンドの方向を迅速かつ一貫して判断できます。手動での分析と比較して、効率的かつ精度の高い結果が得られる点が特徴です。
押し安値や戻り高値を利用することで、単純な高値・安値の更新よりも詳細にトレンドの状況を把握し、効果的な取引戦略の構築に役立ちます。
2. 波の谷と波の頂の特定
株価は直線的に動くのではなく、波を描きながら上昇や下落を繰り返します。このインジケーターは、まず波の谷と波の頂を特定するところから始まります。
波の谷: 一時的な下落の最安値
波の頂: 一時的な上昇の最高値
これらを Pine Script の内蔵関数(ピボットローとピボットハイ)を用いて自動的に特定しています。
3. 波形の描画方法
特定した波の谷と波の頂を交互に結んで波形を描画します。ただし、波の谷や頂が連続する場合があります。
波の谷が連続する場合: より低い谷を採用して波形を描く
波の頂が連続する場合: より高い頂を採用して波形を描く
4. 押し安値・戻り高値の追跡とトレンド判断
押し安値と戻り高値は、波の進行状況を示す重要な指標です。
押し安値: 終値が前回の高値を超えた際の波の谷
戻り高値: 終値が前回の安値を割り込んだ際の波の頂
波の進行に伴う押し安値・戻り高値の変化から、トレンドの状態を判断します。
5. トレンド状態の具体例
上昇トレンド中:
波の頂を株価が上抜け押し安値が更新され続けることで上昇トレンドを継続。
上昇トレンドの終了:
株価が押し安値を割ると、押し安値が消え、戻り高値が新たに出現して、上昇トレンドを終了。
横ばい状態:
押し安値と戻り高値が交互に切り替わる。
下降トレンドの開始:
波の谷を株価が下抜け戻り高値がはじめて更新されることで下降トレンド開始を確認。
下降トレンド中:
波の谷を株価が下抜け戻り高値が更新され続けることで下降トレンドを継続。
下降トレンドの終了:
株価が波の頂を超えると、戻り高値が消え、押し安値が再び出現して、下降トレンドを終了。
横ばい状態:
押し安値と戻り高値が交互に切り替わる。
上昇トレンドの再開:
押し安値が更新されることで上昇トレンドを確認。
波の頂を株価が上抜け押し安値がはじめて更新されることで上昇トレンド開始を確認。
6. 応用例
トレードのエントリーとエグジット:
トレンド発生の価格に逆指値を設定してエントリー。
トレンド終了の価格に逆指値を設定してエグジット。
トレンドフィルターとして活用:
エントリーに適したトレンド状況かを確認。波形を分析してトレード戦略の参考に。
トレンドラインを描く時の参考として活用:
波の谷と頂を描画ツールを使ってトレンドラインを描く時の起点や終点として活用。
7. パラメーターと表示項目
ピボット: 波の谷はローソク足の安値にサークルを表示、波の頂はローソク足の高値にサークルを表示。
ピボット計算用のバーの数: 高値を特定するために左右何本のローソク足を使用するかを設定(初期値: 2)。
波形: 色(初期値: 青)や表示(初期値: 表示)の指定。
押し安値・戻り高値: 大きなサークルで表示。チャートの一番右の大きなサークルが現在のもの。過去のものも状態変化の経緯を示すために表示。色(初期値: 緑)や表示(初期値: 表示)の指定。
4H CRT (1AM and 5AM)This TradingView script is designed to assist traders in implementing the "4-Hour Candle Ranges Theory Strategy (CRT)" by identifying key levels and setups based on the 1am and 4am (5am) 4-hour candles. This strategy is particularly effective for trading high-volatility assets such as Gold, EUR/USD, NAS100, US30, and S&P500, with US30 showing a notably high win rate. Here's how the strategy works:
Key Features:
1. Marking 1am and 4am 4-Hour Candle Ranges
- The script highlights the high and low of the 1am 4-hour candle.
- It visually tracks whether the high or low of the 1am candle is taken out by the subsequent 4-hour candle (5am).
2. Entry Setup Rules
- Primary Setup: Wait for the high or low of the 1am candle to be taken out by the 5am candle. Once this sweep occurs, wait for a Market Structure Shift (MSS) on the lower time frame (15min) to confirm your entry.
- Secondary Setup: If the 5am candle fails to take out the high or low of the 1am candle, the setup focuses on the levels formed by the 5am candle.
3. Trade Execution on 15-Minute Timeframe
- The script supports a lower time frame (15min) view to identify MSS and fine-tune entries.
4. Rinse and Repeat
- This process can be applied daily for consistent opportunities across the specified assets.
Advantages:
- Provides clear visual markers for key levels based on the 4-hour candles.
- Automates level plotting, saving traders time and reducing manual errors.
- Integrates well with the 15-minute timeframe for precise entry triggers.
- Optimized for popular trading instruments, especially US30 for a higher probability of success.
This script simplifies the application of CRT by automating the process of identifying and marking critical levels, enabling traders to focus on executing high-probability setups effectively.
Created by Hamid (poraymanfx)
GainzAlgo Pro// © GainzAlgo
//@version=5
indicator('GainzAlgo Pro', overlay=true, max_labels_count=500)
candle_stability_index_param = input.float(0.5, 'Candle Stability Index', 0, 1, step=0.1, group='Technical', tooltip='Candle Stability Index measures the ratio between the body and the wicks of a candle. Higher - more stable.')
rsi_index_param = input.int(50, 'RSI Index', 0, 100, group='Technical', tooltip='RSI Index measures how overbought/oversold is the market. Higher - more overbought/oversold.')
candle_delta_length_param = input.int(5, 'Candle Delta Length', 3, group='Technical', tooltip='Candle Delta Length measures the period over how many candles the price increased/decreased. Higher - longer period.')
disable_repeating_signals_param = input.bool(true, 'Disable Repeating Signals', group='Technical', tooltip='Removes repeating signals. Useful for removing clusters of signals and general clarity')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 0, 0)
TRANSPARENT = color.rgb(0, 0, 0, 100)
label_size = input.string('normal', 'Label Size', options= , group='Cosmetic')
label_style = input.string('text bubble', 'Label Style', , group='Cosmetic')
buy_label_color = input(GREEN, 'BUY Label Color', inline='Highlight', group='Cosmetic')
sell_label_color = input(RED, 'SELL Label Color', inline='Highlight', group='Cosmetic')
label_text_color = input(color.white, 'Label Text Color', inline='Highlight', group='Cosmetic')
stable_candle = math.abs(close - open) / ta.tr > candle_stability_index_param
rsi = ta.rsi(close, 14)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
bull = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
bearish_engulfing = close > open and close < open and close < open
rsi_above = rsi > 100 - rsi_index_param
increase_over = close > close
bear = bearish_engulfing and stable_candle and rsi_above and increase_over and barstate.isconfirmed
var last_signal = ''
if bull and (disable_repeating_signals_param ? (last_signal != 'buy' ? true : na) : true)
if label_style == 'text bubble'
label.new(bull ? bar_index : na, low, 'BUY', color=buy_label_color, style=label.style_label_up, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bull ? bar_index : na, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_triangleup, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bull ? bar_index : na, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
last_signal := 'buy'
if bear and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
if label_style == 'text bubble'
label.new(bear ? bar_index : na, high, 'SELL', color=sell_label_color, style=label.style_label_down, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_triangledown, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_arrowdown, textcolor=TRANSPARENT, size=label_size)
last_signal := 'sell'
alertcondition(bull, 'BUY Signals', 'New signal: BUY')
alertcondition(bear, 'SELL Signals', 'New signal: SELL')
Price Action BoxGeneral Purpose:
This indicator determines the swing high and swing low levels in a given period and draws supply and demand zones based on these levels. It also adds BOS (Break of Structure) signals in case these zones are broken.
Code Detailing:
1. Settings and User Inputs:
Swing High/Low Length: The period used to determine the swing high and low levels. This can be set by the user.
History To Keep: Specifies the number of supply and demand zones in the past in the indicator.
Supply/Demand Box Width: The width of the supply and demand boxes, i.e. how much width will be left according to the ATR (Average True Range).
Visual Settings: Settings for colors and labels to customize the indicator.
2. Functions:
f_array_add_pop: Adds a new value and removes the oldest value from the array. This function is used to store a certain number of data.
f_sh_sl_labels: Adds labels to swing highs and lows. These labels are labels that indicate price action, such as "HH", "HL", "LH", "LL".
f_check_overlapping: Before drawing a new demand or supply zone, it checks if it overlaps with existing zones. If there is an overlap, a new zone is not drawn.
f_supply_demand: Draws supply and demand zones. This function determines the upper and lower limits of the supply and demand levels and draws a box.
f_sd_to_bos: If the supply or demand zone is broken, it changes the zone to "BOS" (Break of Structure).
f_extend_box_endpoint: Updates the existing supply and demand boxes, extending their right borders to the next bar index.
3. Calculations:
ATR (Average True Range): Used to measure price volatility. This is the value used as the basis for determining the size of supply and demand boxes.
Swing High and Swing Low: Swing highs and lows are calculated using the highest and lowest prices over a given period.
Box Array and POI (Point of Interest): A collection of drawn supply and demand boxes and the levels of interest found within these boxes.
4. Main Calculations and Actions:
New Swing High or Swing Low Formation: If a new swing high or low is formed, these levels are recorded and demand or supply zones are drawn.
Break of Structure (BOS): If price breaks the supply or demand zone, it marks the zone as "BOS".
Extension of Boxes: Supply and demand boxes are continuously extended according to the current bar index.
Visual Features:
Supply and Demand Zones: Supply zones are drawn in red and demand zones in green. A border color is also specified around the zones.
POI Labels: A POI (Point of Interest) label is displayed in the middle of each supply and demand zone.
BOS Labels: BOS label is added above broken supply or demand zones.
Customization with User Inputs:
Show Price Action Labels: An option to set the visibility of price action labels. These labels indicate swing highs and lows.
Different Color and Size Options: Colors for supply and demand zones and colors for POI labels can be customized by the user.
Conclusion:
This Pine Script™ provides a comprehensive tool to monitor supply and demand zones in the market, identify important price levels and analyze price movements in these zones. Based on classic price action methods, it detects supply and demand zones as well as breakouts of these zones.
Market Cipher B// © ElVortex2
//@version=6
indicator(title = "Market Cipher B", shorttitle = 'Cipher B', overlay = false)
// Inputs
show_wt = input.bool(true, 'Show WaveTrend', group = 'WaveTrend')
show_wt_lines = input.bool(true, 'Show WaveTrend Lines', group = 'WaveTrend')
show_wt_dots = input.bool(true, 'Show Buy/Sell Dots', group = 'WaveTrend')
show_vwap = input.bool(true, 'Show VWAP', group = 'WaveTrend')
wt_channel_len = input.int(9, 'WT Channel Length', group = 'WaveTrend')
wt_average_len = input.int(12, 'WT Average Length', group = 'WaveTrend')
wt_source = input.source(hlc3, 'WT Source', group = 'WaveTrend', inline = 'wt source')
wt_source_type = input.string(
'Heikin Ashi',
' Type ',
group = 'WaveTrend',
inline = 'wt source',
options =
)
wt_ma_len = input.int(3, 'WT MA Length', group = 'WaveTrend')
overbought_l1 = input.int(53, 'Lev 1', group = 'OverBought Levels', inline = 'wt ob levels')
overbought_l2 = input.int(60, 'Lev 2', group = 'OverBought Levels', inline = 'wt ob levels')
overbought_l3 = input.int(70, 'Lev 3', group = 'OverBought Levels', inline = 'wt ob levels')
oversold_l1 = input.int(-53, 'Lev 1', group = 'OverSold Levels', inline = 'wt os levels')
oversold_l2 = input.int(-60, 'Lev 2', group = 'OverSold Levels', inline = 'wt os levels')
oversold_l3 = input.int(-70, 'Lev 3', group = 'OverSold Levels', inline = 'wt os levels')
show_mfi = input.bool(true, 'Show MFI', group = 'MFI')
mfi_source = input.source(hlc3, 'MFI Source', group = 'MFI', inline = 'mfi source')
mfi_source_type = input.string(
'Heikin Ashi',
' Type ',
group = 'MFI',
inline = 'mfi source',
options =
)
mfi_baseline_len = input.int(5, 'Baseline MA Length', group = 'MFI')
mfi_deviation_len = input.int(5, 'Deviation MA Length', group = 'MFI')
mfi_smoothing_len = input.int(60, 'Smoothing MA Length', group = 'MFI')
show_mfi_bar = input.bool(false, 'Show MFI Bar', group = 'MFI')
show_rsi = input.bool(false, 'Show RSI', group = 'RSI')
rsi_source = input.source(close, 'Source', group = 'RSI', inline = 'rsi source')
rsi_source_type = input.string(
'Standard',
' Type ',
group = 'RSI',
inline = 'rsi source',
options =
)
rsi_len = input.int(14, 'RSI Length', group = 'RSI')
stoch_type = input.string(
'Cipher B',
'Stoch RSI type',
group = 'Stochastic',
options =
)
show_stoch = input.bool(false, 'Show Stochastic', group = 'Stochastic')
cipher_stoch_source = input.source(close, 'Source', group = 'Cipher B Stochastic', inline = 'stoch source')
cipher_stoch_source_type = input.string(
'Heikin Ashi',
' Type ',
group = 'Cipher B Stochastic',
inline = 'stoch source',
options =
)
cipher_stoch_len = input.int(81, 'Lenght', group = 'Cipher B Stochastic')
cipher_stoch_rsi_len = input.int(40, 'RSI Lenght', group = 'Cipher B Stochastic')
cipher_stoch_smooth = input.int(2, 'Stoch Smooth', group = 'Cipher B Stochastic', inline = 'cipher stoch smooth')
cipher_stoch_rsi_smooth = input.int(2, 'RSI Smooth', group = 'Cipher B Stochastic', inline = 'cipher stoch smooth')
vmc_stoch_source = input.source(close, 'Source', group = 'VuManChu Stochastic RSI', inline = 'vmc stoch source')
vmc_stoch_source_type = input.string(
'Inherit',
' Type ',
group = 'VuManChu Stochastic RSI',
inline = 'vmc stoch source',
options =
)
vmc_stoch_len = input.int(14, 'Length', group = 'VuManChu Stochastic RSI')
vmc_stoch_rsi_len = input.int(14, 'RSI Lenght', group = 'VuManChu Stochastic RSI')
vmc_stoch_K_smooth = input.int(3, 'K Smooth', group = 'VuManChu Stochastic RSI', inline = 'vmc stoch smooth')
vmc_stoch_D_smooth = input.int(3, 'D Smooth', group = 'VuManChu Stochastic RSI', inline = 'vmc stoch smooth')
// Functions
f_get_ticker_source(source) =>
switch source
'Inherit' => syminfo.tickerid
'Heikin Ashi' => ticker.heikinashi(syminfo.tickerid)
'Standard' => ticker.standard(syminfo.tickerid)
=> na // Default case for unexpected values
f_wavetrend(source_type, source, channel_len, average_len, ma_len) =>
src = request.security(f_get_ticker_source(source_type), timeframe.period, source)
baseline_ma = ta.ema(src, channel_len)
average_deviation = ta.ema(math.abs(src - baseline_ma), channel_len)
normalized_deviation = (src - baseline_ma) / (0.015 * average_deviation)
wt1 = ta.ema(normalized_deviation, average_len)
wt2 = ta.sma(wt1, ma_len)
vwap = wt1 - wt2
oversold = wt2 <= oversold_l2
overbought = wt2 >= overbought_l2
wt_cross = ta.cross(wt1, wt2)
wt_cross_up = wt2 - wt1 <= 0
wt_cross_down = wt2 - wt1 >= 0
f_rsi(source_type, source, length) =>
src = request.security(f_get_ticker_source(source_type), timeframe.period, source)
rsi = ta.rsi(src, length)
mfi(source_type, source, baseline_len, deviation_len, smoothing_len) =>
src = request.security(f_get_ticker_source(source_type), timeframe.period, source)
baseline_ma = ta.sma(src, baseline_len)
average_deviation = ta.sma(math.abs(src - baseline_ma), deviation_len)
normalized_deviation = (src - baseline_ma) / (0.015 * average_deviation)
money_flow = ta.sma(normalized_deviation, smoothing_len)
f_vmc_stoch(source_type, source, stoch_len, rsi_len, smooth_k, smooth_d) =>
src = request.security(f_get_ticker_source(source_type), timeframe.period, source)
rsi = ta.rsi(src, rsi_len)
k_ma = ta.sma(ta.stoch(rsi, rsi, rsi, stoch_len), smooth_k)
d_ma = ta.sma(k_ma, smooth_d)
f_cipher_stoch(source_type, source, stoch_len, rsi_len, stoch_smooth, rsi_smooth) =>
src = request.security(f_get_ticker_source(source_type), timeframe.period, source)
stoch = ta.sma(ta.stoch(src, high, low, stoch_len), stoch_smooth)
stoch_rsi = ta.sma(ta.stoch(src, high, low, rsi_len), rsi_smooth)
= f_wavetrend(wt_source_type, wt_source, wt_channel_len, wt_average_len, wt_ma_len)
rsi = f_rsi(rsi_source_type, rsi_source, rsi_len)
buy_signal = wt_cross and wt_cross_up
sell_signal = wt_cross and wt_cross_down
buy_signal_bar = buy_signal and wt_is_oversold_l2
sell_signal_bar = sell_signal and wt_is_overbought_l2
money_flow_index = mfi(mfi_source_type, mfi_source, mfi_baseline_len, mfi_deviation_len, mfi_smoothing_len)
money_flow_color = money_flow_index > 0 ? color.new(#00FF00, 55) : color.new(#FF0000, 55)
= f_vmc_stoch(vmc_stoch_source_type, vmc_stoch_source, vmc_stoch_len, vmc_stoch_rsi_len, vmc_stoch_K_smooth, vmc_stoch_D_smooth)
= f_cipher_stoch(cipher_stoch_source_type, cipher_stoch_source, cipher_stoch_len, cipher_stoch_rsi_len, cipher_stoch_smooth, cipher_stoch_rsi_smooth)
plot(show_wt_lines ? overbought_l1 : na, 'Overbought Level 1', color.new(#FFFFFF, 30), 1)
plot(show_wt_lines ? overbought_l2 : na, 'Overbought Level 2', color.new(#FFFFFF, 30), 1)
plot(show_wt_lines ? overbought_l3 : na, 'Overbought Level 3', color.new(#FFFFFF, 30), 1)
plot(show_wt_lines ? oversold_l1 : na, 'Overbought Level 1', color.new(#FFFFFF, 30), 1)
plot(show_wt_lines ? oversold_l2 : na, 'Overbought Level 2', color.new(#FFFFFF, 30), 1)
plot(show_wt_lines ? oversold_l3 : na, 'Overbought Level 3', color.new(#FFFFFF, 30), 1)
plot(show_wt ? wt1 : na, 'Wave Trend 1', color.new(#90CAF9, 0), style = plot.style_area)
plot(show_wt ? wt2 : na, 'Wave Trend 2', color.new(#0C47A1, 10), style = plot.style_area)
plot(show_wt and buy_signal ? wt2 : na, 'Green Dot', #00FF00, 2, plot.style_circles)
plot(show_wt and sell_signal ? wt2 : na, 'Red Dot', #FF0000, 2, plot.style_circles)
plot(show_wt_dots and buy_signal_bar ? -105 : na, 'Buy Circle', #00FF00, 3, plot.style_circles)
plot(show_wt_dots and sell_signal_bar ? 105 : na, 'Sell Circle', #FF0000, 3, plot.style_circles)
plot(show_vwap ? vwap : na, 'VWAP', color.new(#FFEB3B, 40), 1, plot.style_area)
plot(show_rsi ? rsi : na, 'RSI', #E600E6, 1)
plot_mfi = plot(show_mfi ? money_flow_index : na, 'Money Flow', money_flow_color, 1, plot.style_area)
plot_mfi_bar_top = plot(show_mfi and show_mfi_bar ? -93 : na, 'MFI Bar', color.new(#FFFFFF, 100))
plot_mfi_bar_bottom = plot(show_mfi and show_mfi_bar ? -103 : na, 'MFI Bar', color.new(#FFFFFF, 100))
fill(plot_mfi_bar_top, plot_mfi_bar_bottom, money_flow_color, 'MFI Bar Fill')
plot(show_stoch and stoch_type == 'Cipher B' ? cipher_stoch : na, 'Cipher B Stoch', #CA1BFFe7, 2)
plot(show_stoch and stoch_type == 'Cipher B' ? cipher_stoch_rsi : na, 'Cipher B Stoch RSI', cipher_stoch < cipher_stoch_rsi ? #3FFB03 : #FE1000, 2)
plot_vmc_stoch_k = plot(show_stoch and stoch_type == 'Vumanchu' ? vmc_stoch_k : na, 'VMC Stoch K', #21BAF3, 2)
plot_vmc_stoch_d = plot(show_stoch and stoch_type == 'Vumanchu' ? vmc_stoch_d : na, 'VMC Stoch D', color.new(#673AB7, 60), 1)
vmc_stoch_fill_color = vmc_stoch_k >= vmc_stoch_d ? color.new(#21baf3, 75) : color.new(#673ab7, 60)
fill(plot_vmc_stoch_k, plot_vmc_stoch_d, vmc_stoch_fill_color, 'Stoch KD Fill')
RY-Parabolic Stop and ReverseParabolic Stop and Reverse with Support Resistance (PSAR-SR)
Identify dynamic support and resistance levels based on price movements.
Reduce false signals often generated by the regular PSAR.
Provide more accurate trading decisions by considering previous reversal points as support and resistance.
How Does PSAR-SR Work?
PSAR Reversal Points:
When the regular PSAR generates a reversal signal, the price at that reversal point is used as support (in an uptrend) or resistance (in a downtrend).
Support and Resistance Lines:
Support: A line drawn from the previous PSAR reversal point in an uptrend.
Resistance: A line drawn from the previous PSAR reversal point in a downtrend.
Price often moves sideways between these support and resistance levels before a breakout occurs.
Breakout Above/Below Support and Resistance:
A Buy signal is generated when the price breaks above resistance with a new candle closing above it.
A Sell signal is generated when the price breaks below support with a new candle closing below it.
Strategy Using PSAR-SR
Wait for the Breakout:
Avoid buying or selling immediately when the PSAR gives a signal.
Confirm that the price breaks past the support or resistance levels and forms a new candle outside those lines.
Use Alongside Other Indicators:
PSAR-SR is not recommended as a standalone tool. Use additional confirmation indicators such as:
Moving Average: To identify long-term trends.
RSI or MACD: To confirm momentum or overbought/oversold conditions.
Advantages of PSAR-SR
Reduces False Signals:
By focusing on previous support and resistance levels, PSAR-SR avoids invalid signals.
Helps Identify Breakouts:
It provides better insight for traders to enter the market during valid breakouts.
Limitations of PSAR-SR
Not Suitable for Sideways Markets:
If the price moves sideways for an extended period, the signals may become less effective.
Requires Additional Confirmation:
Should be used in combination with other indicators to improve accuracy.
Conclusion
PSAR-SR is a helpful tool for identifying dynamic support and resistance levels and generating buy/sell signals based on price breakouts. However, it should always be used with additional indicators for confirmation to avoid false trades.
Disclaimer:
Use this indicator at your own risk, and always perform additional analysis before making any trading decisions.
If you'd like further clarification or examples of how to apply this to a chart, feel free to ask! 😊
Daily/Weekly/Monthly LevelsDaily/Weekly/Monthly Levels
TLDR
Shows Daily/Weekly/Monthly reversal levels. These can act as support/resistance levels.
Can only see what's in your candle history. I.e. It won't see old monthlies on your 1m chart! Use Daily to see everything with the most history.
Can only see levels higher than or equal to your current time frame. I.e. it will not see daily levels if you're looking at a weekly chart.
Doesn't keep levels that have been closed through. Does keep levels that have been only wicked.
This indicator shows you daily, weekly and monthly horizontal reversal levels to save you the hassle of doing it yourself. It's a little aid to speed up your TA routine.
Usage Details and Limitations
All daily, weekly, and monthly levels will be marked with lines on the chart automatically. Levels will only be visible from that level's TF or lower, i.e. you can't see the daily levels from the weekly chart, but you can see all levels from daily or lower charts. No levels will be displayed if you select a time frame higher than 1 month.
New levels will not be drawn if they are very close to existing levels. You can change the 'closeness' threshold in settings. It is specified as a percentage move from the existing level.
However, higher TF levels will REPLACE lower TF levels if they are too close. If you set the 'closeness' setting to 0, all levels will be drawn.
Levels will only be drawn if they are in your displayed candle range! I.e. the lower you go in timeframe, the less history you can see, and so levels originating from further back might be missed!
One technique you might have is to load up the daily timeframe and use that to mark any nearby levels of interest.
How does it work?
Basically, it looks for reversal candles on the D/W/M Timeframes, and draws a line for you from the open of the reversal candle (of that TF), so long as you are on a TF equal or lower than that level.
New bars on that TF that close through that TF's old levels will clear that level. Wicks do not clear.
Each newly found level will not be drawn if it's within the percentage distance of an existing level of equal or higher time frame.
Each new level also checks for existing levels on lower TFs that it can replace. E.g. if a monthly bar closes and produces a monthly level equal to an existing daily or weekly level, that daily or weekly level will be replaced. Use the settings to specify your 'closeness' allowance.
Please remember, it can only see as far back as your candle history, so you won't see old monthlies on a 1 minute chart! Use the daily TF to see all three levels at once with maximum history.
Market Structure Break with Retest (Multi-timeframe)Introduction
Analyzing market structure breakouts (MSB) is extremely important, especially for determining trend reversal points. This Pine Script™ detects MSB points in a given time frame and visualizes potential retest zones. It also creates boxes and labels to support buy-sell decisions in these zones.
This script aims to simplify the market analysis process for both beginners and advanced users.
---
Features
1. Timeframe Selection: The user can specify the timeframe he/she wants to analyze.
2. Highs and Lows: Dynamically calculates the highest and lowest prices in the specified time frame.
3. Market Structure Breakout (MSB):
"Bullish Break" when the price exceeds the previous high.
"Bearish Break" when the price falls below the previous low.
4. Retest Zones: Checks whether the price has returned to these levels after the MSB and labels these areas.
5. Visualization:
Draws boxes for breakout zones.
Marks retest points with dynamic labels.
6. Customizability: The user can customize the colors of the boxes, line thickness and analysis period.
---
Areas of Use
Support and Resistance Detection: Ideal for analyzing how the price moves in important support and resistance zones.
Capturing Trend Reversals: Can be used to detect the starting points of uptrends and downtrends.
Retest Strategies: Supports trading decisions by observing the price return to these levels after the breakout.
---
Code Logic
1. Highest and Lowest Prices in Timeframe:
Calculates the highest and lowest prices in the specified timeframe according to the length parameter.
2. Breakout Detection:
Check if the price has broken past the previous high or low.
3. Box and Labels:
Boxes are dynamically created after the breakout.
Labels appear in the retest zones:
4. Customization: User can easily adjust box colors, line thickness and analysis period:
Customize the analysis period and colors according to your own trading strategy.
---
Conclusion
This script helps you optimize your trading strategies by visualizing market structure breakouts and retest zones. It offers a powerful analysis tool with dynamic structure and customizable settings suitable for timeframes.
Start using this tool now to develop new strategies in TradingView and make more informed trading decisions!
SMT Divergence + IFVG Strategy with Buy/Sell Signals//@version=6
indicator("SMT Divergence + IFVG Strategy with Buy/Sell Signals", overlay=true)
// Input parameters
higherTimeframe = input.timeframe("60", "Higher Timeframe") // Corrected timeframe to "60" for hourly
defaultStopLossPct = input.float(15.0, "Stop Loss %", step=0.1) // Updated to 15% stop loss
defaultTakeProfitPct = input.float(30.0, "Take Profit %", step=0.1) // Added 30% take profit percentage
// Retrieve higher timeframe trend
htfClose = request.security(syminfo.tickerid, higherTimeframe, close)
higherTrend = ta.ema(htfClose, 50) > ta.ema(htfClose, 200) // Higher timeframe bias: bullish if EMA50 > EMA200
// Custom Divergence Detection
rsiPeriod = input.int(14, "RSI Period")
rsi = ta.rsi(close, rsiPeriod)
lookback = input.int(5, "Divergence Lookback")
// Detect bullish divergence: Price makes a lower low, RSI makes a higher low
priceLow = ta.lowest(close, lookback)
pricePrevLow = ta.lowest(close , lookback)
rsiLow = ta.lowest(rsi, lookback)
rsiPrevLow = ta.lowest(rsi , lookback)
bullishDivergence = (priceLow < pricePrevLow) and (rsiLow > rsiPrevLow)
// Detect bearish divergence: Price makes a higher high, RSI makes a lower high
priceHigh = ta.highest(close, lookback)
pricePrevHigh = ta.highest(close , lookback)
rsiHigh = ta.highest(rsi, lookback)
rsiPrevHigh = ta.highest(rsi , lookback)
bearishDivergence = (priceHigh > pricePrevHigh) and (rsiHigh < rsiPrevHigh)
smtDiv = bullishDivergence or bearishDivergence
// Inverse Fair Value Gap (IFVG)
gapThreshold = input.float(0.5, "IFVG Threshold (%)", step=0.1)
priceChange = math.abs(close - close )
previousHigh = ta.valuewhen(priceChange > gapThreshold * close , high, 1)
previousLow = ta.valuewhen(priceChange > gapThreshold * close , low, 1)
ifvgZone = not na(previousHigh) and not na(previousLow) and (close > previousHigh or close < previousLow)
// Entry Signal
entryConditionBuy = higherTrend and bullishDivergence and ifvgZone
entryConditionSell = not higherTrend and bearishDivergence and ifvgZone
// Plotting Buy and Sell Signals
if entryConditionBuy
label.new(bar_index, high, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
stopLossLevel = close * (1 - defaultStopLossPct / 100)
takeProfitLevel = close * (1 + defaultTakeProfitPct / 100)
line.new(bar_index, stopLossLevel, bar_index + 1, stopLossLevel, color=color.red, width=1, extend=extend.right)
line.new(bar_index, takeProfitLevel, bar_index + 1, takeProfitLevel, color=color.green, width=1, extend=extend.right)
if entryConditionSell
label.new(bar_index, low, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
stopLossLevel = close * (1 + defaultStopLossPct / 100)
takeProfitLevel = close * (1 - defaultTakeProfitPct / 100)
line.new(bar_index, stopLossLevel, bar_index + 1, stopLossLevel, color=color.red, width=1, extend=extend.right)
line.new(bar_index, takeProfitLevel, bar_index + 1, takeProfitLevel, color=color.green, width=1, extend=extend.right)
// Alerts
alertcondition(entryConditionBuy, title="Buy Signal", message="Buy signal detected. Target 30%, Stop Loss 15%.")
alertcondition(entryConditionSell, title="Sell Signal", message="Sell signal detected. Target 30%, Stop Loss 15%.")
Bullish Candlestick Patterns (Patrones de velas Alcista)English:
The "Bullish Candlestick Patterns" indicator is designed to automatically identify the most relevant bullish Japanese candlestick formations in any market or timeframe. This powerful tool helps traders spot key entry opportunities, increasing the probability of success in their trades.
Key Features:
- Accurate Identification: Recognizes bullish patterns such as Hammer, Morning Star, Engulfing, Three White Soldiers, and Dragonfly Doji.
- Customizable Settings: Detect trends based on SMA50 and SMA200 or disable trend detection to match your strategy.
- Built-in Alerts: Receive real-time notifications when a new pattern is detected.
- Clear Visualization: Patterns are highlighted on the chart with intuitive labels and customizable colors.
- ATR Integration: Labels and highlighted backgrounds adjust dynamically for improved clarity and usability.
Recommended Use:
- Ideal for beginner traders looking to learn how to recognize common bullish patterns.
- Perfect for advanced traders who want quick visual confirmations of reliable patterns integrated into their strategies.
Supported Bullish Patterns:
1. Hammer: Indicates potential bullish reversal following a downtrend.
2. Morning Star: A strong reversal signal after a prolonged decline.
3. Bullish Engulfing: A shift from bearish to bullish control with one candle fully engulfing the previous one.
4. Three White Soldiers: Three consecutive bullish candles signaling strength in the upward movement.
5. Dragonfly Doji: Rejection of lower prices with a close near the high, suggesting a potential reversal.
Instructions:
1. Add this indicator to your TradingView chart.
2. Customize the parameters to suit your needs (trend detection, colors, etc.).
3. Enable alerts to receive real-time notifications of new patterns.
4. Combine this analysis with other indicators such as RSI, MACD, or support and resistance levels for confirmation.
Note: This indicator does not provide automatic buy/sell signals. It is recommended to use it as a supporting tool and perform additional analysis before making trading decisions.
Español:
El indicador "Patrones de Velas Alcistas (Bullish)" está diseñado para identificar automáticamente las formaciones más relevantes de velas japonesas alcistas en cualquier mercado o marco temporal. Este poderoso indicador ayuda a los traders a detectar oportunidades de entrada en zonas clave, aumentando la probabilidad de éxito en sus operaciones.
Características principales:
- Identificación precisa: Reconoce patrones alcistas como Hammer, Morning Star, Engulfing, Three White Soldiers y Dragonfly Doji.
- Configuración personalizable: Detecta tendencias con base en SMA50 y SMA200 o sin detección, según tu estrategia.
- Alertas integradas: Recibe notificaciones en tiempo real cuando se detecta un nuevo patrón.
- Visualización clara: Los patrones se resaltan en el gráfico con etiquetas intuitivas y colores personalizados.
- Integración con ATR: Las etiquetas y fondos resaltados se ajustan dinámicamente para mejorar la claridad y usabilidad.
Uso recomendado:
- Ideal para traders principiantes que buscan aprender a reconocer patrones alcistas comunes.
- Perfecto para traders avanzados que desean incorporar confirmaciones visuales rápidas de patrones confiables a sus estrategias.
Patrones Alcistas Soportados:
1. Martillo (Hammer): Indica posible reversión alcista tras una tendencia bajista.
2. Estrella de la Mañana (Morning Star): Señal de reversión fuerte después de una caída prolongada.
3. Envolvente Alcista (Engulfing Bullish): Cambio de control de bajista a alcista con una vela que envuelve completamente a la anterior.
4. Tres Soldados Blancos (Three White Soldiers): Tres velas alcistas consecutivas que indican fuerza en el movimiento ascendente.
5. Libelula Doji (Dragonfly Doji): Rechazo a precios más bajos con un cierre cerca del máximo, indicando potencial de reversión.
Instrucciones:
1. Agrega este indicador a tu gráfico en TradingView.
2. Configura los parámetros para adaptarlo a tus necesidades (detección de tendencias, colores, etc.).
3. Activa las alertas para recibir notificaciones de nuevos patrones en tiempo real.
4. Usa el análisis en combinación con otros indicadores como RSI, MACD, o niveles de soporte y resistencia para confirmar tus decisiones.
Nota: Este indicador no proporciona señales de compra/venta automáticas. Se recomienda usarlo como una herramienta de apoyo y realizar un análisis adicional antes de tomar decisiones de trading.