Chart-Muster
ABC on Recursive Zigzag [Trendoscope]There are several implementations of ABC pattern in tradingview and pine script. However, we have made this indicator to provide users additional quantifiable information along with flexibility to experiment and develop their own strategy based on the patterns.
🎲 Highlights of this indicator over other ABC implementations are:
Implementation is based on recursive multi level zigzag allows bigger as well as smaller patterns to be identified
Allows users to set their trading rules with respect to entry, target and stop ratios, experiment and build their own strategy based on the ABC pattern.
Back test summary including win ratio and risk reward will help users understand the profitability based on different settings being used.
🎲 Concept of ABC Pattern
The ABC pattern, also known as the "Corrective Wave" or "Zigzag Pattern," is a fundamental concept in Elliott Wave Theory, which is widely used in technical analysis to identify and predict price movements in financial markets.
The ABC pattern is a three-wave corrective pattern that typically occurs within the context of a larger impulse or trending wave. It consists of two smaller waves in the opposite direction (A and C) separated by a corrective wave (B). These waves are labeled alphabetically and represent price movements.
Wave A (Impulse Wave): Wave A is the first leg of the ABC pattern and is characterized by a strong price move in the opposite direction of the prevailing trend. It is often driven by a fundamental or sentiment-driven event that temporarily disrupts the trend.
Wave B (Corrective Wave): Wave B is the corrective wave that follows Wave A. It represents a partial retracement of Wave A's price movement. Wave B can take various forms, such as a simple correction or a complex correction (e.g., a triangle or a flat correction). It typically doesn't retrace the entire length of Wave A.
Wave C (Impulse Wave): Wave C is the final leg of the ABC pattern and is characterized by a strong price move in the same direction as the prevailing trend. It often surpasses the starting point of Wave A and confirms the resumption of the larger trend.
🎲 Indicator Components
Upon loading the indicator on the chart, we can observe the following components on the chart.
Pattern Drawings is the graphical representation of present patterns. Please note that it is not necessary for patterns to be there on the chart all the time. Patterns will appear on the chart when price makes the patterns.
Trade Box is the box representing trade signals of the pattern. These trade levels are generated based on the user settings.
Summary Table is the back test summary containing details of historical pattern performance including Win Ratio and Risk Reward.
🎲 Indicator Settings
Details of each user settings are provided in the tooltips. Below is the snapshot of it.
🎲 Alerts
Basic level of alerts are built in the script using alert function to highlight the following conditions:
New ABC Pattern
Updates to existing Pattern
Both conditions will alert simple text messages. There is not much customization provided as part of this indicator. We will consider providing more options in future versions based on the interest and demand shown by users.
Buy/Sell EMA CrossoverThe indicator identifies potential trading opportunities within the market. It is entirely based on the combination of exponential moving averages by drawing triangles on the chart that identify buy or sell signals combined with vertical bars that create areas of interest.
Specifically, when a buy signal occurs, the indicator draws a vertical bar with an azure background, indicating a possible buy area. Similarly, a sell signal is represented by a vertical bar with a fuchsia background, indicating a possible sell area.
These areas represent the main point of the indicator which uses exponential moving averages which, based on the direction of prices, identify the trend and color the background of the graph in order to visually highlight the predominant trend.
The green triangles above the bars of the chart suggest possible upside opportunities (good bullish entry points) when the 21 ema crosses the 200 ema.
While on the contrary the red triangles, 21 ema lower than the 200 ema, can indicate possible bearish trends (good bearish entry points).
While the white and purple triangles reveal moments of potential indecision or market change.
We can think of them as situations of uncertain trend in which it is possible to place a long or short order near some conditions that we are going to see.
The white triangles below, which are created when the 13 ema is higher than the 21 ema, indicate a possible bullish zone while the purple triangles above (13 ema lower than the 21) could suggest a bearish reflex
Colored lines represent moving averages blue = 200, 21= fuchsia and 13 = white. If the price is above the 200 period line then it could be a bullish opportunity, otherwise it could be a bearish one.
An interesting strategy to adopt is to evaluate, for example, the inputs near the vertical bars (azure - long) (fuchsia - short) when a white or purple triangle appears.
The more prominent green triangle indicates that the trend is going in a long direction.
On the contrary, the red (short) triangles are the opposite of the green ones and have the same importance as input logic.
The white triangle instead present more often inside the indicator identifies interesting buying areas of short duration, it is important to consider that the closer the triangles are to the vertical blue bars the stronger the entry signal.
Finally, the purple triangles are the short-term bearish trends whose entry near the fuchsia vertical bars defines a short.
HL 930 by JPThe "High and Low of 9:30 Candle" strategy is a simple trading strategy commonly used in the stock market and other financial markets. It involves using the price range (high and low) of the first candlestick that forms at the opening of a trading session, typically at 9:30 AM, as a basis for making trading decisions. Here's a description of this strategy:
1. Timeframe: This strategy is often applied to intraday trading, where traders focus on short-term price movements within a single trading day.
2. 9:30 AM Candle: The strategy begins by observing the first candlestick that forms at 9:30 AM, which is the opening time for many stock markets, including the New York Stock Exchange (NYSE). This candle represents the price action during the first few minutes of trading.
3. High and Low: Identify the highest price (the candle's high) and the lowest price (the candle's low) during the 9:30 AM candle's time period. These price levels are critical for the strategy.
4. Trading Decisions:
Long (Buy) Signal: If the current market price breaks above the high of the 9:30 AM candle, it may trigger a bullish signal. Traders may consider entering a long (buy) position, anticipating further upward momentum.
Short (Sell) Signal: Conversely, if the market price breaks below the low of the 9:30 AM candle, it may trigger a bearish signal. Traders may consider entering a short (sell) position, anticipating further downward movement.
5. Stop-Loss and Take-Profit: To manage risk, traders often set stop-loss orders just below the low (for long positions) or just above the high (for short positions) of the 9:30 AM candle. They may also establish take-profit levels based on their risk-reward preferences.
6. Time Frame: This strategy is typically used for short-term trading and may be effective in capturing quick price movements that often occur at the market open. Traders often close their positions before the end of the trading day.
7. Caution: While the "High and Low of 9:30 Candle" strategy can be straightforward, it should not be used in isolation. Traders should consider other technical and fundamental factors, such as volume, market sentiment, news events, and overall market trends, when making trading decisions.
Remember that trading strategies always carry risks, and it's essential to have a well-thought-out risk management plan in place. Additionally, backtesting and practice are crucial before implementing any trading strategy in a live market to evaluate its historical performance and suitability for your trading style.
AAD Research ZeroesIt calculates the "zero" candles for selected period in percentage (here we have 4 hours - 240 minutes, but you can set any you like).
Zero candle mean equal open=close with previous candle.
So as I see from my stats if >5% for 4 hours then do not trade it. That mean there are no volatility on that asset.
CCPD Candle Color Price DetectorThe "CCPD Candle Color Price Detector" is a custom indicator developed for TradingView, a popular platform for technical analysis and trading. This indicator assists traders in identifying potential trend reversals and assessing market sentiment based on candlestick color changes and key price levels.
This indicator operates as follows:
Color Change Detection: It primarily focuses on the color of candlesticks (green for bullish and red for bearish). When a candlestick closes higher than it opens, it is considered green (bullish), and when it closes lower, it is red (bearish).
High and Low Analysis: The indicator calculates the highest high and lowest low over a user-defined number of bars (specified by the 'Bars for High/Low' input parameter). This helps identify recent price extremes.
Midpoint Calculation: It then computes the midpoint between the highest high and lowest low, effectively determining a central reference point within the specified period.
Signal Generation: Buy and sell signals are generated based on the relationship between the current candlestick's close price, the midpoint, and the candlestick color. Buy signals occur when a green candle closes above the midpoint, suggesting potential bullish momentum. Conversely, sell signals trigger when a red candle closes below the midpoint, indicating possible bearish pressure.
Visualization: The indicator visualizes the highest high, lowest low, midpoint, and additional lines to aid in understanding the price action and potential reversal points.
Alerts: It provides alerts for buy and sell signals, allowing traders to receive notifications when potential trading opportunities arise.
Usage:
Traders can utilize the "CCPD Candle Color Price Detector" in the following ways:
Trend Reversal Identification: This indicator can help traders spot potential trend reversals by signaling when candlestick colors change and close near the midpoint. Buy and sell signals offer entry points for trades based on these reversals.
Confirmation Tool: It can be used in conjunction with other technical analysis tools to confirm trading decisions. For example, a buy signal from this indicator, coupled with a bullish trendline break or a bounce from a key support level, may provide a stronger bullish signal.
Risk Management: By understanding potential reversal points and using stop-loss orders, traders can better manage their risk and protect their capital when entering positions based on the indicator's signals.
Customization: The indicator allows users to adjust the number of bars for high/low calculations, making it adaptable to different trading strategies and timeframes.
In summary, the "CCPD Candle Color Price Detector" is a versatile indicator that can aid traders in spotting potential trend changes, enhancing trading decisions, and managing risk effectively. However, like any trading tool, it should be used in conjunction with other analysis methods and risk management strategies for optimal results.
Zaree - FX Index RSI IndicatorDescription:
The "Zaree - FX Index RSI Indicator" (FIRI) is a technical analysis tool designed to provide insights into the relative strength of two selected currency indices using the Relative Strength Index (RSI). It allows traders to compare the RSI values of a primary currency index and a secondary currency index, helping them identify potential overbought and oversold conditions in the currency market.
Details of the Indicator:
The indicator calculates the RSI for both the primary and secondary currency indices based on the user's selections.
Traders can choose from a variety of currency indices to use as the primary and secondary indices for comparison.
The indicator offers settings for customizing the calculation of the RSI, including selecting the type of moving average (SMA, EMA, WMA, SMMA) and adjusting the length of the RSI and moving average.
Upper and lower RSI bands are displayed on the chart to highlight potential overbought and oversold conditions.
The RSI values and their corresponding moving average values are plotted on the chart, allowing traders to visually analyze the relative strength of the indices.
How to Use the Indicator:
Select the primary and secondary currency indices you want to compare from the provided dropdown menus. These indices will serve as the basis for RSI calculation.
Choose the type of moving average (SMA, EMA, WMA, SMMA) to use for RSI calculation and set the desired length for the moving average.
Decide whether you want to visualize the RSI and moving average values for the primary and secondary indices on the chart.
Observe the RSI values and moving averages plotted on the chart. The indicator's upper and lower bands can help you identify potential overbought (above the upper band) and oversold (below the lower band) conditions.
Pay attention to the intersections between the RSI values and the moving average lines. These intersections can provide insights into potential trend changes or reversals in the currency market.
Example of Usage:
Let's say you're a swing trader focusing on currency pairs involving the US Dollar (USD) and Euro (EUR). You want to compare the relative strength of the USD Index (USDINX) and the EUR Index (EURINX) to identify potential trading opportunities. Here's how you can use the FIRI indicator:
Select "USDINX" as the primary index and "EURINX" as the secondary index.
Choose "SMA" as the moving average type and set the RSI length to 14.
Enable the visualization of RSI values for both the primary and secondary indices.
Observe the chart to identify instances where the RSI values of the indices cross above the upper band (potential overbought) or below the lower band (potential oversold).
Look for intersections between the RSI values and the moving average lines. A bullish signal may occur when the RSI crosses above the moving average, indicating potential upward momentum, while a bearish signal may occur when the RSI crosses below the moving average, indicating potential downward momentum.
Remember that the FIRI indicator is a tool to assist you in your analysis. It's important to consider other technical and fundamental factors before making trading decisions.
Feel free to adjust the settings of the indicator based on your trading preferences and strategy. Keep in mind that no indicator is foolproof, and it's recommended to use the FIRI indicator in conjunction with other analysis techniques for a comprehensive trading approach.
Adjustable Bull Bear Candle Indicator (V1.2)Indicator Description: Adjustable Bull Bear Candle Indicator
This indicator, named "Adjustable Bull Bear Candle Indicator ," is designed to assist traders in identifying potential bullish and bearish signals within price charts. It combines candlestick pattern analysis, moving average crossovers, and RSI (Relative Strength Index) conditions to offer insights into potential trading opportunities.
Disclaimer:
Trading involves substantial risk and is not suitable for every investor. This indicator is a tool designed to aid in technical analysis, but it does not guarantee successful trades. Always exercise your own judgment and seek professional advice before making any trading decisions.
Key Features:
Preceding Candles Analysis:
The indicator examines the behavior of the previous 'n' candles to identify specific patterns that indicate bearish or bullish momentum.
Candlestick Pattern and Momentum:
It considers the relationship between the opening and closing prices of the current candle to determine if it's bullish or bearish. The indicator then assesses the absolute price difference and compares it to the cumulative absolute differences of preceding candles.
Moving Averages:
The indicator calculates two Simple Moving Averages (SMAs) – Close SMA and Far SMA – to help identify trends and crossovers in price movement.
Relative Strength Index (RSI):
RSI is used as an additional measure to gauge momentum. It analyzes the current price's magnitude of recent gains and losses and compares it to past data.
Time Constraint:
If enabled, the indicator operates within a specific time window defined by the user. This feature can help traders focus on specific market hours.
Customizable Alerts:
The indicator includes an alert system that can be enabled or disabled. You can also adjust the specific alert conditions to align with your trading strategy.
How to Use:
This indicator generates buy signals when specific conditions are met, including a bullish candlestick pattern, positive price difference, closing price above the SMAs, RSI above a threshold, preceding bearish candles, and optionally within a specified time window. Conversely, short signals are generated under conditions opposite to those of the buy signal.
Disclosure and Risk Warning:
Educational Tool: This indicator is meant for educational purposes and to aid traders in their technical analysis. It's not a trading strategy in itself.
Risk of Loss: Trading carries inherent risks, including the potential for substantial loss. Always manage risk and consider using proper risk management techniques.
Diversification: Do not rely solely on this indicator. A well-rounded trading approach includes fundamental analysis, risk management, and proper diversification.
Consultation: It's strongly advised to consult with a financial professional before making any trading decisions.
Conclusion:
The "Bullish Candle after Bearish Candles with Momentum Indicator" can be a valuable tool in your technical analysis toolkit. However, successful trading requires a deep understanding of market dynamics, risk management, and continual learning. Use this indicator in conjunction with other tools and strategies to enhance your trading decisions.
Remember that past performance is not indicative of future results. Always be cautious and informed when participating in the financial markets.
Baha'i Reversal Points [CC]The Baha'i Reversal Points is a custom creation that combines some of my favorite passions, creating stock indicator scripts and my faith. The Baha'i Faith believes in the oneness of God and all religions, and sees the number 9 as significant because that is the number of major world religions as well as the Baha'i symbol is a nine-pointed star. The number 19 is also seen as significant because in the Baha'i calendar, there are 19 months, and each month is made up of 19 days. Anyway, with all that being explained, I created these reversal points to find the points where the last 19 highs or lows are higher or lower, respectively than the previous high or low nine days ago. As with many indicators, this does have some hits and misses but does a pretty good job of finding reversal points based on these criteria.
There are a few different ways to analyze this data to determine when to buy or sell. I have set the default behavior for when we encounter the first time that the amount of highs or lows is greater than or equal to the length amount using a crossover or crossunder alert. You could also ignore the crossover or crossunder alerts and buy when the count is greater than or equal to the length, which can happen for extended periods depending on the underlying trend. Overall, buy when the buy label appears and sell when the sell label appears.
Let me know if there are any other custom indicators or scripts you would like to see me publish!
Realtime Divergence for Any Indicator - By John BartleThe main purpose of this script is to show historical and real-time divergences for any oscillating indicator. The secondary purpose is to give the user a lot of precise control over identifying divergences and determining what they are. This is an improved version of my other script which is similarly called "Realtime Divergence for Any Indicator"
There are four types of divergences that are offered:
Bull divergence
Hidden bull divergence
Bear divergence
Hidden Bear divergence
There are three types of potential(real-time) divergences which include:
1) Without right side bars for rightside pivots. Plus without waiting for the rightside pivot bar to complete
2) Without right side bars for rightside pivots. Plus with waiting for the rightside pivot bar to complete
3) With right side bars for rightside pivots. Plus without waiting for the rightside pivot right-most bar to complete
A definite divergence occurs when all specified bars are accounted for and fully formed.
Potential divergences use dashed lines and definite(historical) divergences use solid lines.
In addition to several other categories of settings to filter out unwanted divergences or manipulate the search process, this script also offers Alerts. Remember that alerts must not only be set within this scripts settings but also your "Alerts" panel on your right. It's strange but BOTH must be set for alerts to work...
Other interesting Things To Know:
1)I actually don't trade and so I have no need of a paid account. Unpaid accounts don't have the playback feature so I haven't really tested this script out very well. Sorry. Just let me know if something seems off and IF I have time I'll try to fix it.
2)Keep in mind that Pinescript limits the number of lines that can be shown at one time. This means that if your settings allow for a large number of divergence lines they will be removed from the leftward side of your chart but appear in the rightward side.
3) The time and the values for the price or oscillator are not the same things as each other nor are they physical things with physical space. This means that slopes of lines using the time as X and value as Y can not have definite angles. Consequently, under the setting "DIVERGENCES: SLOPE ANGLE EXCLUSION" YOU have to decide what slope equals what angle by using the setting called "Normalization Factor".
4) Remember that some individual settings apply to both the oscillator and price chart. This means that even if the setting's conditions are fulfilled in one they may not be fulfilled in the other.
5) Under the category "DIVERGENCES: INTERSECTION ALLOWANCE", if you set the "Measurement Type" to Relative Percentage then FYI any single given length will equate to an increasingly smaller percentage the further away from zero it is. Because of this, I think "Reletive Percentage" is probably only useful for price charts or oscillators with big values. Maybe >200 is OK ?
Errors:
1) If you get the error mentioning that the script must complete execution within X amount of time, this is because this is a big script and sometimes takes longer than your service plan's allotted time limit. You can just disable some of the settings to reduce the scripts amount of work and time. The biggest time savers will be to disable some lines and labels
2) If you get an error saying the script accessed a negative index(e.g. ) then try temporarily increasing the "Add More Array Elements" setting to 100-200. Sometimes it fixes the problem.
3) You may sometimes temporarily get an error that reads: "Pine cannot determine the referencing length of a series. Try using max_bars_back in the study or strategy function".
If this happens there are several things that you can do:
3A) Create a copy of my script. Then edit the section of code that looks like this ")//, max_bars_back = INSERT_YOUR_QUANTITY_HERE)" and transform it to look like this new code ", max_bars_back = INSERT_YOUR_QUANTITY_HERE)" then repeatedly try replacing "INSERT_YOUR_QUANTITY_HERE" with an increasingly larger number greater than 244 but less than 5000.
This method will increase your system resources and could cause other problems. Try changing the code back after a few hours and see if all is well again. It is a Pinescript limitation issue and happens when certain functions or variables don't get used at least once within the first 244 bars.
3B) Adjust your settings to hopefully find a divergence within the first 244 bars. If one is found then the problematic variables or functions should get used and the Pinescript 244 bar limitation should be temporarily resolved.
3C) Wait for X number of new bars to occur. If a divergence is eventually found within the first 244 bars that should solve the issue.
Tips:
1) If the amount that a setting changes value is undesirable for each time you click it then you can change that amount in the code. To do that, you'll need your own copy of my script. To make your own copy just click on "create a working copy" in the brown colored strip area above the code. Then within approximately the first 108 lines find the title of the setting you want to change. Then look to it's right to find the parameter called "step =". Change what the step equals to whatever you want. FYI, you can hover your mouse over the blue colored code and a popup will tell you what parameters(i.e. settings) that function(e.g. "input.int()") has available.
Engulfing Box & LinesThe "Engulfing Box & Lines" indicator aims to spot and highlight Engulfing candlestick patterns within a trend. These patterns can provide valuable indications of a possible trend reversal, and the indicator underlines them through the use of colored rectangles and horizontal lines. To fully understand the functioning and use of this indicator, let's explore its key elements and associated strategies.
Identification of Engulfing Patterns:
The indicator focuses on detecting two types of Engulfing candles:
Bullish Engulfing: Occurs when a bullish candle (open lower than close) completely encloses the body of the previous bearish candle. This could indicate a possible upside reversal.
Bearish Engulfing: Occurs when a bearish candle (opening higher than closing) entirely engulfs the body of the previous bullish candle. This could signal a potential bearish reversal.
Using the EMA 200:
The indicator uses the 200-period Exponential Moving Average (EMA) as a reference to determine the position of the candles with respect to the long-term trend. When the price is above the 200 EMA, the bullish Engulfing candles are highlighted with a green box, while below the 200 EMA, red boxes are shown for the bearish Engulfing candles.
Size of Boxes and Lines:
The colored boxes represent the size of the body of the candle that caused the Engulfing. Additionally, a horizontal line is drawn close to the body of the candle, serving as the fulcrum of the indicator.
Trading Strategies:
This indicator can be used for different trading strategies:
Trend Continuation: During a positive trend, the onset of an engulfing pattern suggests a possible continuation of the trend. The horizontal lines represent potential support areas, where the price could bounce. Traders might consider buying during such bounces.
Retracements and Entries: Lines can act as support or resistance zones, depending on the trend. When the price approaches a line, a retracement could occur. Traders might move to a lower timeframe to spot entry signals, using the line as a reference.
Closing Positions: Lines could also be used to define exit levels. For example, a trader might decide to exit a position when the price approaches a resistance line.
Confirmations with Other Indicators: The indicator could be used in conjunction with other technical tools, such as oscillators or candlestick analysis, to confirm signals and improve the accuracy of trading decisions.
Marubozu PatternsMarubozu Candlestick Patterns Indicator
This TradingView script identifies two types of Marubozu candlestick patterns: the bearish Marubozu and the bullish Marubozu. Marubozu patterns are characterized by a lack of shadows and a long body, indicating strong market sentiment. The indicator displays labels and triggers alerts when these patterns are detected on the price chart.
Features:
Identifies bearish Marubozu and bullish Marubozu candlestick patterns.
Alerts triggered for both patterns.
Labels displayed to highlight pattern occurrences on the chart.
How it works:
The script calculates various properties of candlesticks, such as body length, shadows, and body type. It then identifies both bearish and bullish Marubozu patterns based on specific conditions. When a pattern is detected, a label is shown on the chart with a corresponding tooltip description. Additionally, a background color change emphasizes the presence of detected patterns. Alerts are triggered for both pattern types, helping traders to quickly spot potential trading opportunities.
Note:
This script is designed for use on the TradingView platform using Pine Script. It aids traders in recognizing Marubozu candlestick patterns, providing visual cues and alerts for potential bullish and bearish market sentiments.
Bitcoin CME Gap TrackerCME Bitcoin Futures Gaps: What Are They and Why Are They Important?
Gaps are breaks between price candles on charts, illustrating the intervals between the closing price of the previous period and the opening price of the next. For Bitcoin on CME, these gaps arise due to the particular workings of this market.
Bitcoin and other cryptocurrencies trade 24/7 without breaks. However, CME Bitcoin Futures, like many other financial instruments on traditional exchanges, have weekends and trading pauses. When the Bitcoin market continues to move during weekends or CME closures, and then CME opens on the subsequent trading day, a price disparity can occur, perceived as a gap.
Several studies suggest that in most cases (approximately 70% and more), the market reverts to "close" these gaps. This phenomenon is observed because large liquidity is concentrated at these gap points. There are many unfilled orders in gap zones, placed at specific prices. When the price reaches these levels, it can swiftly react to this "clustering" of orders, potentially leading to the gap's closure.
Therefore, CME Bitcoin Futures gaps not only reflect crucial psychological moments in the market but can also serve as potential entry or exit points, considering the high liquidity in these zones.
Technical Description:
The script is designed to identify gaps in the Bitcoin Futures chart on CME. It automatically detects gaps that appear on Mondays (since CME is closed on weekends) and are larger than the user-specified percentage.
Key Features:
Identification of the weekday to detect gaps that arose on Monday.
Calculation of positive and negative gaps by comparing the highs and lows of the previous candles with the current ones.
Graphical representation of the gaps using lines and labels on the chart.
User Guide:
Add this script to your TradingView chart.
You can adjust the "Show gaps larger than %" parameter to determine the minimum gap size of interest.
Gaps will be automatically displayed on your chart with lines and labels.
KeitoFX Dynamic Indicator Free vers.This script represents a versatile dynamic indicator called "KeitoFX Dynamic Indicator Free version." It is developed by the author "KeitoFX" and operates as a custom indicator overlaying on financial charts. The indicator utilizes a unique algorithm to dynamically identify bullish and bearish candlestick patterns with specific criteria.
Key Features:
- The indicator visually marks bullish and bearish candlestick patterns using triangle shapes, providing quick visual cues to traders.
- Bullish patterns are detected when the closing price is higher than the opening price and the high and low prices of the candlestick form a narrow range.
- Bearish patterns are identified when the closing price is lower than the opening price, and the high and low prices also form a narrow range.
The indicator incorporates flexible settings that users can customize to fit their trading preferences:
- Users can choose the table's placement, either at the "Top Right," "Middle Right," or "Bottom Right" of the chart.
- Customizable dimensions for the width and height of the table are available.
- Adjustable text size settings ranging from "Auto" to "Huge" are provided for the displayed text.
- A descriptive table containing trading rules and conditions is optionally displayed below the price chart.
Additional Information:
- The indicator's color scheme is harmonious, with shades of purple and neutral tones.
- The "Require FVG" setting influences the pattern detection's sensitivity.
- A dynamic standard deviation is calculated based on the selected displacement settings and historical candle ranges.
- A "FVG" condition enhances pattern accuracy.
- Bullish and bearish pattern detection includes overlapping with other predefined arrays to increase pattern significance.
Note:
This indicator is provided under the Mozilla Public License 2.0, as indicated by the source code comment at the beginning of the script. Users are encouraged to review and comply with the license terms when using this indicator in their trading activities.
Trend Confirmation StrategyThe profitability and uniqueness of a trading strategy depend on various factors including market conditions, risk management, and the strategy's ability to capitalize on price movements. I'll describe the strategy provided and highlight its potential benefits and differences compared to other strategies:
Strategy Overview:
The provided strategy combines three technical indicators: Supertrend, MACD, and VWAP. It aims to identify potential entry and exit points by confirming trend direction and considering the proximity to the VWAP level. The strategy also incorporates stop-loss and take-profit mechanisms, as well as a trailing stop.
Unique Aspects and Potential Benefits:
Trend Confirmation: The strategy uses both Supertrend and MACD to confirm the trend direction. This dual confirmation can increase the likelihood of accurate trend identification and filter out false signals.
VWAP Confirmation: The strategy considers the proximity of the price to the VWAP level. This dynamic level can act as a support or resistance and provide additional context for entry decisions.
Adaptive Stop Loss: The strategy sets a stop-loss range, which helps provide some tolerance for minor price fluctuations. This adaptive approach considers market volatility and helps prevent premature stop-loss triggers.
Trailing Stop: The strategy incorporates a trailing stop mechanism to lock in profits as the trade moves in the desired direction. This can potentially enhance profitability during strong trends.
Partial Profit Booking: While not explicitly implemented in the provided code, you could consider booking partial profits when the MACD shows a crossover in the opposite direction. This aspect could help secure gains while still keeping exposure to potential further price movements.
Key Differences from Other Strategies:
Dual Indicator Confirmation: The combination of Supertrend and MACD for trend confirmation is a unique aspect of this strategy. It adds an extra layer of filtering to enhance the accuracy of entry signals.
Dynamic VWAP: Incorporating the VWAP level into the decision-making process adds a dynamic element to the strategy. VWAP is often used by institutional traders, and its inclusion can provide insights into the market sentiment.
Adaptive Stop Loss and Trailing: The strategy's use of an adaptive stop-loss range and a trailing stop can help manage risk and protect profits more effectively during changing market conditions.
Partial Profit Booking: The suggestion to consider partial profit booking upon MACD crossovers in the opposite direction is a practical approach to secure gains while staying in the trade.
Caution and Considerations:
Backtesting: Before deploying any strategy in real trading, it's crucial to thoroughly backtest it on historical data to understand its performance under various market conditions.
Risk Management: While the strategy has built-in risk management mechanisms, it's essential to carefully manage position sizes and overall portfolio risk.
Market Conditions: No strategy works well in all market conditions. It's important to be flexible and adjust the strategy or refrain from trading during particularly volatile or unpredictable periods.
Continuous Monitoring: Even though the strategy includes automated components, continuous monitoring of the trades and market conditions is necessary.
Adaptability: Markets can change over time. Traders need to be prepared to adapt the strategy as necessary to stay aligned with evolving market dynamics.
Custom SMA Plot It creates a custom indicator named "Custom SMA Plot (CSP)" that overlays on a price chart. The indicator fetches the closing prices and calculates a 14-period simple moving average (SMA) of these prices. This SMA is then visually represented as a blue line, which starts from the SMA value of the bar 100 candles ago and extends to the current bar's SMA value. The line has a thickness of 1 unit.
When price breaks over wave go long.
When price breaks below wave go short.
Elliott Wave with Supertrend Exit - Strategy [presentTrading]## Introduction and How it is Different
The Elliott Wave with Supertrend Exit provides automated detection and validation of Elliott Wave patterns for algorithmic trading. It is designed to objectively identify high-probability wave formations and signal entries based on confirmed impulsive and corrective patterns.
* The Elliott part is mostly referenced from Elliott Wave by @LuxAlgo
Key advantages compared to discretionary Elliott Wave analysis:
- Wave Labeling and Counting: The strategy programmatically identifies swing pivot highs/lows with the Zigzag indicator and analyzes the waves between them. It labels the potential impulsive and corrective patterns as they form. This removes the subjectivity of manual wave counting.
- Pattern Validation: A rules-based engine confirms valid impulsive and corrective patterns by checking relative size relationships and fib ratios. Only confirmed wave counts are plotted and traded.
- Objective Entry Signals: Trades are entered systematically on the start of new impulsive waves in the direction of the trend. Pattern failures invalidate setups and stop out positions.
- Automated Trade Management: The strategy defines specific rules for profit targets at fib extensions, trailing stops at swing points, and exits on Supertrend reversals. This automates the entire trade lifecycle.
- Adaptability: The waveform recognition engine can be tuned by adjusting parameters like Zigzag depth and Supertrend settings. It adapts to evolving market conditions.
ETH 1hr chart
In summary, the strategy brings automation, objectivity and adaptability to Elliott Wave trading - removing subjective interpretation errors and emotional trading biases. It implements a rules-based, algorithmic approach for systematically trading Elliott Wave patterns across markets and timeframes.
## Trading Logic and Rules
The strategy follows specific trading rules based on the detected and validated Elliott Wave patterns.
Entry Rules
- Long entry when a new impulsive bullish (5-wave) pattern forms
- Short entry when a new impulsive bearish (5-wave) pattern forms
The key is entering on the start of a new potential trend wave rather than chasing.
Exit Rules
- Invalidation of wave pattern stops out the trade
- Close long trades on Supertrend downturn
- Close short trades on Supertrend upturn
- Use a stop loss of 10% of entry price (configurable)
Trade Management
- Scale out partial profits at Fibonacci levels
- Move stop to breakeven when price reaches 1.618 extension
- Trail stops below key swing points
- Target exits at next Fibonacci projection level
Risk Management
- Use stop losses on all trades
- Trade only highest probability setups
- Size positions according to chart timeframe
- Avoid overtrading when no clear patterns emerge
## Strategy - How it Works
The core logic follows these steps:
1. Find swing highs/lows with Zigzag indicator
2. Analyze pivot points to detect impulsive 5-wave patterns:
- Waves 1, 3, and 5 should not overlap
- Waves 3 and 5 must be longer than wave 1
- Confirm relative size relationships between waves
3. Validate corrective 3-wave patterns:
- Look for overlapping, choppy waves that retrace the prior impulsive wave
4. Plot validated waves and Fibonacci retracement levels
5. Signal entries when a new impulsive wave pattern forms
6. Manage exits based on pattern failures and Supertrend reversals
Impulsive Wave Validation
The strategy checks relative size relationships to confirm valid impulsive waves.
For uptrends, it ensures:
```
Copy code- Wave 3 is longer than wave 1
- Wave 5 is longer than wave 2
- Waves do not overlap
```
Corrective Wave Validation
The strategy identifies overlapping corrective patterns that retrace the prior impulsive wave within Fibonacci levels.
Pattern Failure Invalidation
If waves fail validation tests, the strategy invalidates the pattern and stops signaling trades.
## Trade Direction
The strategy detects impulsive and corrective patterns in both uptrends and downtrends. Entries are signaled in the direction of the validated wave pattern.
## Usage
- Use on charts showing clear Elliott Wave patterns
- Start with daily or weekly timeframes to gauge overall trend
- Optimize Zigzag and Supertrend settings as needed
- Consider combining with other indicators for confirmation
## Default Settings
- Zigzag Length: 4 bars
- Supertrend Length: 10 bars
- Supertrend Multiplier: 3
- Stop Loss: 10% of entry price
- Trading Direction: Both
OBV Oscillator Volume FilterOBV Oscillator Volume Filter
Introduction
The On-Balance Volume (OBV) is a widely-used technical indicator that aims to relate price and volume in trading. Price and volume are two of the most basic and yet crucial concepts in price movement. Together, they can reveal a lot about the instruments trends and the market's sentiment. This On Balance Volume (OBV) Oscillator incorporates enhanced features like a volume filter using a rolling window to detect outliers in accumulated volume, making it an advanced and more refined version of the standard OBV.
Interpreting the OBV Indicator
The primary function of the OBV is to accumulate volume. In simpler terms:
When the market closes higher than the previous candle, all of that candle's volume is considered 'up-volume'.
Conversely, when the market closes lower than the previous day, all of that candle's volume is considered 'down-volume'.
A rising OBV suggests that volume is being accumulated, indicating bullish market sentiment. A declining OBV, on the other hand, points to a bearish sentiment.
Features of the Script
1. Moving Averages Selection:
The script provides users with the option to select among six types of moving averages (EMA, DEMA, TEMA, SMA, WMA, HMA) to calculate the OBV. This feature offers flexibility and enables traders to choose an MA type they're most comfortable with or find the most effective.
2. Smoothing Option:
To reduce the inherent noise in the indicator, there's an option to apply smoothing. It uses a Simple Moving Average (SMA) to produce a clearer signal, making it easier for traders to interpret and respond to. If you don't want to use smoothing, just simply change the input length of smoothing to 1 in the settings.
3. Outlier Detection:
One of the standout features is the use of a rolling window to detect volume outliers. This ensures that the OBV only reacts to significant volume changes and isn't overly influenced by random spikes or drops. The volume filter is calculated based on a % of the highest OBV volume of X number of bars back. Users can adjust the time (# bars) and the sensitivity (%) of the volume filter. A longer timeperiode (# bars) and a higher % (sensitivity) in the settings result to less signals presented by the indicator.
4. Divergence Detection:
The script automatically highlights both regular and hidden divergences on the chart. Divergences can be a powerful signal of potential price reversals. This feature aids traders in spotting potential buy or sell opportunities based on divergences between price and OBV.
Regular Bullish Divergence: When the price makes lower lows, but the OBV makes higher lows.
Hidden Bullish Divergence: When the price makes higher lows, but the OBV makes lower lows.
Regular Bearish Divergence: When the price makes higher highs, but the OBV makes lower highs.
Hidden Bearish Divergence: When the price makes lower highs, but the OBV makes higher highs.
5. Alerts for Trend Reversals:
The script incorporates alerts that notify traders when the OBV indicates potential trend reversals. This feature can be instrumental in catching early entries or exits.
Disclaimer
It's crucial to understand that no single indicator should be used in isolation. To increase the probability of making accurate market predictions, always use the OBV Oscillator in conjunction with other indicators and tools. Remember that all trading involves risk, and it's possible to lose your invested capital. Always seek advice from a financial advisor before making any trading decisions. By enhancing the OBV with features like the volume filter, multiple MA types, smoothing, and divergence detection, this script becomes a potent tool in a trader's arsenal. Use it wisely, and always ensure to maintain proper risk management.
TASC 2023.09 The Weekly Factor█ OVERVIEW
TASC's September 2023 edition of Traders' Tips features an article written by Andrea Unger titled “The Weekly Factor", discussing the application of price patterns as filters for trade entries. This script implements a sample trading strategy presented in the article for demonstration purposes only. It explores how the strategy's equity curve might benefit from filtering trade entries using a specific price pattern.
█ CONCEPTS
Pattern filters represent valuable tools that assess current market conditions based on price movements and determine when those conditions become more favorable for trade entries.
The filter used and tested in this article is a metric called the "weekly factor", which measures the price range over the last five trading days and compares it to the open of the session five days ago and the close of the session one day ago (i.e., the "body" of the five-day period). When the five-day body is small compared to the five-day range, this could indicate "indecision" or "compression", potentially followed by a price expansion. Thus, the weekly factor metric can help identify areas in the market where a period of compression might signal a potential breakout.
This script demonstrates the use of the weekly factor for a sample intraday trading strategy (intended for educational and exploratory purposes only). In this strategy, the entry signal is triggered when a 15-minute bar breaks out of the previous day's high-low range, and the position is closed at the end of the day.
█ CALCULATIONS
The script uses two timeframes:
• The strategy entries are processed on the 15-minute timeframe.
• The weekly factor is obtained from the daily timeframe using the request.security function and the following formula:
math.abs(open - close ) < RangeFilter * (ta.highest(5) - ta.lowest(5) )
Here, RangeFilter is an input that can be optimized to find the favorable ratio between the five-day body and the five-day range. Smaller RangeFilter values will lead to fewer trade entries. A RangeFilter value of 1 is equivalent to turning off the filtering altogether.
Historical Pattern Matcher [Trendoscope]Do you believe in patterns and think price movements are more likely to follow historical patterns? If yes, this is an indicator for you.
🎲 Concept
The patterns in this script are not a named or known pattern. But, it can be any pattern that happen to repeat again and again over a period of time.
The indicator collects the following information over a period of time.
Collects all possible patterns for specified number of pivots based on relation between each pivot prices. (Default 6)
Keeps track of all the possible patterns for the given pivots and number of occurrences of such patterns over a period of time.
Collects the movement of next pivot (in terms of retracement ratio) after the pattern has formed for each occurrence.
Keeps track of the last occurrence of each pattern collected
And the indicator presents on chart following information
Current Pattern drawing based on last confirmed pivot.
Current Pattern drawing based on current unconfirmed pivot in the opposite direction.
Projection range based on historical retracement ratio for both patterns
Detailed info on last occurrence and overall occurrences.
Last occurrence of both confirmed and unconfirmed pivot patterns.
Please note that, if the patterns have not been repeated over a period, then it will not be shown on the screen. Hence, it is perfectly normal to not see any projection. This can happen when the current pattern has not been repeated any time before.
🎲 Details
When you load the indicator on the chart, you may see the following patterns and projections.
You may also notice, in the pattern details, information about the last occurrence of the pattern. If you scroll on your chart to the left to the given data and time, you can observe how the past occurrence of the pattern has formed and the price movement past that point.
For example, last occurrence of pattern based on confirmed pivot happened on 02-Jun-2023 00:00 UTC time
And last occurrence of pattern based on unconfirmed pivot happened on 27-Apr-2023 22:00 UTC time
🎲 Settings
Settings are minimal, and here is the meaning of them.
Most important setting here is the number of pivots forming the pattern.
🎲 Caution
The indicator is designed to present the projection based on historical occurrences of similar price pattern. This does not necessarily mean the patterns are supposed to be bullish or bearish. But, it will certainly give users an idea of what happened when similar price action presented historically.
Note to developers This script makes use of new pine script feature - maps
Clownpumps Higher/Lower Close Analysis (HLCA) IndicatorThe Clownpumps Higher/Lower Close Analysis" (HLCA) indicator offers a visual breakdown of the weekly behavior of a market, illustrating how often it closes higher or lower than its opening price. This comprehensive tool assists traders and analysts in pinpointing recurrent patterns that pertain to specific weekdays, forming a solid basis for a systematic trading strategy.
Features and Interpretation:
Color-Coded Analysis: The HLCA uses two intuitive colors to depict the daily trend:
Green: Indicates that, on average, the market closes higher than its opening price more frequently on that day.
Red: Highlights days when the market generally closes lower than its opening price.
Identifying Recurrent Patterns: Using the HLCA can reveal if a specific weekday consistently sees an asset closing higher or lower. For example, a consistent bullish sentiment on Mondays for a particular stock becomes easily observable.
Comparative Analysis: Deploying the HLCA across a range of assets can uncover trends that are either sector-wide or unique to individual stocks or cryptocurrencies.
Strategic Entry & Exit Points: Knowledge of which days an asset generally closes higher can guide traders in timing their market entries and exits.
Complementary to Other Tools: While the HLCA is a robust tool in itself, its true potential is unlocked when used in tandem with other market indicators. Pairing the daily closing patterns with volume data, for instance, can shed light on the strength of the observed trends.
Cautionary Notes:
Past behavior doesn't predict future performance. Always remember that correlation doesn't guarantee causation, especially when external market-shifting events come into play.
It's recommended to backtest any insights on historical data before committing to live trades.
EMA Deviation ReboundThe " EMA Deviation Rebound " indicator I've created utilizes calculations involving the standard deviation of closing prices and exponential moving averages (EMA) to generate a line. The color of this line changes based on whether the EMA value is above or below the current closing price. This can be interpreted as an indicator for potential buy or sell signals:
Buy Signal: If the price crosses the indicator from bottom to top, this can be considered a buy signal. This could indicate that the price has overcome a resistance and a potential upward movement may be forthcoming.
Sell Signal: If the price crosses the indicator from top to bottom, this could serve as a sell signal. This might suggest that the price has broken a support downward and possibly indicates an impending downward movement.
The indicator is named "EMA Deviation Rebound" because I use it to identify potential resistance and support levels. When the price rebounds at the indicator, this could signify a price movement in the opposite direction.
It's important to use such indicators in conjunction with other analysis techniques and market information to make informed trading decisions.
MTF Break of Structure(BOS) & Market Structure Shift(MSS)Brief Introduction
Hello fellow traders and coders, let me introduce to you the ultimate multi time-frame market structure indicator to cater to all your market structure needs. The script is extremely customizable with a maximum of 3 time-frames since I love top down analysis as I’m sure you do to, so without wasting any more time here are the available features.
List of Features
A maximum of 3 time-frames that can all be customized independently.
The ability to change individual swing lengths that create the market structure plots, all time-frames will come set at 7, you can however set this to whatever you are comfortable with.
BOS (Break of Structure) and MSS (Market Structure Shift) functionality fo all the individual time-frames.
The option to show market structure in the form of HH (Higher highs), HL (Higher Lows), LL (Lower Lows) and LH(Lower Highs).
The ability to either use (highs and lows) or closes for breaks of structure and market structure shifts, meaning a break of structure will only be valid if either a high or close (depending on your chosen input) crosses above the previous high for a bullish structural break.
The ability to change lines types for BOS and MSS.
The ability to change text sizes for the all the plots.
The ability to change the colors for nearly anything on the chart independently of any other line or plot.
The ability to change any time-frame to the chart’s time-frame.
The ability to prevent lower time frame structure from showing on higher time frames which I don’t advice as it will provide you with an inaccurate perception of the lower time frame structure hence I’ve made the feature available but set it to false.
The script also has a section called general settings that will allow you to hide all the market structure plots as well as all the lines on the chart and on all time-frames using just one input.
General Settings Functionality.
Input 1 if true will hide all market structure if true
Input 2 if true will hide all structural breaks (BOS and MSS)
Input 3 if false will show lower time frame structure on a higher time frame. High advice using it while its true as I work on this feature as it provide an innacurate depiction of structure.