Multi-Frame Market Sentiment DashboardOverview
This Pine Script™ code generates a "Market Sentiment Dashboard" on TradingView, providing a visual summary of market sentiment across multiple timeframes. This tool aids traders in making informed decisions by displaying real-time sentiment analysis based on Exponential Moving Averages (EMA).
Key Features
Panel Positioning:
Custom Placement: Traders can position the dashboard at the top, middle, or bottom of the chart and align it to the left, center, or right, ensuring optimal integration with other chart elements.
Customizable Colors:
Sentiment Colors: Users can define colors for bullish, bearish, and neutral market conditions, enhancing the dashboard's readability.
Text Color: Customizable text color ensures clarity against various background colors.
Label Size:
Scalable Labels: Adjustable label sizes (from very small to very large) ensure readability across different screen sizes and resolutions.
Market Sentiment Calculation:
EMA-Based Sentiment: The dashboard calculates sentiment using a 9-period EMA. If the EMA is higher than two bars ago, the sentiment is bullish; if lower, it's bearish; otherwise, it's neutral.
Multiple Timeframes: Sentiment is calculated for several timeframes: 1 minute, 3 minutes, 5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hours, and 1 day. This broad analysis provides a comprehensive view of market conditions.
Dynamic Table:
Structured Display: The dashboard uses a table to organize and display sentiment data clearly.
Real-Time Updates: The table updates in real-time, providing traders with up-to-date market information.
How It Works
EMA Calculation: The script requests EMA(9) values for each specified timeframe and compares the current EMA with the EMA from two bars ago to determine market sentiment.
Color Coding: Depending on the sentiment (Bullish, Bearish, or Neutral), the corresponding cell in the table is color-coded using predefined colors.
Table Display: The table displays the timeframe and corresponding sentiment, allowing traders to quickly assess market trends.
Benefits to Traders
Quick Assessment: Traders can quickly evaluate market sentiment across multiple timeframes without switching charts or manually calculating indicators.
Enhanced Visualization: The color-coded sentiment display makes it easy to identify trends at a glance.
Multi-Timeframe Analysis: Provides a broad view of short-term and long-term market trends, helping traders confirm trends and avoid false signals.
This dashboard enhances the overall trading experience by providing a comprehensive, customizable, and easy-to-read summary of market sentiment.
Usage Instructions
Add the Script to Your Chart: Apply the "Market Sentiment Dashboard" indicator to your TradingView chart.
Customize Settings: Adjust the panel position, colors, and label sizes to fit your preferences.
Interpret Sentiment: Use the color-coded table to quickly understand the market sentiment across different timeframes and make informed trading decisions.
移動平均線
PROWIN STUDY BASIC CURRENT CANDLE TABLE**PROWIN STUDY BASIC CURRENT CANDLE TABLE**
**Description:**
The PROWIN STUDY BASIC CURRENT CANDLE TABLE indicator provides an insightful analysis of the current candle's volume and its comparative performance against the last 50 candles. This script includes several features designed to help traders understand volume trends and potential market direction.
**Key Features:**
1. **Volume Analysis**:
- Accesses the current candle's volume and compares it with the highest and lowest volumes over the past 50 candles.
- Calculates the average volume between the highest and lowest values for a better perspective.
2. **Candle Trend Identification**:
- Identifies whether the current candle is bullish or bearish by comparing the current close price with the previous close price.
3. **Average Volume Calculation**:
- Computes the average volume of bullish (green) and bearish (red) candles over the last 50 periods.
- Derives an average value between the green and red volume averages.
4. **Volume Slope Calculation**:
- Calculates the difference in volume averages (EMAs) between successive periods to determine the slope.
- Computes the angle of inclination for green, red, and average volume lines in degrees.
5. **Plotting**:
- Plots the average volumes of green and red candles as well as the combined average on the chart.
- Visualizes these metrics with color-coded lines for quick interpretation.
6. **Dynamic Table**:
- Displays a dynamic table on the chart that updates in real-time.
- Shows the angles of inclination for buy (green), sell (red), and average volume (blue) with corresponding background colors.
7. **Customizable Background**:
- Includes an option to set a semi-transparent background color for the chart, enhancing visual clarity.
This indicator is designed to help traders gain deeper insights into market volume dynamics and make more informed trading decisions. Whether you're analyzing short-term movements or long-term trends, the PROWIN STUDY BASIC CURRENT CANDLE TABLE offers valuable data at a glance.
Multi-Timeframe Trend Cloud (EMA13/21) with Alerts Purpose:
This indicator combines trend analysis across multiple timeframes with alerts to help identify general trends and market shifts. It visualizes trends by creating EMA clouds (The area between EMA13 & EMA21), detects confirmed EMA crossovers, and can alert users when the price re-enters the cloud or interacts with the EMA200.
Input Parameters:
Lower Timeframe (LTF): Allows you to select the lower timeframe for trend analysis (e.g., 1 hour, 4 hours).
Higher Timeframe (HTF): Allows you to select the higher timeframe for the main trend reference (e.g., 4 hours, 1 day).
Fill Colors: You can customize the colors used to fill the areas between the EMA lines in both the higher and lower timeframes. Note: The LTF cloud defaults to transparent white so if you have a light background change the color in style settings.
The EMA's default to transparent but can be turned on in the style settings.
Calculating & Plotting EMAs:
The indicator calculates two Exponential Moving Averages (EMAs) on both the LTF and HTF: a faster 13-period EMA and a slower 21-period EMA.
Additionally, it calculates a 200-period EMA on the HTF.
These EMAs are plotted on your chart, providing a visual representation of the trend.
Identifying Trend States:
The script uses the relationships between the price and the 13-period and 21-period EMAs on the Higher Time Frame (HTF) to identify four distinct trend states, each depicted by a specific color to create the "Trend Cloud":
Strong Bull Trend: The 13-period EMA is above the 21-period EMA, and the price is above both EMAs. --- "Color 0" in HTF Trend style settings.
Broken Bullish Trend: The 13-period EMA is above the 21-period EMA but price has broken below both EMA's. --- "Color 3" in HTF Trend style settings.
Strong Bear Trend: The 13-period EMA is below the 21-period EMA, and the price is below both EMAs. --- "Color 2" in HTF Trend style settings.
Broken Bearish Trend: The 13-period EMA is below the 21-period EMA but price has broken above both EMA's. --- "Color 1" in HTF Trend style settings.
Important Note: The 200-period EMA is plotted for reference but is not directly used in determining the current trend state within this script.
Confirmed Crossover Signals:
The indicator plots upward or downward triangles to signal confirmed crossovers of the EMA13 and EMA21 on the HTF. A crossover is considered "confirmed" when it's followed by a candle closing on the same side of the crossing point, adding an extra layer of confidence to the signal.
Cloud Re-entry Alerts:
Receive alerts whenever the price re-enters the HTF cloud - aka "Trend".
EMA200 Retest Alerts:
Get alerts when the price touches the 200 EMA on the HTF. These alerts can be valuable for identifying potential trend reversals or trend continuation scenarios.
Benefits:
Clear Visual Representation: Easily visualize trends on both the lower and higher timeframes.
Confirmed Signals: Filter out false signals by focusing on confirmed crossovers.
Timely Alerts: Get instant notifications for important price actions, allowing you to react quickly to market opportunities.
Customizable: Tailor the indicator's appearance and alert settings to your preferences.
How to Use:
Add the indicator to your chart.
Select your desired LTF and HTF in the Inputs tab.
Customize the fill colors (and optional EMA line colors) in the Style tab.
Enable the alerts you want to receive in the Alerts tab.
Note: This indicator is a great tool for trend analysis, but it should be used with other forms of analysis and risk management techniques to make informed trading decisions.
Kaufman Adaptive Moving Average (KAMA) Strategy [TradeDots]"The Kaufman Adaptive Moving Average (KAMA) Strategy" is a trend-following system that leverages the adaptive qualities of the Kaufman Adaptive Moving Average (KAMA). This strategy is distinguished by its ability to adjust dynamically to market volatility, enhancing trading accuracy by minimizing the effects of false and delayed signals often associated with the Simple Moving Average (SMA).
HOW IT WORKS
This strategy is centered around use of the Kaufman Adaptive Moving Average (KAMA) indicator, which refines the principles of the Exponential Moving Average (EMA) with a superior smoothing technique.
KAMA distinguishes itself by its responsiveness to changes in market prices through an "Efficiency Ratio (ER)." This ratio is computed by dividing the recent absolute net price change by the cumulative sum of the absolute price changes over a specified period. The resulting ER value ranges between 0 and 1, where 0 indicates high market noise and 1 reflects stronger market momentum.
Using ER, we could get the smoothing constant (SC) for the moving average derived using the following formula:
fastest = 2/(fastma_length + 1)
slowest = 2/(slowma_length + 1)
SC = math.pow((ER * (fastest-slowest) + slowest), 2)
The KAMA line is then calculated by applying the SC to the difference between the current price and the previous KAMA.
APPLICATION
For entering long positions, this strategy initializes when there is a sequence of 10 consecutive rising KAMA lines. Conversely, a sequence of 10 consecutive falling KAMA lines triggers sell orders for long positions. The same logic applies inversely for short positions.
DEFAULT SETUP
Commission: 0.01%
Initial Capital: $10,000
Equity per Trade: 80%
Users are advised to adjust and personalize this trading strategy to better match their individual trading preferences and style.
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
Volume Surge Analysis [UAlgo]The "Volume Surge Analysis " indicator is designed to detect significant volume surges in the market. By analyzing volume relative to its moving average and incorporating a comparison of the true range of price movements, this script highlights potential bullish and bearish volume spikes. Traders can utilize these signals to identify moments of heightened market activity that may indicate strong buying or selling pressure.
🔶Features
Volume Multiplier: Customizable setting to define the threshold for what constitutes a volume surge.
Volume SMA Length: Adjustable length for the Simple Moving Average (SMA) of volume.
Price Movement Analysis
Enhances the volume analysis by adding an additional layer of context, helping to confirm whether a volume surge is associated with buying or selling pressure.
True Range Calculation: Measures the range of price movement to understand volatility.
Positive Movement (DM+): Calculated when the current high minus the previous high is greater than the previous low minus the current low. This helps identify strong upward movements.
Negative Movement (DM-): Calculated when the previous low minus the current low is greater than the current high minus the previous high. This helps identify strong downward movements.
Integration with Volume Analysis: By combining the volume analysis with price movement analysis, the script can more accurately determine whether a volume surge is likely driven by bullish or bearish sentiment. This integration helps filter out false signals and provides more reliable indications of market activity.
Median Volume Comparison: Compares the current volume against the median volume multiplied by the volume multiplier to identify significant volume spikes.
Bullish and Bearish Surge Signals: Plots circles above or below bars where significant volume surges occur, indicating potential bullish or bearish movements.
Color Customization: Options to set specific colors for bullish and bearish signals to enhance visual clarity.
Bar Coloring: Optional feature to change the color of bars based on detected volume surges.
Alerts: Configurable alerts for bullish and bearish volume spikes to notify traders in real-time.
🔶Interpretation:
Bullish Volume Surges ( Teal Circles ): These circles appear above the bar when the current volume exceeds the median volume by the specified Volume Multiplier, and the smoothed Positive Directional Index (PDI) is greater than the smoothed Negative Directional Index (NDI). This suggests a potential uptrend with strong buying pressure.
Bearish Volume Surges ( Red Circles ): These circles appear below the bar when the current volume exceeds the median volume by the specified Volume Multiplier, and the smoothed NDI is greater than the smoothed PDI. This suggests a potential downtrend with strong selling pressure.
Overall, the "Volume Surge Analysis " indicator serves as a valuable tool for traders seeking to identify potential trend reversals or strong continuations based on with an above-average rise in volume and directional momentum.
🔶Disclaimer
This indicator is intended for informational and educational purposes only and should not be construed as financial or investment advice. Trading involves substantial risk, and it is essential to conduct your own research and consult with a qualified financial advisor before making any trading decisions.
Micho 150 SMA indicatorAMEX:SPY NASDAQ:MSFT This Pine Script indicator is designed to assist traders by displaying a 150-day Simple Moving Average (SMA) and a stop loss level based on a user-defined percentage below the 150-day SMA. It also marks significant crossover events with labels and highlights potential trend changes using Golden Cross and Death Cross indicators.
Features:
150-Day Simple Moving Average (SMA):
The script calculates and plots the 150-day SMA of the closing prices. This is a common technical indicator used to determine the overall trend of a security. The 150-day SMA is plotted in gray on the chart.
Stop Loss Price:
Users can define a stop loss percentage through an input field. This percentage is used to calculate a stop loss price that is plotted 1% (or user-defined percentage) below the 150-day SMA. The stop loss line is plotted in red on the chart. This helps traders manage risk by indicating a price level where they might consider exiting a trade to prevent further losses.
Buy and Sell Signals:
The script identifies potential buy and sell signals based on crossovers of the closing price with the 150-day SMA:
Buy Signal: When the closing price crosses above the 150-day SMA.
Sell Signal: When the closing price crosses below the 150-day SMA.
Labels are plotted at the crossover points to indicate "start follow" for buy signals (in green) and "check stoploss" for sell signals (in red).
Golden Cross and Death Cross:
The script also identifies Golden Cross and Death Cross events:
Golden Cross: Occurs when the 50-day SMA crosses above the 200-day SMA. This is generally considered a bullish signal indicating a potential upward trend.
Death Cross: Occurs when the 50-day SMA crosses below the 200-day SMA. This is generally considered a bearish signal indicating a potential downward trend.
These crossover events are marked with labels on the chart: "Golden Cross" (in yellow) and "Death Cross" (in yellow)
Session MasterSession Master Indicator
Overview
The "Session Master" indicator is a unique tool designed to enhance trading decisions by providing visual cues and relevant information during the critical last 15 minutes of a trading session. It also integrates advanced trend analysis using the Average Directional Index (ADX) and Directional Movement Index (DI) to offer insights into market trends and potential entry/exit points.
Originality and Functionality
This script combines session timing, visual alerts, and trend analysis in a cohesive manner to give traders a comprehensive view of market behavior as the trading day concludes. Here’s a breakdown of its key features:
Last 15 Minutes Highlight : The script identifies the last 15 minutes of the trading session and highlights this period with a semi-transparent blue background, helping traders focus on end-of-day price movements.
Previous Session High and Low : The script dynamically plots the high and low of the previous trading session. These levels are crucial for identifying support and resistance and are highlighted with dashed lines and labeled for easy identification during the last 15 minutes of the current session.
Directional Movement and Trend Analysis : Using a combination of ADX and DI, the script calculates and plots trend strength and direction. A 21-period Exponential Moving Average (EMA) is plotted with color coding (green for bullish and red for bearish) based on the DI difference, offering clear visual cues about the market trend.
Technical Explanation
Last 15 Minutes Highlight:
The script checks the current time and compares it to the session’s last 15 minutes.
If within this period, the background color is changed to a semi-transparent blue to alert the trader.
Previous Session High and Low:
The script retrieves the high and low of the previous daily session.
During the last 15 minutes of the session, these levels are plotted as dashed lines and labeled appropriately.
ADX and DI Calculation:
The script calculates the True Range, Directional Movement (both positive and negative), and smoothes these values over a specified length (28 periods by default).
It then computes the Directional Indicators (DI+ and DI-) and the ADX to gauge trend strength.
The 21-period EMA is plotted with dynamic color changes based on the DI difference to indicate trend direction.
How to Use
Highlight Key Moments: Use the blue background highlight to concentrate on market movements in the critical last 15 minutes of the trading session.
Identify Key Levels: Pay attention to the plotted high and low of the previous session as they often act as significant support and resistance levels.
Assess Trend Strength: Use the ADX and DI values to understand the strength and direction of the market trend, aiding in making informed trading decisions.
EMA for Entry/Exit: Use the color-coded 21-period EMA for potential entry and exit signals based on the trend direction indicated by the DI.
Conclusion
The "Session Master" indicator is a powerful tool designed to help traders make informed decisions during the crucial end-of-session period. By combining session timing, previous session levels, and advanced trend analysis, it provides a comprehensive overview that is both informative and actionable. This script is particularly useful for intraday traders looking to optimize their strategies around session close times.
VAMSI ADVANCE Entry HelperThe "VAMSI Entry Helper" indicator is designed to assist traders in identifying potential entry points in the market by analyzing price equilibrium and liquidity equilibrium using a combination of Relative Strength Index (RSI) and moving averages. Here’s a detailed description of its components and functionality:
Components of the Indicator:
RSI (Relative Strength Index):
RSI Length: This parameter (rsiLengthInput) controls the period over which the RSI is calculated. It is set to 50 by default, but you can adjust it as needed.
RSI Source: The source of the price data for calculating the RSI, which is the closing price by default.
Moving Average (MA):
MA Type: You can choose between Simple Moving Average (SMA) and Exponential Moving Average (EMA) for smoothing the RSI values.
MA Length: This parameter (maLengthInput) controls the period over which the moving average of the RSI is calculated. It is set to 60 by default.
Functionality:
RSI Calculation:
The script calculates the RSI based on the selected source and length. RSI is a momentum oscillator that measures the speed and change of price movements and oscillates between 0 and 100.
The RSI calculation involves computing the average gains and losses over the specified period (rsiLengthInput), and then applying the RSI formula.
Moving Average of RSI:
After calculating the RSI, the indicator computes a moving average of the RSI values using the specified type (SMA or EMA) and length (maLengthInput). This smoothed RSI helps in identifying the equilibrium of liquidity.
Plots:
RSI Plot: The RSI values are plotted on the chart with a purple line (#4B0082), providing a visual representation of price equilibrium.
MA Plot: The moving average of the RSI is plotted with a black line, showing the smoothed trend of the RSI.
Middle Band: A horizontal line at the 50 level is plotted as a reference point, indicating the midpoint of the RSI scale. This can help in identifying overbought and oversold conditions.
Use Case:
Price Equilibrium: The RSI plot helps traders identify when the price is relatively strong or weak. RSI values above 70 may indicate an overbought condition, while values below 30 may indicate an oversold condition.
Liquidity Equilibrium: The moving average of the RSI provides a smoothed view of the RSI, helping traders see the overall trend of liquidity equilibrium.
Example Usage:
Entry Points: Traders might look for entry points when the RSI crosses above or below its moving average, indicating potential changes in momentum.
Overbought/Oversold Conditions: Traders can use the RSI values along with the middle band (50) to identify overbought (RSI > 70) and oversold (RSI < 30) conditions.
Customization:
RSI Length: Adjustable to fit different trading strategies and timeframes.
Source: You can change the source data for the RSI calculation (e.g., close, open, high, low).
MA Type and Length: You can choose between SMA and EMA and adjust the period to better fit your trading style.
This indicator provides a comprehensive tool for traders to analyze price and liquidity equilibrium, helping them make informed decisions about entry points in the market.
Rolling VWAPThe Rolling VWAP indicator is a powerful technical analysis tool designed to help traders identify significant price levels and potential reversal points. This indicator combines a rolling volume-weighted average price (VWAP) with multiple standard deviation bands to provide a dynamic view of price volatility and market trends.
Key Features:
Rolling VWAP Calculation: The indicator calculates the VWAP using the high, low, and close prices (HLC3) over a user-defined rolling period. This VWAP is then plotted on the chart, providing a reliable benchmark for average price levels over a specified timeframe.
Adjustable Timeframes: Users can select from multiple timeframes (1 hour, 4 hours, 1 day, 3 days, 1 week) to calculate the RVWAP, allowing flexibility to analyze market trends over different periods.
Multiple Standard Deviation Bands: The indicator includes up to five adjustable standard deviation bands, each with customizable multipliers. These bands are plotted around the RVWAP to indicate potential support and resistance levels, helping traders identify areas of high and low volatility.
Customizable Display Settings: Users can toggle the visibility of each band and adjust their colors and transparency, making it easy to tailor the indicator to their specific analysis needs.
How to Use:
Selecting the VWAP Timeframe: Choose the desired timeframe for VWAP calculation from the options provided (1 hour, 4 hours, 1 day, 3 days, 1 week). This allows you to analyze price action over different periods and identify significant trends.
Adjusting Band Multipliers: Customize the multipliers for each standard deviation band to suit your trading strategy. By default, the indicator includes bands with multipliers of 2.0, 2.5, 3.0, 3.5, and 4.0. Adjust these values based on your preferred levels of price deviation.
Interpreting the Bands: The standard deviation bands provide key insights into market volatility. Inner Bands (e.g., 2.0 StdDev) indicate areas of normal price fluctuation. Price movement within these bands is generally considered stable. Outer Bands (e.g., 3.5 or 4.0 StdDev) highlight extreme price deviations. Price reaching these bands may signal overbought or oversold conditions, potentially leading to reversals.
Combining with Other Indicators: Enhance your analysis by using this indicator in conjunction with other technical tools such as moving averages, RSI, or MACD. This helps confirm signals and improve trading decisions.
Best Practices:
Trend Identification: Use the Rolling VWAP to identify the prevailing market trend. A rising VWAP indicates an uptrend, while a falling VWAP suggests a downtrend.
Support and Resistance Levels: The standard deviation bands act as dynamic support and resistance levels. Monitor price action around these bands for potential entry and exit points.
Volatility Analysis: Wider bands indicate higher market volatility, while narrower bands suggest lower volatility. Adjust your trading strategy accordingly based on the observed volatility levels.
24/7 Trading Instruments: This indicator is particularly useful for instruments that trade 24/7 and do not have defined sessions, such as cryptocurrencies. Unlike a session-anchored VWAP, the rolling VWAP provides a continuous measure of average price levels, making it ideal for analyzing markets that operate around the clock.
By integrating the Rolling VWAP indicator into your trading routine, you can gain a deeper understanding of price dynamics and make more informed trading decisions. Whether you are a day trader, swing trader, or long-term investor, this indicator provides valuable insights to help you navigate the markets with confidence.
TrendMaster Pro IndicatorThe TrendMaster Pro Indicator is an advanced tool designed to assist traders in identifying potential buy and sell signals by leveraging a combination of exponential moving averages (EMAs), the relative strength index (RSI), and a custom volatility filter. This powerful indicator is suitable for traders of all levels and can be applied to various markets and timeframes, offering flexibility and reliability in trading decisions.
Key Features:
EMA Crossover Detection:
Utilizes a 5-period (short) and 13-period (long) EMA crossover to detect trend changes.
A bullish signal is generated when the 5 EMA crosses above the 13 EMA, indicating an upward trend.
A bearish signal is generated when the 5 EMA crosses below the 13 EMA, indicating a downward trend.
RSI Confirmation:
Incorporates a 14-period RSI to confirm the strength of detected trends.
A buy signal is validated when the RSI is above 50, indicating bullish momentum.
A sell signal is validated when the RSI is below 50, indicating bearish momentum.
Custom Volatility Filter:
Employs a volatility filter based on the standard deviation of closing prices over a specified period (default is 10 periods).
Ensures signals are only generated during periods of significant market movement, reducing noise and false signals.
The volatility threshold can be adjusted to suit different market conditions and trading styles.
How It Works:
EMA Crossover:
The TrendMaster Pro Indicator continuously monitors the crossover between the 5-period and 13-period EMAs.
A crossover event triggers the initial signal, suggesting a potential change in trend direction.
RSI Confirmation:
After an EMA crossover, the indicator checks the 14-period RSI value to confirm the trend's strength.
This confirmation step helps filter out weak or unreliable signals, ensuring only high-probability trades are considered.
Volatility Filter:
The indicator calculates the standard deviation of closing prices over the selected period to measure market volatility.
Signals are only generated if the volatility exceeds the user-defined threshold, ensuring that trades are made in active and dynamic market conditions.
How to Use:
Apply the Indicator:
Add the TrendMaster Pro Indicator to your trading chart via the TradingView platform.
Customize the EMA, RSI, and volatility settings according to your trading preferences and the specific market conditions.
Interpret Buy and Sell Signals:
Buy Signal: Look for a buy signal when the 5 EMA crosses above the 13 EMA, the RSI is above 50, and volatility exceeds the threshold. This combination indicates a strong bullish trend.
Sell Signal: Look for a sell signal when the 5 EMA crosses below the 13 EMA, the RSI is below 50, and volatility exceeds the threshold. This combination indicates a strong bearish trend.
Adjust Settings:
The default settings can be fine-tuned to match your trading strategy. Adjust the EMA lengths, RSI period, and volatility threshold to optimize the indicator for different assets and timeframes.
Unique Features:
Comprehensive Trend Detection: Combines multiple indicators (EMAs, RSI, volatility) to provide a holistic view of market trends.
Customizable: Easily adjustable settings allow traders to tailor the indicator to their specific needs and preferences.
Noise Reduction: The volatility filter ensures signals are generated only during significant market movements, improving signal accuracy and reliability.
Conclusion:
The TrendMaster Pro Indicator is a versatile and powerful tool that can enhance your trading strategy by providing clear and reliable buy and sell signals. Whether you are a day trader or a swing trader, this indicator can help you navigate the markets with confidence and precision. Add the TrendMaster Pro Indicator to your toolkit today and experience a new level of trading efficiency and effectiveness.
Exponential Moving Average with ADR bandIndicator: Exponential Moving Average with ADR Band
This TradingView script calculates and displays an Exponential Moving Average (EMA) along with an Average Daily Range (ADR) band around it. The indicator helps traders identify potential dynamic support and resistance levels adjusted for market volatility. Especially significant moves that originate from the ZONE and reach outside should be taken seriously.
Key Features:
EMA Calculation: The script computes the Exponential Moving Average (EMA) of the closing prices over a user-defined period.
ADR Band: It calculates the Average Daily Range (ADR) using a Simple Moving Average (SMA) of the daily high-low range over the same period.
Adjustable Parameters:
Length: The period for both the EMA and the ADR calculation, which can be set by the user (default is 20).
Multiple: A multiplier for the ADR to adjust the width of the bands around the EMA (default is 1).
Plotting: The EMA is plotted as an orange line. The upper and lower ADR bands are plotted around the EMA, and the area between these bands is filled with a translucent orange color to highlight the channel.
How It Works:
EMA Calculation: The script computes the EMA of the closing prices using the specified length.
ADR Calculation: The daily range (high-low) is averaged over the same length to get the ADR.
Band Creation: The upper band is created by adding the ADR (multiplied by the user-defined multiple) to the EMA. The lower band is created by subtracting the ADR (multiplied by the user-defined multiple) from the EMA.
Visualization: The EMA and ADR bands are plotted, and the area between the bands is filled to create a clear visual representation of the ADR channel.
Usage:
This indicator can be used to gauge market volatility and potential support/resistance zones.
The ADR band provides a dynamic range that adjusts with market conditions, helping traders identify potential breakout and reversal points.
To customize the indicator, adjust the 'Length' and 'ADR multiple' parameters to suit your trading style and the specific characteristics of the asset you are analyzing.
Volume Storm Trend [ChartPrime]The Volume Storm Trend (VST) indicator is a robust tool for traders looking to analyze volume momentum and trend strength in the market. By incorporating key volume-based calculations and dynamic visualizations, VST provides clear insights into market conditions.
Components:
Calculating the median of the source data.
Volume Power Calculation: The indicator calculates the "heat power" and "cold power" by applying an Exponential Moving Average (EMA) to the median of volume data arrays.
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙄𝙉𝘿𝙄𝘾𝘼𝙏𝙊𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
// ---------------------------------------------------------------------------------------------------------------------{
max_val = 1000
src = close
source = ta.median(src, len)
heat.push(src > source ? (volume > max_val ? max_val : volume) : 0)
heat.remove(0)
cold.push(src < source ? (volume > max_val ? max_val : volume) : 0)
cold.remove(0)
heat_power = ta.ema(heat.median(), 10)
cold_power = ta.ema(cold.median(), 10)
Visualization:
Gradient Colors: The indicator uses gradient colors to visualize bullish volume and bearish volume powers, providing a clear contrast between rising and falling trends.
Bars Fill Color: The color fill between high and low prices changes based on whether the heat power is greater than the cold power.
Bottom Line: A zero line with changing colors based on the dominance of heat or cold power.
Weather Symbols: Visual indicators ("☀" for hot weather and "❄" for cold weather) appear on the chart when the heat and cold powers crossover, helping traders quickly identify trend changes.
Inputs:
Source: The input data source, typically the closing price.
Median Length: The period length for calculating the median of the source. Default is 40.
Volume Length: The period length for calculating the average volume. Default is 3.
Show Weather: A toggle to display weather symbols on the chart. Default is false.
Temperature Type: Allows users to choose between Celsius (°C) and Fahrenheit (°F) for temperature display.
Show Weather Function:
The `Show Weather?` function enhances the VST indicator by displaying weather symbols ("☀" for hot and "❄" for cold) when there are significant crossovers between heat power and cold power. This feature adds a visual cue for potential market tops and bottoms. When the market heats to a high temperature, it often indicates a potential top, signaling traders to consider exiting long positions or preparing for a reversal.
Additional Features:
Dynamic Table Display: A table displays the current "temperature" on the chart, indicating market heat based on the calculated heat and cold powers.
The Volume Storm Trend indicator is a powerful tool for traders
looking to enhance their market analysis with volume and momentum insights, providing a clear and visually appealing representation of key market dynamics.
Total Cross CalculatorThe Indicator calculates the total number of the death and golden crosses in the total chart which can help the moving average user to compare the number of signals generated by the moving average pair in the given timeframe.
If Indicator is not plotting anything then right click on the indicator's scale and click on "Auto(data fits the screen)" option.
Please visit it's previous version if you want to use the indicator on the moving averages created by yourself. Link is here
Candle Size with Moving Averages and AlertsOverview
The "Candle Size with Moving Averages and Alerts" indicator is designed to provide traders with a visual representation of the size of each candle. This is useful for identifying periods of high volatility or significant price movements. The indicator also offers moving averages of the candle sizes and customizable alert thresholds to notify traders of unusually large or small candles.
Key Features
Candle Size Plot: Displays the size of each candle on a separate panel.
Moving Averages: Optionally plot moving averages of the candle sizes with customizable lengths and colors.
Alert Thresholds: Define thresholds to get alerted when candle sizes are unusually large or small.
Customizable Colors: Choose colors for different elements of the indicator.
Alerts: Visual and background color alerts for significant candle sizes.
How to Use the Indicator
Adding the Indicator to Your Chart
Open TradingView and navigate to your chart.
Click on the "Indicators" button at the top of the chart.
Search for "Candle Size with Moving Averages and Alerts."
Click on the indicator to add it to your chart.
Customizing the Indicator
Once the indicator is added to your chart, click on the settings icon (gear icon) next to the indicator's name in the chart legend.
This will open the settings panel where you can customize various parameters of the indicator.
Settings and Parameters
Show Moving Averages
Checkbox: Enable or disable the display of moving averages on the candle size plot.
MA Length 1
Input: Set the length of the first moving average (default is 14).
MA Length 2
Input: Set the length of the second moving average (default is 28).
Alert Threshold
Input: Define the threshold for alerts as a multiple of the average candle size (default is 1.5).
MA Color 1
Color Picker: Choose the color for the first moving average (default is blue).
MA Color 2
Color Picker: Choose the color for the second moving average (default is red).
Candle Size Color
Color Picker: Choose the color for the candle size plot (default is green).
Alert Threshold Color
Color Picker: Choose the color for the alert thresholds (default is orange).
Understanding the Plots
Candle Size Plot
The main plot shows the size of each candle (high minus low) in green by default.
This helps you visualize the volatility and identify significant price movements.
Moving Averages
If enabled, two moving averages are plotted on the candle size chart to help you understand the average candle size over different periods.
MA 1 (blue by default) and MA 2 (red by default) provide a smoothed view of the candle sizes.
Alert Thresholds
The upper and lower thresholds are plotted as dashed lines (orange by default).
The upper threshold indicates an unusually large candle size, while the lower threshold indicates an unusually small candle size.
Alerts and Background Colors
When the candle size exceeds the upper threshold, an alert is triggered, and the background color changes to a semi-transparent orange.
When the candle size falls below the lower threshold, an alert is triggered, and the background color changes to a semi-transparent orange.
These visual cues help you quickly identify significant candle sizes.
Example Settings
MA Length 1: 14
MA Length 2: 28
Alert Threshold: 1.5
MA Color 1: Blue
MA Color 2: Red
Candle Size Color: Green
Alert Threshold Color: Orange
Long/Short EMA Premium [NL]1. EMA Calculation :
- The script calculates three Exponential Moving Averages (EMAs): EMA 1, EMA 2, and EMA 50.
- The lengths of EMA 1 and EMA 2 are customizable by the user inputs `ema1Length` and `ema2Length`, respectively.
- EMA 50 is fixed with a length of 50.
2. EMA Crossover Detection :
- The script detects crossovers between EMA 1 and EMA 2 using the `ta.crossover()` and `ta.crossunder()` functions, storing the crossover events in the `cross` variable.
3. Crossover Symbol :
- A triangle-up shape is plotted below the bars when there is a crossover between EMA 1 and EMA 2. This symbol visually indicates the crossover points.
4. Trade Signals :
- Long and short signals are generated based on the crossover events and the relationship between the closing price and EMA 1.
- For a long signal, EMA 1 must cross above EMA 2, and both the current and previous closing prices must be above EMA 1.
- For a short signal, EMA 1 must cross below EMA 2, and both the current and previous closing prices must be below EMA 1.
5. Stop Conditions :
- Stop conditions are used to exit long or short trades.
- If in a long trade, the script checks if the low of the previous candle crossed below EMA 1 and the high of the current candle is below EMA 1. If true, it triggers the "Stop Long" condition.
- If in a short trade, the script checks if the high of the previous candle crossed above EMA 1 and the low of the current candle is above EMA 1. If true, it triggers the "Stop Short" condition.
6. Plotting :
- The script plots EMA 1, EMA 2, and EMA 50 on the chart to visualize their movements.
7. Alerts :
- The script generates alerts for EMA crossovers, long and short signals, as well as stop long and stop short conditions, allowing traders to receive notifications when these events occur.
Overall, the script provides a comprehensive EMA crossover strategy with customizable parameters and clear trade signals and exit conditions.
Candle Price MovementThis Pine Script indicator calculates and visualizes the price movement for each candlestick on the chart.
- **Calculation**: The price movement for each candle is determined by subtracting the opening price from the closing price.
- **Visualization**: The price movement is plotted as a histogram, with positive values indicating upward movement (green bars) and negative values indicating downward movement (red bars).
- **Options**:
- The histogram bars are colored blue with zero opacity, providing a clear visual distinction from the background.
- A horizontal line at zero (the "Zero Line") is added for reference, helping to identify periods of no price movement.
---
This indicator provides traders with a quick visualization of the price movement for each candlestick, helping to identify trends and potential trading opportunities.
Golden Cross VWMA & EMA 4h PinescriptlabsThis strategy combines the 50-period Volume-Weighted Moving Average (VWMA) on the current timeframe with a 200-period Simple Moving Average (SMA) on the 4-hour timeframe. This combination of indicators with different characteristics and time horizons aims to identify strong and sustained trends across multiple timeframes.
The VWMA is a variant of the moving average that assigns greater weight to periods of higher volatility, helping to avoid misleading signals. On the other hand, the 4-hour SMA is used as an additional trend filter in a shorter-term horizon. By combining these two indicators, the strategy can leverage the strength of the VWMA to capture the main trend, but only when confirmed by the SMA in the lower timeframe.
Buy signals are generated when the VWMA crosses above the 4-hour SMA, indicating a potential bullish trend aligned in both timeframes. Sell signals occur on a bearish cross, suggesting a possible reversal of the main trend.
The default parameters are a 50-period VWMA and a 200-period 4-hour SMA. It is recommended to adjust these lengths according to the traded instrument and the desired timeframe. It is also crucial to use stop losses and profit targets to properly manage risk.
By combining indicators of different types and timeframes, this strategy aims to provide a more comprehensive view of trend strength.
Español:
Esta estrategia combina la Volume-Weighted Moving Average (VWMA) de 50 períodos en el timeframe actual con una Simple Moving Average (SMA) de 200 períodos en el timeframe de 4 horas. Esta combinación de indicadores de distinta naturaleza y horizontes temporales busca identificar tendencias fuertes y sostenidas en múltiples timeframes.
La VWMA es una variante de la media móvil que asigna mayor ponderación a los períodos de mayor volatilidad, lo que ayuda a evitar señales engañosas. Por otro lado, la SMA de 4 horas se utiliza como un filtro adicional de tendencia en un horizonte de corto plazo. Al combinar estos dos indicadores, la estrategia puede aprovechar la fortaleza de la VWMA para capturar la tendencia principal, pero sólo cuando es confirmada por la SMA en el timeframe menor.
Las señales de compra se generan cuando la VWMA cruza al alza la SMA de 4 horas, indicando una potencial tendencia alcista alineada en ambos horizontes temporales. Las señales de venta ocurren en el cruce bajista, sugiriendo una posible reversión de la tendencia principal.
Los parámetros predeterminados son: VWMA de 50 períodos y SMA de 4 horas de 200 períodos. Se recomienda ajustar estas longitudes según el instrumento operado y el horizonte temporal deseado. También es crucial utilizar stops y objetivos de ganancias para controlar adecuadamente el riesgo.
Al combinar indicadores de diferentes tipos y timeframes, esta estrategia busca brindar una visión más completa de la fuerza de la tendencia.
Trend Following Parabolic Buy Sell Strategy [TradeDots]The Trend Following Parabolic Buy-Sell Strategy leverages the Parabolic SAR in combination with moving average crossovers to deliver buy and sell signals within a trend-following framework.
This strategy synthesizes proven methodologies sourced from various trading tutorials available on platforms such as YouTube and blogs, enabling traders to conduct robust backtesting on their selected trading pairs to assess the strategy's effectiveness.
HOW IT WORKS
This strategy employs four key indicators to orchestrate its trading signals:
1. Trend Alignment: It first assesses the relationship between the price and the predominant trendline to determine the directional stance—taking long positions only when the price trends above the moving average, signaling an upward market trajectory.
2. Momentum Confirmation: Subsequent to trend alignment, the strategy looks for moving average crossovers as a confirmation that the price is gaining momentum in the direction of the intended trades.
3. Signal Finalization: Finally, buy or sell signals are validated using the Parabolic SAR indicator. A long order is validated when the closing price is above the Parabolic SAR dots, and similarly, conditions are reversed for short orders.
4. Risk Management: The strategy institutes a fixed stop-loss at the moving average trendline and a take-profit level determinable by a prefixed risk-reward ratio calculated from the moving average trendline. These parameters are customizable by the users within the strategy settings.
APPLICATION
Designed for assets exhibiting pronounced directional momentum, this strategy aims to capitalize on clear trend movements conducive to achieving set take-profit targets.
As a lagging strategy that waits for multiple confirmatory signals, entry into trades might occasionally lag beyond optimal timing.
Furthermore, in periods of consolidation or sideways movement, the strategy may generate several false signals, suggesting the potential need for additional market condition filters to enhance signal accuracy during volatile phases.
DEFAULT SETUP
Commission: 0.01%
Initial Capital: $10,000
Equity per Trade: 70%
Users are advised to adjust and personalize this trading strategy to better match their individual trading preferences and style.
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
Multiple MAs Signals with RSI MA Filter & Signal About the Script
The "Multiple Moving Averages Signals with RSI MA Filter and Golden Signals" script is a comprehensive trading tool designed to provide traders with detailed insights and actionable signals based on multiple moving averages and RSI (Relative Strength Index). This script combines traditional moving average crossovers with RSI filtering to enhance the accuracy of trading signals and includes "golden" signals to highlight significant long-term trend changes.
This script integrates several technical indicators and concepts to create a robust and versatile trading tool. Here's why this combination is both original and useful:
1. Multiple Moving Averages:
- Why Use Multiple MAs: Different types of moving averages (SMA, EMA, SMMA, WMA, VWMA, Hull) offer unique perspectives on price trends and volatility. Combining them allows traders to capture a more comprehensive view of the market.
- Purpose: Using multiple moving averages helps identify trend direction, support/resistance levels, and potential reversal points.
2. RSI MA Filter:
- Why Use RSI: RSI is a momentum oscillator that measures the speed and change of price movements. It is used to identify overbought or oversold conditions in a market.
- Purpose: Filtering signals with RSI moving averages ensures that trades are taken in line with the prevailing momentum, reducing the likelihood of false signals.
3. Golden Signals:
- Why Use Golden Crosses: A golden cross (50-period MA crossing above the 200-period MA) is a well-known bullish signal, while a death cross (50-period MA crossing below the 200-period MA) is bearish. These signals are widely followed by traders and institutions.
- Purpose: Highlighting these significant long-term signals helps traders identify major buy or sell opportunities and align with broader market trends.
How the Script Works
1. Moving Average Calculations:
- The script calculates multiple moving averages (MA1 to MA5) based on user-selected types (SMA, EMA, SMMA, WMA, VWMA, Hull) and periods (9, 21, 50, 100, 200).
- Golden Moving Averages: Separately calculates 50-period and 200-period moving averages for generating golden signals.
2. RSI and RSI MA Filter:
- RSI Calculation: Computes the RSI for the given period.
- RSI MA: Calculates a moving average of the RSI to smooth out the RSI values and reduce noise.
- RSI MA Filter: Traders can enable/disable RSI filtering and set custom thresholds to refine long and short signals based on RSI momentum.
3. Long & Short Signal Generation:
- Long Signal: Generated when the short-term moving average crosses above both the mid-term and long-term moving averages, and the RSI MA is below the specified threshold (if enabled).
- Short Signal: Generated when the short-term moving average crosses below both the mid-term and long-term moving averages, and the RSI MA is above the specified threshold (if enabled).
4. Golden Signals:
- Golden Long Signal: Triggered when the 50-period golden moving average crosses above the 200-period golden moving average.
- Golden Short Signal: Triggered when the 50-period golden moving average crosses below the 200-period golden moving average.
How to Use the Script
1. Customize Inputs:
- Moving Averages: Choose the type of moving averages and set the periods for up to five different moving averages.
- RSI Settings: Adjust the RSI period and its moving average period. Enable or disable RSI filtering and set custom thresholds for long and short signals.
- Signal Colors: Customize the colors for long, short, and golden signals.
- Enable/Disable Signals: Toggle the visibility of long, short, and golden signals.
2. Observe Plots and Signals:
- The script plots the selected moving averages on the chart.
- Long and short signals are marked with labels on the chart, with customizable colors for easy identification.
- Golden signals are highlighted with specific labels to indicate significant long-term trend changes.
3. Analyze and Trade:
- Use the generated signals as part of your trading strategy. The script provides visual cues to help you make informed decisions about entering or exiting trades based on multiple technical indicators.
Unique Features
1. Integration of Multiple Moving Averages: Combines various moving average types to provide a holistic view of market trends.
2. RSI MA Filtering: Enhances signal accuracy by incorporating RSI momentum, reducing the likelihood of false signals.
3. Golden Signals: Highlights significant long-term trend changes, aligning with broader market movements.
4. Customizability: Offers extensive customization options, allowing traders to tailor the script to their specific trading strategies and preferences.
feel free to comments.
Total Death and Golden Crosses Calculator The Indicator calculates the total number of the death and golden crosses in the total chart which can help the moving average user to compare the number of signals generated by the moving average pair in the given timeframe.
All you need is to plot any two moving average then change the source of the indicator to get the total number of crosses.
If Indicator is not plotting anything then right click on the indicator's scale and click on "Auto(data fits the screen" option.
20,200SMA,PDHL,15 minute ORBSimple Moving Averages (SMAs):
The script calculates three SMAs: SMA 20 High, SMA 20 Low, and SMA 200 Close. These moving averages are widely used in technical analysis to smooth out price data and identify trends.
The SMA for the high price (SMA 20 High) is calculated based on the 20-period moving average of the high prices.
Similarly, the SMA for the low price (SMA 20 Low) is calculated based on the 20-period moving average of the low prices.
The SMA for the close price (SMA 200 Close) is calculated based on the 200-period moving average of the closing prices.
Each SMA is plotted on the chart, and their colors are determined based on whether the current close price is above or below each respective SMA.
Conditional Coloring:
The script employs conditional coloring to visually highlight whether the close price is above or below each SMA.
If the close price is below the SMA 20 High, it's plotted in red; otherwise, it's plotted in green.
Similarly, the SMA 20 Low and SMA 200 Close are plotted with conditional colors based on the relationship between the close price and each respective SMA.
Previous Day's Data:
The script retrieves and plots the high, low, and close prices of the previous trading day.
This provides traders with valuable information about the previous day's market behavior, which can influence trading decisions.
Opening 15-minute Range Breakout:
The script calculates the high and low prices during the first 15 minutes of each trading day.
These prices represent the opening range for the day.
It then determines whether the current close price is above or below this opening range and plots it accordingly.
This breakout strategy helps traders identify potential trading opportunities based on early price movements.
By integrating these components, the script offers traders a comprehensive analysis of market trends, previous day's performance, and potential breakout opportunities. Its originality lies in the combination of these features into a single, easy-to-use indicator, providing valuable insights for trading decisions.
Papercuts Recency CandlesPapercuts Recency Candles
V0.8 by Joel Eckert @PapercutsTrading
***This is currently an experimental visual exploratory concept.***
*** Experimental tools should only be explored by fellow coders and experienced traders.***
DESCRIPTION:
As coders, how can we seamlessly transition between actual and smoothed price data sets as data ages?
This is a visual experiment to see if and how data can be smoothly transitioned from one value to another over a set number of candles. If we visualize a chart in 3 zones, a head, a body, and a tail we can start to understand how this could work. The head zone would represent the first data set of actual asset prices. The body zone would represent the transition period from the first to the to the second data set. Last, the tail zone would represent the second data set made of a Hull Moving Average of the asset.
CONCEPT:
It is conceived that data and position precision constantly shift as they decay or age, therefore making older price levels act more like price regions or zones vs exact price points. This is what I am calling Recency.
This indicator utilizes the concept of "Recency" to explore the possibility of a new style of candle. It aims to maintain accurately on recent prices action but loosen up accuracy on older price action. The very nature of this requires ALTERING HISTORICAL DATA within the body zone or transition candles to achieve the effect. It is similar to trying to merge a line chart type with a candle chart type.
This experiment of using recency for candles was to create candles that stay more accurate near current price but fade away into a simple line as they age out, resulting in a simplified view of the big picture which consists of older price action.
This experimental design theoretically will help you stay focused only on what is currently unfolding and to minimize distractions from older price nuances.
USAGE:
WHO:
This is not recommended for new traders or novices that are unfamiliar with standard tools. Standardized tools should always be used to get grounded and build a foundation.
Active traders who are familiar with trading comfortably should experiment with this to see if they find it interesting or usable.
Pine coders may find this concept interesting enough, and may adapt the idea to other elements of their own scripts if they find it interesting… I just ask they give credit where credit is due.
HOW:
The best way to visualize how this works is to do the following:
Load it on a chart.
Turn off Standard candles in Chart Setting of the current window. I actually just turn off the bodies and borders, and dim the old wicks as I like the way the old wicks look when left alone with these new candles.
Enable chart replay at a faster speed, like 3x, and play back the chart to watch the behavior of the candles.
You’ll be able to see how the head of the candle type preserves OHLC, and indicates direction but as the candle starts to age it progressively flowers into the HMA
While it plays back try adjusting settings to see how they affect behavior.
You can see the data average in real-time which often reveals how unstable actual price noise really is.
The head candle diagonals indicate the candle body direction.
SETTINGS:
Coloring: You can choose your own bullish or bearish colors to match your scheme.
Price Line: The price line is colored according to the trend and
Head Length: These candles are true to the source high and low. They remain slightly brighter than transition candles. We have a max of 50 to keep things responsive.
Time Decay Length: This is the amount of candles it takes to transition to the tail. Max is 300 to keep things responsive.
Decay Continuity: This forces transition candles to complete the HMA curve instead of creating gaps when conforming to it. The best way to visualize this feature is to run a 3x replay of an asset, and toggle the result on and off. On is preferred.
Tail HMA Length: This is the smoothing amount for the resulting HMA stepline that calculates every close, but has a delayed draw until after the transition candles. You can optionally turn off the delayed visibility to help with comprehension.
Tail HMA Weight: This is simply an option to make the tail thicker or thinner. This also adjusts the border on the head candles to help them stand out.
Show Side Bias Dots: Default true: Draws a dot when bias to one side changes to help keep you on the right side of trade. Side bias is simply the alignment of 3 moving averages in one direction.
IMPORTANT NOTES:
You'll have to turn off or dim the standard candles in your view "Chart Settings" to see this properly.
Be aware that since the candles are based on boxes and utilize the “recency concept”, which means their data decays and changes as it ages. This results in a cleaner chart overall, but exact highs and lows will be averaged out as the data decays, forming a Hull Moving Average stepline of your defined length once decay has finished.
SUMMARY OF HOW IT WORKS:
First it takes candle information and creates unique boxes that represent each candle based on the high and low. It utilizes boxes because standard candles once written, cannot be later altered or removed… which is a key element for this effect to work.
Next it creates a second box and line from open to close for the body of the Head candles. This indicates direction at a glance.
As candles age beyond the defined distance of the “Head” they enter the "Body" aka "Time Decay" zone. Here the accuracy of the high and low will be averaged down using an incremental factor of the HMA, defined by "Time Decay Length" amount of candles.
The resulting tail is an HMA of Tail HMA Length. This tail is always calculate at close, but is not drawn instantly. The draw is delayed so that there is not overlapping data, and this makes the effect look more elegant.
There are also two EMAs within the script that do nothing but help candle coloring and help provide a trade side bias. When both EMA's and the HMA align, a side bias is defined. Only when the side bias changes will a new dot is formed.
Head candles have been simplified from previous versions to be easier to read at a a glance.
Price Ratio Indicator [ChartPrime]The Price Ratio Indicator is a versatile tool designed to analyze the relationship between the price of an asset and its moving average. It helps traders identify overbought and oversold conditions in the market, as well as potential trend reversals.
◈ User Inputs:
MA Length: Specifies the length of the moving average used in the calculation.
MA Type Fast: Allows users to choose from various types of moving averages such as Exponential Moving Average (EMA), Simple Moving Average (SMA), Weighted Moving Average (WMA), Volume Weighted Moving Average (VWMA), Relative Moving Average (RMA), Double Exponential Moving Average (DEMA), Triple Exponential Moving Average (TEMA), Zero-Lag Exponential Moving Average (ZLEMA), and Hull Moving Average (HMA).
Upper Level and Lower Level: Define the threshold levels for identifying overbought and oversold conditions.
Signal Line Length: Determines the length of the signal line used for smoothing the indicator's values.
◈ Indicator Calculation:
The indicator calculates the ratio between the price of the asset and the selected moving average, subtracts 1 from the ratio, and then smooths the result using the chosen signal line length.
// 𝙄𝙉𝘿𝙄𝘾𝘼𝙏𝙊𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
//@ Moving Average's Function
ma(src, ma_period, ma_type) =>
ma =
ma_type == 'EMA' ? ta.ema(src, ma_period) :
ma_type == 'SMA' ? ta.sma(src, ma_period) :
ma_type == 'WMA' ? ta.wma(src, ma_period) :
ma_type == 'VWMA' ? ta.vwma(src, ma_period) :
ma_type == 'RMA' ? ta.rma(src, ma_period) :
ma_type == 'DEMA' ? ta.ema(ta.ema(src, ma_period), ma_period) :
ma_type == 'TEMA' ? ta.ema(ta.ema(ta.ema(src, ma_period), ma_period), ma_period) :
ma_type == 'ZLEMA' ? ta.ema(src + src - src , ma_period) :
ma_type == 'HMA' ? ta.hma(src, ma_period)
: na
ma
//@ Smooth of Source
src = math.sum(source, 5)/5
//@ Ratio Price / MA's
p_ratio = src / ma(src, ma_period, ma_type) - 1
◈ Visualization:
The main plot displays the price ratio, with color gradients indicating the strength and direction of the ratio.
The bar color changes dynamically based on the ratio, providing a visual representation of market conditions.
Invisible Horizontal lines indicate the upper and lower threshold levels for overbought and oversold conditions.
A signal line, smoothed using the specified length, helps identify trends and potential reversal points.
High and low value regions are filled with color gradients, enhancing visualization of extreme price movements.
MA type HMA gives faster changes of the indicator (Each MA has its own specifics):
MA type TEMA:
◈ Additional Features:
A symbol displayed at the bottom right corner of the chart provides a quick visual reference to the current state of the indicator, with color intensity indicating the strength of the ratio.
Overall, the Price Ratio Indicator offers traders valuable insights into price dynamics and helps them make informed trading decisions based on the relationship between price and moving averages. Adjusting the input parameters allows for customization according to individual trading preferences and market conditions.