Ultra Moving AverageThe Ultra Moving Average is a versatile technical indicator that combines various types of moving averages to analyze trends, providing multi-timeframe insights for traders. It offers four customizable moving averages and a trend strength table for enhanced decision-making.
Introduction
The Ultra Moving Average indicator is a powerful tool designed to help traders track market trends by offering a combination of four distinct moving averages. With flexible customization options, users can apply different types of moving averages like SMA, EMA, TEMA, and many more, across various timeframes. Additionally, it provides trend strength analysis through an intuitive visual table, helping traders quickly identify market conditions.
Detailed Description
.........
Moving Averages
Each of the four moving averages is independently configurable. You can select the timeframe, type, length, color, and width to match your trading strategy.
The types of moving averages range from traditional ones like the Simple Moving Average (SMA) to advanced ones like the Double Expotential Moving Average (DEMA) or the Triple Exponential Moving Average (TEMA) or the Recursive Moving Average (RMA) or the Weigthend Moving Average (WMA) or the Volume Weigthend Moving Average (VWMA) or Hull Moving Average (HMA).
Very Special ones are the Triple Weigthend Moving Average (TWMA) wich created RedKTrader .
I created the Multi Weigthend Moving Average (MWMA) wich is a simple signal line to the TWMA.
.....
Trend Visualization
The indicator uses color-coding to visually represent whether the price is in an uptrend or downtrend. Bullish trends are highlighted in one color, while bearish trends appear in another, making it easy to interpret.
.....
Trend Strength Table
One of the unique features of the Ultra Moving Average is the trend strength table at the bottom of the chart. This table breaks down the strength of the fast, mid, and slow moving averages, displaying them as percentages. It also shows the overall "trend power," which helps assess how strong or weak the current trend is.
You have the option to calculate trends using live data or the previous bar's data, offering flexibility in how the indicator reacts to market changes. This can help traders make more responsive decisions based on real-time trends.
The table displays trend strength across three timeframes Fast, Mid, and Slow by calculating the percentage difference between the price and each of the moving averages (MA1, MA3, MA4).
The Power row shows the average of these percentages, representing overall trend strength.
The percentages are calculated relative to their maximum values in history (limited by TradingView subscription), providing insight into the trend's strength for each timeframe.
.........
Overall, the Ultra Moving Average indicator is a comprehensive tool that combines multiple moving average types and advanced trend analysis, helping traders identify market direction and strength at a glance. With its intuitive visualization and flexible settings, it's suited for both beginner and experienced traders.
Special Thanks
I use the TWMA-Function created from RedKTrader to smooth the values.
Special thanks to him for creating and sharing this function!
Averages
ADV_RSIADV_RSI - Advanced Relative Strength Index
Description: The ADV_RSI indicator is an advanced and mutated version of the classic Relative Strength Index (RSI), enhanced with multiple moving averages and a dynamic color-coding system. It provides traders with deeper insights into market momentum and potential trend reversals by incorporating two different moving averages of the RSI (21, and 50 periods). The indicator helps to visualize overbought and oversold conditions more effectively and offers a clear, color-coded representation of the RSI value relative to key thresholds.
Features:
RSI Calculation: The core of the indicator is based on the traditional RSI, calculated over a customizable period.
Multiple Moving Averages: The script includes two RSI moving averages (21, and 50 periods) to help identify trend strength and potential reversal points.
Dynamic RSI Color Coding: The RSI line is color-coded based on its value, ranging from red for overbought conditions to aqua for oversold conditions. This makes it easier to interpret the market's momentum at a glance.
Threshold Bands: The indicator includes horizontal threshold lines at key RSI levels (20, 30, 40, 50, 60, 70, 80), with shaded areas between them, providing a visual aid to quickly identify overbought and oversold zones.
How to Use:
The RSI line fluctuates between 0 and 100, with traditional overbought and oversold levels set at 70 and 30, respectively.
When the RSI crosses above the 70 level, it may indicate overbought conditions, signaling a potential selling opportunity.
When the RSI falls below the 30 level, it may indicate oversold conditions, signaling a potential buying opportunity.
The included moving averages of the RSI can help confirm trend direction and potential reversals.
The color coding of the RSI line provides a quick visual cue for momentum changes.
Ideal For:
Traders looking for a more nuanced understanding of market momentum.
Those who prefer visual aids for quick decision-making in identifying overbought and oversold conditions.
Traders who utilize multiple timeframes and need a comprehensive RSI tool for better accuracy in their analysis.
Three Anchored Moving Averages (VWAP / SMA / EMA)
This indicator allows users to anchor three types of moving averages (Simple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Average Price (VWAP)) to specific points in time (anchor points)
Key Features:
Select from three Moving Average Types:
Simple Moving Average (SMA): Averages the closing prices over a specified period.
Exponential Moving Average (EMA): Gives more weight to recent prices, making it more responsive to new information.
Volume Weighted Average Price (VWAP): Averages the price weighted by volume, useful for understanding the average price at which the asset has traded over a period.
Up to Three Anchor Points:
Users can set up to three different anchor points to calculate the moving averages from specific dates and times. This allows for analysis of price action starting from significant points or specific events. For example, you can anchor to the low and high of a move to identify key levels or to points where the price takes off from a previous anchored MA.
Customisable Sentiment Options:
Each anchor point can be associated with a sentiment input (Auto, Bull, Bear, None), which influences if the MAs are displayed as lines or zones/bands:
Auto: Automatically determines the sentiment based on whether anchor points are on pivot highs and lows. If anchored to a pivot high, the system will assume a bearish sentiment and display a red band or zone between the MA OHLC4 and High. Anchoring to a pivot low will display a green band (OHLC4 - Low).
Bull: Forces a bullish sentiment (Green Band - OHLC4 to Low)
Bear: Forces a bearish sentiment (Red Band - OHLC4 to High)
None: Ignores sentiment and displays a single line (OHLC4)
Chart Matching:
The indicator includes an option to display the moving averages only if the chart symbol matches a specified ticker. This feature ensures that the indicator is relevant to the specific asset being analysed.
How to Use the Indicator:
1. Set Anchor Points: When added to your chart, select three anchor points by point and click. If you only wish to anchor to a single point, click on that point three times and disable the other two in settings once the indicator is applied.
2. Select Moving Average Type: Choose between SMA, EMA, or VWAP using the dropdown menu. EMAs are the most responsive.
3. Enable/Disable Anchor Points: Use the checkboxes to enable or disable each anchor point.
4. Select Sentiment Type: Choose between Auto, Bull, Bear, or None.
5. Chart Matching: Optionally, specify a chart symbol to restrict the indicator's display to that particular asset.
6. Interpret the Plots: The indicator plots the high, mid, and low values of the selected moving average type from each anchor point. The fills between these plots help identify potential support and resistance zones. These should be used as points of interest for pullback reversals or potential continuation if the price breaks through.
Practical Applications:
Trend Analysis: Identify the overall trend direction from specific historical points.
Support and Resistance: Determine key dynamic support and resistance levels based on anchored moving averages.
Event-Based Analysis: Anchor the moving averages to significant events (e.g., earnings releases, economic data) to study their impact on price trends.
Multi Timeframe Analysis: Higher Timeframe Anchors can be used to identify longer term trend analysis. Switching to a lower timeframe for execution triggers at these points wont distort the MA levels as they are anchored to a specific point in time
Intraday or Swing Trading: trend analysis using anchor points can be used for any style of trading (Intraday / Swing / Invest). Use anchored levels as points of interest and wait for hints in price action to try and catch the next move.
Average Session Range [QuantVue]The Average Session Range or ASR is a tool designed to find the average range of a user defined session over a user defined lookback period.
Not only is this indicator is useful for understanding volatility and price movement tendencies within sessions, but it also plots dynamic support and resistance levels based on the ASR.
The average session range is calculated over a specific period (default 14 sessions) by averaging the range (high - low) for each session.
Knowing what the ASR is allows the user to determine if current price action is normal or abnormal.
When a new session begins, potential support and resistance levels are calculated by breaking the ASR into quartiles which are then added and subtracted from the sessions opening price.
The indicator also shows an ASR label so traders can know what the ASR is in terms of dollars.
Session Time Configuration:
The indicator allows users to define the session time, with default timing set from 13:00 to 22:00.
ASR Calculation:
The ASR is calculated over a specified period (default 14 sessions) by averaging the range (high - low) of each session.
Various levels based on the ASR are computed: 0.25 ASR, 0.5 ASR, 0.75 ASR, 1 ASR, 1.25 ASR, 1.5 ASR, 1.75 ASR, and 2 ASR.
Visual Representation:
The indicator plots lines on the chart representing different ASR levels.
Customize the visibility, color, width, and style (Solid, Dashed, Dotted) of these lines for better visualization.
Labels for these lines can also be displayed, with customizable positions and text properties.
Give this indicator a BOOST and COMMENT your thoughts!
We hope you enjoy.
Cheers!
Bayesian Trend Indicator [ChartPrime]Bayesian Trend Indicator
Overview:
In probability theory and statistics, Bayes' theorem (alternatively Bayes' law or Bayes' rule), named after Thomas Bayes, describes the probability of an event, based on prior knowledge of conditions that might be related to the event.
The "Bayesian Trend Indicator" is a sophisticated technical analysis tool designed to assess the direction of price trends in financial markets. It combines the principles of Bayesian probability theory with moving average analysis to provide traders with a comprehensive understanding of market sentiment and potential trend reversals.
At its core, the indicator utilizes multiple moving averages, including the Exponential Moving Average (EMA), Simple Moving Average (SMA), Double Exponential Moving Average (DEMA), and Volume Weighted Moving Average (VWMA) . These moving averages are calculated based on user-defined parameters such as length and gap length, allowing traders to customize the indicator to suit their trading strategies and preferences.
The indicator begins by calculating the trend for both fast and slow moving averages using a Smoothed Gradient Signal Function. This function assigns a numerical value to each data point based on its relationship with historical data, indicating the strength and direction of the trend.
// Smoothed Gradient Signal Function
sig(float src, gap)=>
ta.ema(source >= src ? 1 :
source >= src ? 0.9 :
source >= src ? 0.8 :
source >= src ? 0.7 :
source >= src ? 0.6 :
source >= src ? 0.5 :
source >= src ? 0.4 :
source >= src ? 0.3 :
source >= src ? 0.2 :
source >= src ? 0.1 :
0, 4)
Next, the indicator calculates prior probabilities using the trend information from the slow moving averages and likelihood probabilities using the trend information from the fast moving averages . These probabilities represent the likelihood of an uptrend or downtrend based on historical data.
// Define prior probabilities using moving averages
prior_up = (ema_trend + sma_trend + dema_trend + vwma_trend) / 4
prior_down = 1 - prior_up
// Define likelihoods using faster moving averages
likelihood_up = (ema_trend_fast + sma_trend_fast + dema_trend_fast + vwma_trend_fast) / 4
likelihood_down = 1 - likelihood_up
Using Bayes' theorem , the indicator then combines the prior and likelihood probabilities to calculate posterior probabilities, which reflect the updated probability of an uptrend or downtrend given the current market conditions. These posterior probabilities serve as a key signal for traders, informing them about the prevailing market sentiment and potential trend reversals.
// Calculate posterior probabilities using Bayes' theorem
posterior_up = prior_up * likelihood_up
/
(prior_up * likelihood_up + prior_down * likelihood_down)
Key Features:
◆ The trend direction:
To visually represent the trend direction , the indicator colors the bars on the chart based on the posterior probabilities. Bars are colored green to indicate an uptrend when the posterior probability is greater than 0.5 (>50%), while bars are colored red to indicate a downtrend when the posterior probability is less than 0.5 (<50%).
◆ Dashboard on the chart
Additionally, the indicator displays a dashboard on the chart , providing traders with detailed information about the probability of an uptrend , as well as the trends for each type of moving average. This dashboard serves as a valuable reference for traders to monitor trend strength and make informed trading decisions.
◆ Probability labels and signals:
Furthermore, the indicator includes probability labels and signals , which are displayed near the corresponding bars on the chart. These labels indicate the posterior probability of a trend, while small diamonds above or below bars indicate crossover or crossunder events when the posterior probability crosses the 0.5 threshold (50%).
The posterior probability of a trend
Crossover or Crossunder events
◆ User Inputs
Source:
Description: Defines the price source for the indicator's calculations. Users can select between different price values like close, open, high, low, etc.
MA's Length:
Description: Sets the length for the moving averages used in the trend calculations. A larger length will smooth out the moving averages, making the indicator less sensitive to short-term fluctuations.
Gap Length Between Fast and Slow MA's:
Description: Determines the difference in lengths between the slow and fast moving averages. A higher gap length will increase the difference, potentially identifying stronger trend signals.
Gap Signals:
Description: Defines the gap used for the smoothed gradient signal function. This parameter affects the sensitivity of the trend signals by setting the number of bars used in the signal calculations.
In summary, the "Bayesian Trend Indicator" is a powerful tool that leverages Bayesian probability theory and moving average analysis to help traders identify trend direction, assess market sentiment, and make informed trading decisions in various financial markets.
Dual SMA/EMA BandsThe Dual SMA/EMA Bands indicator provides a clear view of market trends, combining Simple Moving Averages (SMA) and Exponential Moving Averages (EMA) in one customizable tool. Designed for any timeframe, it features Aqua and Purple Bands for 50-period and 200-period averages , respectively, aiding in trend analysis and volatility insights.
Features:
Adaptive Timeframes : Automatically aligns with the chart’s timeframe or can be manually set for cross-timeframe analysis.
Customization : Offers easy adjustments for colors, line thickness, and opacity to suit personal preferences and enhance readability.
Insights : Facilitates trend confirmation and volatility assessment, essential for informed trading decisions.
Usage Tips:
Use the bands to gauge market direction; above the bands suggests bullish conditions, below them indicates bearish trends.
The gap between EMA and SMA within each band can signal market volatility.
Apply customizable timeframes for a comprehensive market overview.
Conclusion:
With its straightforward setup and versatile application, the Dual SMA/EMA Bands indicator is a valuable tool for traders looking to deepen their market analysis and uncover trading opportunities.
Inverted EMAThe concept of an inverted Exponential Moving Average (EMA) isn't commonly used in traditional technical analysis or trading strategies. Inverting the EMA essentially means taking the reciprocal of the EMA values. While it may not have widespread use or recognition, here are some potential considerations or interpretations for the inverted EMA:
1. **Inverse Trend Indicator:**
- Inverting the EMA might be considered as an alternative approach to trend analysis. When the inverted EMA is rising, it could suggest a potential bearish trend, and when it is falling, it might indicate a bullish trend. Traders might explore using this as a contrarian or unconventional trend indicator.
2. **Volatility Indicator:**
- The inverted EMA might be used as a measure of volatility. When the values are fluctuating rapidly, it could imply increased volatility in the underlying asset. This could be useful for traders who are interested in gauging market dynamics.
3. **Divergence Analysis:**
- Traders may explore divergences between price and the inverted EMA. For instance, if prices are making new highs, but the inverted EMA is not, it could signal potential weakness or divergence in the bullish trend.
4. **Inverse Moving Average Crossovers:**
- In the context of moving average crossovers, traders usually look for crossovers between shorter and longer EMAs as potential signals. Inverting this concept, crossovers between inverted short-term and long-term EMAs might be explored for unconventional trading signals.
5. **Systematic Exploration:**
- Traders and researchers sometimes experiment with unconventional indicators to discover new patterns or behaviors in the market. The inverted EMA could be part of systematic exploration to uncover unique insights that traditional indicators might not reveal.
It's important to note that the interpretation and use of the inverted EMA depend on the trader's strategy, risk tolerance, and specific market conditions. Traders should thoroughly backtest any strategy involving unconventional indicators and use them cautiously in live trading. Additionally, the effectiveness of the inverted EMA may vary across different financial instruments and timeframes.
EMA + Lower Timeframe EMA (correct display in Replay Mode)This indicator shows
one EMA for the current timeframe
one EMA for a lower timeframe
Unlike the built-in Tradingview EMA indicator, this indicator shows the correct values for the lower timeframe EMA during Replay Mode.
NSDT Horizontal VWAPThis script plots VWAP as a horizontal line starting at the most recent candle and extending backwards for a period of 10 to make it easier to see. (default is 10 but can be changed to fit your needs)
You may only want to see where VWAP is currently and not need to see the entire day. Helps keep the chart clean.
Colors and line settings can all be modified.
You can show the original VWAP plot as well for reference.
What Is the Volume-Weighted Average Price (VWAP)?
The volume-weighted average price (VWAP) is a technical analysis indicator used on intraday charts that resets at the start of every new trading session.
It's a trading benchmark that represents the average price a security has traded at throughout the day, based on both volume and price.
VWAP is important because it provides traders with pricing insight into both the trend and value of a security.
Consensio Allocation ToolOriginally created and taught by Taylor Jenks, this indicator provides portfolio allocation suggestions based on the behaviour of price and 3 simple moving averages (4/10/40 by default)
(ie. when short & medium term SMAs are above the long term then allocation is to be 100%).
This percentage allocated to the stock/commodity is to be reduced as it passes below the SMA's, particularly as each moving average crosses.
Consensio is useful for scaling in and out of a position as the portfolio allocation will change according to the momentum of the asset.
The rules below are my own based on understanding of the trading system developed by Jenks and his online content.
This script has the following rules:
if fastAboveSlowMA and not mediumAboveSlowMA
allocation := 30.0
else if longAboveFastMA
allocation := 0.0
else if fastAboveMediumMA and fastAboveSlowMA
allocation := 100.0
else if not fastAboveMediumMA and fastAboveSlowMA
allocation := 80.0
else if not fastAboveMediumMA and not fastAboveSlowMA
allocation := 50.0
else if not mediumAboveSlowMA and fastAboveSlowMA
allocation := 50.0
// Calculate adjusted allocation percentage based on crossing moving averages
allocation := allocation + (priceAboveFastMA ? 10.0 : -10.0)
allocation := allocation + (priceAboveMediumMA ? 10.0 : -10.0)
Multi-Symbol Cross Indicator Template - Unleash Your Potential!Unlock your full trading potential with this powerful and versatile Multi-Symbol Cross Indicator Template! This script is designed to make you stand out from the crowd by enabling you to monitor multiple symbols on a single chart for specific events, such as a Golden Cross or Death Cross. With its high adaptability to include various technical indicators, you're in complete control of your trading decisions and market analysis.
By using the built-in request.security function, this template fetches data for your chosen symbols from the selected exchange and calculates the conditions (e.g., moving average crossovers) for each symbol. Although the current implementation focuses on Golden Crosses and Death Crosses, the sky is the limit when it comes to modifying the script to incorporate other technical indicators such as RSI, MACD, or Bollinger Bands.
You, as a discerning trader, can easily customize the script by selecting your preferred exchange and symbols through input options. This flexibility allows you to monitor your favorite markets without the need for any direct code modification, giving you the ultimate adaptability for various trading strategies and market analysis purposes.
Remember, this script is more than just an example or template; it's the key to unleashing your inner trading genius. While it's not intended to be a standalone trading strategy, it serves as the foundation for you to build upon and create your own customized multi-symbol indicators or strategies. You are awesome, and with this Multi-Symbol Cross Indicator Template, there's no doubt that you're on the path to achieving great success in your trading journey!
Many Moving AveragesA smooth looking indicator created from a mix of ALMA and LRC curves. Includes alternative calculation for both which I came up with through trial and error so a variety of combinations work to varying degrees. Just something I was playing around with that looked pretty nice in the end.
Rramires->5_EMAs 9, 21, 50, 100, 200The five EMA averages I use in my analysis in a single indicator.
VWAP/EMA50/EMA200We script this one for combining VWAP , EMA50 and EMA200. The tool is fantastic if traders know how VWAP , EMA work? Just adding this script in your favorite and work like charm:
VWAP: How to trade with that
- One of the simplest uses of the VWAP is gauging support and/or resistance.
- A trader who is long a stock can use the VWAP as a target exit if its trading below.
- A stock trading over intraday VWAP may be bullish , while a stock trading under may be bearish .
EMA 50/EMA200: How to trade with that timeframe 50-day or 200-day period
- Identify the trend of market in longterm
- Golden-cross (short term EMA cross above longterm EMA ) is call golden-cross signals. It is opportunity for buying.
- Deal-cross ( short term EMA cross below longterm EMA ) is call dead-cross signals. It is opportunity for selling.
- Identify support levels
- Identify resistance levels
Let me know if you see anything else that should be added/changed.
Smarter MACDA classic MACD with average peak and dip lines. The lighter green and red horizontal lines are the average peak and dip of the entire span, respectively. The second, bolder of the two lines are the averages of the peaks and dips above and below the overall peak and dip averages. The filled in color is to help visualize these averages and possible trade setups. Rework of the MACD + Averages script.
PClose Levels 2.0This script plots the levels generated via a combination of SPX 2Y Quartiles for everyday, red days, and green days. It is intended for use solely with SPX.
These quartiles are also sorted by VIX averages into bands that expand and contract with VIX.
It gives us an idea of what levels to potentially expect resistance/support fairly well, but is designed to be used in conjunction with other indicators and macroeconomic information.
Green Dashed is your Expected Max Range (EMR+) based on Green Day averages.
Green Dotted is your Expected Range (ER+) based on full dataset averages.
Green solid lines are POS2 and POS1, based on Green Day averages.
White Dotted is your Expected Move (EM), based on full dataset averages.
Red solid lines are NEG1 and NEG2, based on Red Day averages.
Red Dotted is your Expected Range (ER-) based on full dataset averages.
Red Dashed is your Expected Max Range (EMR-) based on Red Day averages.
Buff Averages [CC]The Buff Averages were created by Buff Dormeier (Stocks and Commodities Feb 2001) and this is another hidden gem that is a combo of a volume weighted indicator and a moving average crossover system. It uses a special method to calculate the weighting based on volume. The colored line (fast buff) will follow the price closely and you use the other line to act as a trend confirmation. I have included strong buy and sell signals in addition to normal ones so strong signals are darker in color and normal signals are lighter in color. Buy when the line turns green and sell when it turns red.
Let me know if there are any other indicators or scripts you would like to see me publish!
MACD + AveragesA classic MACD with average peak and dip lines. The lighter green and red horizontal lines are the average peak and dip of the entire span, respectively. The second, bolder of the two lines are the averages of the peaks and dips above and below the overall peak and dip averages. The filled in color is to help visualize these averages and possible trade setups.
Average Change % (14-day)Simple script which calculates and shows the average change in a percentage format over a 14-day period.
Created due to the fact I couldn't find a percentage measure of average change when searching for it.
I have very little coding experience in Pine or otherwise so feel free to take and edit the script to make it a bit more user friendly.
Moving Average Ribbon [TheBearFighter]
This code was written using:
•Pine Script Coding Conventions.
This script provides a very useful tool for new community users and professionals. It puts at your disposal a Moving Average Ribbon by hand to graph and easily find the ones with the highest performance. The creation of this script was motivated because in free TradingView accounts there is a limit of 3 indicators by chart, and with this tool you can draw up to 32 MA's at the same time!
Choose one of 10 types of MA´s:
•KAMA Kaufman's moving average.
•HULL Hull moving average.
•TEMA Triple exponencial moving average.
•LSMA Least square moving average.
•DEMA Double exponencial moving average.
•ALMA Arnaud Legoux moving average.
•WMA Weighted moving average
•EMA Exponencial moving average.
•VWMA Volume Weighted moving average.
•SMA Simple moving average.
Use the tooltips to know the lengths of MA´s.
A main characteristic of the script is that the lengths are in days but when changing the lowest timeframes, the same daily resolution is maintained. This gives us extreme precision in intraday timeframes, e.g 30 minutes.
Once this is understood, we can turning the MA´s on/off, and changing the timeframe to our liking.
Available timeframes: M, W, D, 4H, 1H, 30m, 15m, 5m.
Also the MA´s are colored for easy visualization and know if they grow or decrease.
Thank´s to @midtownsk8rguy to let me know more about HEX colors.
Thank´s to @HPotter for his KAMA.
Average EnvelopeA script to calculate a support / resistance level which acts as either a bounce level or a flip level. This is rather a macro play guide than a day trade tool.
The average is calculated by taking into account monthly/weekly/daily highs and average them out.
The script also paints fib levels based on the values of the upper and the lower band.
While this was designed with a cryptocurrency market in mind (no 'close' values per-se) it holds with traditional markets as well.
Multiple Timeframe Five Moving AveragesThis allows you to plot up to 5 moving averages on your chart at once. You can either use the chart's current timeframe or select a custom timeframe for your 5 moving averages (for example, you can see the 200DMA on your 4h chart without having to adjust the moving average length). You can also choose amongst SMA , EMA , and HULLMA for each MA.