Leonid's Bitcoin Full Cycle Simple SMA IndicatorThis is a straight-forward and customizable indicator to track Bitcoin cycles, specifically used for helping investors understand where to buy and sell. This is done by using a two year SMA period as the base calculation. With that calculation you create lower and upper bounds for bull market peaks and bear market bottoms.
The novel idea here is that you can customize the SMA "strength" for both the upper and lower bounds as alpha decays over time and price get's less volatile with adoption increasing. The multiples are customizable for both the upper and lower bounds along with a mid-line that will adjust based on the settings input.
Indicators don't always have to rely on crazy math or outlandish ideas to be useful, sometimes even the simplest of inputs can give investors (especially those that are new) a great base case for their strategy. Something being simple does not diminish the idea or strength behind the data.
How to use this indicator: This script must be used on INDEX:BTCUSD (Bitcoin All-Time History Index) with the y-axis being set to Logarithmic scale.
Details & how to interpret: The price is colored green when Bitcoin enters a "value zone" meaning it is heavily oversold and likely near a bottom for the bear market cycle. The price is colored red when Bitcoin enters an "overbought zone" meaning it is heavily overbought and is likely near a top for the bull market cycle.
Along with the upper and lower bound I have plotted a mid-line (in orange) to establish a neutral zone which helps depict what phase of the cycle we're in (under mid-line = bearish/accumulation phase, over mid-line = bullish/distribution phase).
The inputs for the upper and lower bound are customizable and will need to be adjusted over time as alpha decay will occur as time goes on. Currently the numbers are as follows:
0.2 for the lower bound
4.675 for the upper bound
Both inputs can be modified depending on your risk tolerance. Mathematically it is safe to assume these numbers will decrease as time goes on and volatility during cycle peaks & troughs is reduced.
I've also plotted an upper bound "heat zone" which is shaded in green, this area is great for signaling when you should be preparing to begin taking profits. It takes the upper bound and subtracts the lower bound to derive the band.
All the colors are customizable and this indicator is best used on a line chart but can be customized to use on a bar chart/candlestick as well.
Simple Moving Averages are a very basic indicator but are often extremely powerful because the majority of traders/investors are looking at such levels which creates a psychological/herd effect. Another good example is the law of round numbers.
Regardless this script can be adapted with EMAs or additional standard deviations if necessary. If you have any questions or concerns please don't hesitate to message me.
Indicators and strategies
SMT Divergences [OutOfOptions]Smart Money Technique (SMT) Divergence is designed to identify discrepancies between correlated assets within the same timeframe. It occurs when two related assets exhibit opposing signals, such as one forming a higher low while the other forms a lower low. This technique is particularly useful for anticipating market shifts or reversals before they become evident through other Premium Discount (PD) Arrays.
This indicator works by identifying the highs and lows that have formed for an asset on the current chart and the correlated symbol defined in the settings. Once a pivot on either asset is formed, it checks if the pivot has taken liquidity as identified by the previous pivot in the same direction (i.e., a new high taking out a previous high). If this is the case and the corresponding asset has not taken a similar pivot, the condition is determined to be a potential valid divergence. The indicator will then filter out SMTs formed by adjacent candles, requiring at least one candle difference between the candles forming the SMT.
If the “Candle Direction Validation” setting is enabled, the indicator will further check both assets to ensure that for bullish SMTs, the last high on both assets was formed by down candle, and for bearish SMTs, the low was formed by an up candle. This check can often eliminate low-probability SMTs that are frequently broken.
The referenced chart shows divergence between Nasdaq (NQ) and S&P 500 (ES) futures, which are normally closely correlated assets that move in the same direction. The lines shown represent bullish and bearish divergences between the two when they are formed. As you can see from the chart, SMT Divergences may not always indicate a reversal, or a reversal might be just a short-term retrace. Therefore, SMT Divergences should not be used independently. However, in conjunction with other PD arrays, they can provide strong confirmation of a change in market direction.
Configurability:
Pivot strength - Indicates how many bars to the left/right of a high for pivot to be considered, recommended to keep at 1 for maximum detection speed
Candle Direction Validation - Additional SMT validation to filter out weak/low-probability SMTs be examining candle direction
Line Styling for Bullish/Bearish SMTs - Ability to customize line style, color & width for bullish/bearish SMTs
Label Control - Whether or not to show SMT label and if shown what font size & color should be used
What makes this indicator different:
Unlike other SMT indicators, this indicators has additional built-in controls to remove low-probability SMTs
Bullseye NYSE 1st5mThis script, "BullseyeNYSE1st5m," is a TradingView indicator designed to highlight the high and low price levels during the first 5 minutes of the NYSE trading session. It works as follows:
1. **Identify NYSE Trading Hours**: The script identifies bars that fall within NYSE trading hours, specifically focusing on the first five minutes after the market opens.
2. **Calculate First 5-Minute High and Low**: During the first five minutes of the trading day, the script captures and updates the high and low prices, storing these values for the remainder of the session.
3. **Plot High and Low Levels**: The high and low values from the first five minutes are plotted as lines on the chart in yellow. This helps traders quickly identify the initial range set by the market.
4. **Fill the Area Between High and Low**: The area between the high and low levels is filled with a translucent yellow color to visually emphasize the first five-minute range.
5. **Alerts for Breakouts**: Alerts are set to notify the user when the price closes above or below the first five-minute range. This helps traders stay informed of potential breakout opportunities beyond this key opening range.
This indicator is useful for day traders looking to leverage the first few minutes of NYSE trading to identify early support and resistance levels and to spot breakout opportunities.
Neutral Price Action Zones with Horizontal LinesIf the upper shadow of the red candle is longer than its lower shadow and the upper shadow of the green candle is longer than its lower shadow, it indicates that the upper and lower wicks of the red and green candles are equal. In this case, it means that the price does not show a clear trend in a specific direction, and the price movement is neutral. This situation usually suggests market uncertainty or that the price is moving within a horizontal range.
Red and Green Candle Check: The status of the candles is determined.
Shadow Calculations: The upper and lower shadows of the red and green candles are calculated.
Horizontal Range Check: The horizontal range condition is checked for the red and green candles.
Background Color: If the condition is met, the background is marked in gray.
Horizontal Line: When the horizontal range condition is met, a horizontal line is drawn.
RSI TOTAL MOMENTUM1 (resatserhat)SOURCE OF COLORS
Our oscillator is the classic RSI oscillator. However, in the classic RSI oscillator, only RSI14 is taken into account, the user looks at different periods when he wants, and each period shows a different level. This situation confuses the user and prevents him from reaching a clear conclusion. This indicator takes into account the relationship between more than 1 or even 10 RSI periods, and shows us with colors which direction the momentum is in all periods and how strong it is. In other words, the mathematics underlying the coloring is the relationship between different RSI periods.
RSI COLORS
The RSI line has 3 colors: red, green, blue. The red color indicates that the momentum is weakening, the green color indicates that it is strengthening, and the blue color indicates that the momentum is unstable and can switch from red to green or from green to red at any moment.
BOLLINGER BAND COLORS
It is formed by considering the same mathematics as the RSI line colors, but it shows the momentum of larger periods. That is, it changes color later than the RSI line, but it is more reliable and accurate.
Colors in Hidden Divergences
In hidden negative divergences and hidden positive divergences, a single bar usually has an outlier color, this should be taken into consideration.
How to Use Colors?
1. When the RSI shows green bottom, blue bottom or green and blue mixed bottoms, it is a strong bullish signal.
2. When the RSI shows red top, blue top or red and blue mixed tops, it is a strong bearish signal.
3. When the RSI and BAND colors are bearish, it creates a strong signal.
4. When the RSI performs the actions in the 1st definition above the Bollinger Band, the buy signal should be trusted more.
5. When the RSI performs the actions in the 2nd definition below the Bollinger Band, the sell signal should be trusted more.
40-60 LEVELS
The 40-60 levels are strong resistance and support levels. Added for the Andrew Cardwell strategy. Blue, green or blue-green mixed bottoms occurring close to the 60 level bring strong upward movements
Red, blue or red-blue mixed tops occurring close to the 40 level bring strong downward movements.
Also in the oscillator, when RSI14 goes above the 80 level, the background color turns red. When it falls below the 20 level, the background color turns green. The first one indicates a sell zone, the second one indicates a buy zone.
TÜRKÇE
RENKLERİN KAYNAĞI
Osilatörümüz klasik RSI osilatörüdür. Fakat klasik RSI osilatöründe sadece RSI14 dikkate alınır, kullanıcı istediğinde farklı periyotlara bakar ve her periyot farklı bir seviye gösterir. Bu durum kullanıcının zihnini karıştırır, net bir kanıya varmasını önler. İşte bu indikatör 1’den hatta 10’dan fazla RSI periyodu arasındaki ilişkiyi dikkate alarak, bütün periyotlardaki momentumun hangi yönde olduğunu ve hangi güçte olduğunu renklerle bize gösterir. Yani Renklendirmenin temelinde yatan matematik farklı RSI periyotları arasındaki ilişkidir.
RSI RENKLERİ
RSI çizgisi kırmızı, yeşil, mavi olmak üzere 3 renk taşır. Kırmızı renk momentumun zayıfladığını gösterir, yeşil renk güçlendiğini, mavi renk ise momentumun kararsız olduğunu ve her an kırmızdan yeşile veya yeşilden kırmızıya geçebileceğini söyler.
BOLLİNGER BANDI RENKLERİ
RSI çizgisi renkleri ile aynı matematik dikkate alınarak oluşur, fakat daha büyük periyotların momentumunu gösterir. Yani RSI çizgisine göre daha geç renk değiştirir ama daha güvenilir ve kesindir.
Gizli Uyumsuzluklarda Renkler
Gizli negatif uyumsuzluk ve gizli pozitif uyumsuzluklarda genelde tek bir barda aykırı renk oluşur, bu husus dikkate alınmalıdır.
Renkler Nasıl Kullanılmalı?
1. RSI yeşil dip, mavi dip veya yeşil ve mavi karışımı dipler gösterdiğinde yükseliş yönlü güçlü bir sinyaldir.
2. RSI kırmızı tepe, mavi tepe veya kırmızı ve mavi karışışımı tepeler gösterdiğinde düşüş yönlü güçlü bir sinyaldir.
3. RSI ve BAND renkleri ayı olduğunda güçlü bir sinyal oluşturur.
4. RSI bollinger bandının üstünde 1. Tanımdaki eylemleri gerçekleştirdiğinde alım sinyaline daha çok güvenilmeli.
5. RSI bollinger bandının altında 2. Tanımdaki eylemleri gerçekleştirdiğinde satım sinyaline daha çok güvenilmeli.
40-60 SEVİYELERİ
40-60 seviyeleri güçlü direnç ve destek seviyeleridir. Andrew Cardwell stratejisi için eklenmiştir. 60 seviyesine yakın gerçekleşen mavi, yeşil veya mavi-yeşil karışımı dipler güçlü yükseliş hareketleri getirir
40 seviyesine yakın gerçekleşen kırmızı, mavi veya kırmızı-mavi karışımı tepeler güçlü düşüş hareketleri getirir.
Osilatörde ayrıca RSI14 80 seviyesinin üzerine çıktığında arka plan rengi kırmızıya dönüşür. 20 seviyesinin altına düştüğüne arkaplan rengi yeşile dönüşür. İlki satış bölgesi ikincisi alış bölgesi olduğunu haber eder.
Bullseye PDHL Bullseye PDHL Indicator
The Bullseye PDHL indicator is designed for traders who want to visually identify key price levels from the previous trading day, including the high, low, and significant Fibonacci retracement levels. This indicator helps traders understand potential support and resistance zones, which can be useful for planning entries and exits.
Key Features:
Previous Day’s High and Low:
Plots the previous day’s high and low as solid lines on the chart to easily identify important levels from the prior session.
These levels serve as critical support and resistance markers, which are often respected by the market.
Fibonacci Retracement Levels:
Plots three Fibonacci retracement levels (38.2%, 50%, and 61.8%) between the previous day’s high and low.
These levels are key reference points for assessing potential pullbacks or retracements during the current trading day.
Visual Representation:
The previous day’s high and low are plotted in cyan for easy differentiation.
The Fibonacci retracement levels (30%, 50%, 60%) are plotted in white, providing a clear visual reference for traders.
This indicator can help traders identify important reaction zones and areas where price might reverse or consolidate, making it a valuable addition for technical analysis.
Momentum Flow OscillatorIndicator Overview: Momentum Flow Oscillator (MFO)
The Momentum Flow Oscillator (MFO) is a powerful tool for detecting shifts in market momentum. It combines a momentum-based calculation with a dynamic ribbon of moving averages to help traders identify trend reversals, continuations, and market consolidations. The MFO offers a clear visual representation of market conditions and assists traders in making informed decisions based on the relationship between momentum and its underlying trends.
The MFO line (green) is plotted alongside a Base Line (black) and a series of moving averages (ribbon). The ribbon is composed of five moving averages of different lengths, which allow traders to spot trends, momentum shifts, and potential trade opportunities. It is important to note that the ribbon tends to be a slower-moving component of the indicator, providing long-term trend signals rather than quick, reactive signals.
Components of the Indicator:
Momentum Flow Index (MFI):
This green line is the core of the indicator, representing market momentum derived from price and volume action. It reacts to changes in market dynamics and helps identify periods of strength and weakness.
Base Line (Black Line):
The black line is a 200-period moving average of the momentum flow. This acts as a dynamic support/resistance level for the MFI, smoothing out the price action over a longer period and providing a clearer trend signal.
Moving Averages Ribbon:
The ribbon is composed of five moving averages with different periods (100, 125, 150, 175, and 200). These moving averages create a visual "ribbon" that helps identify trends and consolidations, allowing traders to visualize the market’s momentum over different time frames.
The ribbon acts as a slower-moving indicator, helping to confirm long-term trends. Traders should keep in mind that the ribbon provides signals with a lag, making it ideal for trend-following rather than quick, short-term trades.
How to Use the Momentum Flow Oscillator (MFO):
1. Bullish Momentum Signals:
When the MFI (green line) crosses above the Base Line and the SMA ribbon, it indicates increasing momentum in the market. This signal is particularly strong when the MFI stays above the ribbon for an extended period.
Trade Example: Traders can use this as a buy signal when the MFI crosses above the ribbon, indicating that momentum is shifting to the upside. If the ribbon starts fanning out, it suggests the market is trending strongly upward, which may support a long position.
2. Bearish Momentum Signals:
When the MFI crosses below the Base Line and the SMA ribbon, it signals decreasing momentum. This is a bearish sign, indicating that the market may be preparing for a downturn.
Trade Example: A trader can use the cross below the ribbon as a sell signal or consider entering a short position when momentum weakens. If the ribbon fans out in a downward direction, it suggests the market is trending lower, and a short position may be warranted.
3. Neutral or Caution Signals:
When the MFI fluctuates within the SMA ribbon or crosses in and out frequently, the market may be in a consolidation phase or range-bound. In this situation, the trend is uncertain, and momentum is not strong enough to break decisively in either direction.
Trade Example: Traders may want to avoid taking new positions when the MFI is moving sideways within the ribbon, as this indicates indecision in the market. Waiting for a breakout above or below the ribbon can provide clearer signals for trading.
4. Trend Confirmation with Ribbon Expansion:
When the SMA ribbon expands, it indicates strong momentum in the direction of the trend. A clear widening of the ribbon with the MFI above (bullish) or below (bearish) signals a strong, sustainable trend.
Trade Example: As the ribbon expands, it confirms the strength of the trend, and traders can use this as confirmation to either hold an existing position or add to it.
5. Reversal Signals from Ribbon Contraction:
When the SMA ribbon contracts or the MFI crosses back and forth over the Base Line, it signals a potential reversal or a weakening of the existing trend.
Trade Example: In these cases, traders might consider closing positions or preparing for a reversal, as the contraction often signals a potential breakout in the opposite direction.
Example of Using the MFO in Trading:
In the provided chart image, you can see the MFI moving below the Base Line and the SMA ribbon for an extended period. This indicates bearish momentum, and traders could use this signal to enter a short position or avoid long positions until the MFI shows signs of crossing back above the ribbon. When the MFI crosses above the ribbon, it can signal a potential bullish reversal, indicating it might be time to re-enter long positions or close short positions.
Additional Trading Tips:
Combine with Other Indicators: The MFO can be used in combination with other technical tools such as volume-based indicators, trendlines, or oscillators like RSI or MACD to confirm signals and increase accuracy.
Use Different Time Frames: Traders can apply the MFO on different time frames (e.g., daily, weekly) to capture both short-term and long-term trends. Crossovers in longer time frames provide stronger confirmation of trend direction.
Conservative Entry: For more conservative traders, waiting for the MFI to fully cross above or below the ribbon (rather than within it) can help filter out false signals and avoid entering trades during consolidation phases.
Conclusion:
The Momentum Flow Oscillator offers traders a versatile and visual approach to gauging market momentum and trend strength. By observing the interaction between the MFI and the SMA ribbon, traders can spot trend changes early, confirm existing trends, and stay out of choppy, sideways markets. Keep in mind that the ribbon is a slower-moving part of the indicator—perfect for trend-following strategies but less ideal for fast, reactive trades. Use this indicator to increase your confidence in your trading decisions and improve your ability to capture trends in the market.
Pivot Bollinger BandThis is a special kind of Bollinger Bands indicator that adapts to the market's pivot points. Instead of using regular price data, it first finds important swing highs and lows in the market (called pivot points). It then uses these pivot points to create a center line, which is like a moving average of where the market is pivoting.
Around this center line, it draws the classic Bollinger Bands - an upper and lower band that show where prices might find resistance or support. The distance between these bands changes based on market volatility, just like regular Bollinger Bands. You can adjust how sensitive it is to pivot points and how wide the bands should be.
By using pivot point based Bollinger Bands, we expect band breakout can be captured more effectively.
Z-Scored Pi Cycle Top & BottomThis indicator calculates the Z-score of the Pi Cycle Top & Bottom indicator to identify potential market cycle tops and bottoms. It uses the relationship between two EMAs (111 and 350) to assess the price action and applies a Z-score to determine how far the current value deviates from the mean, providing a normalized measure of overbought and oversold conditions.
Summary:
The Z-Scored Pi Cycle Top & Bottom indicator is designed to help traders identify significant market cycle extremes by applying a Z-score to the Pi Cycle Top & Bottom ratio (EMA 111/EMA 350). This normalized score ranges between -2.99 and 2.99, with values near the extremes suggesting potential market tops or bottoms. Green shading indicates a positive Z-score (potential top), while red shading indicates a negative Z-score (potential bottom).
Use this indicator to gauge where the market stands relative to historical tops and bottoms, allowing for more informed decision-making in both bull and bear markets. The indicator also displays the absolute value of the Z-score in the label, helping traders easily visualize how far the current market is from historical extremes.
**I did not come up with or create this indicator I have just z scored it and made it easier for myself to use.***
Supply and Demand Areas Responsible and Origins [PRO][keypoems]Supply and Demand Areas Responsible and Origins by Keypoems
This indicator highlights supply and demand areas responsible for breaking market structure (SNDR) and tracks how many times these have been "tapped". This is a very advanced and unique capability not present on TradingView at the moment. It also draws and track the "Origins" of breakout moves.
Using this fellow traders can to track with great precision order flow by gauging the reaction of price to these very sensitive areas.
Various powerful trading models can be built around this indicator. Here's an example on how to use it: Price Action will tend to retrace and visit ("tap") critical areas where orders are accumulated (SNDR and Origins) usually twice ("double tap") before continuing a trend. With this knowledge traders can either enter profitably a pro-trend trade after a "double tap" retracement in a responsible area or a origin or if those areas are violated, understand the change in narrative and enter a counter-trend trade.
This indicator is not a mashup of something you have already seen. It is absolutely unique: early testers and fellow traders have been very loud in requesting this to be released to the public (I love you moderators!).
SNDRs (Supply and Demand Responsible)
- Advanced Detection: Looks for the last up-move swing in a bearish zone, or the last down-move in a bullish zone. Adjust the sensitivity choosing a customizable pivot length.
- Mitigation Extension: Option to extend SNDR zones until they are fully mitigated.
- First Tap Indication: Zones change color and text upon the first tap, signaling initial mitigation.
- Second Tap Indication: Zones change color and text upon the first tap, signaling possible trade idea.
- Set pivot length for swing detection.
- Enable bullish and bearish SNDR zones separately.
- Customize texts, colors, and border colors for SNDR zones.
- Adjust line styles, widths, and display of 30%, 50%, and 70% levels within SNDR zones.
Origins
- Definition Flexibility: Mark Origins as the last down-close candle in a bullish zone, last up-close candle in a bearish zone or use the initial swing point with a customizable pivot length.
- Mitigation Extension: Extend origin zones until they are fully mitigated.
- First Tap Indication: Similar to SNDR, origin zones can change appearance upon the first tap.
- Set pivot length for swing detection.
- Enable bullish and bearish origin zones separately.
- Customize texts, colors, borders, and line styles.
- Adjust display of 30%, 50%, and 70% levels within origin zones.
Zones
To be able to draw SNDRs (which are internal counter-trend areas in a zone) the indicator needs to track market structure zones. So the indicator can also draw those zones if needed. The indicator can also extend the current price zones until the 50% of the zone is mitigated.
Info Box
Displays a box with detailed information about the last identified zone, including risk and range size.
- Risk Management: Set the risk amount to calculate contract sizes or position sizing.
- Visibility Options: Adjust the labels' size within the info box for better readability.
- Set the risk amount for calculations.
CPR by NKDCentral Pivot Range (CPR) Trading Strategy:
The Central Pivot Range (CPR) is a widely-used tool in technical analysis, helping traders pinpoint potential support and resistance levels in the market. By using the CPR effectively, traders can better gauge market trends and determine favorable entry and exit points. This guide explores how the CPR works, outlines its calculation, and describes how traders can enhance their strategies using an extended 10-line version of CPR.
What Really Central Pivot Range (CPR) is?
At its core, the CPR consists of three key lines:
Pivot Point (PP) – The central line, calculated as the average of the previous day’s high, low, and closing prices.
Upper Range (R1) – Positioned above the Pivot Point, acting as a potential ceiling where price may face resistance.
Lower Range (S1) – Found below the Pivot Point, serving as a potential floor where price might find support.
Advanced traders often expand on the traditional three-line CPR by adding extra levels above and below the pivot, creating up to a 10-line system. This extended CPR allows for a more nuanced understanding of the market and helps identify more detailed trading opportunities.
Applying CPR for Trading Success
1. How CPR is Calculation
The CPR relies on the previous day's high (H), low (L), and close (C) prices to create its structure:
Pivot Point (PP) = (H + L + C) / 3
First Resistance (R1) = (2 * PP) - L
First Support (S1) = (2 * PP) - H
Additional resistance levels (R2, R3) and support levels (S2, S3) are calculated by adding or subtracting multiples of the previous day’s price range (H - L) from the Pivot Point.
2. Recognizing the Market Trend
To effectively trade using CPR, it’s essential to first determine whether the market is trending up (bullish) or down (bearish). In an upward-trending market, traders focus on buying at support levels, while in a downward market, they look to sell near resistance.
3. Finding Ideal Entry Points
Traders often look to enter trades when price approaches key levels within the CPR range. Support levels (S1, S2) offer buying opportunities, while resistance levels (R1, R2) provide selling opportunities. These points are considered potential reversal zones, where price may bounce or reverse direction.
4. Managing Risk with Stop-Loss Orders
Proper risk management is crucial in any trading strategy. A stop-loss should be set slightly beyond the support level for buy positions and above the resistance level for sell positions, ensuring that losses are contained if the market moves against the trader’s position.
5. Determining Profit Targets
Profit targets are typically set based on the distance between entry points and the next support or resistance level. Many traders apply a risk-reward ratio, aiming for larger potential profits compared to the potential losses. However, if the next resistance and support level is far then middle levels are used for targets (i.e. 50% of R1 and R2)
6. Confirmation Through Other Indicators
While CPR provides strong support and resistance levels, traders often use additional indicators to confirm potential trade setups. Indicators such as moving averages can
help validate the signals provided by the CPR.
7. Monitoring Price Action At CPR Levels
Constantly monitoring price movement near CPR levels is essential. If the price fails to break through a resistance level (R1) or holds firm at support (S1), it can offer cues on when to exit or adjust a trade. However, a strong price break past these levels often signals a continued trend.
8. Trading Breakouts with CPR
When the price breaks above resistance or below support with strong momentum, it may signal a potential breakout. Traders can capitalize on these movements by entering positions in the direction of the breakout, ideally confirmed by volume or other technical indicators.
9. Adapting to Changing Market Conditions
CPR should be used in the context of broader market influences, such as economic reports, news events, or geopolitical shifts. These factors can dramatically affect market direction and how price reacts to CPR levels, making it important to stay informed about external market conditions.
10. Practice and Backtesting for Improvements
Like any trading tool, the CPR requires practice. Traders are encouraged to backtest their strategies on historical price data to get a better sense of how CPR works in different market environments. Continuous analysis and practice help improve decision-making and strategy refinement.
The Advantages of Using a 10-Line CPR System
An extended 10-line CPR system—comprising up to five resistance and five support levels—provides more granular control and insight into market movements. This expanded view helps traders better gauge trends and identify more opportunities for entry and exit. Key benefits include:
R2, S2 Levels: These act as secondary resistance or support zones, giving traders additional opportunities to refine their trade entries and exits.
R3, S3 Levels: Provide an even wider range for identifying reversals or trend continuations in more volatile markets.
Flexibility: The broader range of levels allows traders to adapt to changing market conditions and make more precise decisions based on market momentum.
So in Essential:
The Central Pivot Range is a valuable tool for traders looking to identify critical price levels in the market. By providing a clear framework for identifying potential support and resistance zones, it helps traders make informed decisions about entering and exiting trades. However, it’s important to combine CPR with sound risk management and additional confirmation through other technical indicators for the best results.
Although no trading tool guarantees success, the CPR, when used effectively and combined with practice, can significantly enhance a trader’s ability to navigate market fluctuations.
Gabriel's Witcher Strategy [65 Minute Trading Bot]Strategy Description: Gabriel's Witcher Strategy
Author: Gabriel
Platform: TradingView Pine Script (Version 5)
Backtested Asset: Avalanche (Coinbase Brokage for Volume adjustment)
Timeframe: 65 Minutes
Strategy Type: Comprehensive Trend-Following and Momentum Strategy with Scalping and Risk Management Features
Overview
Gabriel's Witcher Strategy is an advanced trading bot designed for the Avalanche pair on a 65-minute timeframe. This strategy integrates a multitude of technical indicators to identify and execute high-probability trading opportunities. By combining trend-following, momentum, volume analysis, and range filtering, the strategy aims to capitalize on both long and short market movements. Additionally, it incorporates scalping mechanisms and robust risk management features, including take-profit (TP) levels and commission considerations, to optimize trade performance and profitability.
====Key Components====
Source Selection:
Custom Source Flexibility: Allows traders to select from a wide range of price and volume sources (e.g., Close, Open, High, Low, HL2, HLC3, OHLC4, VWAP, On-Balance Volume, etc.) for indicator calculations, enhancing adaptability to various trading styles.
Various curves of Volume Analysis are employed:
Tick Volume Calculation: Utilizes tick volume as a fallback when actual volume data is unavailable, ensuring consistency across different data feeds.
Volume Indicators: Incorporates multiple volume-based indicators such as On-Balance Volume (OBV), Accumulation/Distribution (AccDist), Negative Volume Index (NVI), Positive Volume Index (PVI), and Price Volume Trend (PVT) for comprehensive market analysis.
Trend Indicators:
ADX (Average Directional Index): Measures trend strength using either the Classic or Masanakamura method, with customizable length and threshold settings. It's used to open positions when the mesured trend is strong, or exit when its weak.
Jurik Moving Average (JMA): A smooth moving average that reduces lag, configurable with various parameters including source, resolution, and repainting options.
Parabolic SAR: Identifies potential reversals in market trends with adjustable start, increment, and maximum settings.
Custom Trend Indicator: Utilizes highest and lowest price points over a specified timeframe to determine current and previous trend bases, visually represented with color-filled areas.
Momentum Indicators:
Relative Strength Index (RSI): Evaluates the speed and change of price movements, smoothed with a custom length and source. It's used to not enter the market for shorts in oversold or longs for overbought conditions, and to enter for long in oversold or shorts for overboughts.
Momentum-Based Calculations: Employs both Double Exponential Moving Averages (DEMA) on a MACD-based RSI to enhance momentum signal accuracy which is then further accelerated by a Hull MA. This is the technical analysis tool that determines bearish or bullish momentum.
OBV-Based Momentum Conditions: Uses two exponential moving averages of OBV to determine bullish or bearish momentum shifts, anomalities, breakouts where banks flow their funds in or Smart Money Concepts trade.
Moving Averages (MA):
Multiple MA Types: Includes Simple Moving Average (SMA), Exponential Moving Average (EMA), Weighted Moving Average (WMA), Hull Moving Average (HMA), and Volume-Weighted Moving Average (VWMA), selectable via input parameters.
MA Speed Calculation: Measures the percentage change in MA values to determine the direction and speed of the trend.
Range Filtering:
Variance-Based Filter: Utilizes variance and moving averages to filter out trades during low-volatility periods, enhancing trade quality.
Color-Coded Range Indicators: Visualizes range filtering with color changes on the chart for quick assessment.
Scalping Mechanism:
Heikin-Ashi Candles: Optionally uses Heikin-Ashi candles for smoother price action analysis.
EMA-Based Trend Detection: Employs fast, medium, and slow EMAs to determine trend direction and potential entry points.
Fractal-Based Filtering: Detects regular or BW (Black & White) fractals to confirm trade signals.
Take Profit (TP) Management:
Dynamic TP Levels: Calculates TP levels based on the number of consecutive long or short entries, adjusting targets to maximize profits.
TP Signals and Re-Entry: Plots TP signals on the chart and allows for automatic re-entry upon TP hit, maintaining continuous trade flow.
Risk Management:
Commission Integration: Accounts for trading commissions to ensure net profitability.
Position Sizing: Configured to use a percentage of equity for each trade, adjustable via input parameters.
Pyramiding: Allows up to one additional position per direction to enhance gains during strong trends.
Alerts and Visual Indicators:
Buy/Sell Signals: Plots visual indicators (triangles and flags) on the chart to signify entry and TP points.
Bar Coloring: Changes bar colors based on ADX and trend conditions for immediate visual cues.
Price Levels: Marks significant price levels related to TP and position entries with cross styles.
Input Parameters
Source Settings:
Custom Sources (srcinput): Choose from various price and volume sources to tailor indicator calculations.
ADX Settings:
ADX Type (ADX_options): Select between 'CLASSIC' and 'MASANAKAMURA' methods.
ADX Length (ADX_len): Defines the period for ADX calculation.
ADX Threshold (th): Sets the minimum ADX value to consider a strong trend.
RSI Settings:
RSI Length (len_3): Period for RSI calculation.
RSI Source (src_3): Source data for RSI.
Trend Strength Settings:
Channel Length (n1): Period for trend channel calculation.
Average Length (n2): Period for smoothing trend strength.
Jurik Moving Average (JMA) Settings:
JMA Source (inp): Source data for JMA.
JMA Resolution (reso): Timeframe for JMA calculation.
JMA Repainting (rep): Option to allow JMA to repaint.
JMA Length (lengths): Period for JMA.
Parabolic SAR Settings:
SAR Start (start): Initial acceleration factor.
SAR Increment (increment): Acceleration factor increment.
SAR Maximum (maximum): Maximum acceleration factor.
SAR Point Width (width): Visual width of SAR points.
Trend Indicator Settings:
Trend Timeframe (timeframe): Period for trend indicator calculations.
Momentum Settings:
Source Type (srcType): Select between 'Price' and 'VWAP'.
Momentum Source (srcPrice): Source data for momentum calculations.
RSI Length (rsiLen): Period for momentum RSI.
Smooth Length (sLen): Smoothing period for momentum RSI.
OBV Settings:
OBV Line 1 (e1): EMA period for OBV line 1.
OBV Line 2 (e2): EMA period for OBV line 2.
Moving Average (MA) Settings:
MA Length (length): Period for MA calculations.
MA Type (matype): Select MA type (1: SMA, 2: EMA, 3: HMA, 4: WMA, 5: VWMA).
Range Filter Settings:
Range Filter Length (length0): Period for range filtering.
Range Filter Multiplier (mult): Multiplier for range variance.
Take Profit (TP) Settings:
TP Long (tp_long0): Percentage for long TP.
TP Short (tp_short0): Percentage for short TP.
Scalping Settings:
Scalping Activation (ACT_SCLP): Enable or disable scalping.
Scalping Length (HiLoLen): Period for scalping indicators.
Fast EMA Length (fastEMAlength): Period for fast EMA in scalping.
Medium EMA Length (mediumEMAlength): Period for medium EMA in scalping.
Slow EMA Length (slowEMAlength): Period for slow EMA in scalping.
Filter (filterBW): Enable or disable additional fractal filtering.
Pullback Lookback (Lookback): Number of bars for pullback consideration.
Use Heikin-Ashi Candles (UseHAcandles): Option to use Heikin-Ashi candles for smoother trend analysis.
Strategy Logic
Indicator Calculations:
Volume and Source Selection: Determines the primary data source based on user input, ensuring flexibility and adaptability.
ADX Calculation: Computes ADX using either the Classic or Masanakamura method to assess trend strength.
RSI Calculation: Evaluates market momentum using RSI, further smoothed with custom periods.
Trend Strength Assessment: Utilizes trend channel and average lengths to gauge the robustness of current trends.
Jurik Moving Average (JMA): Smooths price data to reduce lag and enhance trend detection.
Parabolic SAR: Identifies potential trend reversals with adjustable parameters for sensitivity.
Momentum Analysis: Combines RSI with DEMA and OBV-based conditions to confirm bullish or bearish momentum.
Moving Averages: Employs multiple MA types to determine trend direction and speed.
Range Filtering: Filters out low-volatility periods to focus on high-probability trades.
Trade Conditions:
Long Entry Conditions:
ADX Confirmation: ADX must be above the threshold, indicating a strong uptrend.
RSI and Momentum: RSI below 70 and positive momentum signals.
JMA and SAR: JMA indicates an uptrend, and Parabolic SAR is below the price.
Trend Indicator: Confirms the current trend direction.
Range Filter: Ensures market is in an upward range.
Scalping Option: If enabled, additional scalping conditions must be met.
Short Entry Conditions:
ADX Confirmation: ADX must be above the threshold, indicating a strong downtrend.
RSI and Momentum: RSI above 30 and negative momentum signals.
JMA and SAR: JMA indicates a downtrend, and Parabolic SAR is above the price.
Trend Indicator: Confirms the current trend direction.
Range Filter: Ensures market is in a downward range.
Scalping Option: If enabled, additional scalping conditions must be met.
Position Management:
Entry Execution: Places long or short orders based on the identified conditions and user-selected position types (Longs, Shorts, or Both).
Take Profit (TP): Automatically sets TP levels based on predefined percentages, adjusting dynamically with consecutive trades.
Re-Entry Mechanism: Allows for automatic re-entry upon TP hit, maintaining active trading positions.
Exit Conditions: Closes positions when TP levels are reached or when opposing trend signals are detected.
Visual Indicators:
Bar Coloring: Highlights bars in green for bullish conditions, red for bearish, and orange for neutral.
Plotting Price Levels: Marks significant price levels related to TP and trade entries with cross symbols.
Signal Shapes: Displays triangle and flag shapes on the chart to indicate trade entries and TP hits.
Alerts:
Custom Alerts: Configured to notify traders of long entries, short entries, and TP hits, enabling timely trade management and execution.
Usage Instructions
Setup:
Apply the Strategy: Add the script to your TradingView chart set to BTCUSDT with a 65-minute timeframe.
Configure Inputs: Adjust the input parameters under their respective groups (e.g., Source Settings, ADX, RSI, Trend Strength, etc.) to match your trading preferences and risk tolerance.
Position Selection:
Choose Position Type: Use the Position input to select Longs, Shorts, or Both based on your market outlook.
Execution: The strategy will automatically execute and manage positions according to the selected type, ensuring targeted trading actions.
Signal Interpretation:
Buy Signals: Blue triangles below the bars indicate potential long entry points.
Sell Signals: Red triangles above the bars indicate potential short entry points.
Take Profit Signals: Flags above or below the bars signify TP hits for long and short positions, respectively.
Bar Colors: Green bars suggest bullish conditions, red bars indicate bearish conditions, and orange bars represent neutral or consolidating markets.
Risk Management:
Default Position Size: Set to 100% of equity. Adjust the default_qty_value as needed for your risk management strategy.
Commission: Accounts for a 0.1% commission per trade. Adjust the commission_value to match your broker's fees.
Pyramiding: Allows up to one additional position per direction to enhance gains during strong trends.
Backtesting and Optimization:
Historical Testing: Utilize TradingView's backtesting features to evaluate the strategy's performance over historical data.
Parameter Tuning: Optimize input parameters to align the strategy with current market dynamics and personal trading objectives.
Alerts Configuration:
Set Up Alerts: Enable and configure alerts based on the predefined alertcondition statements to receive real-time notifications of trade signals and TP hits.
Additional Features
Comprehensive Indicator Integration: Combines multiple technical indicators to provide a holistic view of market conditions, enhancing trade signal accuracy.
Scalping Options: Offers an optional scalping mechanism to capitalize on short-term price movements, increasing trading flexibility.
Dynamic Take Profit Levels: Adjusts TP targets based on the number of consecutive trades, maximizing profit potential during favorable trends.
Advanced Volume Analysis: Utilizes various volume indicators to confirm trend strength and validate trade signals.
Customizable Range Filtering: Filters trades based on market volatility, ensuring trades are taken during optimal conditions.
Heikin-Ashi Candle Support: Optionally uses Heikin-Ashi candles for smoother price action analysis and reduced noise.
====Recommendations====
Thorough Backtesting:
Historical Performance: Before deploying the strategy in a live trading environment, perform comprehensive backtesting to understand its performance under various market conditions. These are the premium settings for Avalanche Coinbase.
Optimization: Regularly review and adjust input parameters to ensure the strategy remains effective amidst changing market volatility and trends. Backtest the strategy for each crypto and make sure you are in the right brokage when using the volume sources as it will affect the overall outcome of the trading strategy.
Risk Management:
Position Sizing: Adjust the default_qty_value to align with your risk tolerance and account size.
Stop-Loss Implementation: Although the strategy includes TP levels, they're also consided to be a stop-loss mechanisms to protect against adverse market movements.
Commission Adjustment: Ensure the commission_value accurately reflects your broker's fees to maintain realistic backtesting results. Generally, 0.1~0.3% are most of the average broker's comission fees.
Slipage: The slip comssion is 1 Tick, since the strategy is adjusted to only enter/exit on bar close where most positions are available.
Continuous Monitoring:
Strategy Performance: Regularly monitor the strategy's performance to ensure it operates as expected and make adjustments as needed. A max-drawndown hit has been added to operate in case the premium Avalanche settings go wrong, but you can turn it off an adjust the equity percentage to 50% if you are confortable with the high volatile max-drown or even 100% if your account allows you to borrow cash.
Customization:
Indicator Parameters: Tailor indicator settings (e.g., ADX length, RSI period, MA types) to better fit your specific trading style and market conditions.
Scalping Options: Enable or disable scalping based on your trading preferences and risk appetite.
Conclusion
Gabriel's Witcher Strategy is a robust and versatile trading solution designed to navigate the complexities of the Crypto market. By integrating a wide array of technical indicators and providing extensive customization options, this strategy empowers traders to execute informed and strategic trades. Its comprehensive approach, combining trend analysis, momentum detection, volume evaluation, and range filtering, ensures that trades are taken during optimal market conditions. Additionally, the inclusion of scalping features and dynamic take-profit management enhances the strategy's adaptability and profitability potential. Unlike any trading strategy, with both diligent testing and continuous monitoring under the strategy tester, it's possible to achieve sustained success by adjusting the settings to the individual Crypto that need it, for example this one is preset for Avalanche Coinbase 65 Miinutes but it can be adjust for BTCUSD or Etherium if you backtest and search for the right settings.
EMA Distance & Sector InfoThis indicator provides insights into price trends relative to Exponential Moving Averages (EMAs) and displays sector/industry information about the asset. Below is a detailed explanation of its purpose and what it is designed to achieve:
Purpose of the Code
The indicator offers two key functionalities:
1. Analyzing Price Distance from Multiple EMAs:
• Helps traders understand how far the current price is from key EMAs, expressed as a percentage.
• Calculates average percentage distances over a specified period (default: 63 days) to spot consistent trends or mean reversion opportunities.
• Useful for trend-following strategies, allowing the trader to see when the price is above or below important EMAs (e.g., 9, 21, 50, 100, and 150-period EMAs).
2. Displaying Asset Sector and Industry Information:
• Displays the sector and industry of the asset being analyzed (e.g., Technology, Consumer Goods).
• Provides additional context when evaluating performance across a specific sector or comparing an asset to its peers.
Who Would Use This Indicator?
This indicator is particularly helpful for:
1. Swing Traders and Positional Traders:
• They can use it to track whether the price is trading significantly above or below critical EMAs, which often signals overbought/oversold conditions or trend strength.
• The average percentage distances help to identify momentum shifts or pullback opportunities.
2. Sector/Industry-Focused Investors:
• Understanding an asset’s sector and industry helps investors gauge how the asset fits into the broader market context.
• This is valuable for sector rotation strategies, where investors shift funds between sectors based on performance trends.
How It Helps in Trading Decisions
1. Entry and Exit Points:
• If the price is far above an EMA (e.g., 21 EMA), it might indicate an overbought condition or a strong trend, while a negative percentage could signal a pullback or reversal opportunity.
• The average percentage distances smooth the fluctuations and reveal longer-term trends.
2. Contextual Information:
• Knowing the sector and industry is useful when analyzing trends. For example, if Technology stocks are doing well, and this asset belongs to that sector, it could indicate sector-wide momentum.
Summary of the Indicator’s Purpose
This code provides:
• EMA trend monitoring: Visualizes the price position relative to multiple EMAs and averages those distances for smoother insights.
• Sector and industry information: Adds valuable context for asset performance analysis.
• Decision-making support: Helps traders identify overbought/oversold levels and assess the asset within the broader market landscape.
In essence, this indicator is a multi-purpose tool that combines technical analysis (through EMA distances) with fundamental context (via sector/industry info), making it valuable for traders and investors aiming to time entries/exits or understand market behavior better.
BBPct FL Impulse [BackQuant]BBPct FL Impulse
Introducing BackQuant's BBPct FL Impulse — a powerful and unique trading indicator designed to detect impulse moves and exhaustion points in the market. This leading indicator combines Bollinger Band Percentage (BBPct) calculations with a for-loop system to generate clear long and short signals. Additionally, it plots support and resistance exhaustion levels directly on the chart, providing traders with a visual representation of key market levels.
The BBPct FL Impulse is designed for traders who want to anticipate price movements rather than react to lagging indicators. By utilizing the Bollinger Band Percentage, this indicator identifies moments when the price is pushing toward extremes, signaling the likelihood of impulse moves. It goes a step further by providing exhaustion levels where the market may reverse or pause, helping traders identify potential entries and exits.
Core Concept: Bollinger Band Percentage (BBPct)
The BBPct is the primary calculation driving this indicator. It measures where the price is relative to its Bollinger Bands, allowing traders to gauge overbought or oversold conditions. Bollinger Bands are a well-known tool used to define high and low points based on standard deviation from a moving average. The BBPct takes this one step further by showing how far the price is within the bands, as a percentage.
In this script, the BBPct is calculated using the closing price over a customizable BBPct Length (default set to 70) and a Multiplier that defines the width of the bands based on standard deviation. This helps detect when price pushes toward its upper or lower boundaries, indicating potential breakouts or pullbacks.
For-Loop Scoring Mechanism
The for-loop scoring system adds a layer of sophistication to this indicator. It evaluates the BBPct over a range of periods (defined by the Start and End parameters) and generates a score that measures the direction and strength of the price movement.
Long Signals: A long signal is triggered when the score surpasses the Long Threshold (default set at 40), indicating a strong bullish impulse.
Short Signals: A short signal (labeled as "Cash" in this script) is triggered when the score crosses under the Short Threshold (default set at -10), suggesting the price has lost momentum and a bearish move may be coming.
These signals are highlighted on the chart with green triangles for Long and red triangles for Cash, giving traders clear visual cues for potential buy and sell points.
Key Feature: Exhaustion Levels (Support and Resistance)
One of the standout features of this script is the automatic plotting of Exhaustion Support and Resistance Levels. These levels represent points in the market where the price is likely to exhaust its movement and potentially reverse.
Support is plotted when the price shows signs of bullish exhaustion (low price points).
Resistance is plotted when the price shows signs of bearish exhaustion (high price points).
This dynamic support and resistance system uses a custom function based on price swings, analyzing exhaustion patterns to detect significant levels. The indicator allows traders to visualize key market zones where potential reversals or slowdowns may occur, helping to refine trade entries and exits.
Customization & Visualization
This indicator comes with a range of customizable settings, giving traders full control over how the signals are generated and displayed on the chart:
Calculation Source: Choose the price data used for the BBPct calculation (default is the closing price).
BBPct Length: Set the lookback period for the BBPct calculation, adjusting how smooth or reactive the indicator is to price changes.
Multiplier: Adjust the multiplier for the Bollinger Band calculation, controlling how wide or narrow the bands are and thereby affecting sensitivity.
Thresholds for Signals: Customize the thresholds for long and short signals, allowing you to fine-tune the sensitivity to different market conditions.
Show Long and Cash Signals: Toggle the display of long and short signals on the chart.
Exhaustion Levels: Toggle the display of support and resistance levels, adjusting the length of swings and the thickness of the lines to suit your preferences.
Trading Applications
The BBPct FL Impulse indicator is a versatile tool designed to help traders identify impulse moves and exhaustion points. Some of its key applications include:
Breakout Trading: By using the BBPct to detect when price moves toward the extremes of the Bollinger Bands, traders can anticipate potential breakouts and catch the beginning of strong price moves.
Reversal Trading: The exhaustion support and resistance levels provide key areas where price may reverse, allowing reversal traders to identify potential entries as the market shows signs of exhaustion.
Trend Following: The for-loop scoring system helps quantify the strength of price moves, enabling trend-following traders to stay in winning trades as long as the impulse remains strong.
Risk Management: By providing clear support and resistance levels, the indicator helps traders manage risk more effectively by highlighting zones where price may pause or reverse, allowing for better stop-loss placement.
Final Thoughts
The BBPct FL Impulse is an advanced indicator that combines the precision of Bollinger Band Percentage calculations with the power of a for-loop scoring system and dynamic exhaustion levels. Whether you're looking to trade breakouts, reversals, or trends, this indicator offers the tools to help you make informed decisions in the market.
As always, it's important to backtest the indicator and adapt it to your specific trading style and market. No indicator is infallible, and it should be used as part of a broader trading strategy that includes sound risk management practices.
Financial Crisis Predictor - Doomsday ClockThe **Financial Crisis Predictor - Doomsday Clock** is a composite indicator that evaluates multiple market conditions to determine financial risk levels. It combines four key metrics: market volatility (via VIX), yield curve spread, stock market momentum, and credit risk (via high-yield spread). Each metric contributes to a weighted "risk score," scaled between 0 and 100, which helps gauge the probability of a financial crisis. Here's a breakdown of how it works:
### 1. **Market Volatility (VIX)**
- **How it's measured:**
- Uses the VIX index, which represents expected market volatility.
- Applies two exponential moving averages (EMAs) to smooth out the data—one fast and one slow.
- Triggers a signal if the fast EMA crosses above the slow EMA and VIX exceeds a defined threshold (default is 30).
- **Weighting:**
- Contributes up to 35% of the total risk score when active.
### 2. **Yield Curve Spread**
- **How it's measured:**
- Takes the difference between the yields of 10-year and 2-year U.S. Treasury bonds (inversion indicates recession risk).
- If the spread drops below a certain threshold (default is 0.2), it signals a potential recession.
- **Weighting:**
- Contributes up to 25% of the risk score.
### 3. **Stock Market Momentum**
- **How it's measured:**
- Analyzes the S&P 500 (SPY) using a 20-day EMA for price momentum.
- Checks for a cross under the 20-day EMA and if the 5-day rate of change (ROC) is less than -2.
- This combination signals bearish market momentum.
- **Weighting:**
- Contributes up to 20% of the risk score.
### 4. **Credit Risk (High Yield Spread)**
- **How it's measured:**
- Assesses high-yield corporate bond spreads using EMAs, similar to the VIX logic.
- A crossover of the fast EMA above the slow EMA combined with spreads exceeding a defined threshold (default is 5.0) indicates increased credit risk.
- **Weighting:**
- Contributes up to 20% of the total risk score.
### 5. **Risk Score Calculation**
- The final **risk score** ranges from 0 to 100 and is calculated using the weighted sum of the four indicators.
- The score is smoothed to minimize false signals and maintain stability.
### 6. **Risk Zones**
- **Extreme Risk:** If the risk score is ≥ 75, indicating a severe crisis warning.
- **High Risk:** If the risk score is between 15 and 75, signaling heightened risk.
- **Moderate Risk:** If the risk score is between 10 and 15, representing potential concerns.
- **Low Risk:** If the risk score is < 10, suggesting stable conditions.
### 7. **Visual & Alerts**
- The indicator plots the risk score on a chart with color-coded backgrounds to indicate risk levels: green (low), yellow (moderate), orange (high), and red (extreme).
- Alert conditions are set for each risk zone, notifying users when the risk level transitions into a higher zone.
This indicator aims to quickly detect potential financial crises by aggregating signals from key market factors, making it a versatile tool for traders, analysts, and risk managers.
Similar Price ActionDescription:
The indicator tries to find an area of N candles in history that has the most similar price action to the latest N candles. The maximum search distance is limited to 5000 candles. It works by calculating a coefficient for each candle and comparing it with the coefficient of the latest candle, thus searching for two closest values. The indicator highlights the latest N candles, as well as the most similar area found in the past, and also tries to predict future price based on the latest price and price directly after the most similar area that was found in the past.
Inputs:
- Length -> the area we are searching for is comprised of this many candles
- Lookback -> maximum distance in which a similar area can be found
- Function -> the function used to compare latest and past prices
Notes:
- The indicator is intended to work on smaller timeframes where the overall price difference is not very high, but can be used on any
RSI with Dynamic ColorsThe "RSI with Dynamic Colors" is a custom indicator built on top of the traditional Relative Strength Index (RSI), which helps traders identify overbought or oversold market conditions. This enhanced version includes added functionality like dynamic colors, highlighting specific conditions, and more customization options. Here's a breakdown of how this indicator works:
Indicator Components:
Relative Strength Index (RSI) Calculation:
The RSI is a momentum oscillator that measures the speed and change of price movements. It oscillates between 0 and 100, helping traders determine if an asset is overbought or oversold.
In this version, the RSI is calculated with a configurable lookback period (default is 14) and applies smoothing to both upward and downward price changes using the Relative Moving Average (RMA).
Dynamic Coloring:
The indicator dynamically changes the color of the RSI line based on its value. Specific thresholds include:
Blue: When the RSI is at or above an extreme overbought level (≥ 85).
Red: When the RSI is in the overbought zone (≥ 70 but < 85).
Yellow: When the RSI is at or below the extreme oversold level (≤ 15).
Green: When the RSI is in the oversold zone (≤ 30 but > 15).
White: When the RSI is between the oversold and overbought zones.
Moving Average Options (MA):
The indicator allows the user to plot an optional moving average of the RSI for additional trend confirmation. Users can select from various types of moving averages, including Simple Moving Average (SMA), Exponential Moving Average (EMA), and others.
Bollinger Bands can be optionally applied around the RSI to visualize volatility.
Overbought and Oversold Highlights:
It provides visual highlights (green for overbought and red for oversold) in the background of the RSI plot, making it easier to identify potential reversal zones.
Divergence Detection (Optional):
The indicator can optionally display regular bullish or bearish divergence, which can signal potential trend reversals. Divergence occurs when price moves in the opposite direction of the RSI.
Bullish divergence is indicated when the price makes lower lows while the RSI makes higher lows.
Bearish divergence is shown when the price makes higher highs while the RSI makes lower highs.
Alerts:
Users can set up alerts for bullish or bearish divergence, making it easier to get notified when key conditions occur in the market.
Use Case:
This custom RSI indicator is designed for traders who want to combine the classic RSI functionality with enhanced visual aids, such as color coding for different RSI zones, customizable moving averages, and Bollinger Bands. It is particularly useful for identifying potential market tops and bottoms by highlighting overbought/oversold conditions and divergence signals.
In summary, this indicator not only retains the traditional RSI's power but also adds new layers of insight through color, moving averages, and divergence detection, helping traders make better-informed decisions.
Master Candle Breakout V1 Master Candle Breakout V1 - Indicator Description
The Master Candle Breakout V1 indicator is a powerful price action-based tool designed to help traders identify and capitalize on breakout opportunities from consolidation phases. This indicator is particularly useful for identifying master candles, which are large candles that encompass the range of subsequent candles, creating a key level of support or resistance. Once the price breaks above or below the range of the master candle, the indicator provides clear buy or sell signals, allowing traders to ride the momentum of the breakout.
Key Features:
Master Candle Detection: The indicator identifies master candles based on a user-defined period, marking them on the chart as critical breakout points.
Buy and Sell Signals: When the price breaks above the master candle's high, a buy signal is plotted. Similarly, when the price breaks below the master candle's low, a sell signal is generated. These signals are displayed on the chart with customizable shapes (diamonds, arrows, circles, crosses) and colors for easy visualization.
Stop-Loss Level Display: For risk management, the indicator calculates and plots a stop-loss level based on user-defined ticks above or below the master candle's high or low. The stop-loss value is shown as a label next to the signal, helping traders manage risk effectively.
Customizable Colors and Shapes: Users can fully customize the appearance of the signals, including the color of the buy/sell diamonds, the stop-loss label text color, and the type of shape used for the signals.
Versatile Application: The Master Candle Breakout V1 can be applied to any timeframe and market, from forex and stocks to commodities and cryptocurrencies, making it a highly versatile tool for traders of all types.
How to Use:
Master Candle Period: Define how many candles should follow the master candle for confirmation.
Stop Loss Ticks: Set the number of ticks above or below the master candle to define your stop-loss level.
Entry Signals: Once the price closes outside the high or low of the master candle, enter the trade accordingly (buy on breakouts above the high, sell on breakouts below the low).
Risk Management: Use the stop-loss level provided by the indicator to minimize losses and protect your capital.
This indicator is perfect for traders who prefer a simple, price-action-based strategy and want to avoid the clutter of traditional indicators. By focusing on the core principle of breakouts, Master Candle Breakout V1 helps traders quickly identify consolidation zones and potential breakout trades.
Seven Campbell - Volume Stops (TickerTrendz)🚀 Introducing the "Volume Stops" Indicator 📊
Are you looking for a powerful tool to spot potential market reversals based on volume and price action? The Volume Stops indicator is designed just for that! Built with TradingView's Pine Script (v5), this indicator analyzes volume trends and price action to identify possible long and short setups, making it easier to time your entries and exits.
Key Features:
🎨 Customizable Colors: Tailor the indicator's appearance to your preferences with adjustable colors for long and short setups.
📉 Volume-Based Signals: The indicator identifies when volume is increasing or decreasing over the last three bars and aligns it with the price action (red/green bars).
💡 Long & Short Setups:
Long Signal: When volume shows signs of weakening and the price forms a bullish reversal (two red bars followed by a green bar).
Short Signal: When volume shows signs of weakening and the price forms a bearish reversal (two green bars followed by a red bar).
📲 Alerts: Get notified with alerts whenever a potential reversal is detected, helping you stay on top of the market!
With its straightforward yet powerful logic, Volume Stops is ideal for traders who rely on volume and price action to spot market reversals early. Try it out and stay ahead of the market!
Fibonacci BandsDescription
This indicator dynamically calculates Fibonacci retracement levels based on the highest high and lowest low over a specified lookback period. The key Fibonacci levels (0.236, 0.382, 0.5, 0.618, and 0.786) are plotted on the chart, with shaded areas between these levels for visual guidance.
How it works
The script computes the highest high (hh) and the lowest low (ll) over the defined length.
It calculates the price range (delta) as the difference between the highest high and the lowest low.
Fibonacci levels are then determined using the formula: ℎℎ − (delta × Fibonacci ratio)
Each Fibonacci level is then plotted as a line with a specific color.
Key Features
Customizable Length: Users can adjust the lookback period to suit their trading strategy.
Multiple Fibonacci Levels: Includes common Fibonacci retracement levels, providing traders with a comprehensive view of potential support and resistance areas.
Visual Fillings: The script includes customizable shading between levels, which helps traders quickly identify key zones (like the "Golden Zone" between 0.5 and 0.618).
Unique Points
Fibonacci Focus: This script is specifically designed around Fibonacci retracement levels, which are popular among technical traders for identifying potential reversal points.
Dynamic Range Calculation: The use of the highest high and lowest low within a user-defined period offers a dynamic approach to adapting to changing market conditions.
How to use it
Adjust the length parameter (default is 60) to determine how many bars back the indicator will calculate the highest high and lowest low. A longer length may provide a broader perspective of price action, while a shorter length may react more quickly to recent price changes.
Observe the plotted Fibonacci levels: 0.236, 0.382, 0.5, 0.618, and 0.786. These levels often act as potential support and resistance points. Pay attention to how price interacts with these levels.
When the price approaches a Fibonacci level, consider it a potential reversal point. The filled areas between the Fibonacci levels indicate zones where price might consolidate or reverse. The "Golden Zone" (between 0.5 and 0.618) is particularly significant; many traders watch this area closely for potential entry points in an uptrend or exit points in a downtrend.
G-Channel with EMA StrategyThe G-Channel is a custom channel with an upper (a), lower (b), and average (avg) line. These lines are dynamically calculated based on the current and previous closing prices, using the length input (default 100) to smooth the values:
Upper Line (a): This is the maximum value of the current price or the previous upper value, adjusted by the difference between the upper and lower lines divided by the length.
Lower Line (b): This is the minimum value of the current price or the previous lower value, similarly adjusted by the difference between the upper and lower lines.
The average line (avg) is simply the midpoint between the upper and lower lines. The G-Channel signals trend direction:
Bullish Condition: The system looks for the condition when the price crosses over the lower line (b), indicating a potential upward trend.
Bearish Condition: When the price crosses under the upper line (a), it signals a potential downward trend.
Exponential Moving Average (EMA)
The strategy also incorporates an EMA with a default length of 200. The EMA serves as a trend filter to determine whether the market is trending upward or downward:
Price below EMA: Indicates a bearish trend.
Price above EMA: Indicates a bullish trend.
Buy/Sell Conditions
The strategy generates buy or sell signals based on the interaction between the G-Channel signals and the price relative to the EMA:
Buy Signal: The strategy triggers a buy when:
A bullish condition (recent crossover of price over the lower G-Channel line) is detected.
The price is below the EMA, indicating that despite the recent bullish signal, the market might still be undervalued or in a temporary downturn.
Sell Signal: The strategy triggers a sell when:
A bearish condition (recent crossunder of price below the upper G-Channel line) is detected.
The price is above the EMA, suggesting that the market might be overextended and poised for a downturn.
Visualization
The strategy plots:
The upper, lower, and average lines of the G-Channel, with the average line colored based on bullish (green) or bearish (red) conditions.
The EMA (orange) line to provide context on the general trend direction.
Markers for Buy and Sell signals to visually indicate the strategy's entry points.
Strategy Execution
When a buy or sell signal is detected:
Buy Entry: If the bullish condition and price < EMA condition are met, a long (buy) position is opened.
Sell Entry: If the bearish condition and price > EMA condition are met, a short (sell) position is opened.
Purpose
This strategy aims to catch price reversals at critical points (when the price moves through the G-Channel) while filtering trades using the EMA to avoid entering during unfavorable market trends.
LPPL Critical Pulse (by BigBlueCheese) Version 1.1LPPL Critical Pulse (by BigBlueCheese)
I couldn’t locate a single script on TradingView that utilized the Log-Periodic Power Law (LPPL) and period doubling—key tools used by street professionals. Here is my first script…More to come.
Log-Periodic Power Law (LPPL)
LPPL is a mathematical framework used to model asset price bubbles that can help predict market crashes or corrections. It is based on the idea that speculative bubbles exhibit self-reinforcing, positive feedback behavior that leads to increasingly unsustainable price growth, followed by a crash or correction. But the big news is that because of the speculative behavior it can identify, it has equal application across many other instruments & timeframes.
The LPPL, has been around since the 1950’s and 1960’s where its theoretical foundation lies in the concepts of renormalized group theory and critical point behavior. Physicists Lev Landau, Vitaly Ginzburg & Kenneth Wilson contributed to how we can understand systems behave at critical points and was further developed by Benoit Mandelbrot via the concept of discrete scale invariance and log-periodicity. The concepts were popularized by Didier Sornette in Why Stock Markets Crash, where he used his model to detect when markets are experiencing extreme price movements, indicating the potential for a bubble to burst or a significant correction to occur. It is suspected that others like Jim Simons was an early adopter/adapter of this (and other) advanced mathematical concepts. LPPL is especially valuable for traders trying to anticipate rapid price movements—both upward and downward.
What is a Speculative Bubble?
A speculative bubble forms when an asset’s price skyrockets due to excitement from investors, pushing it well beyond its true value. At some point, this unsustainable growth leads to a crash, as the bubble “pops.” However, these crashes don’t need to be massive market-shaking events. They can also emerge from short-term price anomalies in any market or timeframe…..and they apply equally to upward & downward price moves. That is you can use this approach for both long and short trades.
Power Law & Log-Periodicity
The Power Law aspect describes how prices accelerate as they approach a critical point, forming a steep curve that signals instability.
The Log-Periodic component captures the oscillations that grow increasingly frequent as the price nears this tipping point, marking rising volatility.
Criticality in Trading: Feedback Loops, Attractors and Repellers
LPPL can be applied to financial markets by comparing them to natural systems prone to critical points, like avalanches or earthquakes. The key concept is criticality—the idea that, just like pressure building in an earthquake zone or snow stacking up on a mountain, there’s a feedback loop in markets where investor behavior becomes increasingly synchronized. This creates a self-reinforcing cycle, accelerating price movements until the system can no longer sustain the tension, and it collapses—similar to a critical phase shift in nature when physical systems experience sudden, catastrophic events when they reach a critical threshold.
In this context, the LPPL model aims to identify these critical points in financial markets by recognizing specific patterns in price movements, providing insight into the potential timing of major market shifts.
This is how markets can behave like attractors (drawing prices into unsustainable growth or collapses) or repellers (pushing them away through sudden corrections), depending on the balance of forces. LPPL captures this dynamic, helping traders anticipate when the market is nearing these critical moments.
Attractors are states or patterns that a system tends to gravitate towards over time, representing points of stability or equilibrium. Repellers are states that the system tends to avoid or move away from, representing instability or points of divergence.
In the context of the LPPL model, the market is seen as a dynamic system that is moving towards a critical point—often a bubble or a crash. The critical point itself can be viewed as an attractor, pulling the market toward a period of instability as prices accelerate and oscillations become more frequent. This movement reflects positive feedback loops, where investor behavior (e.g., herd mentality or speculative buying) reinforces the trend until it reaches an unsustainable level.
Conversely, once the critical point is reached, it can act as a repeller, causing the system (market) to rapidly move away from that state, often resulting in a crash or market correction. In essence, the LPPL model tries to identify these phases of movement toward or away from critical points, using attractors and repellers to describe the behavior of the system before and after major market events.
This dynamic interaction between stability and instability, or attractors and repellers, is a key feature of how Sornette’s LPPL approach models financial markets, emphasizing the market’s ability to oscillate between periods of calm and critical shifts.
Bubbles and Crashes in Any Timeframe
While people often think of bubbles and crashes as huge events like the Crash of 87, the Global Financial Crisis or COVID-19, they can also be much smaller or instrument specific. A short-term spike in a stock or a sudden currency drop can behave like a miniature bubble. LPPL helps spot these shorter-term price anomalies, making it versatile for traders looking for opportunities in all instruments and timeframes.
How Can I Use LPPL Critical Pulse?
Monitor price acceleration that signals unsustainable growth/movement .
Spot volatility, oscillations, extensions and compressions and exhaustion as the market nears critical instability and levels.
Combine with other indicators to help time entries and exits, manage risk as markets approach/consolidate/leave critical levels.
LPPL Critical Pulse (LPPLCP)
LPPLCP is based on LPPL principles that identify potential upward and downward market movements, exhaustion and consolidation periods.
Visualization
The LPPL line is smoothed using a moving average to reduce noise, and the result is scaled to fit within the price range of the past 100 bars, aligning the LPPL line with the price movements on the chart.
Dynamic LPPL Line Plot:
A smoothed and scaled LPPL line plotted directly on the price chart.
• Color-Coded Trend Analysis: The LPPL line changes color dynamically based on the conditions of slope and acceleration to reflect market behaviors such as period doubling or exhaustion.
1. White (Exhaustion/Consolidation Condition): Indicates that both the slope and the acceleration of the LPPL line are zero, suggesting a potential market flattening or exhaustion/consolidation. At the end of this period, a new trend may emerge OR the prior trend may reassert itself.
2. Purple (Period Doubling): This color appears when the LPPL model detects rapid changes in acceleration, indicating the potential for a market turning point (period doubling). The slope of the LPPL line during this period suggests whether the market is moving upward or downward.
3. Green (Positive Slope with Increasing Acceleration): A green LPPL line suggests that the market is in an upward trend, with increasing acceleration.
4. Red (Negative Slope with Decreasing Acceleration): A red LPPL line indicates a downward market trend with decreasing acceleration.
5. Yellow (Neutral): Yellow is the default color when none of the specific conditions (exhaustion, period doubling, positive/negative slope with acceleration) are met, i.e. generally a continuation of the prior condition but at a slower pace.
Customization for Any Market
LPPL Critical Pulse has application across most time frames for pretty much whatever you want to trade…stocks, commodities, currencies, futures, and more. You will have to tweak the inputs to optimize for the market(s) you choose to trade.
Inputs
1. Lookback Period for Adaptation
o Type: Integer
o Default: 1
o Description: Defines the lookback period for calculating the Simple Moving Average (SMA) and Standard Deviation (StDev) used in the LPPL model. A higher value smooths the calculations over a longer period.
2. Period Doubling Threshold
o Type: Float
o Default: 0.01
o Description: Determines the sensitivity for detecting period doubling in the LPPL line. A lower threshold increases sensitivity.
3. Flattening Threshold
o Type: Float
o Default: 0.01
o Description: This input is not actively used in the current version but can be modified for further customizations in the LPPL model.
4. Period Doubling Acceleration Threshold
o Type: Float
o Default: 0.02
o Description: This controls the threshold for detecting rapid changes in the LPPL acceleration, helping identify when period doubling occurs.
Calculation Components
The LPPL line is calculated using several components:
• SMA (A): The simple moving average of the closing prices over the selected lookback period.
• Standard Deviation (B, C): These parameters are calculated based on the standard deviation of prices and control the amplitude of the LPPL oscillations.
• Exponential Decay: The LPPL line decays as it approaches a theoretical critical time (tc), where market crashes or rapid changes may occur.
Disclaimer.
Not investment advice. Use at your own risk. Past results do not represent and are not indicative of future results
RSI/MFI Divergence Finder [idahodev]Monitoring RSI (Relative Strength Index) and MFI (Money Flow Index) divergences on a stock or index chart offers several benefits to traders and analysts. Let's break down the advantages:
Comprehensive Market View: Combining both indicators provides a more complete picture of market conditions, as they measure different aspects of price movement. RSI focuses on recent gains/losses relative to price change, while MFI incorporates volume data to assess money flow in and out of a security.
Enhanced Signal Accuracy: When divergences occur simultaneously in both RSI and MFI, it may be considered a stronger signal than if only one indicator showed divergence. This can potentially lead to more reliable trading decisions.
Identification of False Breakouts: Divergences between these indicators and price action can help identify false breakouts or misleading price movements that are not supported by underlying market strength or volume.
More Nuanced Market Understanding: By examining divergent behavior between money flow (MFI) and momentum (RSI), traders gain a more detailed comprehension of the interplay between these factors in shaping market trends.
Early Warning Signs: These divergences can act as early warning signs for potential trend reversals or changes in market sentiment, allowing traders to adjust their strategies proactively.
It's important to note that RSI/MFI divergences should be used as part of a broader trading strategy rather than solely relying on them for buy/sell signals. They can serve as valuable tools for confirming trends, identifying potential turning points, or warning against overbought/oversold conditions.
When using these indicators together, traders must be cautious of false signals, especially in choppy markets or during periods of high volatility. It's crucial to combine this analysis with other technical and fundamental factors before making trading decisions.
In summary, monitoring RSI/MFI divergences may offer a way to gain insights into the underlying strengths and weaknesses of market movements.
This utility differs from other in that it allows for a choke/threshold/sensitivity setting to help weed out noisy signals. This needs to be carefully adjusted per chart.
It also allows for tuning of the MFI smoothing length (number of bars on the current chart) as well as how many previous bars it will take into consideration when calculating RSI and MFI divergences. It will signal when it sees alignment forming between RSI and MFI divergences in a direction. You will likely need to tune this script's settings every few days or at least anytime there is a change in overall market behavior or sustained volatility.
Ultimately, the goal with this script is to provide an additional level of confirmation of weakness or strength. It should be combined with other indicators such as exhaustion, pivots, supply/demand, trendline breaks or tests, and structure changes, to name a few complementary tools or strategies. It's not meant to be a standalone buy/sell signal indicator!
Here are some settings for futures that may help you get started:
ES (4m chart)
RSI Length: 26
MFI Length: 8
MFI Smoothing Length: 32
Divergence Sensitivity: 124
Left Bars for Pivot: 10
Right Bars for Pivot: 1
NQ (4m chart)
RSI Length: 14
MFI Length: 14
MFI Smoothing Length: 21
Divergence Sensitivity: 400
Left Bars for Pivot: 21
Right Bars for Pivot: 1
YM (4m chart)
RSI Length: 14
MFI Length: 14
MFI Smoothing Length: 21
Divergence Sensitivity: 810
Left Bars for Pivot: 33
Right Bars for Pivot: 1