ICT Strategy with Historical BacktestЛогика входа в сделки:
Теперь условия для входа в Лонг и Шорт проверяются корректно. Мы учитываем, что пробой на старшем таймфрейме (1H или выше) и наличие FVG важны для принятия решения о входе в сделку.
Отображение FVG:
Прямоугольники для FVG теперь правильно отображаются (если активирован флаг show_fvg_boxes). Для бычьего FVG прямоугольники будут зелеными, для медвежьего FVG — красными.
Метки для прогнозируемых сделок:
Добавлены метки "Potential Long" и "Potential Short" для визуализации на графике в точках потенциального входа в сделки.
Создание сделок на истории:
Стратегия теперь должна корректно создавать сделки на исторических данных, учитывая условия FVG и BOS.
Analisis Fundamental
High Volatility Crypto StrategyThis strategy indicatore use for high volatile market like crypto for 1 min, 5 min and 15 min interval chart
High with LineThis indicator, High with line, intends to help users mark out the highs of the last 50 candles.
its not a useful indicator, I am just testing something out.
Support me by using my indicator.
Thank you
Enhanced Support Level StrategyEnhanced Support Level Strategy. Testing the strategy to confirm if it works according to plan. This is a strategy in test. You are fully responsible for the outcome of your trades should you use this strategy.
AMG Supply and Demand ZonesAMG Supply and Demand Zones Indicator
This indicator identifies and visualizes supply and demand zones on the chart to help traders spot key areas of potential price reversals or continuations. The indicator uses historical price data to calculate zones based on high/low ranges and a customizable ATR-based fuzz factor.
Key Features:
Back Limit: Configurable look-back period to identify zones.
Zone Types: Options to display weak, untested, and turncoat zones.
Customizable Parameters: Adjust fuzz factor and visualization settings.
Usage:
Use this indicator to enhance your trading strategy by identifying key supply and demand areas where price is likely to react.
You can customize this further based on how you envision users benefiting from your indicator. Let me know if you'd like to add or adjust anything!
High Volatility Crypto Strategy with Volume DivergenceHigh Volatility Crypto Strategy with Volume Divergence
Accumulated Funding RateAccumulated Funding Rate
for future contract -ve/+ve funding fees that indicate long and short opening so that price differance between Spot and Future is balance buy exchange funding between long and short holder
-ve rate means Short is high so short holder has to pay fees to Long to correction in Price and vise versa
so over the periode of time accumulated rate its indicates the Bubble which can be explode any time to Liquidation of inbalance Long/Short Ratio some time its take longer period but its indicated bubbles direction
maximum -ve rates indicate Short opened from long period of time so when its liquidate/exit
then price will be correct to its original price that was struck due Short holder over the time and then now market will liquidate/exit those unstable Short like 50X/25X leverage and correct the price
Year-over-Year % Change for PCEPILFEHello, traders!
This indicator is specifically for FRED:PCEPILFE , which is a 'Personal Consumption Expenditures (PCE) Index excluding food and energy.'
What this indicator does is compare the monthly data to that of the same month last year to see how it has changed over the year. This comparison method is widely known as YoY(Year-over-Year).
While I made this indicator to use for FRED:PCEPILFE , you may use it for different charts as long as they show monthly data.
FRED:PCEPILFE is one of the main measures of inflation the Federal Reserve uses.
You can see the YoY % change of the PCE Index excluding food and energy in the official website for the Bureau of Labor Statistics, but unfortunately, I couldn't find one in TradingView.
So instead, I decided to make my own indicator showing the changes using FRED:PCEPILFE .
The code is very simple: it compares the data to the data 12 points ago because 12 points would mean 12 months in this chart. We then multiply the result by 100 for percentage.
Doing so, we compare the current month to the same month of the previous year.
Because I am only interested in the YoY % Change of the index, I pulled the indicator all the way up, covering the original chart data entirely. (Or you could achieve the same by simply moving your indicator to the pane above. But this way, the original chart data is also visible.)
I hope this indicator helps you with your analysis. Feel free to ask questions if have any!
God bless!
Comprehensive RSI, MACD & Stochastic Table
RSI, MACD, and Stochastic Multi-Asset Indicator for TradingView
Introduction
The RSI, MACD, and Stochastic Multi-Asset Indicator is a comprehensive tool designed for traders who want to analyze multiple assets simultaneously while utilizing some of the most popular technical indicators. This indicator is tailored for all market types—whether you're trading cryptocurrencies, stocks, forex, or commodities—and provides a consolidated dashboard for faster and more informed decision-making.
This tool combines Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), and Stochastic Oscillator, three of the most effective momentum and trend-following indicators. It provides a visual, color-coded table for quick insights and alerts for significant buy or sell opportunities.
---
What Does This Indicator Do?
This indicator performs the following key functions:
1. Multi-Asset Analysis: Analyze two assets side by side, allowing you to monitor their momentum, trends, and overbought/oversold conditions simultaneously.
2. Combines Three Powerful Indicators:
RSI: Tracks market momentum and identifies overbought/oversold zones.
MACD: Highlights trend direction and momentum shifts.
Stochastic Oscillator: Provides insights into overbought/oversold zones with smoothing for better accuracy.
3. Color-Coded Dashboard: Displays all indicator values in an easy-to-read table with color coding for quick identification of market conditions.
4. Real-Time Alerts: Generates alerts when strong bullish or bearish conditions are met across multiple indicators.
---
Key Features
1. Customizable Inputs
You can adjust RSI periods, MACD parameters, Stochastic settings, and timeframes to suit your trading style.
Analyze default or custom assets (e.g., BTC/USDT, ETH/USDT).
2. Multi-Timeframe Support
Use this indicator on any timeframe (e.g., 1-minute, 1-hour, daily) to suit your trading strategy.
3. Comprehensive Dashboard
Displays values for RSI, MACD, and Stochastic for two assets in one clean, compact table.
Automatically highlights overbought (red), oversold (green), and neutral (gray) conditions.
4. Buy/Sell Signals
Plots buy/sell signals on the chart when all indicators align in strong bullish or bearish zones.
Example:
Strong Buy: RSI above 50, Stochastic %K above 80, and MACD histogram positive.
Strong Sell: RSI below 50, Stochastic %K below 20, and MACD histogram negative.
5. Real-Time Alerts
Alerts notify you when a strong buy or sell condition is detected, so you don't miss critical trading opportunities.
---
Who Is This Indicator For?
This indicator is perfect for:
Day Traders who need real-time insights across multiple assets.
Swing Traders who want to identify mid-term trends and momentum shifts.
Crypto, Stock, and Forex Traders looking for a consolidated tool that works across all asset classes.
---
How It Works
1. RSI (Relative Strength Index):
Tracks momentum by measuring the speed and change of price movements.
Overbought: RSI > 70 (Red).
Oversold: RSI < 30 (Green).
2. MACD (Moving Average Convergence Divergence):
Combines two exponential moving averages (EMA) to track momentum and trend direction.
Positive Histogram: Bullish momentum.
Negative Histogram: Bearish momentum.
3. Stochastic Oscillator:
Tracks price relative to its high-low range over a specific period.
Overbought: %K > 80.
Oversold: %K < 20.
4. Table View:
Displays indicator values for both assets in an intuitive table format.
Highlights critical zones with color coding.
5. Alerts:
Alerts are triggered when:
RSI, MACD, and Stochastic align in strong bullish or bearish conditions.
These conditions are based on customizable thresholds.
---
How to Use the Indicator
1. Add the Indicator to Your Chart:
After publishing, search for the indicator by its name in TradingView's Indicators tab.
2. Customize Inputs:
Adjust settings for RSI periods, MACD parameters, and Stochastic smoothing to suit your strategy.
3. Interpret the Table:
Check the table for highlighted zones (red for overbought, green for oversold).
Look for bullish or bearish signals in the "Signal" column.
4. Act on Alerts:
Use the real-time alerts to take action when strong conditions are met.
---
Example Use Cases
1. Crypto Day Trading:
Monitor BTC/USDT and ETH/USDT simultaneously for strong bullish or bearish conditions.
Receive alerts when RSI, MACD, and Stochastic align for a potential reversal.
2. Swing Trading Stocks:
Track a stock (e.g., AAPL) and its sector ETF (e.g., QQQ) to find momentum-based opportunities.
3. Forex Scalping:
Identify overbought/oversold conditions across multiple currency pairs.
---
Conclusion
The RSI, MACD, and Stochastic Multi-Asset Indicator simplifies your trading workflow by consolidating multiple technical indicators into one powerful tool. With real-time insights, color-coded visuals, and customizable alerts, this indicator is designed to help you stay ahead in any market.
Whether you're a beginner or an experienced trader, this indicator provides everything you need to make confident trading decisions. Add it to your TradingView chart today and take your analysis to the next level!
---
Make sure to leave your feedback and suggestions so I can continue improving the tool for the community. Happy trading!
Global Liquidity Index 10 Week LeadThis script is an extension of the Global Liquidity Index , incorporating a key modification: a 10-week lead adjustment.
The indicator values are shifted forward by 10 weeks, dynamically adapting to the chart's timeframe (daily, weekly, monthly). This adjustment plots the lead values ahead of the current time, offering a clearer visual alignment with potential future trends. The approach aligns with the theory explored and popularized by Michael Howell of CrossBorder Capital and Raoul Pal of Global Macro Investor, which suggests that Bitcoin typically lags global liquidity by approximately 8 to 12 weeks.
The Global Liquidity Index is calculated based on the following components:
Major Central Banks:
Federal Reserve System (FED) - Treasury General Account (TGA) - Reverse Repurchase Agreements (RRP) + European Central Bank (ECB) + People's Bank of China (PBC) + Bank of Japan (BOJ) + Bank of England (BOE) + Bank of Canada (BOC) + Reserve Bank of Australia (RBA) + Reserve Bank of India (RBI) + Swiss National Bank (SNB) + Central Bank of the Russian Federation (CBR) + Central Bank of Brazil (BCB) + Bank of Korea (BOK) + Reserve Bank of New Zealand (RBNZ) + Sweden's Central Bank (Riksbank) + Central Bank of Malaysia (BNM).
M2 Money Supply:
Includes M2 for the USA, Europe, China, Japan, UK, Canada, Australia, India, Switzerland, Russia, Brazil, Korea, Mexico, Indonesia, South Africa, Malaysia, and Sweden.
Thrax - Pullback based short side scalping⯁ This indicator is built for short trades only.
⤞ Pullback based scalping is a strategy where a trader anticipates a pullback and makes a quick scalp in this pullback. This strategy usually works in a ranging market as probability of pullbacks occurrence in ranging market is quite high.
⤞ The strategy is built by first determining a possible candidate price levels having high chance of pullbacks. This is determined by finding out multiple rejection point and creating a zone around this price. A rejection is considered to be valid only if it comes to this zone after going down by a minimum pullback percentage. Once the price has gone down by this minimum pullback percentage multiple times and reaches the zone again chances of pullback goes high and an indication on chart for the same is given.
⯁ Inputs
⤞ Zone-Top : This input parameter determines the upper range for the price zone.
⤞ Zone bottom : This input parameter determines the lower range for price zone.
⤞ Minimum Pullback : This input parameter determines the minimum pullback percentage required for valid rejection. Below is the recommended settings
⤞ Lookback : lookback period before resetting all the variables
⬦Below is the recommended settings across timeframes
⤞ 15-min : lookback – 24, Pullback – 2, Zone Top Size %– 0.4, Zone Bottom Size % – 0.2
⤞ 5-min : lookback – 50, pullback – 1% - 1.5%, Zone Top Size %– 0.4, Zone Bottom Size % – 0.2
⤞ 1-min : lookback – 100, pullback – 1%, Zone Top Size %– 0.4, Zone Bottom Size % – 0.2
⤞ Anything > 30-min : lookback – 11, pullback – 3%, Zone Top Size %– 0.4, Zone Bottom Size % – 0.2
✵ This indicator gives early pullback detection which can be used in below ways
1. To take short trades in the pullback.
2. To use this to exit an existing position in the next few candles as pullback may be incoming.
📌 Kindly note, it’s not necessary that pullback will happen at the exact point given on the chart. Instead, the indictor gives you early signals for the pullback
⯁ Trade Steup
1. Wait for pullback signal to occur on the chart.
2. Once the pullback warning has been displayed on the chart, you can either straight away enter the short position or wait for next 2-4 candles for initial sign of actual pullback to occurrence.
3. Once you have initiated short trade, since this is pullback-based strategy, a quick scalp should be made and closed as price may resume it’s original direction. If you have risk appetite you can stay in the trade longer and trial the stops if price keeps pulling back.
4. You can zone top as your stop, usually zone top + some% should be used as stop where ‘some %’ is based on your risk appetite.
5. It’s important to note that this indicator gives early sings of pullback so you may actually wait for 2-3 candles post ‘Pullback warning’ occurs on the chart before entering short trade.
SMC breakout With EMAThis indicator is based on the breakout of the BOS and CHOCH levels at SMC method.
You can change the amount of candles of BOS or CHOCH.
This indicator also includes EMA, that you can use it for confirmation of buy or sell transaction.
Also you can use super trend features on this indicator for following your profit.
This indicator is based on the breakdown of the bass and choke points in it.
And this feature allows you to use this indicator in Forex trading as well.
Dynamic Risk Levels with Buy/Sell TextIntroduction
Risk management and making the right decisions while trading can be quite complex. To help you overcome these challenges, we developed the Dynamic Risk Levels and Buy/Sell Text indicator. This indicator aims to simplify your decision-making processes by combining volatility analysis, dynamic risk levels and RSI (Relative Strength Index) signals. This tool, which clearly visualizes buy/sell levels and risk zones on the chart, offers an ideal solution for investors of all levels.
---
Key Features
1. ATR Based Volatility Calculation
The indicator uses the Average True Range (ATR) method to measure market volatility. Combined with Fibonacci's golden ratio (1.618), ATR creates risk levels that dynamically adapt to market conditions.
2. Determining Buy and Sell Levels
The lowest closing price during a specified period is defined as the buy level, and the highest closing price is defined as the sell level.
3. Dynamic Long and Short Risk Levels
Long (buy) risk level: Buy level + (ATR * 1.618)
Short (sell) risk level: Sell level - (ATR * 1.618)
These levels are constantly updated according to the volatility of the market.
4. Additional Filtering with RSI
RSI (Relative Strength Index) filters out false signals by identifying overbought and oversold areas.
Buy Signal: RSI < 30
Sell Signal: RSI > 70
5. Visualization of Buy/Sell Signals
On the chart:
Buy signals are indicated with a green "Buy" label.
Sell signals are marked with a red "Sell" label.
These visualizations help you make quick and easy decisions.
---
Levels Shown on the Chart
1. Dynamic Risk Levels
Long Risk Level (Green Line): Indicates the safe level for buying positions.
Short Risk Level (Red Line): Indicates the safe level for selling positions.
2. Buy and Sell Levels
Buy Level (Blue Line): Indicates the long-term low closing level.
Sell Level (Orange Line): Indicates the long-term high closing level.
---
How to Use?
1. Long Trading Strategy:
A "Buy" signal is generated when the price goes below the long risk level and then goes above it again and RSI < 30.
2. Short Trading Strategy:
A "Sell" signal is generated when the price goes above the short risk level and then goes below it again and RSI > 70.
---
Conclusion
This indicator supports volatility-based risk management by adapting to the dynamic structure of the market and also provides reliable buy/sell signals. The Dynamic Risk Levels and Buy/Sell Text indicator is an ideal tool for investors who want to create a simple and effective trading strategy.
Using this indicator on the TradingView platform, you can make more informed decisions and better manage your risks.
Remember: No indicator is 100% accurate; always analyze market conditions carefully and pay attention to risk management.
Buyside & Sellside Liquidity and FOMO & PANİK]We Added Advanced Features to LuxAlgo’s Buy-Side and Sell-Side Liquidity Indicator
Buy-Side and Sell-Side Liquidity (Liquidity Hunt) indicators are an important tool for understanding market maker manipulations and analyzing price movements in high-volume areas. This indicator from LuxAlgo allows users to better evaluate the market’s liquidity flow. However, we have made some strategic improvements and additions to further enhance the functionality of this powerful tool.
---
Features We Added to the Indicator
1. Liquidity Threshold and Analysis by Time Frames
The user can analyze liquidity movements in different time frames by determining short, medium and long-term periods.
Thanks to the Liquidity Threshold (%) parameter, long (buy) and short (sell) levels are determined according to price change rates.
Volume threshold controls are applied for each period and only high volume movements are taken into account.
2. Detection of Long and Short Liquidity Zones
Buy-Side (Long) Liquidity Zones: Long entry levels below the price are determined and reaction signals are created when the price reaches this level.
Sell-Side (Short) Liquidity Zones: Short entry levels above the price are determined and the levels are visualized on the chart.
These zones are used to detect market maker manipulations in places where liquidity traps may occur.
3. Coloring of High Volume Candles
With volume analysis, high volume candles are marked with different colors to observe the dynamics of price movements more clearly.
For example, candles exceeding volume threshold levels are highlighted with distinct colors such as white, yellow or blue.
4. Analysis of Wick and Volume-Based Long/Short Traps
Long trap and short trap traps are detected based on the length ratios of candle shadows (wick), ATR (Average True Range) and volume change.
These traps are clearly marked on the chart and supported by market psychology signals such as FOMO (fear of missing out) and Panic to the user.
5. Proximity to Liquidity Zones and Alarm Systems
We have added an algorithm that measures how close the price is to the specified liquidity zones. In this way:
Price movements that are less than 2% away from the upper liquidity zone are analyzed.
The same methodology is used for proximity to the middle liquidity zone and lower liquidity zone.
The user is warned when a long trap or short trap occurs with the alarm system.
---
FOMO and Panic Algorithm
These updates include additional parameters to analyze investor psychology:
FOMO (Fear of Missing Out):
A FOMO signal is generated when the RSI level is high, the price is near the upper or middle liquidity zones, and sudden price/volume increases are seen.
This signal allows the investor to avoid making unconscious purchases.
Panic:
A panic signal is triggered when the RSI level is low, the price is near the lower or middle liquidity zones, and sudden decreases are seen.
This is designed to prevent investors from selling hastily.
---
Benefits of the Developments
1. Prevention of Manipulations:
Price movements are analyzed according to liquidity zones, aiming to protect investors against market maker manipulations.
2. Stronger Strategy with Reaction Levels:
Visualization of long and short liquidity zones provides more reliable signals in trading strategies.
3. Understanding Psychological Barriers:
The impact of investor behavior on the market is better analyzed with FOMO and Panic signals.
4. Advanced Filtering Based on Volume and Volatility:
Volume and volatility analysis minimizes false signals.
---
Conclusion
With these updates, LuxAlgo’s original Buy-Side & Sell-Side Liquidity indicator has been made a more powerful tool. Users can make more informed trades by identifying important levels that market makers may target. Combining multiple variables such as volume, liquidity, RSI and psychological barriers, this system provides a more robust analysis, especially in the cryptocurrency market.
Predictive Ranges [LuxAlgo] with BTC/USDT.D AnalysisIn this article, we will take a detailed look at how to customize the LuxAlgo Predictive Ranges indicator used in TradingView, how to make it more useful, and how to integrate additional functions. This indicator is a powerful analysis tool used specifically to predict movements in the BTC/USDT pair and generate buy-sell signals.
1. What is LuxAlgo Predictive Ranges?
The Predictive Ranges indicator developed by LuxAlgo predicts potential buy and sell zones based on the averages and volatility of the price over a certain period of time. This shows how much the price can fluctuate within a certain range and which zones it can move towards. Ranges usually cover two main areas, the upper and lower limits, and provide information on how the price movement will shape between these limits.
2. Extra Features and Enhancements
The above Pine Script code builds on LuxAlgo’s core Predictive Ranges functionality and adds a few important enhancements:
2.1. Comparing BTC and USDT Dominance Ranges
While the original LuxAlgo indicator only works on a specific asset, this customized version also makes predictions on the BTC/USDT pair as well as the USDT market dominance (USDT.D). This way, it is possible to understand how BTC is positioned against the general market movements.
Checking if BTC is in the Upper and Lower Zones: Buy and sell signals are generated based on whether the price of BTC is in the upper or lower zones within certain ranges.
Checking if USDT.D is in the Upper and Lower Zones: Similarly, the market dominance of USDT is also analyzed using these ranges.
The comparison between these two assets allows for more reliable signals to be generated based on market conditions. For example, when the BTC price is in the lower range and USDT.D is in the upper range, this could signal a BTC buying opportunity.
2.2. Fibonacci Levels
Fibonacci levels are widely used to predict potential retracements or bounces in price action. In this indicator, various Fibonacci levels are calculated between the prR2 and prS2 levels. This provides additional guidance for traders on where the price could retrace or bounce.
Fibonacci Levels:
13% (Fib13)
23% (Fib23)
38% (Fib38)
61% (Fib61)
70% (Fib70)
79% (Fib79)
86% (Fib86)
100% (Fib100)
These Fibonacci levels are used to predict potential support and resistance levels in price action.
2.3. RSI and Volume Analysis
RSI (Relative Strength Index) is an oscillator widely used to determine whether the price is overbought or oversold. Another important feature of this indicator is that it can analyze the strength of price movements with the RSI Period and Volume Coefficient settings. Volume analysis in particular provides additional information on whether a movement is sustainable or not. If the volume exceeds the average volume, this usually indicates that the price movement is strong.
RSI values are also calculated in different time frames (15 minutes, 30 minutes, 1 hour, 4 hours, 1 day), helping traders understand short-term and long-term market forces. In addition, the upper and lower threshold values of the RSI are determined, allowing for more clear monitoring of overbought and oversold conditions.
2.4. Indicators and Alarm Conditions on the Chart
The following features have been added to the chart regarding RSI and trend strength:
Rising Strength: The RSI value and the general condition of the price create signals that the trend is rising.
Falling Strength: Similarly, when the RSI value is low and the price is moving down, signals indicating a bearish trend are generated.
Buy and sell signals are generated only when BTC and USDT.D are in opposite zones. This ensures more accurate and reliable signals.
3. Custom Customizations for Users
This indicator can be customized according to the different analysis needs of users:
Length and Factor: Length and Mult factors are used to adjust the sensitivity of the indicator. This is important for customizing the trading strategy.
Timeframe Options: Users can analyze BTC and USDT.D in different timeframes.
RSI and Volume Settings: RSI period, upper and lower thresholds, and volume coefficient can be set by the user.
4. Alarm Conditions
Users can set the following alarm conditions to receive an alarm when certain conditions occur:
Buy Alarm: Triggered when BTC is in the buy zone and USDT.D is in the sell zone.
Sell Alert: Triggered when BTC is in the sell zone and USDT.D is in the buy zone.
Trend Strength Alerts: Rising or falling strength alerts with RSI value and volume.
Conclusion
LuxAlgo's Predictive Ranges indicator is a great way to predict market movements
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.
Supply & Demand Zone AnalyzerTradingView Publication Article: "Supply & Demand Zone Analyzer"
Title:
"Supply & Demand Zone Analyzer: Master Support and Resistance with Precision"
Introduction:
Support and resistance zones are the cornerstone of technical analysis in trading. These zones help identify where price movements may pause or reverse. The Supply & Demand Zone Analyzer is a powerful indicator designed to dynamically detect these critical areas while offering insights into potential breakouts.
In this article, we'll explore how the indicator works, its features, and how to make the most of it.
Features:
Dynamic Support and Resistance Zones:
Automatically plots supply (resistance) and demand (support) zones based on swing highs and swing lows.
Visually highlights these zones directly on your chart.
Breakout Detection:
Identifies when price breaks above a resistance zone or below a support zone.
Displays "Broken Supply" or "Broken Demand" labels for clear recognition.
Customizable Colors and Labels:
Adjust the colors of support, resistance, broken zones, and labels to match your charting style.
Add descriptive text inside the zones.
Proximity Filtering:
Prevents overlapping or closely spaced zones for a cleaner, more interpretable chart.
Fixed Text Size:
Labels inside zones maintain a consistent size, unaffected by chart zooming.
How to Use:
Add the Indicator to Your Chart:
Search for "Supply & Demand Zone Analyzer" on TradingView.
Click "Add to Chart" to enable the indicator.
Adjust Parameters:
Swing Length: Sets the number of candles used to define swing highs and lows.
ATR Period: Configures the period for ATR-based zone width calculation.
Minimum Distance: Defines the minimum distance between zones to avoid overlapping.
Show Broken Zones: Choose whether to display or hide broken support and resistance zones.
Customize Colors:
Modify the default colors for supply, demand, and broken zones in the settings.
Technical Details:
Written in Pine Script, TradingView's proprietary scripting language.
Uses ATR (Average True Range) for dynamic zone width calculation.
Automatically extends zones until they are invalidated by a breakout or removed by proximity filtering.
Who Should Use This?
Beginner Traders:
Learn and visualize critical support and resistance areas easily.
Experienced Traders:
Gain deeper insights with breakout detection and advanced filtering.
Swing and Scalping Traders:
Quickly identify high-probability reversal or breakout zones for short- and medium-term trading.
Example Chart:
(Attach a screenshot of the indicator applied to a chart.)
Conclusion:
The Supply & Demand Zone Analyzer takes the guesswork out of identifying support and resistance. With its user-friendly interface, customizable options, and breakout detection, this indicator is perfect for traders of all experience levels.
Try it out today via our TradingView page and share your feedback or suggestions. Let's master the markets together!
Extra Tips for Publication:
Include backtest results or strategy examples to showcase the indicator's utility.
Highlight practical use cases, like combining the zones with other indicators (e.g., RSI or volume).
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!
Correlation Coefficient Master TableThe Correlation Coefficient Master Table is a comprehensive tool designed to calculate and visualize the correlation coefficient between a selected base asset and multiple other assets over various time periods. It provides traders and analysts with a clear understanding of the relationships between assets, enabling them to analyze trends, diversification opportunities, and market dynamics. You can define key parameters such as the base asset’s data source (e.g., close price), the assets to compare against (up to six symbols), and multiple lookback periods for granular analysis.
The indicator calculates the covariance and normalizes it by the product of the standard deviations. The correlation coefficient ranges from -1 to +1, with +1 indicating a perfect positive relationship, -1 a perfect negative relationship, and 0 no relationship.
You can specify the lookback periods (e.g., 15, 30, 90, or 120 bars) to tailor the calculation to their analysis needs. The results are visualized as both a line plot and a table. The line plot shows the correlation over the primary lookback period (the Chart Length), which can be used to inspect a certain length close up, or could be used in conjunction with the table to provide you with five lookback periods at once for the same base asset. The dynamically created table provides a detailed breakdown of correlation values for up to six target assets across the four user-defined lengths. The table’s cells are formatted with rounded values and color-coded for easy interpretation.
This indicator is ideal for traders, portfolio managers, and market researchers who need an in-depth understanding of asset interdependencies. By providing both the numerical correlation coefficients and their visual representation, users can easily identify patterns, assess diversification strategies, and monitor correlations across multiple timeframes, making it a valuable tool for decision-making.
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
Financials Score All Description of the "Financials Score All" Script
This Pine Script calculates a financial score for a specific stock, based on various financial metrics. The purpose is to provide a comprehensive numerical score that reflects the financial health of the stock. The score is calculated using multiple financial indicators, including profitability, valuation, debt management, and liquidity. Here’s a breakdown of what each part of the script does:
period = input.string('FQ', 'Period', options= )
FQ refers to Quarterly financial data.
FY refers to Fiscal Year financial data.
Financial Metrics:
The script uses various financial metrics to calculate the score. These are obtained via request.financial, which retrieves financial data for the stock from TradingView's database. Below are the metrics used:
opmar (Operating Margin): Measures the company's profitability as a percentage of revenue.
eps (Earnings Per Share): Represents the portion of a company's profit allocated to each outstanding share.
eps_ttm (Earnings Per Share – Trailing Twelve Months): EPS over the most recent 12 months.
pe_ratio (Price-to-Earnings Ratio): A measure of the price investors are willing to pay for a stock relative to its earnings.
pb_ratio (Price-to-Book Ratio): A valuation ratio comparing a company’s market value to its book value.
de_ratio (Debt-to-Equity Ratio): A measure of the company’s financial leverage, showing how much debt it has compared to shareholders' equity.
roe_pb (Return on Equity Adjusted to Book): Measures the company's profitability relative to its book value.
fcf_per_share (Free Cash Flow per Share): Represents the free cash flow available for dividends, debt reduction, or reinvestment, per share.
pfcf_ratio (Price-to-Free-Cash-Flow Ratio): A measure comparing a company’s market value to its free cash flow.
current_ratio (Current Ratio): A liquidity ratio that measures a company's ability to pay short-term obligations with its current assets.
RSI Calculation:
The script calculates the Relative Strength Index (RSI) for the stock using an 8-period lookback:
rsi = ta.rsi(close, 8)
Score Calculation:
The script calculates a total score by adding points based on the values of the financial metrics. Each metric is checked against a condition, and if the condition is met, the score is incremented:
If the Operating Margin (opmar) is greater than 20, the score is incremented by 20 points.
If Earnings Per Share (EPS) is positive, 10 points are added.
If the P/E ratio is between 0 and 20, 10 points are added.
If the P/B ratio is less than 3, 10 points are added.
If the Debt-to-Equity ratio is less than 0.8, 10 points are added.
If the Return on Equity Adjusted to Book is greater than 10, 10 points are added.
If the P/FCF ratio is between 0 and 15, 10 points are added.
If the Current Ratio is greater than 1.61, 10 points are added.
If the RSI is less than 35, 10 points are added.
The score is accumulated based on these conditions and stored in the total_score variable.
Displaying the Total Score:
Finally, the total score is plotted on the chart:
Summary of How It Works:
This script calculates a financial score for a stock using a variety of financial indicators. Each metric has a threshold, and when the stock meets certain criteria (for example, a good operating margin, a healthy debt-to-equity ratio, or a low P/E ratio), points are added to the overall score. The result is a single numerical value that reflects the financial health of the stock.
This score can help traders or investors identify companies with strong financials, or serve as a comparison tool between different stocks based on their financial health.
Generally >60 is the best stocks for med and long term trades