RSI Volatility Bands [QuantraSystems]RSI Volatility Bands
Introduction
The RSI Volatility Bands indicator introduces a unique approach to market analysis by combining the traditional Relative Strength Index (RSI) with dynamic, volatility adjusted deviation bands. It is designed to provide a highly customizable method of trend analysis, enabling investors to analyze potential entry and exit points in a new and profound way.
The deviation bands are calculated and drawn in a manner which allows investors to view them as areas of dynamic support and resistance.
Legend
Upper and Lower Bands - A dynamic plot of the volatility-adjusted range around the current price.
Signals - Generated when the RSI volatility bands indicate a trend shift.
Case Study
The chart highlights the occurrence of false signals, emphasizing the need for caution when the bands are contracted and market volatility is low.
Juxtaposing this, during volatile market phases as shown, the indicator can effectively adapt to strong trends. This keeps an investor in a position even through a minor drawdown in order to exploit the entire price movement.
Recommended Settings
The RSI Volatility Bands are highly customisable and can be adapted to many assets with diverse behaviors.
The calibrations used in the above screenshots are as follows:
Source = close
RSI Length = 8
RSI Smoothing MA = DEMA
Bandwidth Type = DEMA
Bandwidth Length = 24
Bandwidth Smooth = 25
Methodology
The indicator first calculates the RSI of the price data, and applies a custom moving average.
The deviation bands are then calculated based upon the absolute difference between the RSI and its moving average - providing a unique volatility insight.
The deviation bands are then adjusted with another smoothing function, providing clear visuals of the RSI’s trend within a volatility-adjusted context.
rsiVal = ta.rsi(close, rsiLength)
rsiEma = ma(rsiMA, rsiVal, bandLength)
bandwidth = ma(bandMA, math.abs(rsiVal - rsiEma), bandLength)
upperBand = ma(bandMA, rsiEma + bandwidth, smooth)
lowerBand = ma(bandMA, rsiEma - bandwidth, smooth)
long = upperBand > 50 and not (lowerBand < lowerBand and lowerBand < 50)
short= not (upperBand > 50 and not (lowerBand < lowerBand and lowerBand < 50))
By dynamically adjusting to market conditions, the RSI trend bands offer a unique perspective on market trends, and reversal zones.
Trendanalyisis
Candlesticks Patterns [TradingFinder] Pin Bar Hammer Shooting🔵 Introduction
Truly, the title "TradingView" doesn't do justice to this excellent website, and that's why I've written about its crucial aspect. In this indicator, the identification of all candlesticks known as "Pin bars" is explored.
These candlesticks include the following:
- Hammer : A Pin bar formed at the end of a bearish trend, with its body being either bearish or bullish.
- Shooting Star : Formed at the end of a bullish trend, with its body being either bearish or bullish.
- Hanging Man : Formed during an upward trend, characterized by a candle with a lower shadow.
- Inverted Hammer : Formed during a downward trend, characterized by a candle with an upper shadow.
🟣 Important : For ease of use, we refer to these four candlestick patterns as Pin Bars and categorize them into the main friends "Bullish" and "Bearish."
🟣 Important : In all sources, Hanging Man and Inverted Hammer are referred to as "Reversal candles." However, in reality, whenever they appear after breaking a significant area (Break Out), we expect these candles to signal a continuation of the trend and confirmation in the direction of the trend.
🟣 Important : One of the best signs of market manipulation and entry by market giants is the "Ice Berg." So, it provides one of the best trading opportunities.
🔵 Reason for Creation
Many traders, especially volume traders, use Pin bars as confirmation and enter the market after their occurrence. In this indicator, all four patterns are identified and displayed in a colored candle format, using "triangle" and "circle."
When they are evident on the chart, directly or by drawing a horizontal line, they give us good alerts for reversal or continuation areas.
🔵 Information Table
1. Red circle: Pin bars formed in a downtrend.
2. Blue circle: Bullish Pin bars formed in an uptrend.
3. Black triangle: Bearish Pin bar candle in an uptrend.
4. Blue triangle: Bullish Pin bar candle in a downtrend.
🔵 Settings
Trend Detection Period: A special feature that considers smaller or larger fluctuations. If individual price waves need to be considered, use lower numbers; if the overall trend direction is desired, use larger numbers (e.g., 5-7 or higher). This precisely sets the Zigzag or Pivot format, not displayed but considered in the indicator calculation.
Trend Effect : By changing the Trend Effect status to "Off," all Pin bars, whether bullish or bearish, are displayed regardless of the current market trend. If the status remains "On," only Pin bars in the direction of the main market trend are shown.
🟣 Important : Black triangles "Number 3" and blue triangles "Number 4" displayed in the information table section, as explained in the "Information Table" section.
Show Bullish Pin Bar : When set to "Yes," displays bullish Pin bars; when set to "No," does not display them.
Show Bearish Pin Bar : When set to "Yes," allows the display of bearish Pin bars; when set to "No," does not display them.
Bullish Pin Bar Setting : Using the "Ratio Lower Shadow to Body" and "Ratio Lower Shadow to Higher Shadow" settings, you can customize your bullish Pin bar candles. Larger numbers impose stricter conditions for identifying bullish Pin bars.
Bearish Pin Bar Setting : Using the "Ratio Higher Shadow to Body" and "Ratio Higher Shadow to Lower Shadow" settings, you can customize your bearish Pin bar candles. Larger numbers impose stricter conditions for identifying bearish Pin bars.
Show Info Table : Allows the display or non-display of the information table (located at the bottom of the page and on the right side).
🔵 How to Use
At the end of a downtrend, look for "Hammer" candles, easily identified one by one.
To identify the "Shooting Star" candle pattern at the end of an uptrend; expect a price reversal in the downtrend.
For trades in the downward direction, wait for the formation of an "Inverted Hammer" Pin bar.
And finally, in an uptrend, where a "Hanging Man" candle can form.
🔵 Features
For better visualization, triangles and circles are used above the candles, but they can be easily removed. All Pin bars are displayed in color with the following meanings:
- Black-bodied candle: Inverted Hammer
- Turquoise blue candle: Hammer
- Pink candle: Hanging Man
- Red candle: Shooting Star
🟣 Important : The capability to detect the powerful two-candle pattern "Tweezer Top" at the end of an uptrend emerges by forming two "Shooting Star" candles side by side.
Similarly, the two-candle pattern "Tweezer Bottom" is created at the end of a downtrend with the formation of two "Hammer" candles side by side. To identify the "Tweezer" pattern, make sure the settings in the "Trend Effect" section are set to "Off."
🟣 Auxiliary Indicators
During the start of trading sessions such as Asia, London, and New York, where the highest liquidity exists, alongside this indicator, you can use the Trading Sessions indicator.
Sessions
The combination of Order Blocks "-OB" and "+OB" with candles is one of the best trading methods. The indicator that identifies order blocks, along with this indicator, can yield remarkable results in the success of Pin bar candles.
Order Blocks Finder
The trading toolset "TFlab" presents this indicator. To benefit from all indicators, we invite you to visit our page " TFlab Scripts ".
Order Blocks Finder [TradingFinder] Major OB | Supply and Demand🔵 Introduction
Drawing all order blocks on the path, especially in range-bound or channeling markets, fills the chart with lines, making it confusing rather than providing the trader with the best entry and exit points.
🔵 Reason for Indicator Creation
For traders familiar with market structure and only need to know the main accumulation points (best entry or exit points), and primary order blocks that act as strong sources of power.
🟣 Important Note
All order blocks, both ascending and descending, are identified and displayed on the chart when the structure of "BOS" or "CHOCH" is broken, which can also be identified with "MSS."
🔵 How to Use
When the indicator is installed, it plots all order blocks (active order blocks) and continues until the price reaches them. This continuation happens in boxes to have a better view in the TradingView chart.
Green Range : Ascending order blocks where we expect a price increase in these areas.
Red Range : Descending order blocks where we expect a price decrease in these areas.
🔵 Settings
Order block refine setting : When Order block refine is off, the supply and demand zones are the entire length of the order block (Low to High) in their standard state and cannot be improved. If you turn on Order block refine, supply and demand zones will improve using the error correction algorithm.
Refine type setting : Improving order blocks using the error correction algorithm can be done in two ways: Defensive and Aggressive. In the Aggressive method, the largest possible range is considered for order blocks.
🟣 Important
The main advantage of the Aggressive method is minimizing the loss of stops, but due to the widening of the supply or demand zone, the reward-to-risk ratio decreases significantly. The Aggressive method is suitable for individuals who take high-risk trades.
In the Defensive method, the range of order blocks is minimized to their standard state. In this case, fewer stops are triggered, and the reward-to-risk ratio is maximized in its optimal state. It is recommended for individuals who trade with low risk.
Show high level setting : If you want to display major high levels, set show high level to Yes.
Show low level setting : If you want to display major low levels, set show low level to Yes.
🔵 How to Use
The general view of this indicator is as follows.
When the price approaches the range, wait for the price reaction to confirm it, such as a pin bar or divergence.
If the price passes with a strong candle (spike), especially after a long-range or at the beginning of sessions, a powerful event is happening, and it is outside the credibility level.
An Example of a Valid Zone
An Example of Breakout and Invalid Zone. (My suggestion is not to use pending orders, especially when the market is highly volatile or before and after news.)
After reaching this zone, expect the price to move by at least the minimum candle that confirmed it or a price ceiling or floor.
🟣 Important : These factors can be more accurately measured with other trend finder indicators provided.
🔵 Auxiliary Tools
There is much talk about not using trend lines, candlesticks, Fibonacci, etc., in the web space. However, our suggestion is to create and use tools that can help you profit from this market.
• Fibonacci Retracement
• Trading Sessions
• Candlesticks
🔵 Advantages
• Plotting main OBs without additional lines;
• Suitable for timeframes M1, M5, M15, H1, and H4;
• Effective in Tokyo, Sydney, and London sessions;
• Plotting the main ceiling and floor to help identify the trend.
Squeeze Momentum TD - A Revisited Version of the TTM SqueezeDescription:
The "Squeeze Momentum TD" is our unique take on the highly acclaimed TTM Squeeze indicator, renowned in the trading community for its efficiency in pinpointing market momentum. This script is a tribute and an extension to the foundational work laid by several pivotal figures in the trading industry:
• John Carter, for his creation of the TTM Squeeze and TTM Squeeze Pro, which revolutionized the way traders interpret volatility and momentum.
• Lazybear, whose original interpretation of the TTM Squeeze, known as the "Squeeze Momentum Indicator", provided an invaluable foundation for further development.
• Makit0, who evolved Lazybear's script to incorporate enhancements from the TTM Squeeze Pro, resulting in the "Squeeze PRO Arrows".
Our script, "Squeeze Momentum TD", represents a custom version developed after reviewing all variations of the TTM Squeeze indicator. This iteration focuses on a distinct visualization approach, featuring an overlay band on the chart for an user-friendly experience. We've distilled the essence of the TTM Squeeze and its advanced version, the TTM Squeeze Pro, into a form that emphasizes intuitive usability while retaining comprehensive analytical depth.
Features:
-Customizable Bollinger Bands and Keltner Channels: These core components of the TTM Squeeze.
-Dynamic Squeeze Conditions: Ranging from No Squeeze to High Compression.
-Momentum Oscillator: A linear regression-based momentum calculation, offering clear insights into market trends.
-User-Defined Color Schemes: Personalize your experience with adjustable colors for bands and plot shapes.
-Advanced Alert System: Alerts for key market shifts like Bull Watch Out, Bear Watch Out, and Momentum shifts.
-Adaptive Band Widths: Modify the band widths to suit your preference.
How to use it?
• Transition from Light Green to Dark Green: Indicates a potential end to the bullish momentum. This 'Bull Watch Out' signal suggests that traders should be cautious about continuing bullish trends.
• Transition from Light Red to Dark Red: Signals that the bearish momentum might be fading, triggering a 'Bear Watch Out' alert. It's a hint for traders to be wary of ongoing bearish trends.
• Shift from Dark Green to Light Green: This change suggests an increase in bullish momentum. It's an indicator for traders to consider bullish positions.
• Change from Dark Red to Light Red: Implies that bearish momentum is picking up. Traders might want to explore bearish strategies under this condition.
• Rapid Change from Light Red to Light Green: This swift shift indicates a quick transition from bearish to bullish sentiment. It's a strong signal for traders to consider switching to bullish positions.
• Quick Shift from Light Green to Light Red: Demonstrates a speedy change from bullish to bearish momentum. It suggests that traders might want to adjust their strategies to align with the emerging bearish trend.
Acknowledgements:
Special thanks to Beardy_Fred for the significant contributions to the development of this script. This work stands as a testament to the collaborative spirit of the trading community, continuously evolving to meet the demands of diverse trading strategies.
Disclaimer:
This script is provided for educational and informational purposes only. Users should conduct their own due diligence before making any trading decisions.
Rolling VWAP [QuantraSystems]Rolling VWAP
Introduction
The Rolling VWAP (R͜͡oll-VWAP) indicator modernizes the traditional VWAP by recalculating continuously on a rolling window, making it adept at pinpointing market trends and breakout points.
Its dual functionality includes both the dynamic rolling VWAP and a customizable anchored VWAP, enhanced by color-coded visual cues, thereby offering traders valuable flexibility and insight for their market analysis.
Legend
In the Image you can see the BTCUSD 1D Chart with the R͜͡oll-VWAP overlay.
You can see the individually activatable Standard Deviation (SD) Bands and the main VWAP Line.
It also features a Trend Signal which is deactivated by default and can be enabled if required.
Furthermore you can find the coloring of the VWAP line to represent the Trend.
In this case the trend itself is defined as:
Close being greater than the VWAP line -> Uptrend
Close below the VWAP line -> Downtrend
Notes
The R͜͡oll-VWAP can be used in a variety of ways.
Volatility adjusted expected range
This aims to identify in which range the asset is likely to move - according to the historical values the SD Bands are calculated and thus their according probabilities displayed.
Trend analysis
Trending above or below the VWAP shows up or down trends accordingly.
S/R Levels
Based on the probability distribution the 2. SD often works as a Resistance level and either mid line or 1. SD lines can act as S/R levels
Unsustainable levels
Based on the probability distributions a SD level of beyond 2.5, especially 3 and higher is hit very seldom and highly unsustainable.
This can either mean a mean reversion state or a momentum slowdown is necessary to get back to a sustainable level.
Please note that we always advise to find more confluence by additional indicators.
Traders are encouraged to test and determine the most suitable settings for their specific trading strategies and timeframes.
Methodology
The R͜͡oll-VWAP is based on the inbuilt TV VWAP.
It expands upon the limitations of having an anchored timeframe and thus a limited data set that is being reset constantly.
Instead we have integrated a rolling nature that continuously calculates the VWAP over a customizable lookback.
To also keep the base utility it is possible to use the anchored timeframes as well.
Furthermore the visualization has been improved and we added the coloring of the main VWAP line according to the Trend as stated above.
The applicable Trend signals are also part of that.
The parameter settings and also the visualizations allow for ample customizations by the trader.
For questions or recommendations, please feel free to seek contact in the comments.
BTC Halving [YinYangAlgorithms]This Indicator not only estimates what it thinks may be the PRICE for the Start, High and Low of the Halving, but likewise estimates WHEN the Start, High and Low of Halving may be. It then creates Trend Lines based on these predictions so that you may get an evaluation towards if the Price is currently Overbought or Oversold. These Trend Lines may be very useful for seeing the Slope in which the Price may move if it is to reach the estimated Price by the estimated Date. By evaluating the Prices location based on these Trend Lines we may determine if the Price is currently Overbought or Oversold.
These Trend Lines likewise may help identify locations of Support and Resistance. If the Price is much higher than its current Trend Line it is Overbought. There is a chance it will Consolidate back to the Trend Line or it may even correct with a dump all the way back to it; the opposite is true if it is much lower than its current Trend Line.
Trend Lines and Estimates are not all that is featured within this Indicator however. There are also Price Zones which may help identify if the price is currently:
Very Overbought (Red)
Slightly Overbought (Orange)
Neutral (Yellow)
Slightly Oversold (Teal)
Very Oversold (Green)
These zones may help give you an idea of how the price is currently fairing and its potential for movement. Likewise, it may help define where Support and Resistance may be found.
The trend line estimates are done with an algorithm created to evaluate the difference between price and % change that has occurred between the Start, High and Low of all the halvings over how many days between each data type. This may allow us to make an educated estimate towards what Price and Date the Start, High and Low will occur at.
Our Zones are created by evaluating the current Market Cap and circulating supply vs Max Supply of BTC. This may help give us an evaluation of what Price may be considered to be Overbought and Oversold; and likewise may help with estimations of where there may be Support and Resistance based on these Zones.
Tutorial:
In the example above we’re displaying the Halving Start Trend Line, our Information Tables and our Estimated Halving Vertical Marker. This Trend Line may help to display not only the trajectory and slope the Price needs to take to reach the Estimated Halving Price by the Estimated Halving Date; but it may also help to show if the price is Overvalued or Undervalued based on its position above or below this Trend Line.
Based on the Trajectory of the Estimated High Upward Trend Line (Green Line) in the photo above and from the ‘High Date’ estimated in the Information tables; we may attempt to estimate the location the ATH of this Bull Market will create and the price slope it may follow in doing so. This Trajectory may be very useful for understanding the price action that may occur for it to reach the High estimated Price by the High estimated Date.
We currently allow for two different types of zones within our Settings, one called ‘Fast’ displayed in the example above; and the other called ‘Slow’ displayed in the example below.
Our Fast Zone aims to move the Zone Levels Faster in an attempt to move with volatility and parabolic movement. This may help to keep the Very Overbought (Red) and Very OverSold (Green) Levels more accurate by attempting to keep the price within them. By doing so, we may aim to keep all of the Slightly Overbought, Slightly Oversold and Neutral Levels more accurate as well.
The Levels within these zones are defined by the Bright (less transparent) Lines. Whereas the Darker (more transparent) lines represent the Basis Lines between two different levels. These Basis lines may likewise act as a Support and Resistance Location too, but generally hold less weight than the actual Levels themselves.
What you may see is that during the Bull Market, the price is within the very Overbought Zones and even touches again the Very Overbought Level a few times. Likewise, during the Bear Market, the price is within the very Oversold Zones and even slightly drops below the Very Oversold Level. This may be expected and likewise may help to give estimates at potential for growth and decay within the Price based on which condition the Market is within.
Slow Zones move a little slower than Fast Zones, however they may still be accurate. Likewise, it is up to you to decide which Zone works better for your specific Trading Style; however, by default, the Zone type is set to Fast.
If you refer to both the Fast and Slow examples above, you may notice in the Fast the Price is only slightly above the ‘Slightly Oversold’ (Teal) line. Also, In the Fast, the Price where the ‘Very Overbought’ Level is 100k. This is one of the many reasons we’ve opted for ‘Fast’ as the default, and it is because it allows more room for movement; and in our opinion, potentially accuracy as well.
If you refer to the Slow example, you’ll see that the price is currently facing the Neutral Level as a Resistance location. However, if you refer to the price residing at the Slows ‘Very Overbought’ Level, it is only 81.5k, compared to the 100k of Fast.
The BTC Halving is a major event that takes place roughly every 4 years. It historically has a major impact on the market, and some may even say it signifies the Start, or close to start of the Bull Market. Therefore, since historically there may be cycles that BTC and potentially crypto itself follows, we’ve developed this Indicator in hopes that it may solve one of the biggest questions traders face. What Date will the Start, High and Low of the Halving occur and also at what Price.
Hopefully this Tutorial has given you some guidance as to how this Indicator may be used to help identify some of these key levels; including the slope at which the price may have to move if it is to reach its projection Price by its projected Date.
Settings:
1. Show Prediction Trend Lines:
- Options:
All
Start + High
Start + Low
High + Low
Start
High
Low
None
- Description:
Prediction Trend Lines may be an important way to see the Slope the Price needs to take to reach the Predicted Price by the Predicted Date. This may be useful for identifying if the Price is currently Overbought or Oversold.
2. Zone Type:
- Options:
Fast
Slow
- Description:
Zone types change the way the Zones expand.
3. Show Zones:
- Options:
All
Zones
Basis
None
- Description:
Zones are a way of seeing Overbought and Oversold Price locations based on Market Cap and Circulating Supply vs Max Supply.
4. Vertical Markers:
- Options:
All
Line
Label
None
- Description:
Vertical Markers display where the Halving has occurred with a Vertical Line and Label.
5. Show Tables:
Tables may be useful for seeing the Price and Date for when the Start, High and Low of the Halving may occur.
6. Fill Zones:
Filling in Zones may help to identify which Zone the Price is currently in.
If you have any questions, comments, ideas or concerns please don't hesitate to contact us.
HAPPY TRADING!
Market Trend Indicator (FinnoVent)The Market Trend Indicator (FinnoVent) is a comprehensive trading tool designed to provide clear visual cues for market trends on TradingView charts. This indicator combines the principles of Exponential Moving Averages (EMAs), Bollinger Bands, the Average Directional Index (ADX), and the Relative Strength Index (RSI) to offer a nuanced view of market movements.
How It Works:
Trend Identification with EMAs: The indicator uses two EMAs (3-period and 30-period) to identify the primary trend. An upward trend is signaled when the 3-period EMA crosses above the 30-period EMA, while a downward trend is indicated when the 3-period EMA crosses below the 30-period EMA.
Sideways Market Detection: To identify sideways trends, the indicator employs Bollinger Bands, ADX, and RSI. A sideways (or consolidating) market condition is identified when:
The price is between the middle 60% of the Bollinger Bands (avoiding the top and bottom 20%).
The ADX is below 30, indicating a lack of a strong trend.
The RSI is between 40 and 60, suggesting a neutral market momentum.
Visual Representation:
Bar Colors: The indicator colors the price bars on the chart based on the identified trend:
Green Bars: Indicate an upward trend.
Red Bars: Indicate a downward trend.
Grey Bars: Indicate a sideways or consolidating market.
How to Use:
Trend Following: Use the colored bars as a guide for trend following. Green bars suggest a potential entry for a long position, while red bars may indicate opportunities for short positions.
Sideways Market Caution: Grey bars signal a sideways market. In such conditions, traders might exercise caution and avoid trend-following strategies, as the market lacks a clear direction.
Complementary Analysis: While the Market Trend Indicator (FinnoVent) provides valuable insights, it's recommended to use it in conjunction with other forms of analysis (like fundamental analysis, other technical indicators, or price action) for comprehensive decision-making.
Suitable for: This indicator is versatile and can be applied to various timeframes and trading instruments, including stocks, forex, commodities, and indices.
Important Notes:
The indicator is designed to minimize repainting but always consider the latest data for the most accurate analysis.
Like all indicators, it is not foolproof. It works best when combined with a solid trading plan and risk management strategies.
Channel CorridorOVERVIEW
The Channel Corridor indicator is designed to operate on a log chart of asset prices (e.g., BTCUSD), specifically on a weekly timeframe.
The intent of the indicator is to provide a visual representation of market dynamics, focusing on a dynamically adjusted corridor around a Simple Moving Average (SMA) of an asset's price. The corridor adapts to changing market conditions. The indicator includes channels within the corridor for additional reference points.
PURPOSE
Trend Identification: The channel corridor can aid in visualising the overall trend, as it dynamically adjusts the corridor based on an SMA and user-defined parameters.
Volatility Assessment: The width of the channel corridor can may act as a gauge of market volatility.
Reversal Points: The channel corridor may signal potential trend reversals or corrections when an asset price approaches the upper or lower bounds of the corridor.
Long-Term Trend Analysis: The channel corridor may aid in longer-term trend analysis.
CONSIDERATIONS
Validation: It's recommended that careful back-testing over historical data be done before acting on any identified opportunities.
User Discretion: Trading decisions should not rely solely on this script. Users should exercise judgment and consider market conditions.
CREDIT
Ideation: Thanks @Sw1ngTr4der for the idea and corridor seed code
Consecutive Higher/Lower ClosingsThe Consecutive Higher/Lower Closings indicator is a powerful tool designed to assist traders in identifying potential buy and sell signals based on consecutive higher or lower closing prices. This indicator provides users with the flexibility to specify the number of consecutive higher or lower closings required to trigger a signal, allowing for a customizable trading strategy.
Key Features:
Customizable Parameters: Users can define the number of consecutive higher and lower closings needed to generate buy and sell signals, providing a tailored approach to trading.
Clear Buy and Sell Signals: The indicator plots clear buy and sell signals directly on the chart, making it easy for traders to identify potential entry and exit points.
Usage:
Consecutive Higher Closings (Buy Signal): When the current closing price is higher than the previous closing price for the specified number of consecutive periods (as defined by the user), a buy signal will be generated.
Consecutive Lower Closings (Sell Signal): When the current closing price is lower than the previous closing price for the specified number of consecutive periods (as defined by the user), a sell signal will be generated.
How to Use:
Apply the Consecutive Higher/Lower Closings indicator to your chart.
Adjust the input parameters, consecutiveHigherClosings and consecutiveLowerClosings, to match your preferred trading strategy. These parameters determine the number of consecutive higher and lower closings needed to trigger signals.
Interpret the buy and sell signals generated by the indicator. When a buy signal is displayed (green triangle up), it suggests a potential entry point. Conversely, a sell signal (red triangle down) indicates a potential exit point.
Important Note:
This indicator is designed to assist traders in making informed decisions, but it should be used in conjunction with other technical analysis tools and risk management strategies for a comprehensive trading approach.
Kindly be aware that this strategy is most effective with Monster stocks with smooth price action, particularly when analyzing in weekly and/or daily timeframe.
Disclaimer:
Trading involves risk, and past performance does not guarantee future results. Always conduct thorough research and consider your risk tolerance before making trading decisions.
Quantum Market Strength Indicator (MSI)The Market Strength Indicator (MSI) is yet another in our stable of volume-based indicators, and as such, is a must-have tool for trading virtually any type of market and across a myriad of applications from trend trading to swing trading, scalping, and much more. While its sister indicator, the Currency Strength Indicator (CSI), helps you analyze which currencies are oversold, overbought, correlating, and trending, the MSI or Market Strength Indicator does this also, but in this case, for all markets, including stocks, ETFs, futures, and cryptocurrencies, but with one key difference – VOLUME.
As with our core methodology of volume price analysis, volume adds an entirely new dimension to trading analysis as it reveals the driving pressure behind the price action, be it strong or weak, which are all factored into the algorithm that drives the Market Strength Indicator. But with the MSI indicator, its use and application is only limited by your imagination.
For example, we can use it to see which markets are correlating and which are not so that we might use it as an intraday tool for index futures. And, of course, with knowledge gained from the stock trading and investing program, we could then further validate any analysis by setting each against the top five market cap stocks, for confirmation of strength and to give us more confidence in trading an index future.
And not just index futures, but any futures you care to consider, such as energy, metals, softs, currencies or anything else.
For day traders of stocks, you might wish to see which are correlating with one another and which are not, for example, if you are pairs trading, and also whether a particular stock is moving with the primary futures index. If not, this may be a warning sign. And of course, for ETF traders, we have the SPY, a host of ETFs, and alongside them, the sectors, such as the XLK, the XLE, and more, giving you an instant and powerful insight into sentiment across the entire market complex.
The Market Strength Indicator has much to offer; whether you are a stock investor or day trading scalper, index or ETF trader, swing trader or trend trader, it is all here as the indicator signals in a clear and intuitive way when a stock, future or ETF is overbought or oversold in all timeframes, giving you that potent insight into potential reversals from strong to weak and back again. If you enjoy getting into a trend early and trading reversals, then this is the indicator for you, but if you prefer trading trends – no problem, just jump aboard once the move has some momentum and is underway as displayed by the steepness of the line on the indicator.
It’s all here and so much more, from market correlations to market strength and weakness and in all the timeframes from seconds to months.
And just like its sister indicator, the CSI, the MSI is an oscillator that moves seamlessly from overbought to oversold and back again between a value of 100 at the top and zero at the bottom, with each instrument or market represented with a single-colored line. To help further, we’ve included two regions on the indicator to represent these states at 70 and 30, respectively, but you can change these accordingly and perhaps extend them further to 80 and 20. These levels are purely intended as guides to help provide additional information as to the market state and a potential reversal in due course.
Now, in a single indicator, you have the opportunity to gauge sentiment across multiple markets, whether these are correlating or not, and from there develop a myriad of trading opportunities, or alternatively give you that all-important confidence to dive in, or maintain an existing position. Through its unique algorithm based on volume, it is another indicator only limited by your imagination, and like all our other indicators, one we urge you to use in multiple timeframes.
Predictive Trend and Structure (Expo)█ Overview
The Predictive Trend and Structure indicator is designed for traders seeking to identify future trend directions and interruptions in trend continuation. This indicator is unique because it employs standard deviation to predict upcoming trend directions and potential trend continuation levels. This enables traders to stay ahead of the market.
█ How It Works
This indicator primarily functions based on the calculated standard deviation of the trend over a specified period. It evaluates the trend direction by comparing the current trend value to its previous one and scales the standard deviation, allowing for adjustments in sensitivity to price fluctuations.
█ How to Use
Trend
You can easily identify when a future trend begins by observing where the trend level is displayed. If the price breaks above and remains above the trend, it indicates a bullish trend. Conversely, if the price breaks below and stays below, it signifies a bearish trend.
Support and Resistance
With the Predictive Structure enabled, the indicator aids in identifying potential support and resistance levels.
Trend Continuation Break
Trend continuation breaks occur when prices breaks support or resistance, indicating the existing trend may persist. The indicator plots these levels in advance, allowing traders to quickly identify where trend continuation might occur.
█ Settings
Period for Std Dev: Determines the number of periods used for the standard deviation calculation, impacting the indicator's sensitivity to price changes.
Standard Deviation Scaler: Scales the computed standard deviation, affecting the deviations needed to confirm trends and the indicator's focus on significant trend changes.
Predictive Structure: Enables or disables the prediction of market structures like potential levels of structure breaks/trend continuation breaks.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
RSRS (Resistance Support Relative Strength)The Resistance Support Relative Strength (RSRS) indicator, published by Everbright Securities, is a technical analysis tool that enjoys immense popularity among Chinese quantitative traders, owing to its stellar performance in China's stock markets.
🟠 Principle
The indicator treats daily highs and lows as resistance and support levels respectively. It measures market strength by comparing the magnitude of price changes in daily highs versus lows. Specifically, it fits a linear regression model to the (low, high) data points over the past N days (typically 18) and uses the slope (beta) as the RSRS value. A steeper slope indicates stronger market strength.
🟠 Algorithm
1. Collect the daily low and high prices over the past N days.
2. Apply Ordinary Least Squares to estimate the linear regression model: high = alpha + beta * low. The beta is the RSRS value.
3. Compute the z-score of the RSRS over the past M days (typically 600).
4. Compare the z-score to preset buy and sell thresholds (typically 0.7 and -0.7) to generate trading signals. If z-score > buy threshold, a buy signal is triggered. If z-score < sell threshold, a sell signal is triggered.
Bitcoin wave modelBitcoin wave model is based on the logarithmic regression model and the sinusoidal waves, induced by the halving events.
This chart presents the outcome of an in-depth analysis of the complete set of Bitcoin price data available from October 2009 to August 2023.
The central concept is that the logarithm of the Bitcoin price closely adheres to the logarithmic regression model. If we plot the logarithm of the price against the logarithm of time, it forms a nearly straight line.
The parameters of this model are provided in the script as follows: log (BTCUSD) = 1.48 + 5.44log(h).
The secondary concept involves employing the inherent time unit of Bitcoin instead of days:
'h' denotes a slightly adjusted time measurement intrinsic to the Bitcoin blockchain. It can be approximated as (days since the genesis block) * 0.0007. Precisely, 'h' is defined as follows: h = 0 at the genesis block, h = 1 at the first halving block, and so forth. In general, h = block height / 210,000.
Adjustments are made to account for variations in block creation time.
The third concept revolves around investigating halving waves triggered by supply shock events resulting from the halvings. These halvings occur at regular intervals in Bitcoin's native time 'h'. All halvings transpire when 'h' is an integer. These events induce waves with intervals denoted as h = 1.
Consequently, we can model these waves using a sin(2pih - a) function. The parameter determining the time shift is assessed as 'a = 0.4', aligning with earlier expectations for halving events and their subsequent outcomes.
The fourth concept introduces the notion that the waves gradually diminish in amplitude over the progression of "time h," diminishing at a rate of 0.7^h.
Lastly, we can create bands around the modeled sinusoidal waves. The upper band is derived by multiplying the sine wave by a factor of 3.1*(1-0.16)^h, while the lower band is obtained by dividing the sine wave by the same factor, 3.1*(1-0.16)^h.
The current bandwidth is 2.5x. That means that the upper band is 2.5 times the lower band. These bands are forming an exceptionally narrow predictive channel for Bitcoin. Consequently, a highly accurate estimation of the peak of the next cycle can be derived.
The prediction indicates that the zenith past the fourth halving, expected around the summer of 2025, could result in prices ranging between 200,000 and 240,000 USD.
Enjoy the mathematical insights!
Traders Trend DashboardThe Traders Trend Dashboard (TTD) is a comprehensive trend analysis tool designed to assist traders in making informed trading decisions across various markets and timeframes. Unlike conventional trend-following scripts, TTD goes beyond simple trend detection by incorporating a unique combination of moving averages and a visual dashboard, providing traders with a clear and actionable overview of market trends. Here's how TTD stands out from the crowd:
Originality and Uniqueness:
TTD doesn't rely on just one moving average crossover to detect trends. Instead, it employs a dynamic approach by comparing two moving averages of distinct periods across multiple timeframes. This innovative methodology enhances trend detection accuracy and reduces false signals commonly associated with single moving average systems.
Market Applicability:
TTD is versatile and adaptable to various financial markets, including forex, stocks, cryptocurrencies, and commodities. Its flexibility ensures that traders can utilize it across different asset classes and capitalize on market opportunities.
Optimal Timeframe Utilization:
Unlike many trend indicators that work best on specific timeframes, TTD caters to traders with diverse trading preferences. It offers support for intraday trading (1m, 3m, 5m), short-term trading (15m, 30m, 1h), and swing trading (4h, D, W, M), making it suitable for a wide range of trading styles.
Underlying Conditions and Interpretation:
TTD is particularly effective during trending markets, where its multi-timeframe approach helps identify consistent trends across various time horizons. In ranging markets, TTD can indicate potential reversals or areas of uncertainty when moving averages converge or cross frequently.
How to Use TTD:
1. Timeframe Selection: Choose the relevant timeframes based on your trading style and preferences. Enable or disable timeframes in the settings to focus on the most relevant ones for your strategy.
2. Dashboard Interpretation: The TTD dashboard displays green (🟢) and red (🔴) symbols to indicate the relationship between two moving averages. A green symbol suggests that the shorter moving average is above the longer one, indicating a potential bullish trend. A red symbol suggests the opposite, indicating a potential bearish trend.
3. Confirmation and Strategy: Consider TTD signals as confirmation for your trading strategy. For instance, in an uptrend, look for long opportunities when the dashboard displays consistent green symbols. Conversely, in a downtrend, focus on short opportunities when red symbols dominate.
4. Risk Management: As with any indicator, use TTD in conjunction with proper risk management techniques. Avoid trading solely based on indicator signals; instead, integrate them into a comprehensive trading plan.
Conclusion:
The Traders Trend Dashboard (TTD) offers traders a powerful edge in trend analysis, combining innovation, versatility, and clarity. By understanding its unique methodology and integrating its signals with your trading strategy, you can make more informed trading decisions across various markets and timeframes. Elevate your trading with TTD and unlock a new level of trend analysis precision.
Swing Point Oscillator with Trend Filter [Quantigenics]The "Swing Point Oscillator with Trend Filter" is a sophisticated trading oscillator designed to enhance trading decisions by adapting to market conditions. Oscillators typically signal overbought/oversold market states, often yielding false signals in strong trends. This trend indicator addresses this by implementing a 'Trend Filter' which changes color in strong trends, alerting traders to avoid typical oscillator reversals. In strong trends (when the trend Filter is red), mid-high or mid-low levels can be used for pullback entries. In more neutral markets (when the trend Filter is close to blue), extreme high and low levels (top and bottom) can be used, as a true 'over bought / over sold' oscillator. The oscillator combines components of the Stochastic Oscillator and the CCI, then normalizes the result, providing a unique, adaptive signal. The color-coded lines and Trend Filter offer clear visual cues, making this a comprehensive tool for various market scenarios.
Caution: Always use the indicator in conjunction with other tools and analysis methods to confirm trading decisions. Avoid trading solely based on this indicator.
GOLD 4HR
CL1! 4HR
How to Use:
Swing Point Oscillator: Displays the momentum of the price relative to its recent high and low.
Trend Filter: Highlights the general direction of the market trend.
Zones: Visual representation to categorize oscillator values (Up Zone and Down Zone).
Interpretation:
Oscillator:
When the oscillator moves upward and approaches or enters the Up Zone, it indicates increasing bullish momentum.
When the oscillator moves downward and approaches or enters the Down Zone, it suggests increasing bearish momentum.
Values near the middle (around zero) often indicate indecision or consolidation in the market.
Trend Filter:
A trend filter line above the Mid-High or below the Mid-Low suggests a strong trend.
When the trend filter is between the Mid-High and Mid-Low, it might indicate a weaker or sideways trend.
Its color will change based on its position relative to the zones. For instance, it turns red when indicating a stronger trend.
Zones:
Up Zone: The area between the Top Line and the Mid-High. Indicates strong bullish momentum when the oscillator is within this zone.
Down Zone: The area between the Mid-Low and the Bottom Line. Indicates strong bearish momentum when the oscillator is in this zone.
Trading Tips:
Bullish Scenario: Consider long positions when the oscillator is rising, and the trend filter indicates a strong upward trend.
Bearish Scenario: Consider short positions when the oscillator is falling, and the trend filter indicates a strong downward trend.
MACD 3D with Signals [Quantigenics]Quantigenics MACD 3D with Buy Sell Signals is a MACD-based trading indicator that aims to identify market trends and potential turning points, for Buy/Sell opportunities, by leveraging price data and volatility.
Unlike the traditional MACD indicator, the average price is calculated from the high, low, and close prices, from which a specialized MACD value is derived. This MACD value, combined with an average and standard deviation, takes into account volatility, and is used to generate an upper and lower boundary.
The indicator color-codes market trends: aqua indicates upward trends (signifying increased buying pressure), red suggests downward trends (increased selling pressure). When the MACD value crosses above the upper boundary or falls below the lower boundary, the color changes to yellow indicating a possible reversal point and "Momentum Crossover Signals" can be plotted at this point. "Standard Signal" arrows can also plotted when the MACD 3D changes from auqa to red and vice-versa.
A trendline is drawn at the median value, providing a baseline for comparison. A differential value, which measures the distance between the MACD value and the median line, provides additional insight into the price's deviation from this baseline (divergences from the underlying price can be spotted using this data as well). The differential is color-coded: green when MACD is above the median, and red when it's below, with darker shades representing a decreasing gap.
Alerts can be set to trigger with the "Standard Signal" arrows appearing after MACD 3D changes from auqa to red and vice-versa and when the "Momentum Crossover Signal" arrows appear when the MACD value crosses above the upper boundary or falls below the lower boundary indicating a potential reversal. Providing immediate notifications which can be especially helpful in larger time frames where it may take time for a trade setup to develop.
CME_MINI:NQ1!
OANDA:XAUUSD
Enjoy the MACD 3D indicator. Happy Trading!
Adaptive Trend Indicator [Quantigenics]Our Adaptive Trend Indicator is an advanced trading indicator using price and time series analysis to adapt to market trends. It calculates a weighted average of the median price and twice-smoothed average price, then applies a linear regression over twice the user-defined period, generating a trend line. This trend line represents the prevailing market direction and adjusts dynamically based on price fluctuations. When the Adaptive Trend value increases compared to the previous value, the line turns aqua, signaling an upward trend. Conversely, if it decreases, the line turns red, indicating a downward trend. This color coding provides visual guidance for traders. By combining advanced statistical techniques with real-time adaptation, the Adaptive Trend indicator provides timely trend information, supporting traders in navigating various market conditions.
Additionally, this indicator may be applied multiple times to the same chart. Traders may adjust the length of each instance to show a group of trendlines that can indicate when price action is overbought or oversold as well as support or resistance at different indicator lengths. Example below.
CRYPTO:BTCUSD
CRYPTO:BTCUSD
NASDAQ:TSLA
We hope you enjoy this indicator. Happy Trading!
TEWY - Magic Momentum IndicatorMy goal is to equip every trader and investor with the essential tools necessary to confidently navigate the complexities of the financial markets, enabling them to consistently identify opportunities and maintain a position of strength on the winning side of their trades. This indicator stands as a potent tool, offering the capability to effectively assess longer-term momentum trends.
Allow me to provide some context regarding the genesis of this indicator. By keenly observing the pattern of momentum loss preceding each trend reversal, coupled with the notable decrease in the rate of price change, I've formulated this indicator. This design is rooted in the understanding that these dynamics hold key insights into the market's shifting trends.
So, I've developed this indicator with the purpose of granting you the ability to select and construct optional combinations of up to two comparable symbols. Through this, you gain a comprehensive and insightful perspective on the ever-evolving dynamics of the market.
This indicator acts like an oscillator and momentum line serves as a key determinant. When the line is positioned above 0, it signifies a positive momentum; conversely, if it rests below 0, it indicates a sideways to negative trend. This mechanism offers a clear and intuitive means of gauging prevailing market conditions.
Should you have any inquiries or require further clarification regarding this indicator, please do not hesitate to reach out to me via direct message. I am here to provide you with the necessary guidance and support to ensure your experience with this tool is both seamless and enriching. Your understanding and satisfaction remain my utmost priority.
By TEWY - Trade Easy With Yogesh
I am Yogesh
TEWY - Magic Strength Indicator V2My goal is to equip every trader and investor with the essential tools necessary to confidently navigate the complexities of the financial markets, enabling them to consistently identify opportunities and maintain a position of strength on the winning side of their trades. This indicator stands as an immensely powerful tool, delivering a comprehensive and robust approach to market analysis and decision-making.
Allow me to provide some context regarding the genesis of this indicator. The global financial landscape encompasses a multitude of markets, ranging from the money market to the stock market, cryptocurrencies, commodities, and beyond. Often, these markets display proportional or inverse correlations, unveiling the intricate interplay between them. At the heart of this concept lies a meticulous comparison between a selected ticker and other analogous markets. This analytical approach serves as a pathway to unearthing invaluable insights and intricate patterns across interconnected sectors.
So, I created this indicator, to empower you with the capability to select and construct combinations of up to seven comparable markets and offer a comprehensive perspective on market dynamics.
Let me to elucidate the intricacies of this indicator and delve into its versatile configurations. By understanding its components and tailoring its settings, traders can harness its full potential to make informed and strategic trading decisions.
Related to indicator configuration sections
Section 1. 'PRIMARY AND SECONDARY INDEX' and Section 2. 'GLOBAL REFERENCE INDEX'
To utilize this indicator, begin by configuring at least one comparison indicator in the "Primary Index" field. Additional options include the secondary index (which can function as a sector index) and five global indices. Furthermore, you have the flexibility to adjust their timeframes, allowing for comparisons across various time horizons.
Section 3. ADVANCED FEATURS
Consider a scenario where you've pulled up a chart for "NSE:BANKNIFTY" and desire to assess the relative strength of "NSE:NIFTY" in comparison to global indices. To accomplish this, explore the Advanced Feature section and toggle the "Use Different Base Ticker" option to "Yes." Subsequently, input "NSE:NIFTY" as the symbol/ticker in the designated box. This ingenious feature empowers you to evaluate the strength of "NSE:NIFTY" the backdrop of the "NSE:BANKNIFTY" chart. The result? A remarkably potent analytical capability at your fingertips! The possibilities it offers are indeed remarkable!
Section 4. LINE AND BARCOLOR RELATED
I have dedicated considerable effort to scrutinize historical patterns within the strength indicator of various symbols. Through meticulous analysis, I've identified pivotal conditions that often herald shifts in market or symbol trends. Leveraging this insight, I've devised a system to determine optimal strength line colors and bar colors. This strategic approach adds a layer of precision to the indicator, enhancing its effectiveness in recognizing and visualizing trend changes.
Recognizing the prevailing tendency of global markets to exhibit more upward momentum than downward movement, I've taken into account this inherent "Long Bias." With this understanding in mind, I've incorporated a unique feature that aims to prompt an early transition from red to green bar colors when there's a potential indication of a trend reversal from a downtrend. By proactively signaling the shift in color dynamics, this feature aligns with the overall upward-leaning nature of the markets, enabling traders/investors to respond swiftly to potential changes in trend direction.
By employing the 'Use Simple Method of Calculation,' the determination of strength line color is executed through a straightforward crossover technique. This approach proves particularly effective in scenarios where inverse correlations exist between the symbols or tickers being compared. Additionally, an 'Inverse Scale' option is available, wherein a simple multiplication by -1 is applied to all values. This ingenious feature offers a convenient perspective on symbols or tickers that exhibit inverse correlations, further enhancing the indicator's adaptability to a wide array of market dynamics.
**** It's important to note that the 'Change Bar Color' option is intentionally set to the default selection of 'No.' By design, only when you opt to set it to 'Yes' do custom bar colors come into play on the chart. This thoughtful design choice acknowledges the potential need to preserve bar colors when seeking to discern inverse correlations between symbols. Should you require a modification in bar colors, kindly select 'Yes' to initiate this change and access the custom color functionality.
Section 5. LABELS
Moreover, to facilitate ease of use and organization, I've included a practical feature for instances where you deploy this indicator multiple times on a single chart. Within this context, should you wish to assign quick tags to each instance, a dedicated free-text box is at your disposal. This allows you to conveniently label and categorize different instances of the indicator, ensuring a streamlined and efficient approach to managing your chart analyses.
I encourage you all to embark on a rewarding journey in your trading and investing endeavors. With this indicator as your ally, equipped with its potent analytical capabilities, may your path be marked by well-informed decisions and prosperous outcomes. Wishing you every success in your trading and investment journey!
Should you have any inquiries or require further clarification regarding this indicator, please do not hesitate to reach out to me via direct message. I am here to provide you with the necessary guidance and support to ensure your experience with this tool is both seamless and enriching. Your understanding and satisfaction remain my utmost priority.
By TEWY - Trade Easy With Yogesh
I am Yogesh
Pro Momentum CalculatorThe Pro Momentum Calculator Indicator is a tool for traders seeking to gauge market momentum and predict future price movements. It achieves this by counting consecutive candle periods above or below a chosen Simple Moving Average (SMA) and then providing a percentage-based probability for the direction of the next candle.
Here's how this principle works:
1. Counting Consecutive Periods: The indicator continuously tracks whether the closing prices of candles are either above or below the chosen SMA.
- When closing prices are above the SMA, it counts consecutive periods as "green" or indicating potential upward momentum.
- When closing prices are below the SMA, it counts consecutive periods as "red" or suggesting potential downward momentum.
2. Assessing Momentum: By monitoring these consecutive periods, the indicator assesses the strength and duration of the current market trend.
This is important information for traders looking to understand the market's behavior.
3. Predicting the Next Candle: Based on the historical data of consecutive green and red periods, the indicator calculates a percentage probability for the direction of the next candle:
- If there have been more consecutive green periods, it suggests a higher likelihood of the next candle being green (indicating a potential upward movement).
- If there have been more consecutive red periods, it suggests a higher likelihood of the next candle being red (indicating a potential downward movement).
The Pro Momentum Calculator indicator's versatility makes it suitable for a wide range of financial markets, including stocks, Forex, indices, commodities, cryptocurrencies...
Major and Minor Trend Indicator by Nikhil34a V 2.2Title: Major and Minor Trend Indicator by Nikhil34a V 2.2
Description:
The Major and Minor Trend Indicator v2.2 is a comprehensive technical analysis script designed for use with the TradingView platform. This powerful tool is developed in Pine Script version 5 and helps traders identify potential buying and selling opportunities in the stock market.
Features:
SMA Trend Analysis: The script calculates two Simple Moving Averages (SMAs) with user-defined lengths for major and minor trends. It displays these SMAs on the chart, allowing traders to visualize the prevailing trends easily.
Surge Detection: The indicator can detect buying and selling surges based on specific conditions, such as volume, RSI, MACD, and stochastic indicators. Both Buying and Selling surges are marked in black on the chart.
Option Buy Zone Detection: The script identifies the option buy zone based on SMA crossovers, RSI, and MACD values. The buy zone is categorized as "CE Zone" or "PE Zone" and displayed in the table along with the trigger time.
Two-Day High and Low Range: The script calculates the highest high and lowest low of the previous two trading days and plots them on the chart. The area between these points is shaded in semi-transparent green and red colors.
Crossover Analysis: The script analyzes moving average crossovers on multiple timeframes (2-minute, 3-minute, and 5-minute) and displays buy and sell signals accordingly.
Trend Identification: The script identifies the major and minor trends as either bullish or bearish, providing valuable insights into the overall market sentiment.
Usage:
Customize Major and Minor SMA Periods: Adjust the lengths of major and minor SMAs through input parameters to suit your trading preferences.
Enable/Disable Moving Averages: Choose which SMAs to display on the chart by toggling the "showXMA" input options.
Set Surge and Option Buy Zone Thresholds: Modify the surgeThreshold, volumeThreshold, RSIThreshold, and StochThreshold inputs to refine the surge and buy zone detection.
Analyze Crossover Signals: Monitor the crossover signals in the table, categorized by timeframes (2-minute, 3-minute, and 5-minute).
Explore Market Bias and Distance to 2-Day High/Low: The table provides information on market bias, current price movement relative to the previous two-day high and low, and the option buy zone status.
Additional Use Cases:
Surge Indicator:
The script includes a Surge Indicator that detects sudden buying or selling surges in the market. When a buying surge is identified, the "BSurge" label will appear below the corresponding candle with black text on a white background. Similarly, a selling surge will display the "SSurge" label in white text on a black background. These indicators help traders quickly spot strong buying or selling activities that may influence their trading decisions. These surges can be used to identify sudden premium dump zones.
Option Buy Zone:
The Option Buy Zone is an essential feature that identifies potential zones for buying call options (CE Zone) or put options (PE Zone) based on specific technical conditions. The indicator evaluates SMA crossovers, RSI, and MACD values to determine the current market sentiment. When the option buy zone is triggered, the script will display the respective zone ("CE Zone" or "PE Zone") in the table, highlighted with a white background. Additionally, the time when the buy zone was triggered will be shown under the "Option Buy Zone Trigger Time" column.
Price Movement Relative to 2-Day High/Low:
The script calculates the highest high and lowest low of the previous two trading days (high2DaysAgo and low2DaysAgo) and plots these points on the chart. The area between these two points is shaded in semi-transparent green and red colors. The green region indicates the price range between the highpricetoconsider (highest high of the previous two days) and the lower value between highPreviousDay and high2DaysAgo. Similarly, the red region represents the price range between the lowpricetoconsider (lowest low of the previous two days) and the higher value between lowPreviousDay and low2DaysAgo.
Entry Time and Current Zone:
The script identifies potential entry times for trades within the option buy zone. When a valid buy zone trigger occurs, the script calculates the entryTime by adding the durationInMinutes (user-defined) to the startTime. The entryTime will be displayed in the "Entry Time" column of the table. Depending on the comparison between optionbuyzonetriggertime and entryTime, the background color of the entry time will change. If optionbuyzonetriggertime is greater than entryTime, the background color will be yellow, indicating that a new trigger has occurred before the specified duration. Otherwise, the background color will be green, suggesting that the entry time is still within the defined duration.
Current Zone Indicator:
The script further categorizes the current zone as either "CE Zone" (call option zone) or "PE Zone" (put option zone). When the market is trending upwards and the minor SMA is above the major SMA, the currentZone will be set to "CE Zone." Conversely, when the market is trending downwards and the minor SMA is below the major SMA, the currentZone will be "PE Zone." This information is displayed in the "Current Zone" column of the table.
These additional use cases empower traders with valuable insights into market trends, buying and selling surges, option buy zones, and potential entry times. Traders can combine this information with their analysis and risk management strategies to make informed and confident trading decisions.
Note:
The script is optimized for identifying trends and potential trade opportunities. It is crucial to perform additional analysis and risk management before executing any trades based on the provided signals.
Happy Trading!
RAINBOW AVERAGES - INDICATOR - (AS) - 1/3
-INTRODUCTION:
This is the first of three scripts I intend to publish using rainbow indicators. This script serves as a groundwork for the other two. It is a RAINBOW MOVING AVERAGES indicator primarily designed for trend detection. The upcoming script will also be an indicator but with overlay=false (below the chart, not on it) and will utilize RAINBOW BANDS and RAINBOW OSCILLATOR. The third script will be a strategy combining all of them.
RAINBOW moving averages can be used in various ways, but this script is mainly intended for trend analysis. It is meant to be used with overlay=true, but if the user wishes, it can be viewed below the chart. To achieve this, you need to change the code from overlay=true to false and turn off the first switch that plots the rainbow on the chart (or simply move the indicator to a new pane below). By doing this, you will be able to see how all four conditions used to detect trends work on the chart. But let's not get ahead of ourselves.
-WHAT IS IT:
In its simplest form, this indicator uses 10 moving averages colored like a rainbow. The calculation is as follows:
MA0: This is the main moving average and can be defined with the type (SMA, EMA, RMA, WMA, SINE), length, and price source. However, the second moving average (MA1) is calculated using MA0 as its source, MA2 uses MA1 as the data source, and so on, until the last one, MA9. Hence, there are 10 moving averages. The first moving average is special as all the others derive from it. This indicator has many potential uses, such as entry/exit signals, volatility indication, and stop-loss placement, but for now, we will focus on trend detection.
-TREND DETECTION:
The indicator offers four different background color options based on the user's preference:
0-NONE: No background color is applied as no trend detection tools is being used (boring)
1-CHANGE: The background color is determined by summing the changes of all 10 moving averages (from two bars). If the sum is positive and not falling, the background color is GREEN. If the sum is negative and not rising, the background color is RED. From early testing, it works well for the beginning of a movement but not so much for a lasting trend.
2-RAINBW: The background color is green when all the moving averages are in ascending order, indicating a bullish trend. It is red when all the moving averages are in descending order, indicating a bearish trend. For example, if MA1>MA2>MA3>MA4..., the background color is green. If MA1 threshold, and red indicates width < -threshold.
4-DIRECT: The background color is determined by counting the number of moving averages that are either above or below the input source. If the specified number of moving averages is above the source, the background color is green. If the specified number of moving averages is below the source, the background color is red. If all ten MAs are below the price source, the indicator will show 10, and if all ten MAs are above, it will show -10. The specific value will be set later in the settings (same for 3-TSHOLD variant). This method works well for lasting trends.
Note: If the indicator is turned into a below-chart version, all four color options can be seen as separate indicators.
-PARAMETERS - SETTINGS:
The first line is an on/off switch to plot the skittles indicator (and some info in the tooltip). The second line has already been discussed, which is the background color and the selection of the source (only used for MA0!).
The line "MA1: TYP/LEN" is where we define the parameters of MA0 (important). We choose from the types of moving averages (SMA, EMA, RMA, WMA, SINE) and set the length.
Important Note: It says MA1, but it should be MA0!.
The next line defines whether we want to smooth MA1 (which is actually MA0) and the period for smoothing. When smoothing is turned on, MA0 will be smoothed using a 3-pole super smoother. It's worth noting that although this only applies to MA0, as the other MAs are derived from it, they will also be smoothed.
In the line below, we define the type and length of MAs for MA2 (and other MAs except MA0). The same type and length are used for MA1 to MA9. It's important to remember that these values should be smaller. For example, if we set 55, it means that MA1 is the average of 55 periods of MA0, MA2 will be 55 periods of MA1, and so on. I encourage trying different combinations of MA types as it can be easily adjusted for ur type of trading. RMA looks quirky.
Moving on to the last line, we define some inputs for the background color:
TSH: The threshold value when using 3-TSHOLD-BGC. It's a good idea to change the chart to a pane below for easier adjustment. The default values are based on EURUSD-5M.
BG_DIR: The value that must be crossed or equal to the MA score if using 4-DIRECT-BGC. There are 10 MAs, so the maximum value is also 10. For example, if you set it to 9, it means that at least 9 MAs must be below/above the price for the script to detect a trend. Higher values are recommended as most of the time, this indicator oscillates either around the maximum or minimum value.
-SUMMARY OF SETTINGS:
L1 - PLOT MAs and general info tooltip
L2 - Select the source for MA0 and type of trend detection.
L3 - Set the type and length of MA0 (important).
L4 - Turn smoothing on/off for MA0 and set the period for super smoothing.
L5 - Set the type and length for the rest of the MAs.
L6 - Set values if using 4-DIRECT or 3-TSHOLD for the trend detection.
-OTHERS:
To see trend indicators, you need to turn off the plotting of MAs (first line), and then choose the variant you want for the background color. This will plot it on the chart below.
Keep in mind that M1 int settings stands for MA0 and MA2 for all of the 9 MAs left.
Yes, it may seem more complicated than it actually is. In a nutshell, these are 10 MAs, and each one after MA0 uses the previous one as its source. Plus few conditions for range detection. rest is mainly plots and colors.
There are tooltips to help you with the parameters.
I hope this will be useful to someone. If you have any ideas, feedback, or spot errors in the code, LET ME KNOW.
Stay tuned for the remaining two scripts using skittles indicators and check out my other scripts.
-ALSO:
I'm always looking for ideas for interesting indicators and strategies that I could code, so if you don't know Pinescript, just message me, and I would be glad to write your own indicator/strategy for free, obviously.
-----May the force of the market be with you, and until we meet again,
Higher Fibonacci EMAOverall image:
If the closing price is higher than the three Fibonacci EMAs (uptrend):
Thanks to @ZenAndTheArtOfTrading and his indicator "Higher Timeframe EMA", URL =
This is a trend-discriminating indicator that uses 3 EMAs.
The Williams Alligator is the underlying philosophy, and we have applied it to capture the larger trend.
It is set up for the current time frame + 2 higher time frames.
One of the upper time legs has a daily EMA length of 13 Fibonacci numbers.
The top-level time leg has a weekly EMA with a length of 5 Fibonacci.
If the current closing price of the ticker leg is higher than these three EMAs, the bar color will be green. If it is lower, it will be red. If it is neither, it will be gray.
If the bar color is green, it suggests that the trend is upward. If it is red, you can consider entering short. If it is gray, it is best not to enter anything.