Sniper Signal- Description
The Sniper Signal is a sophisticated technical indicator designed for traders seeking to maximize accuracy in identifying key turning points within a market. This indicator is built on a dual approach, combining the power of the Wave Trend Momentum Oscillator (WTMO) with the robustness of a long-term Simple Moving Average (SMA), making it an ideal tool for trading in dynamic and trending market environments.
The WTMO is known for its ability to capture momentum and underlying price direction, providing early signals of trend changes. By smoothing price movements using an exponential moving average (EMA), the WTMO accurately identifies when price is overextending in one direction, which may precede a reversal.
The 100-period SMA acts as a critical trend filter, ensuring that trades are only made in the direction of the prevailing market flow. This approach ensures that signals generated by the WTMO align with the long-term trend, filtering out false signals that can appear in sideways or low volatility markets.
The Sniper Signal is not just an indicator that marks entries and exits; it is a complete strategy in itself, designed for traders who understand the importance of trading in the direction of the prevailing trend. Buy signals are generated only when momentum is at its lowest point (WT1 < -5) and the price is supported by a confirmed uptrend (price above the SMA). Conversely, sell signals are only triggered when momentum is at extremely high levels (WT1 > 5) and the market shows clear signs of weakness (price below the SMA).
This combination of momentum and trend analysis creates a balanced approach that allows traders to capture significant moves in the market, while minimizing exposure to unnecessary risk. The Sniper Signal is particularly effective in markets with well-defined trends, where the key to success lies in entering the market at optimal points and exiting before a significant reversal occurs.
In summary, the Sniper Signal is an advanced tool designed for serious traders looking to take advantage of the combination of momentum and trend to execute high probability trades in moving markets.
- How to use the script?
The Sniper Signal indicator code is written in Pine Script, the native programming language of TradingView. To use this indicator, users must copy the code and paste it into the Pine Script editor within the TradingView platform. Once they have done this, they can save and add the script to their chart to begin displaying buy and sell signals directly on their price charts.
When using the Sniper Signal, traders should pay attention to the signals represented by the triangles on the chart: an upward-facing blue triangle indicates a possible buying opportunity, while a downward-facing red triangle suggests a possible selling opportunity. It is crucial that users also watch the 100-period Simple Moving Average (SMA), shown as a gray line on the chart, to ensure that trades align with the overall market trend. This helps filter out less reliable signals and improves the accuracy of trading decisions.
- Open-source reuse
The indicator code is based on common and widely used concepts in technical analysis, such as the Wave Trend Momentum Oscillator (WTMO) and the Simple Moving Average (SMA). These components are not proprietary and are part of the general knowledge in the trading community, which means that many developers can create their own versions based on these same principles.
تحليل الاتجاه
Liquidity weighted SupertrendOverview
The Liquidity Weighted Supertrend Indicator (LWST) is an advanced iteration of the traditional Supertrend indicator, meticulously crafted to improve trend detection by incorporating liquidity into its calculations. By weighting price movements according to trading volume, the LWST becomes more responsive to significant market activities, offering traders a more accurate depiction of market trends.
Indicator Description
The Liquidity Weighted Supertrend Indicator is a versatile and adaptive tool designed to assist traders in recognizing trends and potential reversal points within the market. This indicator features two operational modes: Aggressive and Smoothed, allowing traders to tailor trend detection to their specific trading style and market conditions.
Key Features
Two Supertrend Modes:
Aggressive Mode: This mode offers more responsive signals, ideal for short-term trading. It utilizes an Exponential Moving Average (EMA) to smooth the price data, resulting in quicker reactions to market changes.
Smoothed Mode: This mode provides more stable signals, suitable for longer-term trading, by employing a Simple Moving Average (SMA). Note that when "Smoothed" mode is selected, the "Fast MA length" input is not utilized, focusing instead on producing smoother trend lines.
LWMA Calculation:
The Liquidity Weighted Moving Average (LWMA) is a distinctive feature of the LWST, blending volume and price action to filter out market noise and pinpoint significant price movements. This calculation begins with the liquidity factor, determined by multiplying volume with the price change, which is then smoothed using an EMA for accuracy.
Customizable Parameters:
Factor: Adjusts the Supertrend line's sensitivity to price movements.
Supertrend Length: Defines the lookback period for the Average True Range (ATR) calculation, which affects the width of the Supertrend channel.
Fast and Slow MA Lengths: Allows customization of the fast and slow moving averages used in the LWMA calculation, offering further control over the indicator's responsiveness.
How the Indicator Works
LWMA Smoothing:
The LWST calculates liquidity by multiplying volume with the absolute difference between the close and open prices. This liquidity value is smoothed using an EMA and compared to its standard deviation, identifying significant price movements. Depending on the selected mode, the price data (hl2) is smoothed either with an EMA (in Aggressive Mode) or an SMA (in Smoothed Mode). It’s important to note that when Smoothed mode is active, the "Fast MA length" input does not affect the output.
Visual Signals:
The Supertrend line is visually represented on the chart, with different colors indicating bullish (lime) and bearish (red) trends.
Buy and sell signals are clearly marked with arrows: green triangles indicate potential buying opportunities (when the price crosses above the Supertrend line), and red triangles suggest selling opportunities (when the price crosses below the Supertrend line).
Additional arrows may appear, signaling potential trend reversals, providing further confirmation for traders.
How to Use the Indicator
Configuring the Indicator:
Supertrend Type: Choose between Aggressive and Smoothed modes depending on your trading strategy and the current market conditions. Aggressive mode is better suited for shorter timeframes, while Smoothed mode provides more consistent signals for longer-term analysis.
Factor and Length Settings: Customize the Factor, Supertrend Length, and Moving Average lengths to fine-tune the sensitivity and responsiveness of the Supertrend line, adapting the indicator to various market environments.
Interpreting the Signals:
Trend Identification: The Supertrend line offers a clear visualization of the current market trend. A green line indicates a bullish trend, suggesting upward price movement, while a red line indicates a bearish trend, signaling potential downward price movement.
Entry and Exit Points: The arrows plotted by the LWST provide straightforward entry and exit signals. Green arrows signal potential buy opportunities, indicating that the price may continue to rise, while red arrows signal potential sell opportunities, suggesting that the price may decline. These visual cues help traders make informed decisions based on the current market trend.
Trend_Prime_MasterTrend_Prime_Master is a trend-following indicator designed to help traders identify potential buy and sell signals with enhanced clarity and reliability. This indicator integrates multiple technical analysis tools into a cohesive system, maximizing their individual strengths to offer traders a comprehensive view of market trends. With its advanced blend of market structure analysis, multiple EMAs, custom volume and momentum indicators, and multi-timeframe trend confirmation, Trend_Prime_Master is tailored to navigate the complexities of financial markets.
Core Features
Trend_Prime_Master offers a suite of features that provide in-depth analysis and actionable insights into market trends:
Multi-Timeframe Trend Analysis: This feature ensures that the signals you act on are aligned with broader market trends by filtering and confirming them across various timeframes. By aligning your trades with the larger market direction, you improve the overall consistency of your trading decisions.
Sophisticated Signal Generation: Signals are generated based on a confluence of technical conditions, including Exponential Moving Average (EMA) crossovers and custom momentum indicators. This multi-layered approach helps focus on signals that have strong backing from market conditions, thereby increasing the reliability of trading decisions.
Color-Changing Trend Line: The trend line changes color based on the market's current direction, providing a quick visual cue for traders. Green indicates a bullish trend, while red signals a bearish trend. This feature simplifies the process of identifying trends, allowing traders to make informed decisions at a glance.
Adaptive Lines: The adaptive lines in Trend_Prime_Master adjust dynamically based on market conditions. These lines provide a more responsive view of the trend compared to static moving averages, particularly useful in volatile markets.
Short Trend Lines: In addition to the main trend line, Trend_Prime_Master includes short trend lines that focus on immediate market movements. These lines are based on shorter EMAs and offer additional layers of trend confirmation, particularly in fast-moving markets.
Custom Volume and Momentum Indicators: These advanced tools validate the strength of trends by assessing the underlying market pressure and the speed of price movements, ensuring that signals are supported by substantial market activity.
Heikin Ashi Integration: Heikin Ashi candles are used to smooth out price data, reducing noise and providing a clearer view of the underlying trend. This integration enhances the clarity and reliability of the signals, making it easier to follow the trend and make informed decisions.
CHoCH (Change of Character): CHoCH is a critical component in understanding market structure changes. It occurs when the market shows a significant shift in behavior, such as moving from a trending phase to a consolidation phase, or vice versa. Trend_Prime_Master automatically detects and labels CHoCH on the chart, helping traders anticipate potential reversals or shifts in market momentum.
Detailed Component Explanations
Every component in Trend_Prime_Master has been carefully selected and integrated to enhance the overall performance of the indicator. Here’s a detailed explanation of how these components work together:
EMA Combinations for Trend Identification: Trend_Prime_Master utilizes multiple EMAs with different periods to capture both short-term and long-term trends. By analyzing the relationship between faster and slower EMAs, the indicator identifies potential trend reversals and continuations. The combination of multiple EMAs helps in smoothing out price data, reducing noise, and providing a more accurate depiction of the trend.
Adaptive Lines: The adaptive lines in Trend_Prime_Master adjust dynamically based on changing market conditions. Unlike static moving averages, which use a fixed calculation period, adaptive lines recalibrate themselves to respond more effectively to shifts in market momentum. This allows traders to capture emerging trends more quickly and avoid the lag associated with traditional moving averages.
Short Trend Lines: Short trend lines are calculated using faster EMAs and are designed to highlight immediate market trends. These lines are particularly useful for traders who focus on short-term market movements, providing early indications of potential trend reversals or continuations. By combining short trend lines with longer EMAs, Trend_Prime_Master offers a multi-layered approach to trend analysis, ensuring that both short-term and long-term perspectives are considered.
Point of Control (POC):
The Point of Control (POC) is a key concept in volume profile analysis that represents the price level with the highest traded volume over a specific period. In Trend_Prime_Master, the POC line is automatically calculated and plotted on the chart. This level is crucial because it often acts as a significant support or resistance level, where price tends to gravitate towards or bounce off. By incorporating the POC, Trend_Prime_Master enhances your ability to identify critical price levels that are likely to influence future price movements.
The POC works synergistically with other components like EMAs and custom momentum indicators by confirming whether these technical signals align with high-volume price levels. For instance, a buy signal near the POC might suggest a strong support level, making the trade more likely to succeed, while a sell signal below the POC could indicate a potential breakout or continuation of a downtrend.
Break of Structure (BOS): BOS is a crucial concept in market structure analysis that indicates a significant change in market behavior. It occurs when the market breaks a previous high or low, suggesting a potential reversal or continuation of the trend. In Trend_Prime_Master, BOS is used to identify these critical moments, helping traders anticipate major market moves. BOS works in conjunction with other signals, such as EMA crossovers and trend line changes, to provide a comprehensive picture of the market's direction.
CHoCH (Change of Character): CHoCH refers to a sudden and significant shift in market behavior, often signaling a change from a trending market to a ranging one, or vice versa. This concept is crucial for traders who need to adjust their strategies based on the market’s current phase. Trend_Prime_Master automatically detects CHoCH moments and marks them on the chart, allowing traders to adapt their strategies promptly and effectively.
Custom Volume and Momentum Indicators: These custom indicators in Trend_Prime_Master go beyond standard tools by incorporating advanced calculations that consider both the direction and intensity of market moves. These indicators help validate the strength of a trend, ensuring that traders act on signals backed by strong market activity. This allows for a more nuanced view of trend strength, supporting better trading decisions.
Color-Changing Trend Line: This visual tool is not just a simple trend line; it dynamically adjusts its color based on the current trend direction, providing an immediate visual representation of the market’s state. When combined with other components like BOS and custom volume indicators, the color-changing trend line helps traders quickly assess whether the current market conditions favor a particular trade, reducing the cognitive load on traders and enabling faster decision-making.
Multi-Timeframe Filters: These filters ensure that the signals generated on a lower timeframe are consistent with the trends observed on higher timeframes. A signal is only considered valid if it aligns across these multiple timeframes, ensuring that your trades are supported by the broader market context.
Heikin Ashi Smoothing: Heikin Ashi candles are incorporated into Trend_Prime_Master to smooth out noise in price data. These candles average out price movements, making it easier to identify the underlying trend without being distracted by minor fluctuations. This smoothing effect is particularly useful in volatile markets, where traditional candlesticks might present a confusing picture of market behavior.
How It Works
Trend_Prime_Master integrates these tools into a cohesive system designed to provide clear and actionable insights into market trends:
EMA-Based Trend Identification: By analyzing multiple EMAs, Trend_Prime_Master identifies the prevailing market trend and potential reversals. This process involves comparing the positions of faster and slower EMAs to detect crossovers, which are key signals for trend changes.
Adaptive Lines: These lines adjust in real-time to reflect the current market conditions. They offer a more responsive trend-following approach compared to traditional moving averages, making them particularly useful in volatile or rapidly changing markets.
Short Trend Lines: These lines focus on short-term market trends, providing early signals of potential reversals or continuations. By tracking immediate price movements, short trend lines help traders respond quickly to market changes, offering a valuable perspective in fast-moving markets.
Point of Control (POC):The POC represents the price level with the highest traded volume over a specific period. In Trend_Prime_Master, the POC is plotted to help traders identify key levels where the market has shown significant interest. These levels often act as strong support or resistance and can be crucial in determining the validity of a trend. For instance, a signal near the POC might indicate a more reliable setup, as it shows that the price is aligning with a major volume level.
Break of Structure (BOS): BOS plays a pivotal role in confirming trend reversals. When the price breaks a significant structure, such as a previous high or low, it suggests that the market may be shifting direction. This is particularly important for traders looking to enter the market at the beginning of a new trend.
CHoCH (Change of Character): CHoCH is critical for recognizing shifts in market phases. For example, a CHoCH might indicate that a market is moving from a trend into a consolidation phase, or vice versa. By identifying these changes early, Trend_Prime_Master allows traders to adjust their strategies accordingly, whether that means tightening stop-losses in a trending market or preparing for breakout trades in a consolidating one.
Custom Volume and Momentum Confirmation: These custom indicators add an extra layer of validation to the signals generated by Trend_Prime_Master. By confirming that there is strong market participation and momentum behind a move, these indicators help ensure that traders are acting on signals supported by robust market activity.
Color-Changing Trend Line: This feature provides an easy-to-understand visual representation of the market's direction, changing color based on whether the market is in a bullish or bearish phase. It works in tandem with other components like EMAs and custom volume indicators to give traders a quick, comprehensive view of market conditions.
Settings
• Trading Style: Select the trading style that best suits your strategy (Short, Medium, Long, HTSpecial, Standard). This setting adjusts the parameters of the EMAs and other components to align with different timeframes, ensuring that the indicator is tuned to the specific market conditions you're trading in.
• Show Possible Signals: Toggle this setting to enable or disable the display of possible buy and sell signals. This allows traders to focus on confirmed signals or to see potential opportunities as they develop.
• Possible Signals Filter: If you wish to filter possible signals based on a higher timeframe trend, enable this option and select the appropriate higher timeframe. This helps ensure that the signals you act upon are in sync with broader market trends, reducing the risk of counter-trend trades.
Colors for Signals and Moving Averages:
• Customize the colors for bullish, bearish, and neutral signals, as well as for the various moving averages. This allows traders to personalize the visual aspects of the indicator, making it easier to interpret signals at a glance.
Trend Line Settings:
• Adaptive Line: Toggle to enable or disable the adaptive trend line, which adjusts dynamically based on market conditions. The line changes color to reflect the current trend direction, providing a quick visual cue.
• Short Trend Lines: Enable this option to display shorter-term trend lines. These lines help in identifying immediate market movements and can be particularly useful for short-term traders.
• Length and Smoothing: Adjust the length and smoothing parameters for the trend lines to fine-tune how responsive they are to price changes.
Point of Control (POC) Settings:
• Show POC Line: Toggle this setting to display the POC on your chart. The POC is a critical level where the most volume has been traded, and it often acts as a significant support or resistance level.
• POC Color and Width: Customize the color and width of the POC line to make it stand out or blend in with your other chart elements, depending on your preference.
Why It's Worth Paying For
Trend_Prime_Master provides several unique advantages that make it a valuable tool for traders:
Comprehensive Market Analysis: By integrating multiple technical analysis tools, Trend_Prime_Master provides a holistic view of market trends, helping you make more informed decisions.
Customization and Flexibility: The indicator’s settings can be easily adjusted to suit your trading style, whether you’re focusing on short-term trades or long-term investments.
Reliable Signal Generation: The multi-layered approach—combining EMAs, custom volume indicators, and trend lines—minimizes the likelihood of weak signals, enhancing your trading process.
Advanced Features: Features like multi-timeframe analysis, Heikin Ashi smoothing, and the color-changing trend line provide insights that are not typically found in other indicators, giving you a trading edge.
Enhanced Market Understanding: The ability to detect and act on changes in trend strength and momentum helps you develop a deeper understanding of market dynamics.
Consistency Across Markets: Trend_Prime_Master is designed to perform reliably across various market conditions, making it a versatile tool in any trading environment.
User-Friendly Interface: Despite its advanced capabilities, the indicator is easy to use, making it accessible to traders of all experience levels.
Ongoing Support and Updates: As a user of Trend_Prime_Master, you receive ongoing support and regular updates to keep the indicator effective and up-to-date with the latest market trends and techniques.
Risk Disclaimer
While Trend_Prime_Master is designed to deliver robust trading signals, it’s important to maintain realistic expectations:
Performance: The indicator is based on solid technical analysis principles, but it cannot predict the future or guarantee success. It should be used as part of a comprehensive trading strategy that includes effective risk management.
Signal Reliability: The signals generated are based on historical data and trends. While they are designed to be consistent with market conditions, they cannot guarantee future outcomes. Always be prepared for unexpected market changes.
Market Conditions: Trend_Prime_Master excels in trending markets but, like any tool, its effectiveness may vary in choppy or highly volatile conditions. Adjusting the settings and strategy according to the market environment is recommended.
How to Get Access
To gain access to Trend_Prime_Master, please send me a direct message on TradingView or use the provided link to request access. Ensure that access requests are made privately so the comments section can remain focused on discussions related to the script’s performance and use.
Volume on levels @gauranshgVolume on Levels @gauranshg is a powerful Pine Script designed to visualize trading volume across price levels directly on the chart. This script allows users to observe volume intensity, offering a clearer perspective on price action and potential support/resistance areas. By utilizing a dynamic, customizable multiplier, the volume is normalized and displayed in proportion, ensuring better scalability across various timeframes and assets.
Usage:
Normalization of Volume: Users can input a multiplier to adjust the normalization of volume. This is useful when analyzing assets with differing price and volume ranges.
Input of 1 means 1 Million volume will be marked with green color of opacity 1 and 2 Million as 2 and so on. In case you are looking at chart with very high volume, you might want to increase the multiplies
Default multiplier is set to 1, and can be customized for different scales.
Volume Visualization: The volume is displayed on the chart as background boxes behind price levels, with the opacity of the boxes changing based on the normalized volume. This helps to quickly visualize areas of high and low trading activity.
This script is ideal for investors who wish to enhance their volume analysis by visualizing it directly on price levels in a clear, normalized format.
Bat Harmonic Pattern [TradingFinder] Bat Chart Indicator🔵 Introduction
The Bat Harmonic Pattern, created by Scott Carney in the 1990s, is a sophisticated tool in technical analysis, used to identify potential reversal points in price movements by leveraging Fibonacci ratios.
This pattern is classified into two primary types: the Bullish Bat Pattern, which signals the end of a downtrend and the beginning of an uptrend, and the Bearish Bat Pattern, which indicates the conclusion of an uptrend and the onset of a downtrend.
🟣 Bullish Bat Pattern
The Bullish Bat Pattern is designed to identify when a downtrend is likely to end and a new uptrend is about to begin. The key feature of this pattern is Point D, which typically aligns near the 88.6% Fibonacci retracement of the XA leg.
This point is considered a strong buy zone. When the price reaches Point D after a significant downtrend, it often indicates a potential reversal, presenting a buying opportunity for traders anticipating the start of an upward movement.
🟣 Bearish Bat Pattern
In contrast, the Bearish Bat Pattern forms when an uptrend is nearing its conclusion. Point D, which also typically aligns near the 88.6% Fibonacci retracement of the XA leg, serves as a critical point for traders.
This point is regarded as a strong sell zone, signaling that the uptrend may be ending, and a downtrend could be imminent. Traders often open short positions when they identify this pattern, aiming to capitalize on the anticipated downward movement.
🔵 How to Use
The Bat Pattern consists of five key points: X, A, B, C, and D, and four waves: XA, AB, BC, and CD. Fibonacci ratios play a crucial role in this pattern, helping traders pinpoint precise entry and exit points. In both the Bullish and Bearish Bat Patterns, the 88.6% retracement of the XA leg is a critical level for identifying potential reversal points.
🟣 Bullish Bat Pattern
Traders typically enter buy positions after Point D forms, expecting the downtrend to end and a new uptrend to start. This point, located near the 88.6% retracement of the XA leg, serves as a reliable buy signal.
🟣 Bearish Bat Pattern
Traders usually open short positions after identifying Point D, expecting the uptrend to end and a downtrend to begin. This point, also near the 88.6% retracement of the XA leg, acts as a valid sell signal.
🟣 Trading Tips for the Bat Pattern
Accurate Fibonacci Point Identification : Accurately identify Points X, A, B, C, and D, and calculate the Fibonacci ratios between these points. Point D should ideally be near the 88.6% retracement of the XA leg.
Signal Confirmation with Other Tools : To enhance the pattern's accuracy, avoid trading solely based on the Bat Pattern.
Risk Management : Always use stop-loss orders. In a Bullish Bat Pattern, place the stop-loss below Point X, and in a Bearish Bat Pattern, above Point X. This helps limit potential losses if the pattern fails.
Wait for Price Movement Confirmation : After identifying Point D, wait for the price to move in the anticipated direction to confirm the pattern's validity before entering a trade.
Set Realistic Profit Targets : Use Fibonacci retracement levels to set realistic profit targets, such as 38.2%, 50%, and 61.8% retracement levels of the CD leg. This strategy helps maximize profits and prevents premature exits.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Forma t: If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
🔵 Conclusion
The Bat Harmonic Pattern is a powerful tool in technical analysis, offering traders the ability to identify critical reversal points using Fibonacci ratios. By recognizing the Bullish and Bearish Bat Patterns, traders can anticipate potential trend reversals and make informed trading decisions.
However, it is essential to combine the Bat Pattern with other technical analysis tools and confirm signals for better trading outcomes. With proper use, this pattern can help traders minimize risk and optimize their entry and exit points in the market.
Landry Light with Moving AverageLandry Light with Moving Average
Overview:
This Pine Script, titled "Landry Light with Moving Average", visualizes the relationship between price action and a chosen moving average (MA) over time. It helps users easily identify periods where the price stays consistently above or below the moving average, which can be a useful indicator of bullish or bearish trends.
Key Features:
Moving Average Type Selection:
The script allows users to choose between two types of moving averages:
Exponential Moving Average (EMA)
Simple Moving Average (SMA)
This is done via a user input option, enabling traders to tailor the indicator to their preferred analysis method.
Moving Average Length:
Users can set the length of the moving average (default is 21 periods). This allows customization based on the trader's time frame, whether short-term or long-term analysis.
Dynamic Moving Average Color:
The moving average line changes color based on the relationship between the price and the MA:
Green: Price is consistently above the MA (bullish condition).
Red: Price is consistently below the MA (bearish condition).
Blue: Price is crossing or close to the MA (neutral or indecisive condition).
Cumulative Days Above/Below MA:
The script tracks and displays the number of consecutive days the price remains above or below the moving average:
Cumulative Days Above: Shown as a green histogram above the zero line.
Cumulative Days Below: Shown as a red histogram below the zero line.
This feature helps users identify sustained trends or potential reversals.
Real-time Labels:
The script generates dynamic labels that display the count of cumulative days the price has stayed above or below the moving average.
These labels are positioned near the moving average on the chart, providing an easy reference for traders.
How Users Can Benefit:
Trend Identification:
By visually representing how long the price stays above or below a key moving average, traders can identify strong bullish or bearish trends. This can inform entry and exit points.
Visualizing Market Sentiment:
The colored moving average line and histogram help traders quickly assess market sentiment. A prolonged green MA line suggests a strong uptrend, while a prolonged red line indicates a downtrend.
Adaptability:
With customizable moving average types and lengths, the indicator can be tailored to fit various trading strategies, whether for day trading, swing trading, or long-term investing.
Reversal Signals:
A shift from cumulative days above to cumulative days below (or vice versa) can serve as an early signal of a potential market reversal, allowing traders to adjust their positions accordingly.
Simplified Decision-Making:
The combination of visual cues (colors, histograms, and labels) simplifies decision-making, allowing traders to focus on trend strength rather than complex calculations.
Usage:
To use this script:
Add the Indicator to Your Chart:
Select the desired moving average type and length.
The script will plot the moving average, colored by the trend, and display cumulative days above or below it.
Interpret the Signals:
Use the histogram and labels to gauge the strength of the trend.
Monitor color changes in the moving average for potential trend reversals.
Incorporate into Your Strategy:
Combine this indicator with other tools (e.g., volume analysis, RSI) to confirm signals and refine your trading strategy.
This indicator is particularly useful for traders who follow the "Landry Light" concept, emphasizing the importance of price staying above or below a moving average to determine trend strength.
Swing Points [Syafiq.Jr]The Swing Points indicator by Syafiq.Jr is designed to identify and visualize pivotal market structures such as Higher Highs (HH), Lower Highs (LH), Lower Lows (LL), and Higher Lows (HL) directly on the chart. This tool is essential for traders who utilize swing trading strategies and rely on understanding market trends through key price levels.
Key Features:
Pivot Strength: Configurable pivot strength to customize the sensitivity of swing points.
Customizable Visuals: Users can adjust the colors and visibility of the zones for each swing point category (HH, LH, LL, HL) based on their preferences.
Multiple Timeframe Support: The indicator offers the flexibility to display swing points from the current timeframe or higher timeframes such as 5-minute, 15-minute, 30-minute, 1-hour, 4-hour, and daily intervals.
Dynamic Extension Lines: Automatically extend key levels across the chart for ongoing reference.
Configurable Font Sizes: Adjust the font size for labels marking the swing points to ensure clear visualization.
This indicator is ideal for traders who need to spot and track critical swing points across different timeframes, enabling better decision-making in trending and ranging markets.
Uptrick: Logarithmic Crypto Bands
Description :
Introduction
The `Uptrick: Logarithmic Crypto Bands` indicator introduces an innovative approach to technical analysis tailored specifically for the cryptocurrency markets. By leveraging logarithmic transformations combined with dynamic exponential bands, this indicator offers a sophisticated method for identifying critical support and resistance levels, assessing market trends, and evaluating volatility. Its unique approach stands out from traditional indicators by addressing the specific challenges of high volatility and erratic price movements inherent in cryptocurrency trading.
Originality and Usefulness
** 1. Unique Logarithmic Transformation: **
- Innovation : Unlike traditional indicators that often use raw price data, the Uptrick: Logarithmic Crypto Bands applies a logarithmic transformation to the closing prices: logPrice = math.log(close). This approach is original because it reduces the impact of extreme price fluctuations, providing a smoother and more stable price series. This transformation addresses a common issue in cryptocurrency markets where large price swings can obscure true market trends.
- Advantage : The logarithmic transformation compresses the price range, which allows traders to better identify long-term trends and reduce the noise caused by outlier price movements. This results in a more reliable basis for analysis and enhances the ability to detect meaningful market patterns.
**2. Dynamic Exponential Bands :**
- Innovation : The indicator employs exponential calculations to derive dynamic support and resistance levels based on a central base line : baseLine * math.pow(multiplier, n). Unlike static bands that remain fixed regardless of market conditions, these bands adjust dynamically according to market volatility.
- Advantage : The dynamic nature of the bands provides a more responsive and adaptive tool for traders. As market volatility changes, the bands widen or narrow accordingly, offering a more accurate reflection of potential support and resistance levels. This adaptability improves the tool's effectiveness in varying market conditions compared to static or traditional bands.
Detailed Description and Substantiation
**1. Logarithmic Price Calculation :**
- Code : ` logPrice = math.log(close)
- Description : This calculation converts the closing price into its logarithmic value. By compressing the price range, it minimizes the distortion caused by extreme price movements, which can be particularly pronounced in the volatile cryptocurrency markets.
- Purpose : To provide a stabilized price series that facilitates more accurate trend analysis and reduces the influence of erratic price fluctuations.
**2. Moving Averages of Logarithmic Prices :**
- ** Long-Term Moving Average :**
- Code : maLongLogPrice = ta.sma(logPrice, longLength)
longLength = 2000
- ** Description : A simple moving average of the logarithmic price over a long period. This average helps filter out short-term noise and provides insight into the long-term market trend.
- Purpose : To offer a perspective on the overall market direction, making it easier to identify enduring trends and distinguish them from short-term price movements.
- Short-Term Moving Average :
- Code : maShortLogPrice = ta.sma(logPrice, shortLength) shortLength = 900
- Description : A simple moving average of the logarithmic price over a shorter period. This component captures more immediate price trends and potential reversal points.
- Purpose : To detect short-term trends and changes in market direction, allowing traders to make timely trading decisions based on recent price action.
**3. Base Line Calculation :**
- Code : baseLine = math.exp(maShortLogPrice)
- Description : Converts the short-term moving average of the logarithmic price back to the original price scale. This base line serves as the central reference point for calculating the surrounding bands.
- Purpose : To establish a benchmark level from which the exponential bands are calculated, providing a central reference for assessing potential support and resistance levels.
**4. Band Calculation and Plotting :**
- ** Code :**
- Band 1: plot(baseLine * math.pow(multiplier, 1), color=color.new(color.yellow, 20), linewidth=1, title="Band 1")
- Band 2: plot(baseLine * math.pow(multiplier, 2), color=color.new(color.yellow, 20), linewidth=1, title="Band 2")
- Band 3: plot(baseLine * math.pow(multiplier, 3), color=color.new(color.yellow, 20), linewidth=1, title="Band 3")
- Band 4: plot(baseLine * math.pow(multiplier, 4), color=color.new(color.yellow, 20), linewidth=1, title="Band 4")
- Band 5: plot(baseLine * math.pow(multiplier, 5), color=color.new(color.yellow, 10), linewidth=1, title="Band 5")
- Band 6: plot(baseLine * math.pow(multiplier, 6), color=color.new(color.yellow, 0), linewidth=1, title="Band 6")
- * Multiplier : Set at 1.3, adjusts the spacing between bands to accommodate varying levels of market volatility.
- Description : Bands are plotted at exponential intervals from the base line. Each band represents a potential support or resistance level, with the spacing between them increasing exponentially. The color opacity of each band indicates its level of significance, with closer bands being more relevant for immediate trading decisions.
** How to Use the Indicator :**
**1. Identifying Support and Resistance Levels :**
- Support Levels : The lower bands, closer to the base line, can act as potential support levels. When the price approaches these bands from above, they may indicate areas where the price could stabilize or reverse direction.
- Resistance Levels : The upper bands, further from the base line, serve as resistance levels. When the price nears these bands from below, they can act as barriers to price movement, potentially leading to reversals or stalls.
**2. Confirming Trends :**
- Uptrend Confirmation : When the price consistently remains above the base line and moves towards higher bands, it signals a strong bullish trend. This confirmation helps traders capitalize on upward price movements.
- Downtrend Confirmation : When the price stays below the base line and approaches lower bands, it indicates a bearish trend. This confirmation assists traders in acting on downward price movements.
3. Analyzing Volatility :
- Wide Bands : Wider spacing between bands reflects higher market volatility. This indicates a more turbulent trading environment, where price movements are less predictable. Traders may need to adjust their strategies to handle increased volatility.
- Narrow Bands : Narrower bands suggest lower volatility and a more stable market environment. This can result in more predictable price movements and clearer trading signals.
**4. Entry and Exit Points :**
- Entry Points : Consider buying when the price bounces off the base line or a band, which could signal support in an uptrend.
- Exit Points : Evaluate selling or taking profits when the price nears upper bands or shows signs of reversal at these levels. This approach helps in locking in gains or minimizing losses during a downtrend.
**Chart Example:**
Here you can see how the price reacted getting closer to this level. All green circles show a bounce-off. So just from looking at the chart we can see a potential bounce again pretty soon.
** Disclosure :**
- ** Performance Claims :** The `Uptrick: Logarithmic Crypto Bands` indicator is designed to assist traders in analyzing price levels and trends. It is important to understand that this tool provides historical data analysis and does not guarantee future performance. The features and benefits described are based on historical market behavior and should not be seen as a prediction of future results. Traders should use this indicator as part of a broader trading strategy and consider other factors before making trading decisions.
AutoPilot | FractalystWhat’s the purpose of this indicator?
The AutoPilot indicator automates the management of your active trades by:
Breaks Even: Moves the stop-loss to the entry price once the trade reaches a 1:1 risk-reward ratio.
Closes Trades: Automatically exits trades when trailing stop-losses are triggered.
This automation is facilitated through PineConnector and TradingView webhook integration, allowing traders to manage multiple positions across various markets effortlessly without any manual intervention.
----
How does this indicator trail stop-loss using market structure?
The AutoPilot indicator utilizes an advanced market structure trailing stop-loss mechanism to manage trades based on market dynamics and probabilities.
Here's how it works:
Market Structure Identification: The indicator first identifies key market structures such as higher highs, lower lows.
These structures are pivotal points where the market has shown a change in direction or momentum.
Probability-Based Trailing: Once a trade is active, the stop-loss isn't just set at a fixed distance or percentage but is dynamically adjusted based on the probability of the market structure holding or breaking.
This involves:
Trend Continuation Probability: If the market structure suggests a strong trend continuation (e.g., a series of higher highs in an uptrend), the stop-loss might trail closer to the price, but with a buffer calculated by the probability of the trend continuing versus reversing.
Reversal Probability: Conversely, if there's a high probability of a trend reversal based on recent market structures (like a significant lower high in an uptrend), the stop-loss might be adjusted to a point where the market structure would need to break to confirm the reversal, thus protecting potential profits or minimizing losses.
Dynamic Adjustment: The trailing stop-loss adjusts in real-time as new market structures form. For instance, if a new higher high is formed in an uptrend, the stop-loss might move up but not necessarily to the exact previous swing low. Instead, it's placed at a level where the probability of the next swing low not breaking this level is high, based on historical price action.
Risk Management: By using market structure and probabilities, the indicator aims to balance between giving the trade room to breathe (allowing for normal market fluctuations) and tightening the stop-loss when the market behavior suggests a potential trend change or continuation with high confidence.
This approach ensures that the stop-loss isn't just a static or simple trailing mechanism but a sophisticated tool that adapts to the evolving market conditions, aiming to maximize profit while minimizing the risk of being stopped out prematurely due to market noise.
----
How are the probabilities calculated? What are the underlying calculations?
The probability is designed to enhance trade management by using buyside liquidity and probability analysis to filter out low/high probability conditions.
This helps in identifying optimal trailing points where the likelihood of a price continuation is higher.
Calculations:
1. Understanding Swing highs and Swing Lows
Swing High: A Swing High is formed when there is a high with 2 lower highs to the left and right.
Swing Low: A Swing Low is formed when there is a low with 2 higher lows to the left and right.
2. Understanding the purpose and the underlying calculations behind Buyside, Sellside and Equilibrium levels.
3. Understanding probability calculations
1. Upon the formation of a new range, the script waits for the price to reach and tap into equilibrium or the 50% level. Status: "⏸" - Inactive
2. Once equilibrium is tapped into, the equilibrium status becomes activated and it waits for either liquidity side to be hit. Status: "▶" - Active
3. If the buyside liquidity is hit, the script adds to the count of successful buyside liquidity occurrences. Similarly, if the sellside is tapped, it records successful sellside liquidity occurrences.
5. Finally, the number of successful occurrences for each side is divided by the overall count individually to calculate the range probabilities.
Note: The calculations are performed independently for each directional range. A range is considered bearish if the previous breakout was through a sellside liquidity. Conversely, a range is considered bullish if the most recent breakout was through a buyside liquidity.
----
What does the automation table display?
The automation table in the AutoPilot indicator provides a summary of user-defined settings crucial for automated trade management through PineConnector and TradingView integration. It displays:
PineConnector License ID: This ensures that the indicator is linked to your specific PineConnector account, allowing for personalized and secure automation of your trades.
Order Type (Buy/Sell): Indicates whether the automation is set for buying or selling, which is essential for correctly executing your trading strategy.
Chosen Symbol: Specifies the trading pair or symbol in your broker's platform where the trade management commands (like closing orders) will be executed. This ensures that the automation targets the correct market or asset.
Risk Per Trade: Shows the percentage or amount of your capital you're willing to risk on each trade, helping you maintain consistent risk management across different trades.
Comment: A field for you to input notes or identifiers, particularly useful when trading across multiple markets or instruments. This helps in tracking and managing trades across different assets or strategies.
Comment: A field for you to input identifiers, particularly useful when trading across multiple timeframes or different enries.
Allowing users to manage specific comments for each previously taken entry, facilitating precise management of multiple trades with unique identifiers.
This table serves as a quick reference for your current settings, ensuring you're always aware of how your trades are being managed automatically before any adjustments are made or alerts are triggered.
----
How to use the indicator?
To use the AutoPilot indicator:
Purchase a License ID: Acquire a license ID from PineConnector.
Setup PineConnector EA: Install and configure the PineConnector Expert Advisor on your MetaTrader platform.
Input Settings: Enter your PineConnector license ID, choose the order type, set your risk per trade, add the order comment, and select the trading symbol in the indicator's settings.
Create Alert: Right-click on the automation table, and set up an alert with the provided webhook to connect with PineConnector.
Automatic Management: Once set, your active trades will be automatically managed according to the alert conditions you've set.
This setup ensures your trades are managed seamlessly without constant manual intervention.
----
What makes this indicator original?
Integration with PineConnector: The AutoPilot indicator's originality lies in its integration with PineConnector, which allows for real-time trade management directly from TradingView to your MetaTrader platform. This setup is unique as it combines the analytical capabilities of TradingView with the execution capabilities of MetaTrader through a custom indicator, providing a seamless bridge between analysis and action.
Market Structure-Based Trailing Stop-Loss: Unlike many indicators that might use fixed percentages or ATR (Average True Range) for stop-loss adjustments, the AutoPilot indicator uses market structure (higher highs, lower lows) to dynamically adjust the stop-loss.
Probability-Based Adjustments: The indicator doesn't just trail stop-losses based on price but incorporates the probability of market structure holding or breaking. This probability-based trailing mechanism is innovative, aiming to balance between giving trades room to breathe and tightening when market behavior suggests a potential reversal or continuation.
Customizable Automation Table: The automation table within the indicator allows for detailed customization, including setting specific comments for trades. This feature, while perhaps not unique in concept, is original in its implementation within trading indicators, providing users with a high degree of control and personalization over trade management.
Real-Time Trade Management Alerts: The ability to set up alerts directly from the indicator to manage trades in real-time via webhooks to PineConnector adds a layer of automation that's not commonly found in standard trading indicators. This real-time connection for trade management enhances its originality by reducing the lag between analysis and trade execution.
User-Centric Design: The design of the AutoPilot indicator focuses heavily on user interaction, allowing for inputs like risk per trade, specific order types, and comments. This user-centric approach, where the indicator adapts to the trader's strategy rather than the trader adapting to the tool, sets it apart.
External Integration for Enhanced Functionality: By leveraging external services like PineConnector for execution, the indicator extends its functionality beyond what's typically possible within TradingView alone, making it original in its ecosystem integration for trading purposes.
Practical Implication: This means if you're in a trade and the market structure suggests the trend is continuing (e.g., making higher highs in an uptrend), your stop-loss might trail closer to the price but not too close to avoid being stopped out by normal fluctuations. If the structure breaks (e.g., a lower high in an uptrend), the stop-loss could adjust more aggressively to protect profits or minimize losses, anticipating a potential trend change.
This combination of features creates an original tool that not only analyzes market conditions but actively manages trades based on sophisticated market structure analysis.
----
User-input settings and customizations
----
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data. By utilizing our charting tools, the buyer acknowledges that neither the seller nor the creator assumes responsibility for decisions made using the information provided. The buyer assumes full responsibility and liability for any actions taken and their consequences, including potential financial losses. Therefore, by purchasing these charting tools, the customer acknowledges that neither the seller nor the creator is liable for any unfavorable outcomes resulting from the development, sale, or use of the products.
The buyer is responsible for canceling their subscription if they no longer wish to continue at the full retail price. Our policy does not include reimbursement, refunds, or chargebacks once the Terms and Conditions are accepted before purchase.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer.
Multi Adaptive Moving Average (MAMA)The Multi Adaptive Moving Average (MAMA) indicator is an advanced tool for technical analysis, designed to provide traders with a detailed understanding of market trends and potential future price movements. This indicator utilizes multiple Simple Moving Averages (SMAs) and forecasting techniques to enhance decision-making processes.
Simple Moving Averages (SMAs):
Short MA (20-period): This moving average is highly responsive to price changes, making it ideal for capturing short-term trends. It helps traders identify quick market shifts and potential entry or exit points.
Mid MA (50-period): This average strikes a balance between short- and long-term trends, offering insights into the market's intermediate direction. It aids in confirming the sustainability of short-term trends.
Long MA (100-period): By smoothing out price data over a longer period, this moving average is useful for identifying long-term trends and filtering out short-term volatility.
Very Long MA (200-period): Often considered a critical indicator for determining the overall market trend, this average helps confirm the direction and strength of long-term movements.
Forecasting:
Flat Forecast: This approach assumes that prices will remain constant in the near future, which is particularly useful in markets trading sideways without a clear trend direction.
Linear Regression Forecast: This method uses historical data to project future price movements, offering a dynamic forecast based on existing trends. It helps traders anticipate potential price changes and plan their strategies accordingly.
Advantages:
Comprehensive Trend Analysis: By incorporating four different SMAs, the indicator provides a layered view of market trends across various timeframes. This enables traders to identify potential trend reversals and continuations with greater accuracy.
Predictive Insights: The forecasting feature offers traders a forward-looking perspective, enabling them to anticipate market movements and adjust their trading strategies proactively. This can be especially advantageous in volatile markets.
Customization: The MAMA indicator is highly customizable, allowing traders to adjust parameters such as the source of price data and the inclusion of the current unclosed candle. This flexibility ensures that the indicator can be tailored to fit different trading styles and market conditions.
Visual Clarity: The use of distinct colors for each SMA and their forecasts enhances visual interpretation, making it easier for traders to quickly assess market conditions and make informed decisions. The inclusion of a legend further aids in distinguishing between the different moving averages and their respective forecasts.
How to Use:
Trend Confirmation: Use the alignment of the SMAs to confirm market trends. For example, when the Short MA crosses above the Mid and Long MAs, it may indicate a bullish trend, while the opposite could suggest a bearish trend.
Entry and Exit Points: Look for crossovers between the SMAs as potential signals for entering or exiting trades. The forecasts can help in timing these decisions by providing an expectation of future price movements.
Risk Management: Utilize the Very Long MA to set stop-loss and take-profit levels, as it reflects the long-term trend and can help in avoiding trades against the prevailing market direction.
The MAMA indicator is intended to support technical analysis and should not be used as the sole basis for making trading decisions. Financial markets are inherently uncertain, and past performance does not guarantee future results. Traders should use this tool in conjunction with other analytical methods and consider their risk tolerance and investment objectives. It is advisable to conduct thorough research and consult with a financial advisor before making significant trading decisions. Always be aware of the risks involved in trading and invest only what you can afford to lose.
Institutional Demand Supply IndicatorINTRODUCTION
Institutional demand and supply zones are key areas on a price chart where large institutional traders, such as banks and hedge funds, place significant buy or sell orders. These zones often act as strong support or resistance levels due to the substantial volume of trades executed by institutions.
There are various ways to identify these areas of interest on the charts, but the main goal is to study the price movements, especially significant ones. Large financial entities tend to operate in the same price areas repeatedly. Instead of chasing price movements and risking counter moves, it's better to wait for the price to return to these areas, expecting that these entities will buy or sell there again.
INDICATOR SETTINGS:
1. High Probability Zones (HPZ) - High Probability Zones (HPZ) are demand and supply zones identified using advanced calculations to highlight the most relevant and significant areas. These zones have a higher probability of impacting price movements. Better to keep it turned On.
2. Zone Extension? - Extending zones can be useful for identifying areas that have already been retraced as these zones may continue to influence market dynamics despite the retracement.
3. Zone Type - This option lets you select the zone layout type. 4 options are given which are self explanatory.
4. Directional Candle Count - This option keeps a count of number of consecutive bullish / bearish candle that you would like to set as qualifying parameter for demand / supply zone. For Example - If you keep the number 1, the script will draw a demand or supply zone by just checking if 1 candle has met all the criteria's and calculations.
5. Zone Validity Percentage - You can set the percent change for the number of candles mentioned in point 4 above.
6. HPZ - Keep the number between 6 to 10. As you move the number up, less number of zones will be displayed.
7. Zone Count - You can adjust the number of visible demand and supply zones on the chart. Increase this number if you want to display more zones, or decrease it if the chart becomes too cluttered.
D I S P L A Y
1. Background Color Demand / Supply Zone - This is the background color of demand and supply zone.
2. Channel Color Demand / Supply Zone - This is the color of channel.
3. Channel Line Style - Choose between Solid, dotted or dashed.
4. Background Color Transparency - Choose the transparency of background color
5. Channel Line Width - Choose Channel line width between 1 to 4.
6. Channel Line Transparency - Choose Channel Line Transparency and keep it between 1 to 100.
Sometimes, a level may be breached on one timeframe, but that doesn’t mean the indicator is not working. To understand the price action better, switch to a different timeframe to check why that level was breached and why it found support at a different zone on another timeframe. Look at the 2 screenshots below.
Ultra High/LowThe Ultra High/Low script helps traders track key price levels by automatically marking significant highs and lows on a chart, highlighting potential reversal points for future trading decisions.
Introduction
The Ultra High/Low script identifies and marks significant highs and lows on a trading chart. These are specific points where the price reached a peak or bottomed out before reversing. The script draws lines at these levels, which can be extended, and it also labels the exact price at these points. This makes it easy for traders to see where the price has changed direction previously, helping them make more informed trading decisions.
Detailed Description
In more detail, the Ultra High/Low script is designed using Pine Script™, a programming language used for creating custom indicators and strategies on the TradingView platform. Here's how it works:
..........
Detection of Pivot Highs and Lows
The script identifies "pivot highs" and "pivot lows." These are points on the chart where the price reached a local maximum or minimum, surrounded by lower highs (for pivot highs) or higher lows (for pivot lows).
The user can customize how many bars to the left and right of the high or low the script should consider to confirm a pivot (Length argument in the settings).
The script uses Pine Script functions for pivot detection. ta.pivothigh() and ta.pivotlow() .
......
Drawing Lines and Labels
Once a pivot is identified, the script draws a dashed line from the pivot point to the current price bar. This line helps visualize where significant price reversals have occurred.
The script also adds a label next to these lines showing the exact price of the pivot point. This label also shows "PDH" (Previous Day High) or "PDL" (Previous Day Low) if the pivot is PDH or PDL. Same for "PWH" (Previous Week High) and "PWL" (Previous Week Low).
......
Purging and Extending Lines
If the price crosses a pivot line after it has been drawn, the script can either delete the old line (purged line) or keep it and add additional indicators to show that the line has been liquidated.
The script also has options to extend the lines into the right.
......
Custom Inputs
The script offers several customizable options, like the color of the lines and labels, whether to show the exact price or not, and whether to extend the lines. This allows traders to tailor the indicator to their specific needs and preferences.
..........
Overall, the Ultra High/Low script is a powerful visual aid for identifying critical price levels that may influence future price movements, making it easier for traders to make decisions based on historical price behavior.
Dow Theory based Strategy (Markttechnik)What makes this script unique?
calculates two trends at the same time: a big one for the overall strong trend - and a small one to trigger a trade after a small correction within the big trend
only if both trends (the small and the big trend) are in an uptrend, a buy signal is created: this prevents a buy signal from being generated in a falling market just because an upward movement begins in a small trend
the exit strategy can be configured very flexibly and individually: use the last low as stop loss and automatically switch to a trialing stop loss as soon as the take profit is reached (instead of finishing the trade)
the take profit strategy can also be configured - e.g. use the last high, a fixed percentage or a combination of it
plots each trade in detail on the chart - e.g. inner candles or the exact progression of the stop loss over the entire duration of the trade to allow you to analyze each trade precisely
What does the script do and how?
In this strategy an intact upward trend is characterized by higher highs and lower lows only if the big trend and the small trend are in an upward trend at the same time.
The following describes how the script calculates a buy signal. Every step is drawn to the chart immediately - see example chart above:
1. the stock rises in the big trend - i.e. in a longer time frame
2. a correction takes place (the share price falls) - but does not create a new low
3. the stock rises again in the big trend and creates a new high
From now on, the big trend is in an intact upward trend (until it falls below its last low).
This is drawn to the chart as 3 bold green zigzag lines.
But we do not buy right now! Instead, we want to wait for a correction in the big trend and for the start of a small upward trend.
4. a correction takes place (not below the low from 2.)
Now, the script also starts to calculate the small trend:
5. the stock rises in the small trend - i.e. in a shorter time frame
6. a small correction takes place (not below the low from 4.)
7. the stock rises above the high from 5.: a new high in the shorter time frame
Now, both trends are in an intact upward trend.
A buy signal is created and both the minor and major trend are colored green on the chart.
Now, the trade is active and:
the stop loss is calculated and drawn for each candle
the take profit is calculated and drawn to the chart
as soon as the price reaches the take profit or the stop loss, the trade is closed
Features and functionalities
Uptrend : An intact upward trend is characterized by higher highs and lower lows. Uptrends are shown in green on the chart.
The beginning of an uptrend is numbered 1, each subsequent high is numbered 2, and each low is numbered 3.
Downtrend: An intact downtrend is characterized by lower highs and lower lows. Downtrends are displayed in red on the chart.
Note that our indicator does not show the numbering of the points of the downtrend.
Trendless phases: If there is no intact trend, we are in a trendless phase. Trendless phases are shown in blue on the chart.
This occurs after an uptrend, when a lower low or a lower high is formed. Or after a downtrend, when a higher low or a higher high is formed.
Buy signals
A buy signal is generated as soon as a new upward trend has been formed or a new high has been established in an intact upward trend.
But even before a buy signal is generated, this strategy anticipates a possible emerging trend and draws the next possible trading opportunity to the chart.
In addition to the (not yet reached) buy price, the risk-reward ratio, the StopLoss and the TakeProfit price is shown.
With this information, you can already enter a StopBuy order, which is thus triggered directly with the then created buy signal.
You can configure, if a buy signal shall be created while the big trend is an uptrend, a downtrend and/or trendless.
Exit strategy
With this strategy, you have multiple possibilities to close your position. All of them can be configured within the settings. In general, you can combine a take profit strategy with a stop loss strategy.
The take profit price will be calculated once for each trade. It will be drawn to the chart for active trade.
Depending on your configuration, this can be the last high (which is often a resistance level), a fixed percentage added to the buy price or the maximum of both.
You can also configure that a trailing stop loss is used as soon as the take profit price is reached once.
The stop loss gets recalculated with each candle and is displayed and plotted for each active and finished trade. With this, you can easily check how the stop loss changed during your trades.
The stop loss can be configured flexibly:
Use the classic "trailing stop loss" that follows the price from below.
Set the stop loss to the last low and tighten it every time the small trend marks a new local low.
Confiure that the stop loss is tightened as soon as the break even is reached. Nothing is more annoying than a trade turning from a win to a loss.
Ignore inside candles (see description below) and relax the stop loss to use the outside candle for its calculation.
Inner candles
Inner candles are created when the candle body is within the maximum values of a previous candle (the outer candle). There can be any number of consecutive inner candles. As soon as you have activated the "Check inner candles" setting, all consecutive inner candles will be highlighted in yellow on the chart.
Prices during an inner candle scenario might be irrelevant for trading and can be interpreted as fluctuations within the outside candle. For this reason, the trailing stop loss should not be aligned with inner candles. Therefore, as soon as an inner candle occurs, the stop loss is reset and the low at the time of the outside candle is used as the calculation for the trailing stop loss. This will all be plotted for you on the chart.
Display of the trades:
All active and closed trades of the last 5 years are displayed in the chart with buy signal, sell, stop loss history, inside candles and statistics.
Backtesting:
The strategy can be simulated for each stock over the period of the last 5 years. Each individual trade is recorded and can be traced and analyzed in the chart including stop loss history. Detailed evaluations and statistics are available to evaluate the performance of the strategy.
Additional Statistics
This strategy immediately displays a statistic table to the chart area giving you an overview of its performance over the last years for the given chart.
This includes:
The total win/loss in $ and %
The win/loss per year in %
The active investment time in days and % (e.g. invested 10 of 100 trading days -> 10%)
The total win/loss in %, extrapolated to 100% equity usage: Only with this value can strategies really be compared. Because you are not invested between the trades and could invest in other stocks during this time. This value indicates how much profit you would have made if you had been invested 100% of the time - or to put it another way - if you had been invested 100% of the time in stocks with exactly the same performance. Let's say you had only one trade in the last 5 years that lasted, say, only one month and made 5% profit. This would be significantly better than a strategy with which you were invested for, say, 5 years and made 10% profit.
The total profit/loss per year in %, extrapolated to 100% equity usage
Notifications (alerts):
Get alerted before a new buy signal emerges to create an order if necessary and not miss a trade. You can also be notified when the stop loss needs to be adjusted. The notification can be done in different ways, e.g. by Mail, PopUp or App-Notification. This saves them the annoying, time-consuming and error-prone "click through" all the charts.
Settings: Display Settings
With these settings, you have the possibility to:
Show the small or the big trend as a background color
Configure if the numbers (1-2-3-2-3) shall be shown at all or only for the small, the big trend or both
Settings: Trend calculation - fine tuning
Drawing trend lines on a chart is not an exact science. Some highs and lows are not very clear or significant. And so it will always happen that 2 different people would draw different trendlines for the same chart. Unfortunately, there is no exact "right" or "wrong" here.
With the options under "Trend Calculation - Fine Tuning" you have the possibility to influence the drawing in of trends and to adapt it to your personal taste.
Small Trend, Big Trend : With these settings you can influence how significant a high or low has to be to recognize them as an independent high or low. The larger the values, the more significant a high or low must be to be recognized as such.
High and low recognition : With this setting you can influence when two adjacent, almost identical highs or lows should be recognized as independent highs or lows. The higher the value, the more different "similar" highs or lows must be in order to be recognized as such.
Which default settings were selected and why
Show Trades: true - its often useful to see all recent trades in the chart
Time Frame: 1 day - most common time frame (except for day traders)
Take Profit: combined 10% - the last high is taken as take profit because the trend often changes there, but only if there is at least 10% profit to ensure we do not risk money for a tiny profit
Stop Loss: combined - the last low is used as stop loss because the trend would break there and switch to a trailing stop loss as soon as our take profit is reached to let our profits run without risking them anymore
Stop Loss distance: 3% - we are giving the price 3% air (below the last low) to avoid being stopped out due to a short price drop
Trailing Stop Loss: 2% - we have to give the stop loss some room to avoid being stopped out prematurely; this is a value that is well balanced between a certain downside distance and the profit-taking ratio
Set Stop Loss to break even: true, 2% - once we reached the break even, it is a common practice to not risk our money anymore, the value is set to the same value as the trailing stop loss
Trade Filter: Uptrend - we only start trades if the big trend is an uptrend in the expectation that it will continue after a small correction
Display settings: those will not influence the trades, feel free to change them to your needs
Trend calculation - Fine Tuning: 1/1,5/0,05; influences the internal calculation for highs and lows and how significant they need to be to be considered a new high or low; the default values will provide you nicely calculated trends in the daily time frame; if there are too many or too few lows and highs according to your taste, feel free to play around and immediately see the result drawn to the chart; read the manual for a detailed description of this values
Note that you can (and should) configure the general trading properties like your initial capital, order size, slippage and commission.
Tick Range Engulfing Candle Highlighter with Trend ChangeOverview
The "Tick Range Engulfing Candle Highlighter with Trend Change" indicator is designed to identify potential trend reversals by analyzing the size of each candle relative to a customizable tick size. This indicator highlights key moments when the market may shift direction based on an "engulfing" candle pattern, where the current candle's price range is larger than the previous one. By identifying these moments, traders can gain insight into possible trend changes, which could be useful for various trading strategies, including trend-following or reversal-based trading.
Key Concepts
Tick Size:
The indicator uses a user-defined tick size to calculate the price range of each candle. The tick size represents the minimum price movement that the market recognizes, allowing for more precise control over the range calculations.
Engulfing Candle Pattern:
The concept of an "engulfing candle" refers to a scenario where the current candle’s range (high minus low) is larger than the previous candle’s range. This pattern can signal a potential trend reversal, especially when combined with a change in the candle's direction (bullish to bearish or bearish to bullish).
Trend Change Detection:
The indicator specifically looks for situations where a bullish candle is followed by a larger bearish candle (indicating a potential downward trend reversal) or where a bearish candle is followed by a larger bullish candle (indicating a potential upward trend reversal).
The trend change is validated by comparing the tick range of the current and previous candles, ensuring that the current range is larger, which adds significance to the reversal signal.
How the Indicator Works
Input and Calculation:
Users start by setting the tick size through the indicator’s input. The script then calculates the tick range for the current and previous candles by dividing the difference between the high and low prices by the specified tick size.
Candle Direction Analysis:
The indicator assesses whether each candle is bullish (closing price higher than the opening price) or bearish (closing price lower than the opening price).
Engulfing and Trend Reversal Detection:
The script checks for an engulfing pattern combined with a change in the candle's direction:
Bullish to Bearish Change: Detected when a bullish candle is followed by a larger bearish candle.
Bearish to Bullish Change: Detected when a bearish candle is followed by a larger bullish candle.
Visual Cues:
When the conditions for a trend change are met, the indicator plots visual signals on the chart:
A red downward arrow below the candle indicates a potential bearish reversal.
A green upward arrow above the candle indicates a potential bullish reversal.
How to Use This Indicator
Customization:
Adjust the tick size to match the asset’s characteristics or your trading preferences. A smaller tick size will result in more sensitive detection, while a larger tick size will smooth out minor fluctuations.
Trade Confirmation:
This indicator can be used as a confirmation tool for other trend-following or reversal strategies. It’s particularly useful for traders looking to identify early signs of trend reversals.
Strategy Integration:
Consider integrating this indicator with other technical analysis tools such as moving averages, RSI, or support/resistance levels to build a more comprehensive trading strategy.
Underlying Concepts
The core idea behind this indicator is the principle of engulfing patterns combined with tick size analysis. By focusing on candles that not only change direction but also show a significant increase in range, the indicator highlights moments when the market may be experiencing a substantial shift in momentum. This method can help traders filter out noise and focus on more meaningful potential reversals.
In summary, the "Tick Range Engulfing Candle Highlighter with Trend Change" indicator provides traders with a tool to spot potential trend changes based on price action and candle analysis. It's flexible, allowing for customization, and can be a valuable addition to various trading strategies.
Uptrick: Price Exaggerator
## Uptrick: Price Exaggerator
** Purpose and Overview **:
The "Uptrick: Price Exaggerator" is an innovative Pine Script™ indicator that provides traders with a unique way to visualize potential price extremes. Unlike traditional indicators that focus on historical price data or statistical patterns, this script applies dynamic multipliers to the asset’s closing price to project exaggerated price levels. This approach offers fresh insights into potential market extremes and can be particularly useful for identifying possible overbought or oversold conditions.
** Functionality **:
- ** Dynamic Price Exaggeration **: This script applies a range of multipliers to the closing price to generate several projected price levels. These levels are plotted as lines on the chart, helping traders visualize potential future price extremes beyond typical market ranges.
- ** Highly Customizable **: Users can adjust multipliers, select different source prices (like open, high, low), and choose colors to match their trading strategies and preferences.
- ** Real-Time Updates **: The plotted levels update in real-time, reflecting the latest market conditions and providing an ongoing perspective on potential price extremes.
** Detailed Inputs and Configuration **:
1. ** Multiplier Settings **:
- ** Purpose **: Adjusts the degree of price exaggeration to visualize potential extreme price levels.
- ** Inputs **:
- **Multiplier 1**: Default 0.9 (90% of the source price)
- **Multiplier 2**: Default 0.8 (80% of the source price)
- **Multiplier 3**: Default 1.1 (110% of the source price)
- **Multiplier 4**: Default 1.2 (120% of the source price)
- **Multiplier 5**: Default 1.5 (150% of the source price)
- ** Impact **: Higher multipliers show more distant potential levels, indicating possible resistance or support at extreme levels. Lower multipliers highlight nearer levels, suggesting smaller potential movements.
2. ** Source Price Selection **:
- ** Purpose **: Determines the base data for calculating exaggerated price levels.
- **Inputs**:
- **Source 1**: Default is closing price (can be customized)
- **Source 2**: Default is closing price
- **Source 3**: Default is closing price
- **Source 4**: Default is closing price
- **Source 5**: Default is closing price
- ** Customization **: Users can select various sources (e.g., open, high, low) for each multiplier, tailoring the tool to their analytical needs.
3. ** Color Customization **:
- ** Purpose **: Enhances visual clarity by distinguishing between different exaggerated levels.
- **Inputs**:
- **Color 1**: Default red
- **Color 2**: Default blue
- **Color 3**: Default green
- **Color 4**: Default orange
- **Color 5**: Default purple
- ** Customization **: Colors can be adjusted to fit user preferences and chart color schemes.
4. ** Plotting the Lines **:
- ** Purpose **: Provides a visual representation of potential future price extremes on the chart.
- ** Implementation **: Lines are plotted based on the selected multipliers and source prices, offering a clear view of potential price scenarios.
** Using the Script for Market Analysis **:
1. ** Identifying Overbought Conditions **:
- ** Method **: Observe exaggerated price levels above the current market price. Approaching or exceeding higher multiplier levels may indicate overbought conditions.
- ** Analysis **: These levels can act as potential resistance zones where price reversals or consolidations might occur.
2. ** Spotting Oversold Conditions **:
- ** Method **: Observe exaggerated price levels below the current market price. If the price approaches or falls below lower multiplier levels, it may suggest oversold conditions.
- ** Analysis **: These levels might serve as support zones where price bounces or stabilization could happen.
3. ** Detecting Smaller Movements **:
- **Detailed Examination**: Lower multiplier levels can highlight minor support and resistance levels, useful for traders focusing on smaller price fluctuations.
- ** Fine-Tuning **: Adjust multipliers to zoom in on specific price ranges and better detect small market movements.
** How to Use the Script **:
1. ** Add the Script to Your Chart **:
- Scroll to the bottom of this description and right where there is the source code, click ' Add to Favourites ' - Now you can go to a chart, go to your ' favorites ', and you will find it there.
2. ** Configure Inputs **:
- Click the gear icon next to the script in the indicators panel to open settings.
- Adjust multipliers, source prices, and colors according to your analysis needs.
3. ** Interpret the Levels **:
- Analyze the plotted levels to assess potential overbought or oversold conditions and identify possible price extremes.
- Combine insights with other indicators and patterns for more informed trading decisions.
** Conceptual Framework **:
The "Uptrick: Price Exaggerator" offers a novel approach to market analysis by exaggerating price levels through dynamic multipliers. This unique method extends beyond conventional indicators, providing traders with a different perspective on potential price movements and market extremes. By customizing inputs and visualizing potential price scenarios, this script enhances market analysis and supports diverse trading strategies.
** Originality and Uniqueness **:
This script stands out by applying dynamic multipliers to the source price, offering a fresh way to anticipate potential market extremes. Unlike standard indicators, which often rely on historical data or statistical methods, the "Uptrick: Price Exaggerator" provides a distinctive view of future price levels. Its customizable features and real-time updates offer traders a flexible tool that can adapt to various market conditions and personal trading styles.
Unleash Bitcoin's Next Move with S&P Divergence!BTC_GO_LONG_SONG
This script works like a special helper that watches two things: Bitcoin (a popular type of digital money) and the S&P 500 (which is like a big basket of important companies' stocks).
Imagine Bitcoin and the S&P 500 are connected by an invisible elastic band.
When they move together: The elastic band stays relaxed.
When they move apart: The elastic band stretches.
This script keeps an eye on how much the elastic band stretches.
If Bitcoin starts to move in a different way than the S&P 500 and the band stretches a lot, the script thinks that Bitcoin might snap back or make a big jump soon.
Here’s how it works:
Volume Check: The script looks at how many people are buying or selling Bitcoin. If a lot more people are trading than usual, it’s like a signal that something big might happen.
Price Movement: It watches how Bitcoin’s price is changing. If Bitcoin breaks away from its usual pattern and moves far from where it was recently, it could be a sign that a big change is coming.
Elastic Band Check: The script checks if Bitcoin is moving differently than the S&P 500. If Bitcoin is doing its own thing while the S&P 500 moves in another direction, it’s like the elastic band is being stretched.
When all these things happen together—high trading volume, unusual price movement, and a stretched elastic band—the script shows a green triangle on the chart.
This triangle is a signal for people who believe Bitcoin might go up (the Bulls) that it could be a good time to think about entering a trade because a breakout might be coming.
This explanation uses the idea of an elastic band to describe the relationship between Bitcoin and the S&P 500, making it easier to understand how this script helps traders spot potential breakout opportunities.
ICT Unicorn | Flux Charts💎 GENERAL OVERVIEW
Introducing our new ICT Unicorn Indicator! This indicator is built around the ICT's "Unicorn" strategy. The strategy uses Breaker Blocks and Fair Value Gaps for entry confirmation. For more information about the process, check the "HOW DOES IT WORK" section.
Features of the new ICT Unicorn Indicator :
Implementation of ICT's Unicorn Strategy
Toggleable Retracement Entry Method
3 Different TP / SL Methods
Customizable Execution Settings
Customizable Backtesting Dashboard
Alerts for Buy, Sell, TP & SL Signals
📌 HOW DOES IT WORK ?
The ICT Unicorn entry model merges the concepts of Breaker Blocks and Fair Value Gaps (FVGs), offering a distinct method for identifying trade opportunities. By integrating these two elements, we can have a position entry with stop-loss and take-profit targets on the potential support & resistance zones. This model is particularly reliable for trade entry, as it combines two powerful entry techniques.
An ICT Unicorn Model consists of a FVG which is overlapping with a Breaker Block of the same type. Here is an example :
When a FVG overlaps with a Breaker Block of the same type, the indicator gives a Buy or Sell signal depending on the FVG type (Bullish & Bearish). If the "Require Retracement" option is enabled in the settings, the signals are not given immediately. Instead, the current price of the ticker will need to touch the FVG once more before the signals are given.
After the Buy or Sell signal, the indicator immediately draws the take-profit (TP) and stop-loss (SL) targets. The indicator has three different TP & SL modes, explained in the "Settings" section of this write-up.
You can set up alerts for entry and TP & SL signals, and also check the current performance of the indicator and adjust the settings accordingly to the current ticker using the backtesting dashboard.
🚩 UNIQUENESS
This indicator is an all-in-one suit for the ICT's Unicorn concept. It's capable of plotting the strategy, giving signals, a backtesting dashboard and alerts feature. Different and customizable algorithm modes will help the trader fine-tune the indicator for the asset they are currently trading. Three different TP / SL modes are available to suit your needs. The backtesting dashboard allows you to see how your settings perform in the current ticker. You can also set up alerts to get informed when the strategy is executable for different tickers.
⚙️ SETTINGS
1. General Configuration
FVG Detection Sensitivity -> You may select between Low, Normal, High or Extreme FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
Swing Length -> Swing length is used when finding order block formations. Smaller values will result in finding smaller order & breaker blocks.
Require Retracement ->
a) Disabled : The entry signal is given immediately once a FVG overlaps with a Breaker Block of the same type.
b) Enabled : The current price of the ticker will need to touch the FVG once more before the entry signal is given.
2. TP / SL
TP / SL Method ->
a) Unicorn : This is the default option. The SL will be set to the lowest low of the last 100 bars with an extra offset in a Buy signal. For Sell signals, the SL will be set to the highest high of the last 100 bars with an extra offset. The TP is then set to a value using the SL value and maintaining a risk-reward ratio.
b) Dynamic: The TP / SL zones will be auto-determined by the algorithm based on the Average True Range (ATR) of the current ticker.
c) Fixed : You can adjust the exact TP / SL ratios from the settings below.
Dynamic Risk -> The risk you're willing to take if "Dynamic" TP / SL Method is selected. Higher risk usually means a better winrate at the cost of losing more if the strategy fails. This setting is has a crucial effect on the performance of the indicator, as different tickers may have different volatility so the indicator may have increased performance when this setting is correctly adjusted.
Intramarket Difference Index StrategyHi Traders !!
The IDI Strategy:
In layman’s terms this strategy compares two indicators across markets and exploits their differences.
note: it is best the two markets are correlated as then we know we are trading a short to long term deviation from both markets' general trend with the assumption both markets will trend again sometime in the future thereby exhausting our trading opportunity.
📍 Import Notes:
This Strategy calculates trade position size independently (i.e. risk per trade is controlled in the user inputs tab), this means that the ‘Order size’ input in the ‘Properties’ tab will have no effect on the strategy. Why ? because this allows us to define custom position size algorithms which we can use to improve our risk management and equity growth over time. Here we have the option to have fixed quantity or fixed percentage of equity ATR (Average True Range) based stops in addition to the turtle trading position size algorithm.
‘Pyramiding’ does not work for this strategy’, similar to the order size input togeling this input will have no effect on the strategy as the strategy explicitly defines the maximum order size to be 1.
This strategy is not perfect, and as of writing of this post I have not traded this algo.
Always take your time to backtests and debug the strategy.
🔷 The IDI Strategy:
By default this strategy pulls data from your current TV chart and then compares it to the base market, be default BINANCE:BTCUSD . The strategy pulls SMA and RSI data from either market (we call this the difference data), standardizes the data (solving the different unit problem across markets) such that it is comparable and then differentiates the data, calling the result of this transformation and difference the Intramarket Difference (ID). The formula for the the ID is
ID = market1_diff_data - market2_diff_data (1)
Where
market(i)_diff_data = diff_data / ATR(j)_market(i)^0.5,
where i = {1, 2} and j = the natural numbers excluding 0
Formula (1) interpretation is the following
When ID > 0: this means the current market outperforms the base market
When ID = 0: Markets are at long run equilibrium
When ID < 0: this means the current market underperforms the base market
To form the strategy we define one of two strategy type’s which are Trend and Mean Revesion respectively.
🔸 Trend Case:
Given the ‘‘Strategy Type’’ is equal to TREND we define a threshold for which if the ID crosses over we go long and if the ID crosses under the negative of the threshold we go short.
The motivating idea is that the ID is an indicator of the two symbols being out of sync, and given we know volatility clustering, momentum and mean reversion of anomalies to be a stylised fact of financial data we can construct a trading premise. Let's first talk more about this premise.
For some markets (cryptocurrency markets - synthetic symbols in TV) the stylised fact of momentum is true, this means that higher momentum is followed by higher momentum, and given we know momentum to be a vector quantity (with magnitude and direction) this momentum can be both positive and negative i.e. when the ID crosses above some threshold we make an assumption it will continue in that direction for some time before executing back to its long run equilibrium of 0 which is a reasonable assumption to make if the market are correlated. For example for the BTCUSD - ETHUSD pair, if the ID > +threshold (inputs for MA and RSI based ID thresholds are found under the ‘‘INTRAMARKET DIFFERENCE INDEX’’ group’), ETHUSD outperforms BTCUSD, we assume the momentum to continue so we go long ETHUSD.
In the standard case we would exit the market when the IDI returns to its long run equilibrium of 0 (for the positive case the ID may return to 0 because ETH’s difference data may have decreased or BTC’s difference data may have increased). However in this strategy we will not define this as our exit condition, why ?
This is because we want to ‘‘let our winners run’’, to achieve this we define a trailing Donchian Channel stop loss (along with a fixed ATR based stop as our volatility proxy). If we were too use the 0 exit the strategy may print a buy signal (ID > +threshold in the simple case, market regimes may be used), return to 0 and then print another buy signal, and this process can loop may times, this high trade frequency means we fail capture the entire market move lowering our profit, furthermore on lower time frames this high trade frequencies mean we pay more transaction costs (due to price slippage, commission and big-ask spread) which means less profit.
By capturing the sum of many momentum moves we are essentially following the trend hence the trend following strategy type.
Here we also print the IDI (with default strategy settings with the MA difference type), we can see that by letting our winners run we may catch many valid momentum moves, that results in a larger final pnl that if we would otherwise exit based on the equilibrium condition(Valid trades are denoted by solid green and red arrows respectively and all other valid trades which occur within the original signal are light green and red small arrows).
another example...
Note: if you would like to plot the IDI separately copy and paste the following code in a new Pine Script indicator template.
indicator("IDI")
// INTRAMARKET INDEX
var string g_idi = "intramarket diffirence index"
ui_index_1 = input.symbol("BINANCE:BTCUSD", title = "Base market", group = g_idi)
// ui_index_2 = input.symbol("BINANCE:ETHUSD", title = "Quote Market", group = g_idi)
type = input.string("MA", title = "Differrencing Series", options = , group = g_idi)
ui_ma_lkb = input.int(24, title = "lookback of ma and volatility scaling constant", group = g_idi)
ui_rsi_lkb = input.int(14, title = "Lookback of RSI", group = g_idi)
ui_atr_lkb = input.int(300, title = "ATR lookback - Normalising value", group = g_idi)
ui_ma_threshold = input.float(5, title = "Threshold of Upward/Downward Trend (MA)", group = g_idi)
ui_rsi_threshold = input.float(20, title = "Threshold of Upward/Downward Trend (RSI)", group = g_idi)
//>>+----------------------------------------------------------------+}
// CUSTOM FUNCTIONS |
//<<+----------------------------------------------------------------+{
// construct UDT (User defined type) containing the IDI (Intramarket Difference Index) source values
// UDT will hold many variables / functions grouped under the UDT
type functions
float Close // close price
float ma // ma of symbol
float rsi // rsi of the asset
float atr // atr of the asset
// the security data
getUDTdata(symbol, malookback, rsilookback, atrlookback) =>
indexHighTF = barstate.isrealtime ? 1 : 0
= request.security(symbol, timeframe = timeframe.period,
expression = [close , // Instentiate UDT variables
ta.sma(close, malookback) ,
ta.rsi(close, rsilookback) ,
ta.atr(atrlookback) ])
data = functions.new(close_, ma_, rsi_, atr_)
data
// Intramerket Difference Index
idi(type, symbol1, malookback, rsilookback, atrlookback, mathreshold, rsithreshold) =>
threshold = float(na)
index1 = getUDTdata(symbol1, malookback, rsilookback, atrlookback)
index2 = getUDTdata(syminfo.tickerid, malookback, rsilookback, atrlookback)
// declare difference variables for both base and quote symbols, conditional on which difference type is selected
var diffindex1 = 0.0, var diffindex2 = 0.0,
// declare Intramarket Difference Index based on series type, note
// if > 0, index 2 outpreforms index 1, buy index 2 (momentum based) until equalibrium
// if < 0, index 2 underpreforms index 1, sell index 1 (momentum based) until equalibrium
// for idi to be valid both series must be stationary and normalised so both series hae he same scale
intramarket_difference = 0.0
if type == "MA"
threshold := mathreshold
diffindex1 := (index1.Close - index1.ma) / math.pow(index1.atr*malookback, 0.5)
diffindex2 := (index2.Close - index2.ma) / math.pow(index2.atr*malookback, 0.5)
intramarket_difference := diffindex2 - diffindex1
else if type == "RSI"
threshold := rsilookback
diffindex1 := index1.rsi
diffindex2 := index2.rsi
intramarket_difference := diffindex2 - diffindex1
//>>+----------------------------------------------------------------+}
// STRATEGY FUNCTIONS CALLS |
//<<+----------------------------------------------------------------+{
// plot the intramarket difference
= idi(type,
ui_index_1,
ui_ma_lkb,
ui_rsi_lkb,
ui_atr_lkb,
ui_ma_threshold,
ui_rsi_threshold)
//>>+----------------------------------------------------------------+}
plot(intramarket_difference, color = color.orange)
hline(type == "MA" ? ui_ma_threshold : ui_rsi_threshold, color = color.green)
hline(type == "MA" ? -ui_ma_threshold : -ui_rsi_threshold, color = color.red)
hline(0)
Note it is possible that after printing a buy the strategy then prints many sell signals before returning to a buy, which again has the same implication (less profit. Potentially because we exit early only for price to continue upwards hence missing the larger "trend"). The image below showcases this cenario and again, by allowing our winner to run we may capture more profit (theoretically).
This should be clear...
🔸 Mean Reversion Case:
We stated prior that mean reversion of anomalies is an standerdies fact of financial data, how can we exploit this ?
We exploit this by normalizing the ID by applying the Ehlers fisher transformation. The transformed data is then assumed to be approximately normally distributed. To form the strategy we employ the same logic as for the z score, if the FT normalized ID > 2.5 (< -2.5) we buy (short). Our exit conditions remain unchanged (fixed ATR stop and trailing Donchian Trailing stop)
🔷 Position Sizing:
If ‘‘Fixed Risk From Initial Balance’’ is toggled true this means we risk a fixed percentage of our initial balance, if false we risk a fixed percentage of our equity (current balance).
Note we also employ a volatility adjusted position sizing formula, the turtle training method which is defined as follows.
Turtle position size = (1/ r * ATR * DV) * C
Where,
r = risk factor coefficient (default is 20)
ATR(j) = risk proxy, over j times steps
DV = Dollar Volatility, where DV = (1/Asset Price) * Capital at Risk
🔷 Risk Management:
Correct money management means we can limit risk and increase reward (theoretically). Here we employ
Max loss and gain per day
Max loss per trade
Max number of consecutive losing trades until trade skip
To read more see the tooltips (info circle).
🔷 Take Profit:
By defualt the script uses a Donchain Channel as a trailing stop and take profit, In addition to this the script defines a fixed ATR stop losses (by defualt, this covers cases where the DC range may be to wide making a fixed ATR stop usefull), ATR take profits however are defined but optional.
ATR SL and TP defined for all trades
🔷 Hurst Regime (Regime Filter):
The Hurst Exponent (H) aims to segment the market into three different states, Trending (H > 0.5), Random Geometric Brownian Motion (H = 0.5) and Mean Reverting / Contrarian (H < 0.5). In my interpretation this can be used as a trend filter that eliminates market noise.
We utilize the trending and mean reverting based states, as extra conditions required for valid trades for both strategy types respectively, in the process increasing our trade entry quality.
🔷 Example model Architecture:
Here is an example of one configuration of this strategy, combining all aspects discussed in this post.
Future Updates
- Automation integration (next update)
Asset Overlay with Lag [CubeT]Asset Overlay with Lag
This indicator allows you to overlay a secondary asset on your main chart with a customizable lag. It's perfect for traders who want to analyze the relationship between the current asset and another asset with a time-shifted perspective. The secondary asset’s price data can be lagged by any number of bars, helping you spot leading or lagging behaviors between assets.
Features:
Overlay a secondary asset on your current chart.
Adjust the lag of the secondary asset to visually compare time-shifted movements.
Easily customize the lag amount directly within the settings.
How to Use:
Add the Indicator: Apply the indicator to your chart in TradingView.
Select the Secondary Asset: Choose the asset you wish to overlay (e.g., "BTC") from the indicator settings.
Set the Lag: Adjust the lag amount in bars (e.g., 7 bars for a 1-week lag on a daily chart).
Adjust Price Scale (Right-click on plotted secondary asset line > Select "Pin to scale" and choose "Pin to new left scale" to separate the scales for clearer comparison.
Price and OI ChangePrice and OI Change
Description:
The "Price and OI Change" indicator provides insights into market dynamics by analyzing the price and open interest (OI) changes over a 7-day period. This indicator is designed for use with both spot and futures markets, including cryptocurrencies.
Key Features:
Price and OI Change Calculation: Computes the 7-day change in price and open interest to help identify market trends and shifts.
Market Conditions Visualization: Differentiates market conditions by changing the background color based on:
Leverage-Driven Market: Blue background indicates increasing prices and OI, suggesting a bullish trend driven by leverage.
Spot-Driven Market: Green background shows increasing prices but decreasing OI, indicating a bullish trend driven by spot market activity.
Leverage Sell-Off: Orange background reveals decreasing prices with increasing OI, signaling a potential liquidation phase.
Deleveraging Sell-Off: Red background reflects decreasing prices and OI, indicating a bearish market with reduced leverage.
Top 3 BTC Futures Average OI: Displays the average open interest for the top 3 BTC futures contracts from major exchanges (Binance, OKX, Bybit). This helps gauge overall market sentiment and liquidity.
Visualization Tools: Includes optional plotting of open interest data and average OI for better visualization of market conditions.
Usage:
Traders and Analysts: Use the background color changes and average OI to make informed decisions about market entry and exit points.
Futures Traders: Track OI changes in major BTC futures to assess market strength and potential liquidity issues.
Flow IndicatorThe Flow Indicator is designed to help you identify potential breakout and reversal points by analysing market momentum, volume, and dynamic price zones. Here's how to effectively use this indicator in your trading:
1. Flow Zones
Flow High: This is the highest high over the specified Period. It acts as a resistance level.
Flow Low: This is the lowest low over the Period. It acts as a support level.
Flow Mid: The midpoint between Flow High and Low, acting as a pivot or balance point for price action.
2. Momentum Flow and Volume Pressure
Momentum: Calculated using the RSI, this helps you gauge the strength of the current price move.
Volume Pressure: The moving average of volume helps you understand the level of market participation.
3. Energy Surge
Energy Surge: This proprietary calculation combines momentum and volume pressure to identify potential "energy surges" in the market. When these surges occur, the market is likely to make a significant move.
Energy Multiplier: This input allows you to adjust the sensitivity of energy surges. Higher values make the indicator less sensitive, while lower values increase sensitivity.
4. Buy and Sell Signals
Buy Signal: A buy signal is generated when an energy surge crosses above the specified energyMultiplier and the price is above the Flow Mid. This indicates potential upward momentum with strong market participation.
Sell Signal: A sell signal is generated when an energy surge crosses above the energyMultiplier and the price is below the Flow Mid. This indicates potential downward momentum with strong market participation.
5. Visual Cues
Flow Zones: The indicator plots the Flow High, Low, and Mid lines on your chart. These help you identify key levels where price action is likely to react.
Energy Surge Histogram: The energy surge is plotted as a histogram, showing when these surges occur.
Background Colours: When a buy signal is generated, the background turns green, indicating a potential buy zone. Similarly, when a sell signal is generated, the background turns red, indicating a potential sell zone.
6. Practical Application
Trend Continuation: Use buy signals when the price is above the Flow Mid and the market is in an uptrend. Similarly, use sell signals when the price is below the Flow Mid and the market is in a downtrend.
Reversals: If a signal occurs near the Flow High or Low, it could indicate a reversal. For instance, if a buy signal is generated near the Flow Low, it could signal a reversal from a support level.
Breakouts: Watch for signals that occur as the price breaks through the Flow High or Low. These can indicate strong breakout opportunities.
7. Customisation
Flow Period: Adjust this setting to change the sensitivity of the Flow Zones. Shorter periods will react more quickly to recent price changes, while longer periods will provide more stable zones.
Momentum Period: This controls the sensitivity of the RSI-based momentum calculation. Shorter periods react faster, while longer periods smooth out the momentum.
Volume Period: This setting controls how the volume pressure is calculated. Adjust it based on the timeframe and market you're trading.
Energy Multiplier: Customise this to fine-tune the energy surge signals. Higher multipliers filter out weaker surges, focusing only on the strongest movements.
Combined EMA, SMMA, and 60-Day Cycle Indicator V2What This Script Does:
This script is designed to help traders visualize market trends and generate trading signals based on a combination of moving averages and price action. Here's a breakdown of its components and functionality:
Moving Averages:
EMAs (Exponential Moving Averages): These are indicators that smooth out price data to help identify trends. The script uses several EMAs:
200 EMA: A long-term trend indicator.
400 EMA: An even longer-term trend indicator.
55 EMA: A medium-term trend indicator.
89 EMA: Another medium-term trend indicator.
SMMA (Smoothed Moving Average): Similar to EMAs but with different smoothing. The script calculates:
21 SMMA: Short-term smoothed average.
9 SMMA: Very short-term smoothed average.
Cycle High and Low:
60-Day Cycle: The script looks back over the past 60 days to find the highest price (cycle high) and the lowest price (cycle low). These are plotted as horizontal lines on the chart.
Color-Coded Clouds:
Clouds: The script fills the area between certain EMAs with color-coded clouds to visually indicate trend conditions:
200 EMA vs. 400 EMA Cloud: Green when the 200 EMA is above the 400 EMA (bullish trend) and red when it’s below (bearish trend).
21 SMMA vs. 9 SMMA Cloud: Orange when the 21 SMMA is above the 9 SMMA and green when it’s below.
55 EMA vs. 89 EMA Cloud: Light green when the 55 EMA is above the 89 EMA and red when it’s below.
Trading Signals:
Buy Signal: This is shown when:
The price crosses above the 60-day low and
The EMAs indicate a bullish trend (e.g., the 200 EMA is above the 400 EMA and the 55 EMA is above the 89 EMA).
Sell Signal: This is shown when:
The price crosses below the 60-day high and
The EMAs indicate a bearish trend (e.g., the 200 EMA is below the 400 EMA and the 55 EMA is below the 89 EMA).
How It Helps Traders:
Trend Visualization: The colored clouds and EMA lines help you quickly see whether the market is in a bullish or bearish phase.
Trading Signals: The script provides clear visual signals (buy and sell labels) based on specific market conditions, helping you make more informed trading decisions.
In summary, this script combines several tools to help identify market trends and provide buy and sell signals based on price action relative to a 60-day high/low and the positioning of moving averages. It’s a useful tool for traders looking to visualize trends and automate some aspects of their trading strategy.
Viking Fun PredictОсобая благодарность за оригинальную идею Александру Горчакову
Индикатор предсказывает вырастет или упадет цена на следующей свече
Индикатор отображает красные или зеленые кружки над каждой из свечей
Зеленый кружок прогноз роста
Красный кружок прогноз падения
Индикатор выдает прогноз для шестой свечи на основе пяти свечей
Индикатор берет цены максимумов и минимумов пяти свечей и усредняет их, получая 5 значений. На основе полученных 5 значений строится линейная регрессия
Если линия линейной регрессии возрастает, то индикатор прогнозирует рост (зеленый кружок)
Если линия линейной регрессии возрастает, то индикатор прогнозирует падение (красный кружок)
Компания Викинг предоставляет профессиональный сервис, позволяющий реализовать арбитражные стратегии и маркет-мейкинг, осуществляет обучение трейдеров-арбитражеров.
---------------------------
Special thanks for the original idea to Alexander Gorchakov
The indicator predicts whether the price will rise or fall on the next candle
The indicator displays red or green circles above each of the candles
Green circle growth forecast
Red circle forecast of the fall
The indicator gives a forecast for the sixth candle based on five candles
The indicator takes the prices of the highs and lows of five candles and averages them, getting 5 values. Based on the obtained 5 values, a linear regression is constructed
If the linear regression line increases, the indicator predicts growth (green circle)
If the linear regression line increases, the indicator predicts a fall (red circle)
Viking provides a professional service that allows you to implement arbitrage strategies and market making, and provides training for arbitrage traders.