Bidirectional Trend Reversal StrategyBidirectional Trend Reversal Strategy
This strategy aims to identify potential trend reversals and execute trades accordingly, focusing on both long and short positions. It uses a crossover of the Simple Moving Average (SMA) with price action as a key signal. When the price crosses above the SMA and the previous period was bearish (closed lower than it opened), the script opens a long position ("o-Long"). The exit ("e-Long") occurs when the target or stop-loss levels are hit, which are dynamically set using the ATR (Average True Range).
For short trades, when the price crosses below the SMA and the previous period was bullish (closed higher than it opened), the script opens a short position ("o-Short"). The exit ("e-Short") follows the same ATR-based logic for stop-loss and take-profit.
All settings, including SMA and ATR parameters, are fully customizable, allowing users to adapt the strategy to different market conditions and personal trading preferences.
This approach provides a systematic way to capture trend reversals and manage trades with clear entry and exit signals based on market momentum and volatility.
Example Setup:
Market: Forex
Pair: USD/GBP
Order size: 100,000 Contracts (1 Lot)
Timeframe: 15 minutes
SMA: 93
ATR Length: 15
Stop-Loss (ATR Multiplier): 7
Take-Profit Multiplier: 2
Experiment with different settings to achieve the best results for your trading style and market conditions.
Trend Analysis
Parabolic SAR Crosses_AITIndicator Name: Parabolic SAR Crosses_AIT
Purpose:
This indicator utilizes the Parabolic SAR to track price trends and generate buy (long) and sell (short) signals when the price crosses the Parabolic SAR line. The indicator is designed to help traders identify trend direction and potential trend reversals on the price chart.
Indicator Overview:
Indicator Parameters:
Parabolic SAR: The default settings for the Parabolic SAR are:
Step: 0.02
Maximum: 0.2 These values can be adjusted by the user to control the sensitivity of the SAR.
Signal Conditions:
Buy Signal (Long): A buy signal is generated when the price crosses above the Parabolic SAR line.
Sell Signal (Short): A sell signal is generated when the price crosses below the Parabolic SAR line.
How It Works:
Buy Signal:
When the price crosses above the Parabolic SAR line, it indicates a potential upward trend. A yellow triangle (L) will appear below the price bar, signaling a possible long entry.
Sell Signal:
When the price crosses below the Parabolic SAR line, it indicates a potential downward trend. A fuchsia triangle (S) will appear above the price bar, signaling a possible short entry.
Trend Detection:
Green Line: Indicates that the Parabolic SAR is below the price, suggesting an uptrend.
Red Line: Indicates that the Parabolic SAR is above the price, suggesting a downtrend.
Trend Reversal:
A trend reversal occurs when the Parabolic SAR switches positions relative to the price. This can be used to exit positions or enter positions in the opposite direction.
Customization:
Step Size: The step parameter controls how sensitive the Parabolic SAR is to price changes. A smaller step value (e.g., 0.01) makes the SAR less sensitive, while a larger step value (e.g., 0.05) makes it more sensitive.
Maximum: The maximum value defines the upper limit for the acceleration factor in the SAR calculation. A higher value allows the SAR to track the price more closely, while a lower value smooths the trend.
Visual Representation:
The Parabolic SAR line is plotted directly on the price chart as a solid line, using the appropriate colors (green or red) depending on the trend direction.
Long signals are indicated by small yellow triangles (L) below the price.
Short signals are indicated by small fuchsia triangles (S) above the price.
Usage Tips:
Combining with Other Indicators: While Parabolic SAR is a great tool for identifying trend direction, it may produce false signals in ranging or sideways markets. Combining this indicator with other trend confirmation tools, such as moving averages or the MACD, can improve its reliability.
Adjusting the Step and Maximum Values: In highly volatile markets, it might be useful to reduce the step value to avoid false signals. In more stable, trending markets, increasing the step value can make the SAR more responsive.
Position Management: Parabolic SAR can be used not only to enter trades but also to manage existing positions by acting as a trailing stop-loss. You can use the SAR value as a dynamic stop-loss level, adjusting it as the trend progresses.
Conclusion:
The Parabolic SAR Crosses_AIT indicator helps traders visually identify trend directions and possible trend reversals by plotting the Parabolic SAR directly on the price chart. With customizable settings for sensitivity and signals that indicate long or short positions, this indicator provides a clear and effective method to manage trades based on trend-following strategies.
Yesterday's Levels with 50% wick and Equilibrium## Script Description
This Pine Script indicator highlights key levels from the previous day’s daily candle on any timeframe chart. It focuses exclusively on marking the following:
1. **Previous Day’s High, Low, Open, and Close**:
- Horizontal lines are drawn to indicate the previous day's high, low, open, and close prices.
- These lines are white and extend across the chart.
2. **50% of Candle Wicks**:
- If the previous day’s candle has wicks, two additional lines mark 50% of the top wick and 50% of the bottom wick.
- These lines are green and dotted, representing half the wick’s height.
3. **Equilibrium (50% of the Full Candle)**:
- A horizontal red line marks the midpoint (equilibrium) of the entire previous day’s candle, from high to low.
- This line is thicker than the others to emphasize the equilibrium level.
The script works by focusing only on the previous day’s daily candle, ensuring that it doesn’t plot lines for any older candles. These levels are visible on all timeframes.
Bull Bear Power With EMA FilterDescription of Indicator:
This Pine Script indicator colors price bars based on the open price in relation to custom moving averages (EMA/SMA), Bull/Bear Power (BBPower), and an optional VWAP filter. The bar colors help identify bullish and bearish conditions with added visual cues for price positioning relative to VWAP.
Key Features:
Customizable Moving Averages (EMA/SMA):
The user can select between EMA or SMA for both short-term and long-term moving averages.
Default moving averages are set to 5 (short-term) and 9 (long-term) but can be adjusted by the user.
Bullish Condition (Blue or Purple Bars):
A bar is colored blue if the following conditions are met:
The open price is above both the short-term and long-term moving averages.
The short-term moving average (MA 1) is above the long-term moving average (MA 2).
BBPower (open price minus the 13-period EMA) is positive, indicating bullish strength.
If the VWAP filter is enabled and the price opens below VWAP, the bullish bars will turn purple.
Bearish Condition (Yellow or Orange Bars):
A bar is colored yellow if the following conditions are met:
The open price is below both the short-term and long-term moving averages.
The short-term moving average (MA 1) is below the long-term moving average (MA 2).
BBPower is negative or zero, indicating bearish market conditions.
If the VWAP filter is enabled and the price opens above VWAP, the bearish bars will turn orange.
VWAP Filter (Optional):
An optional filter allows the user to add VWAP (Volume-Weighted Average Price) to the bar coloring logic.
When the VWAP filter is enabled, it provides additional information about price positioning relative to VWAP, turning bullish bars purple and bearish bars orange depending on whether the price opens above or below VWAP.
Usage:
Bullish Trend: Look for blue or purple bars to identify potential bullish momentum.
Bearish Trend: Look for yellow or orange bars to spot bearish conditions in the market.
The indicator allows users to customize the length and type of moving averages (EMA or SMA), as well as decide whether to apply the VWAP filter.
This indicator provides traders with clear visual signals to quickly assess the strength of bullish or bearish conditions based on the price's position relative to custom moving averages, BBPower, and VWAP, helping with trend identification and potential trade setups.
VIX Composite MeterThe VIX Composite Meter is a custom trading indicator designed to help identify potential buy and sell signals based on market volatility, specifically through VIX options. The VIX, also known as the "fear gauge," measures market expectations of future volatility. This meter combines several factors — the VIX-to-SPX ratio, moving average deviation, Z-score, and momentum oscillators — to create a single, easy-to-read score that guides trading decisions.
How It Works
Composite Score: The meter calculates a composite score that ranges from 0 to 1 by weighing four metrics:
VIX/SPX Ratio: Indicates relative volatility compared to the S&P 500.
Moving Average Deviation: Shows how far the VIX is from its typical range.
Z-Score: Measures how extreme the current VIX value is relative to its historical average.
Momentum Oscillator (RSI): Helps identify overbought or oversold conditions in the VIX.
Color-Coded Signals:
Green Background: If the score drops below 0.3, the meter suggests buying VIX calls, indicating a low-volatility environment with potential for increase.
Red Background: If the score rises above 0.7, the meter suggests buying VIX puts, indicating a high-volatility environment likely to decrease.
Use Cases
Buy VIX Calls: When the meter turns green, signaling potential future volatility spikes.
Buy VIX Puts: When the meter turns red, suggesting current high volatility is expected to revert lower.
By using the VIX Composite Meter, traders can better time their entries and exits in VIX options, aligning with market conditions for potential profits in periods of changing volatility.
Hull MA with Alerts and LabelsThis script is designed to help traders visually track market trends using various types of moving averages (MAs) and to receive alerts when certain conditions are met. Here’s a detailed breakdown of how the script works:
1. User Inputs and Customization:
MA Length: Traders can define the length of the moving average (default is 100).
Confirmation Candles: The trader can specify how many candles must confirm a trend before the script triggers a signal (default is 1).
MA Variation: The trader can choose between different moving average types: Simple Moving Average (SMA), Exponential Moving Average (EMA), Weighted Moving Average (WMA), or Hull Moving Average (HMA).
Source: Traders select the price source for the moving average calculation (e.g., close price).
Ribbon Transparency: Allows control over the transparency level of the ribbon plotted between the moving averages.
Bullish/Bearish Ribbon Colors: The user can choose the colors for bullish and bearish trends.
2. Moving Average Calculations:
The script provides multiple options for calculating moving averages:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
HMA (Hull Moving Average)
For the Hull Moving Average (HMA), it uses a specific formula that smoothens the movement and reduces lag, which is helpful for more reactive trend detection.
3. Plotting Moving Averages and Trend Ribbon:
The script calculates two key moving averages:
MHULL: The main moving average, selected based on the user’s chosen MA variation and source.
SHULL: A shifted version of the MHULL to help compare trends (shifted by 2 bars).
These two moving averages are plotted on the chart for visualization. MHULL is plotted in green (or another color if changed), while SHULL is plotted in red. A ribbon is drawn between MHULL and SHULL to indicate trends visually. The ribbon changes color depending on whether the trend is bullish (MHULL > SHULL) or bearish (MHULL < SHULL). The ribbon’s transparency can be adjusted for visual clarity.
4. Trend Detection:
Bullish Trend: The script checks if the price has closed above MHULL for the defined number of confirmation candles. If confirmed, a bullish trend is detected.
Bearish Trend: Similarly, the script checks if the price has closed below SHULL for the confirmation period, indicating a bearish trend.
The script tracks whether the market is in a bullish or bearish trend and prevents repeated signals by remembering the current trend state.
5. Alerts and Labels:
Bullish Alerts and Labels: When a confirmed bullish trend is detected (i.e., price closes above MHULL for the entire confirmation period and MHULL > SHULL), the script triggers an alert notifying the trader of the bullish condition. A "BULLISH" label is placed on the chart near the low of the candle where the trend was confirmed.
Bearish Alerts and Labels: If a confirmed bearish trend is detected (i.e., price closes below SHULL for the confirmation period and MHULL < SHULL), the script triggers an alert for the bearish condition. A "BEARISH" label is placed on the chart near the high of the candle where the trend was confirmed.
These alerts and labels help traders act quickly on trend changes and align their trading strategy with market conditions.
6. Practical Use for Traders:
For traders, this script offers:
Customizability : It allows traders to define the length and type of moving averages, choose price sources, and control how signals are confirmed.
Visual Trend Representation : The plotted MA lines and colored ribbons help traders easily see market direction.
Early Warnings : With alerts and labels, the script gives traders early signals when trends are shifting, allowing them to adjust positions accordingly.
Trend Confirmation : The script waits for a user-defined number of confirmation candles before signaling a new trend, reducing false signals.
Overall, the script helps traders automate their strategy by tracking moving averages and alerting them when key trend conditions are met.
Color Coded RSI [Phantom]Color Coded RSI
The Color Coded RSI enhances the standard RSI (Relative Strength Index) by applying dynamic color coding to the price bars, making it easier to visualize RSI levels directly on the chart.
Key Feature:
RSI-Based Color Coding: Price bars change color based on RSI values. High RSI values (above 70) show warm colors (red/orange), signaling potential overbought conditions, while low RSI values (below 30) display cool colors (blue), indicating possible oversold levels.
How to Trade with Color Coded RSI:
Overbought (Red/Orange Bars):
When the bars turn red or orange (RSI above 70), the market might be overbought. This could be a signal to sell or exit long positions, expecting a pullback.
Oversold (Blue Bars):
Blue bars (RSI below 30) suggest the market is oversold. Look for buying opportunities or consider exiting short positions, anticipating a rebound.
Neutral (Gray/Green Bars):
Gray or green bars (RSI near 50) indicate neutral conditions. You may want to wait for a clearer trend before taking action.
RSI is best used with other indicators to provide confirmations.
Pure Price Action ICT Tools [LuxAlgo]The Pure Price Action ICT Tools indicator is designed for pure price action analysis, automatically identifying real-time market structures, liquidity levels, order & breaker blocks, and liquidity voids.
Its unique feature lies in its exclusive reliance on price patterns, without being constrained by any user-defined inputs, ensuring a robust and objective analysis of market dynamics.
🔶 MARKET STRUCTURES
A Market Structure Shift, also known as a Change of Character (CHoCH), is a pivotal event in price action analysis indicating a potential change in market sentiment or direction. An MSS occurs when the price reverses from an established trend, signaling that the prevailing trend may be losing momentum and a reversal might be underway. This shift is often identified by key technical patterns, such as a higher low in a downtrend or a lower high in an uptrend, which indicate a weakening of the current trend's strength.
A Break of Structure typically indicates the continuation of the current market trend. This event occurs when the price decisively moves beyond a previous swing high or low, confirming the strength of the prevailing trend. In an uptrend, a BOS is marked by the price breaking above a previous high, while in a downtrend, it is identified by the price breaking below a previous low.
While a Market Structure Shift (MSS) can indicate a potential trend reversal and a Break of Structure (BOS) often confirms trend continuation, they do not assure a complete reversal or continuation. MSS and BOS levels can also function as liquidity zones or areas of price consolidation rather than definitively signaling a change in market direction. Traders should approach these signals cautiously and validate them with additional factors before making trading decisions. For further details on other components of the tool, please refer to the following sections.
🔶 ORDER & BREAKER BLOCKS
Order and Breaker Blocks are key concepts in price action analysis that help traders identify significant levels in the market structure.
Order Blocks are specific price zones where significant buying or selling activity has occurred. These zones often represent the actions of large institutional traders or market makers, who execute substantial orders that impact the market.
Breaker Blocks are specific price zones where a strong reversal occurs, causing a break in the prevailing market structure. These blocks indicate areas where the price encountered significant resistance or support, leading to a reversal.
In summary, Order and Breaker Blocks are essential tools in price action analysis, providing insights into significant market levels influenced by institutional trading activities. These blocks help traders make informed decisions about potential support and resistance levels, trend reversals, and breakout confirmations.
🔶 BUYSIDE & SELLSIDE LIQUIDITY
Both buy-side and sell-side liquidity zones are critical for identifying potential turning points in the market. These zones are where significant buying or selling interest is concentrated, influencing future price movements.
In summary, buy-side and sell-side liquidity provide crucial insights into market demand and supply dynamics, helping traders make informed decisions based on the availability of orders at different price levels.
🔶 LIQUIDITY VOIDS
Liquidity voids are gaps or areas on a price chart where there is a lack of trading activity. These voids represent zones with minimal to no buy or sell orders, often resulting in sharp price movements when the market enters these areas.
In summary, liquidity voids are crucial areas on a price chart characterized by a lack of trading activity. These voids can lead to rapid price movements and increased volatility, making them essential considerations for traders in their analysis and decision-making processes.
🔶 SWING POINTS
Reversal price points are commonly referred to as swing points. Traders often analyze historical swing points to discern market trends and pinpoint potential trade entry and exit points.
Do note that in this script these are subject to backpainting, that is they are not located where they are detected.
The detection of swing points and the unique feature of this script rely exclusively on price action, eliminating the need for numerical user-defined settings. The process begins with detecting short-term swing points:
Short-Term Swing High (STH): Identified as a price peak surrounded by lower highs on both sides.
Short-Term Swing Low (STL): Recognized as a price trough surrounded by higher lows on both sides.
Intermediate-term and long-term swing points are detected using the same approach but with a slight modification. Instead of directly analyzing price candles, previously detected short-term swing points are utilized. For intermediate-term swing points, short-term swing points are analyzed, while for long-term swing points, intermediate-term ones are used.
This method ensures a robust and objective analysis of market dynamics, offering traders reliable insights into market structures. Detected swing points serve as the foundation for identifying market structures, buy-side/sell-side liquidity levels, and order and breaker blocks presented with this tool.
In summary, swing points are essential elements in technical analysis, helping traders identify trends, support, and resistance levels, and optimal entry and exit points. Understanding swing points allows traders to make informed decisions based on the natural price movements in the market.
🔶 SETTINGS
🔹 Market Structures
Market Structures: Toggles the visibility of the market structures, both shifts and breaks.
Detection: An option that allows users to detect market structures based on the significance of swing levels, including short-term, intermediate-term, and long-term.
Market Structure Labels: Controls the visibility of labels that highlight the type of market structure.
Line Style: Customizes the style of the lines representing the market structure.
🔹 Order & Breaker Blocks
Order & Breaker Blocks: Toggles the visibility of the order & breaker blocks.
Detection: An option that allows users to detect order & breaker blocks based on the significance of swing levels, including short-term, intermediate-term, and long-term.
Last Bullish Blocks: Number of the most recent bullish order/breaker blocks to display on the chart.
Last Bearish Blocks: Number of the most recent bearish order/breaker blocks to display on the chart.
Use Candle Body: Allows users to use candle bodies as order block areas instead of the full candle range.
🔹 Buyside & Sellside Liquidity
Buyside & Sellside Liquidity: Toggles the visibility of the buyside & sellside liquidity levels.
Detection: An option that allows users to detect buy-side & sell-side liquidity based on the significance of swing levels, including short-term, intermediate-term, and long-term.
Margin: Sets margin/sensitivity for a liquidity level detection.
Visible Levels: Controls the amount of the liquidity levels/zones to be visualized.
🔹 Liquidity Voids
Liquidity Voids: Enable display of both bullish and bearish liquidity voids.
Threshold Multiplier: Defines the multiplier for the threshold, which is hard-coded to the 200-period ATR range.
Mode: Controls the lookback length for detection and visualization. Present considers the last X bars specified in the option, while Historical includes all available data.
Label: Enable display of a label indicating liquidity voids.
🔹 Swing Highs/Lows
Swing Highs/Lows: Toggles the visibility of the swing levels.
Detection: An option that allows users to detect swing levels based on the significance of swing levels, including short-term, intermediate-term, and long-term.
Label Size: Control the size of swing level labels.
🔶 RELATED SCRIPTS
Pure-Price-Action-Structures.
Market-Structures-(Intrabar).
Buyside-Sellside-Liquidity.
Order-Breaker-Blocks.
[DarkTrader] Past & Future LevelThis indicator plots key pivot levels for each trading day, helping you visualize significant price levels and their potential impact on future price action.
Displays five crucial pivot levels for the current day :
High Pivot: The highest price level of the previous day.
Mid Pivot: The midpoint between the previous day's high and low.
Low Pivot: The lowest price level of the previous day.
75% Pivot: A level calculated as 75% of the range between the previous day's high and low.
25% Pivot: A level calculated as 25% of the range between the previous day's high and low.
Customizable Display :
Show Only Last Pivot: Choose whether to display only the most recent pivot levels or all available levels.
Show Price Level: Option to display the exact price value next to each pivot line.
Line Width and Color: Customize the width and color of the pivot lines and labels for better visibility and clarity.
How It Works :
The indicator calculates the daily high and low at the start of each trading day and plots the key pivot levels based on these values. The lines and labels are updated dynamically to reflect the current bar’s position, ensuring accurate and real-time representation of important price levels.
Usage :
Utilize these pivot levels to identify potential support and resistance areas, assess market sentiment, and make informed trading decisions. The levels provide a clear visual reference for possible price action, aiding in the development of effective trading strategies.
Dynamic Touch Trendlines [QuantVue]The Dynamic Touch Trendlines (DTT) indicator automatically draws and manages trendlines on your chart, helping traders identify key support and resistance levels.
What sets the DTT indicator apart from other trendline indicators is its ability to let traders customize the number of touches required to validate a trendline. This flexibility allows you to fine-tune the indicator for different markets or trading styles, ensuring only strong trendlines with the specified number of touches are considered valid.
This indicator features both uptrend lines (drawn from pivot lows) and downtrend lines (drawn from pivot highs), making it suitable for detecting bullish and bearish trends.
An uptrend line connects three (default setting) or more significant lows, showing where price has historically found support. Traders often look for price to bounce off this line during pullbacks in an uptrend.
When price breaks below an uptrend line, it suggests a weakening of the bullish trend. This could mean that buyers are losing strength, and the market may be transitioning into a bearish phase, providing a potential opportunity for traders to enter short positions or exit long positions.
Conversely, a downtrend line connects three (default setting) or more significant highs, indicating potential resistance in a downtrend. Price action below this line can signal continued bearish momentum.
When price breaks above a downtrend line, it indicates a potential reversal of the bearish trend. This can signal the end of selling pressure and the beginning of a new bullish phase, offering traders a potential opportunity to enter long positions.
Key settings:
Minimum Touches: This sets the number of price touches required to validate a trendline. Increasing the minimum touches filters out weaker trends, ensuring that only more reliable trendlines are drawn.
Buffer: The buffer is used to account for minor price overshoots or near misses relative to the trendline. It creates a margin around the trendline, allowing price to come close to the line—whether it overshoots slightly or falls just short—and still count as a valid touch. This helps ensure that small price fluctuations or market noise don’t prevent valid trendline touches from being recognized, making the trendlines more reliable.
Trendline Break Source: Allows traders to define how a trendline is considered broken—either based on the close of the price bar or the wicks (highs and lows) of the price action.
The DTT indicator also features alerts whenever a new trendline is detected or an existing trendline is broken!
Dynamic ConfluenceThe Dynamic MA Confluence Indicator is a powerful tool designed to simplify your trading experience by automatically identifying the most influential moving average (MA) lengths on your chart. Whether you're using Simple Moving Averages (SMA) or Exponential Moving Averages (EMA), this indicator helps you pinpoint the MA length that holds the greatest confluence, allowing you to make informed trading decisions with ease.
How It Works:
This indicator analyzes a wide range of moving averages, from short-term to long-term, to determine which ones are closest to each other. By setting a "Proximity Percentage," you can control how close these MAs need to be to be considered as having confluence. The indicator then calculates the average of these close MAs to establish a dynamic support or resistance level on your chart.
Why Use This Indicator?
Automatic Optimization: Unsure of which MA length to apply? The indicator automatically highlights the MA length with the most confluence, giving you a clear edge in identifying significant market levels.
Adaptability: Choose between SMA and EMA to suit your trading strategy and market conditions.
Enhanced Decision-Making: By focusing on the MA length with the greatest influence, you can better anticipate market movements and adjust your strategies accordingly.
Customizable Sensitivity: Adjust the Proximity Percentage to fine-tune the indicator's sensitivity, ensuring it aligns with your trading preferences.
Key Feature:
Current Key Confluence MA Length: Displayed in an optional table, this feature shows the MA length that currently has the most impact on the confluence level, providing you with actionable insights at a glance.
Whether you're a seasoned trader or just starting, the Dynamic MA Confluence Indicator offers a streamlined approach to understanding market dynamics, helping you trade smarter and with more confidence. This presentation text is designed to clearly communicate the purpose, functionality, and benefits of the indicator, making it easy for users to understand its value and how it can enhance their trading strategies.
The Dynamic MA Confluence Indicator is a tool designed to assist traders in analyzing market trends. It should not be considered as financial advice or a guarantee of future performance. Trading involves significant risk, and it is possible to lose more than your initial investment. Users should conduct their own research and consider their financial situation before making trading decisions. Always consult with a financial advisor if you are unsure about any trading strategies or decisions. This disclaimer is intended to remind users of the inherent risks in trading and the importance of conducting their own due diligence.
buysellsignal-yashgode9The "buysellsignal-yashgode9" indicator utilizes a signal library to generate buy and sell signals based on price action, allowing traders to make informed decisions in their trading strategies.
Overview of the Indicator
The "buysellsignal-yashgode9" indicator is a technical analysis tool that identifies potential buying and selling points in the market. It does this by leveraging a signal library imported from `yashgode9/signalLib/2`, which contains predefined algorithms for analyzing market trends based on specified parameters.
Key Features
1.Input Parameters: The indicator allows users to customize several parameters:
- Depth: Determines the number of bars to look back for price analysis (default is 150).
- Deviation: Sets the threshold for price movement (default is 120).
- Backstep: Defines how many bars to step back when evaluating signals (default is 100).
- Label Transparency: Adjusts the transparency of labels displayed on the chart.
- Color Customization: Users can specify colors for buy and sell signals.
2.Signal Generation: The core functionality is driven by the `signalLib.signalLib` function, which analyzes the low and high prices over the specified depth and deviation. It returns a direction indicator along with price points (`zee1` and `zee2`) that are used to determine whether to issue a buy or sell signal.
3. Labeling and Visualization:
- The indicator creates labels on the chart to indicate buy and sell points based on the direction of the signal.
- Labels are color-coded according to user-defined settings, enhancing visual clarity.
- The indicator also manages the deletion of previous labels and lines to avoid clutter on the chart.
4. Repainting Logic: The script includes a repainting option, allowing it to update signals in real-time as new price data comes in. This can be beneficial for traders who want to see the most current signals but may also lead to misleading signals if not used cautiously.
Conclusion:-
The "buysellsignal-yashgode9" indicator is a versatile tool for traders looking to enhance their decision-making process by identifying key market entry and exit points. By allowing customization of parameters and colors, it caters to individual trading preferences while providing clear visual signals based on price action analysis. This indicator is particularly useful for those who rely on technical analysis in their trading strategies, as it combines automated signal generation with user-friendly visual cues.
Benefits and Applications:
1.Intraday Trading: The "buysellsignal-yashgode9" indicator is particularly well-suited for intraday trading, as it provides accurate and timely buy and sell signals based on the current market dynamics.
2.Trend-following Strategies: Traders who employ trend-following strategies can leverage the indicator's ability to identify the overall market direction, allowing them to align their trades with the dominant trend.
3.Swing Trading: The dynamic price tracking and signal generation capabilities of the indicator can be beneficial for swing traders, who aim to capture medium-term price movements.
Security Measures:
1. The code includes a security notice at the beginning, indicating that it is subject to the Mozilla Public License 2.0, which is a reputable open-source license.
2. The code does not appear to contain any obvious security vulnerabilities or malicious content that could compromise user data or accounts.
NOTE:- This indicator is provided under the Mozilla Public License 2.0 and is subject to its terms and conditions.
Disclaimer: The usage of "buysellsignal-yashgode9" indicator might or might not contribute to your trading capital(money) profits and losses and the author is not responsible for the same.
IMPORTANT NOTICE:
While the indicator aims to provide reliable buy and sell signals, it is crucial to understand that the market can be influenced by unpredictable events, such as natural disasters, political unrest, changes in monetary policies, or economic crises. These unforeseen situations may occasionally lead to false signals generated by the "buysellsignal-yashgode9" indicator.
Users should exercise caution and diligence when relying on the indicator's signals, as the market's behavior can be unpredictable, and external factors may impact the accuracy of the signals. It is recommended to thoroughly backtest the indicator's performance in various market conditions and to use it as one of the many tools in a comprehensive trading strategy, rather than solely relying on its output.
Ultimately, the success of the "buysellsignal-yashgode9" indicator will depend on the user's ability to adapt it to their specific trading style, market conditions, and risk management approach. Continuous monitoring, analysis, and adjustment of the indicator's settings may be necessary to maintain its effectiveness in the ever-evolving financial markets.
Author:- yashgode9
PineScript-version:- 5
This indicator aims to enhance trading decision-making by combining DEPTH, DEVIATION, BACKSTEP with custom signal generation, offering a comprehensive tool for traders seeking clear buy and sell signals on the TradingView platform.
Hedge Fund D. Multiple | viResearchHedge Fund D. Multiple | viResearch
Conceptual Foundation and Innovation
The "Hedge Fund D. Multiple" indicator from viResearch is designed as a comprehensive tool for trend analysis and volatility synchronization across multiple market components. Central to this tool is the D. Multiple, a unique multiplier that simultaneously controls various moving averages, smoothing factors, and volatility measures, ensuring all components remain synchronized. By adjusting this single multiplier, traders can modify the indicator’s sensitivity and adaptability across different market conditions. This cohesive control system streamlines market analysis, making the tool highly effective in professional settings, such as hedge fund environments where swift adjustments are essential.
This indicator was developed as part of a final project study during my time working at a hedge fund, where precision, flexibility, and the ability to control multiple variables in sync were key. The D. Multiple provides a streamlined mechanism to harmonize various elements, allowing for precise yet adaptable market analysis.
Technical Composition and Calculation
The "Hedge Fund D. Multiple" script utilizes the D. Multiple to influence the behavior of several key components, including the Double Hull Moving Average (DHMA), Double Exponential Moving Average (DEMA), standard deviation, and percentile-based median. By applying the D. Multiple across these components, the script ensures that their calculations and sensitivities are synchronized, creating a unified approach to market trend and volatility analysis.
The DHMA and DEMA, which filter market noise while responding quickly to price changes, are both smoothed using lengths dictated by the D. Multiple. The DEMA's smoothing is further applied to generate a dynamic median based on percentiles, providing a clearer central value from which trend deviations are measured. This dynamic median helps traders spot significant price movements that deviate from normal market behavior, aiding in identifying trend reversals.
The D. Multiple also governs the length of the standard deviation calculations, ensuring that the volatility measurements adjust in step with the trend detection methods. This ensures that the volatility-adjusted boundaries reflect real-time market conditions, providing clear thresholds for price action. The D. Multiple controls all of these elements in sync, ensuring the system operates cohesively across trend, volatility, and smoothing components.
Features and User Inputs
The "Hedge Fund D. Multiple" script is built around the D. Multiple input, which allows traders to control the sensitivity of all components at once. By adjusting this multiplier, users can modify the behavior of the DHMA, DEMA, standard deviation ranges, and percentile-based calculations. Additionally, the script provides custom thresholds for defining trend detection and volatility boundaries, enabling traders to tailor the indicator to their specific trading strategies and market conditions.
Practical Applications
The "Hedge Fund D. Multiple" indicator is particularly valuable for professional traders and hedge fund managers who require an efficient yet powerful tool for analyzing market trends and volatility. The D. Multiple simplifies the process of adjusting multiple parameters simultaneously, giving traders greater control over their analysis. This makes the indicator especially effective for:
Adjusting Sensitivity to Market Conditions: The D. Multiple allows traders to fine-tune the entire system’s sensitivity with a single input, enabling them to switch between short-term and long-term analysis easily.
Trend Detection and Reversal Signals: The dynamic median and volatility-adjusted boundaries help provide clear signals when the market is overbought or oversold, improving the accuracy of trend reversal detection.
Managing Volatility in Sync: The D. Multiple controls the volatility measurements and ensures they are synchronized with the trend detection methods, giving traders a clearer view of the market’s risk profile and helping them time their entries and exits more effectively.
Advantages and Strategic Value
The "Hedge Fund D. Multiple" script offers significant advantages by integrating multiple layers of analysis into a single, adaptable tool. The D. Multiple reduces the complexity of adjusting various moving averages, smoothing processes, and volatility measures, offering traders increased precision and control. This synchronization of components makes the indicator a versatile tool that reacts cohesively to market conditions. Developed during a hedge fund project, this tool reflects the adaptability and precision required in professional trading environments. The ability to control multiple components through a single multiplier makes this script particularly effective for hedge fund managers and professional traders looking for a sophisticated yet manageable system for market analysis.
Alerts and Visual Cues
The script includes built-in alert conditions that notify traders when significant trend shifts occur. The "Hedge Fund D. Multiple Long" alert is triggered when an uptrend is detected, while the "Hedge Fund D. Multiple Short" alert signals a potential downtrend. Visual cues, including color changes and shaded volatility zones on the chart, help traders quickly assess market conditions and make timely decisions.
Summary and Usage Tips
The "Hedge Fund D. Multiple | viResearch" indicator provides a streamlined solution for market analysis by integrating trend detection, volatility management, and dynamic smoothing through the use of the D. Multiple. By incorporating this script into your trading strategy, you can adjust multiple components simultaneously, improving your ability to detect trend reversals and manage risk effectively. The "Hedge Fund D. Multiple" offers a powerful, customizable tool that is particularly suited to professional traders who need precision and adaptability in volatile market environments.
Note: Backtests are based on past results and are not indicative of future performance.
Kenji Indicator Version 2.0KenJi Indicator Version 2.0
Indicator Class : Average analysis/trend following
Trading type : Any
Time frame : Any
Purpose : Trend-based trading
Level of aggressiveness : Flexible
Introduction
The basic rule of trading is as follows: "trend is your friend." Means, it is extremely important to follow the current market sentiments rather than resisting them. Following this principle allows a trader to feel as comfortable as possible during the trading: positions typically are in a profit zone and there is no psychological pressure of a negative financial result that often leads to hasty position closures.
Despite the advantages of trend-following strategies, many traders struggle to accurately identify the prevailing trend and market sentiments, resulting in bad trading decisions and, consequently, unfavorable trading outcomes.
To address these challenges, streamline the analysis process, and enhance the overall quality of trading decisions, our team of analysts has developed The KenJi Indicator Version 2.0.
About the KenJi Indicator Version 2.0
The KenJi Indicator Version 2.0 offers a novel approach to traditional average-based analysis. Many conventional strategies relying on averages tend to generate numerous false signals, especially in “flat” markets where frequent crossovers and shifts in direction are common. This reduces the overall effectiveness of average analysis.
The KenJi Indicator Version 2.0 addresses these issues by incorporating a unique algorithm, which combines correlation and moving average analysis to avoid the pitfalls of traditional methods. It accurately identifies market conditions—indicated by colors: red for a downtrend, blue for an uptrend, and green for a “flat” market—thereby improving the quality of signals and helping traders manage trends more effectively.
The KenJi Indicator Version 2.0 indicator not only identifies optimal entry points but also assists in timing exits for profit-taking. Moreover, it assesses the aggressiveness of signals, making it suitable for both novice and experienced traders.
Trading Rules
Using the KenJi Indicator Version 2.0 is straightforward. When the price enters the buy or sell zone—represented by a blue or red area between the fast and slow averages—it generates a signal to enter a position. This position remains active until the market condition changes (such as a shift from a downtrend to “flat”) or until a close signal appears, indicated by a significant divergence shown by a blue or red cross.
Indicator Structure
The KenJi Indicator Version 2.0 consists of colored zones, level lines and stop crosses:
Trend Zones : These are color-coded (blue, red, or green) to highlight trend conditions and entry points.
Level Lines : The lines indicate the nearest support/resistance lines (red for resistance, blue for support). Available for 4H time-frame and below
Stop Crosses : Blue or Red crosses are displayed on the Chart to show the moments of extreme price divergence from the current trend. A good moment to fix profits.
For ease of use, the indicator shows buy and sell signals directly on the chart.
Signal Types:
Standard : Uses the basic lot size for trades.
Aggressive : Uses double the standard lot size for higher risk/reward trades.
Profit zones are marked by blue/red x-crosses: red x-crosses indicate "sell" take-profit zones, while blue x-crosses indicate "buy" take-profit zones.
Alerts and Notifications
The indicator includes built-in alerts and notifications, ensuring traders don’t miss any "buy" or "sell" signals.
Input Parameters
The KenJi Indicator Version 2.0 offers several input parameters for customization:
Slow Average Period : Defines the period for the slow average. Longer periods provide a more stable, conservative response to price changes.
Fast Average Period : Defines the period for the fast average. Similar to the slow average, a longer period provides more conservative signals.
Correlation Period : Used to calculate the Pearson correlation coefficient and estimate the relationship between the fast and slow averages, improving trend identification.
Divergence Sensitivity : Determines the placement of take-profit zones, with higher values increasing the distance of these zones.
Access to the KenJi Indicator Version 2.0
For more information or to request access to the Kenji 2.0 Indicator, please send inquiries via private messages.
Optimized Heikin Ashi Strategy with Buy/Sell OptionsStrategy Name:
Optimized Heikin Ashi Strategy with Buy/Sell Options
Description:
The Optimized Heikin Ashi Strategy is a trend-following strategy designed to capitalize on market trends by utilizing the smoothness of Heikin Ashi candles. This strategy provides flexible options for trading, allowing users to choose between Buy Only (long-only), Sell Only (short-only), or using both in alternating conditions based on the Heikin Ashi candle signals. The strategy works on any market, but it performs especially well in markets where trends are prevalent, such as cryptocurrency or Forex.
This script offers customizable parameters for the backtest period, Heikin Ashi timeframe, stop loss, and take profit levels, allowing traders to optimize the strategy for their preferred markets or assets.
Key Features:
Trade Type Options:
Buy Only: Enter a long position when a green Heikin Ashi candle appears and exit when a red candle appears.
Sell Only: Enter a short position when a red Heikin Ashi candle appears and exit when a green candle appears.
Stop Loss and Take Profit:
Customizable stop loss and take profit percentages allow for flexible risk management.
The default stop loss is set to 2%, and the default take profit is set to 4%, maintaining a favorable risk/reward ratio.
Heikin Ashi Timeframe:
Traders can select the desired timeframe for Heikin Ashi candle calculation (e.g., 4-hour Heikin Ashi candles for a 1-hour chart).
The strategy smooths out price action and reduces noise, providing clearer signals for entry and exit.
Inputs:
Backtest Start Date / End Date: Specify the period for testing the strategy’s performance.
Heikin Ashi Timeframe: Select the timeframe for Heikin Ashi candle generation. A higher timeframe helps smooth the trend, which is beneficial for trading lower timeframes.
Stop Loss (in %) and Take Profit (in %): Enable or disable stop loss and take profit, and adjust the levels based on market conditions.
Trade Type: Choose between Buy Only or Sell Only based on your market outlook and strategy preference.
Strategy Performance:
In testing with BTC/USD, this strategy performed well in a 4-hour Heikin Ashi timeframe applied on a 1-hour chart over a period from January 1, 2024, to September 12, 2024. The results were as follows:
Initial Capital: 1 USD
Order Size: 100% of equity
Net Profit: +30.74 USD (3,073.52% return)
Percent Profitable: 78.28% of trades were winners.
Profit Factor: 15.825, indicating that the strategy's profitable trades far outweighed its losses.
Max Drawdown: 4.21%, showing low risk exposure relative to the large profit potential.
This strategy is ideal for both beginner and advanced traders who are looking to follow trends and avoid market noise by using Heikin Ashi candles. It is also well-suited for traders who prefer automated risk management through the use of stop loss and take profit levels.
Recommended Use:
Best Markets: This strategy works well on trending markets like cryptocurrency, Forex, or indices.
Timeframes: Works best when applied to lower timeframes (e.g., 1-hour chart) with a higher Heikin Ashi timeframe (e.g., 4-hour candles) to smooth out price action.
Leverage: The strategy performs well with leverage, but users should consider using 2x to 3x leverage to avoid excessive risk and potential liquidation. The strategy's low drawdown allows for moderate leverage use while maintaining risk control.
Customization: Traders can adjust the stop loss and take profit percentages based on their risk appetite and market conditions. A default setting of a 2% stop loss and 4% take profit provides a balanced risk/reward ratio.
Notes:
Risk Management: Traders should enable stop loss and take profit settings to maintain effective risk management and prevent large drawdowns during volatile market conditions.
Optimization: This strategy can be further optimized by adjusting the Heikin Ashi timeframe and risk parameters based on specific market conditions and assets.
Backtesting: The built-in backtesting functionality allows traders to test the strategy across different market conditions and historical data to ensure robustness before applying it to live trading.
How to Apply:
Select your preferred market and chart.
Choose the appropriate Heikin Ashi timeframe based on the chart's timeframe. (e.g., use 4-hour Heikin Ashi candles for 1-hour chart trends).
Adjust stop loss and take profit based on your risk management preference.
Run backtesting to evaluate its performance before applying it in live trading.
This strategy can be further modified and optimized based on personal trading style and market conditions. It’s important to monitor performance regularly and adjust settings as needed to align with market behavior.
9/13/00 Pivots [Rainbow Trends]The 9/13/00 Pivot indicator is a tool that is able to highlight support and resistance levels in relation to the 9, 13 and extended counts of the trending price action. While numerous traders trade the 9/13 counts, this tool is unique in that it continues counting past the 9 level and will mark extended runs coming to an end with a vertical Red or Green Column.
The indicator identifies levels based on both 9,13 and extended counts, but splits them into both Support and Resistance levels and marks each level with a horizontal pivot. The level being Support/Resistance can be determined by the colors of the pivot. In addition, this tool Note that these styles of pivots and colors can be edited in the tool settings.
This calculation is based on the value of the current close compared to the close that happened 4 candles back.
Condition: sequence := close > close
seq := close > close
When this condition is true for 9 or 13 consecutive closes in a row, the indicator will mark the candle with the current number count as well as drawing a horizontal pivot to indicate the importance of the price level.
Sequences
Pivots
Extended Trends Ending/Exhausting
Annotated Chart
Annotated Extended Trends Ending/Exhausting
Scalp Trading Zone
Settings
Toggle Settings - Allows each visual aspect of the indicator to be enabled/disabled.
Pivot Color Settings - Allows the trader to custom tune the colors for their own style.
Candle Settings - The candles are individually marked color wise to visually draw the user's eyes to the change in candle color.
Correlation with AveragesThe "Correlation with Averages" indicator is designed to visualize and analyze the correlation between a selected asset's price and a base symbol's price, such as the S&P 500 (SPY). This indicator allows users to evaluate how closely an asset’s price movements align with those of the base symbol over various time periods, providing insights into market trends and potential portfolio adjustments.
Key Features:
Base Symbol and Correlation Period:
Users can specify the base symbol (default is SPY) and the period for correlation measurement (default is 252 trading days, approximating one year).
Correlation Calculation:
The indicator computes the correlation between the asset’s closing price and the base symbol’s closing price for the defined period.
Visualization:
The correlation value is plotted on the chart, with conditional background colors indicating the strength and direction of the correlation:
Red for negative correlation (below -0.5)
Green for positive correlation (above 0.5)
Yellow for neutral correlation (between -0.5 and 0.5)
Average Correlation Over Time:
Average correlations are calculated and displayed for various periods: one week, one month, one year, and five years.
A table on the chart provides dynamic updates of these average values with color-coded backgrounds to indicate correlation strength.
The Role of Correlation in Portfolio Management
Correlation is a crucial concept in portfolio management because it measures the degree to which two securities move in relation to each other. Understanding correlation helps investors construct diversified portfolios that balance risk and return. Here's why correlation is important:
Diversification:
By including assets with low or negative correlation in a portfolio, investors can reduce overall portfolio volatility and risk. For instance, if one asset is negatively correlated with another, when one performs poorly, the other may perform well, thus smoothing the overall returns.
Risk Management:
Correlation analysis helps in identifying the potential impact of one asset’s performance on the entire portfolio. Assets with high correlation can lead to concentrated risk, while those with low correlation offer better risk management.
Performance Analysis:
Correlation measures the degree to which asset returns move together. This can inform strategic decisions, such as whether to adjust positions based on expected market conditions.
Scientific References
Markowitz, H. M. (1952). "Portfolio Selection." Journal of Finance, 7(1), 77-91.
This foundational paper introduced Modern Portfolio Theory, highlighting the importance of diversification and correlation in reducing portfolio risk.
Jorion, P. (2007). Financial Risk Manager Handbook. Wiley.
This handbook provides an in-depth exploration of risk management techniques, including the use of correlation in portfolio management.
Elton, E. J., Gruber, M. J., Brown, S. J., & Goetzmann, W. N. (2014). Modern Portfolio Theory and Investment Analysis. Wiley.
This book elaborates on the concepts of correlation and diversification, offering practical insights into portfolio construction and risk management.
By utilizing the "Correlation with Averages" indicator, traders and portfolio managers can make informed decisions based on the relationship between asset prices and the base symbol, ultimately enhancing their investment strategies.
First 5-Minute ORB Levels with Hour Offset### Indicator Overview: First 5-Minute ORB Levels with Hour Offset
This indicator is designed for traders who want to track the high and low of the first 5-minute candle of a trading session, specifically starting at 9:30 am EST (New York time) by default. The lines representing these levels, known as the "Opening Range Breakout" (ORB) levels, are extended across the trading session until the market close at 4:00 pm EST. The indicator provides the following features:
1. **Real-Time Updates**:
- As the first 5-minute candle of the session forms (from 9:30 am to 9:35 am EST), the indicator dynamically updates the high and low lines.
- After the candle completes, the lines are locked in place and extend horizontally across the chart until market close.
2. **Customizable Hour Offset**:
- Users can adjust the start time of the session by specifying an hour offset. This feature is particularly useful for traders operating in different time zones or those who want to analyze custom session times.
- For example, if you trade in a time zone where the session starts at 8:30 am local time instead of 9:30 am EST, you can set the hour offset to `-1` to adjust the start time accordingly.
3. **Visual Labels**:
- The indicator places labels at the end of the lines, clearly marking the "5m ORB High" and "5m ORB Low" levels. These labels are updated in real-time as the first 5-minute candle forms and are fixed in place once the candle closes.
### How to Adjust the Settings:
1. **Hour Offset**:
- **Description**: The hour offset allows you to shift the start time of the session. The default start time is 9:30 am EST, but you can change this using the hour offset.
- **How to Adjust**:
- Open the indicator settings.
- Locate the "Hour Offset" field.
- Enter a positive or negative integer value to shift the session start time.
- **Example**:
- `0` (default): Start at 9:30 am EST.
- `-1`: Start at 8:30 am EST.
- `+1`: Start at 10:30 am EST.
- The indicator will then track the first 5-minute candle starting at the adjusted time and plot the high and low accordingly.
2. **Line and Label Appearance**:
- The lines representing the ORB levels are green by default, and the labels are also green with white text for clear visibility on the chart. The labels are positioned to the right of the lines to avoid cluttering the chart.
### Use Cases:
- **Opening Range Breakout Strategy**: Traders often use the ORB strategy to identify potential breakout points during the trading day. By marking the high and low of the first 5-minute candle, this indicator helps traders quickly identify key levels where price might break out or reverse.
- **Custom Session Analysis**: If you trade in a different time zone or need to analyze a different session (e.g., pre-market or after-hours), the hour offset feature allows you to adapt the indicator to your needs.
This indicator is particularly valuable for intraday traders who rely on the initial volatility of the trading session to make informed decisions.
Weighted Closing Price For Loop | viResearchWeighted Closing Price For Loop | viResearch
Conceptual Foundation and Innovation
The "Weighted Closing Price For Loop" indicator from viResearch offers a unique approach to trend analysis by incorporating a weighted average of the closing price into a loop-based scoring system. By giving more weight to the current closing price and less to previous ones, this method emphasizes recent market activity while smoothing out short-term fluctuations. This weighted approach allows traders to better assess the strength of ongoing trends. The For Loop component then evaluates the price movements over a specified range, assigning scores that help traders identify whether the market is in an uptrend or downtrend.
This combination of weighted closing price and loop-based evaluation provides a refined tool for tracking price momentum and assessing trend direction with greater precision.
Technical Composition and Calculation
The "Weighted Closing Price For Loop" script consists of two main components: the weighted closing price and the For Loop scoring system. The weighted closing price is calculated by applying a higher weight (90%) to the current closing price and a lower weight (10%) to the previous closing price, creating a smoothed average that reflects recent price action. The For Loop system iterates over a defined range of past values (determined by user input), comparing the weighted closing price to its previous values to generate a total score.
The loop evaluates whether the current weighted closing price is higher or lower than the previous ones within the range. A positive score indicates upward momentum, while a negative score suggests downward momentum. The score is then compared to user-defined thresholds to signal potential uptrends or downtrends, making it easier for traders to recognize shifts in market direction.
Features and User Inputs
The "Weighted Closing Price For Loop" script offers several customizable inputs, allowing traders to tailor the indicator to their trading strategies. The "From" and "To" inputs define the range over which the For Loop evaluates past price data, providing flexibility in assessing market trends over different time periods. Additionally, the Thresholds for uptrends and downtrends can be adjusted, enabling traders to fine-tune the sensitivity of the indicator. The script also includes color-coded visual cues and alert conditions to notify traders when the score crosses key threshold levels.
Practical Applications
The "Weighted Closing Price For Loop" indicator is designed for traders who want to track market trends with greater sensitivity to recent price movements. This tool is particularly effective for:
Detecting Trend Reversals: The loop-based scoring system evaluates the direction of the weighted closing price, providing early signals of potential trend reversals when the score crosses key thresholds. Improving Trade Timing: The weighted closing price focuses on recent market activity, allowing traders to refine their entry and exit points by responding to real-time price momentum. Assessing Trend Strength: The For Loop system compares recent price movements to historical data, giving traders a clearer understanding of whether the current trend is gaining or losing strength.
Advantages and Strategic Value
The "Weighted Closing Price For Loop" script offers significant value by combining the responsiveness of weighted closing prices with the analytical depth of a For Loop system. The weighted average ensures that the indicator is more attuned to recent market activity, while the loop-based evaluation provides a structured way to assess trend direction and strength. This dual approach helps traders identify trends earlier and with greater confidence, reducing the impact of short-term noise on their decision-making process. The ability to customize the evaluation range and thresholds further enhances the indicator’s adaptability to various market conditions.
Alerts and Visual Cues
The script includes alert conditions that notify traders when the score crosses key threshold levels, indicating potential uptrends or downtrends. The "Weighted Closing Price For Loop Long" alert is triggered when the score crosses above the upper threshold, signaling a potential upward trend. Conversely, the "Weighted Closing Price For Loop Short" alert is activated when the score drops below the lower threshold, suggesting a possible downward trend. Visual cues, such as color changes in the plot and background fill for trend zones, help traders quickly identify key moments of market movement.
Summary and Usage Tips
The "Weighted Closing Price For Loop | viResearch" indicator provides traders with a powerful tool for tracking trend direction and momentum. By incorporating this script into your trading strategy, you can improve your ability to detect trend reversals, confirm trend strength, and time your trades more effectively. The "Weighted Closing Price For Loop" offers a reliable and customizable solution for traders seeking to enhance their technical analysis with a focus on recent market activity and trend strength.
Note: Backtests are based on past results and are not indicative of future performance.
Advanced Stochastic ForLoopAdvanced Stochastic ForLoop
OVERVIEW
Advanced Stochastic ForLoop is an improved version of Stochastic it is designed to calculate an array of values 1 or -1 depending if soruce for calculations is above or below basis.
It takes avereage of values over a range of lengths, providing trend signals smothed based on various moving averages in order to get rid of noise.
It offers flexibility with different signal modes and visual customizations.
TYPE OF SIGNALS
-FAST (MA > MA or MA > 0.99)
-SLOW (MA > 0)
-THRESHOLD CROSSING (set by user treshold for both directions)
-FAST THRESHOLD (when theres an change in signal by set margin e.g 0.4 -> 0.2 means bearsih when FT is set to 0.1, when MA is > 0.99 it will signal bullish, when MA < -0.99 it will signal bearish)
Generaly Lime color of line indicates Bullish, Fuchsia indicates Bearish.
This colors are not set in stone so you can change them in settings.
Alerts included when line color is:
-Bullish Trend, line color is lime
-Bearish Trend, line color is fuchsia
Credit
Idea for this script was from one of indicators created by www.tradingview.com
Warning
This indicator can be really noisy depending on the settings, signal mode so it should be used preferably as a part of an strategy not as a stand alone indicator
Remember the lower the timeframe you use the more noise there is.
No single indicator should be used alone when making investment decisions.
Bollinger Bands ForLoopBollinger Bands ForLoop
OVERVIEW
BB ForLoop is an improved version of Bollinger Bands it is designed to calculate an array of values 1 or -1 depending if soruce for calculations is above or below basis.
It takes avereage of values over a range of lengths, providing trend signals smothed based on various moving averages in order to get rid of noise.
It offers flexibility with different signal modes and visual customizations.
TYPE OF SIGNALS
-FAST (MA > MA or MA > 0.99)
-SLOW (MA > 0)
-THRESHOLD CROSSING (when cross above/below treshold set independently for both directions)
-FAST THRESHOLD (when there's change in signal by set margin e.g (0.4 -> 0.2) means bearsih when FT is set to 0.1, when MA is > 0.99 it will signal bullish, when MA < -0.99 it will signal bearish)
Generaly Lime color of line indicates Bullish, Fuchsia indicates Bearish.
This colors are not set in stone so you can change them in settings.
-Bullish Trend, line color is lime
-Bearish Trend, line color is fuchsia
Credit
Idea for this script was from one of indicators created by www.tradingview.com
Warning
Be careful when using this indicator especialy combining DEMA with FT (Fast Treshold).
This indicator can be really noisy depending on the settings, signal mode so it should be used preferably as a part of an strategy not as a stand alone indicator
Remember the lower the timeframe you use the more noise there is.
No single indicator should be used alone when making investment decisions.
Multi-Asset Cross Timeframe Divergence Ind. (MACDI) // AlgoFyreThe Multi-Asset Cross Timeframe Divergence Indicator (MACDI) identifies divergences in momentum like RSI across multiple assets and timeframes. It visually highlights lagging correlated asset momentum divergences, helping traders spot inefficiencies and potential trade opportunities in the following asset.
🔶 KEY FEATURES
🔸Average Momentum Trendline for Each Timeframe
The Average Momentum Trendline feature calculates the average momentum of multiple assets over specified timeframes. It uses smoothed values to determine the momentum trend for each timeframe on the average aggregated momentum of both assets. This trendline helps traders identify the overall direction of the market momentum, providing a clearer picture of potential price movements.
🔸Real-time Divergence Indication and Alert Table
The Real-time Divergence Indications and Alert Table feature visualizes detected divergences between the momentum values of the two assets across different timeframes. It identifies both bullish and bearish divergences, signaling lagging reversals in the the following asset and potential trading opportunities. When a divergence is detected, the system generates real-time visual indications on the chart and in an overview table for traders to act promptly. The alert table provides a comprehensive overview of all detected divergences, making it easier for traders to monitor and respond to market changes.
🔸Color and Size Based Labels on Price Chart based on Divergence Type
The Color and Size Based Labels feature visually represents divergences directly on the price chart. Bullish and bearish divergences are marked with distinct colors and sizes, making them easily identifiable at a glance. Larger labels indicate higher timeframes and thus generally more significance.
🔶 INSTRUCTION GUIDELINES
🔸Identify Divergence Clusters
The more divergences align, the higher the probability of a potential trend reversal in the asset. When multiple multi-timeframe divergences occur in both lower and higher timeframes within a local cluster, the probability of a reversal increases. This is valid for both for bullish and bearish divergences.
🔸Spot Low Probability Divergences
To further increase the probability, analyze the current state of the average momentum trendline. For a bullish reversal, a relatively low level of the average momentum trendline is preferred, whereas for a bearish reversal, a relatively high level is preferred.
🔶 INDIVIDUAL CONFIGURATION
🔸Leading Asset
This input allows the user to select the leading asset for the divergence analysis.
🔸Following Asset
This input allows the user to select the following asset for the divergence analysis.
🔸Higher Timeframe
This input sets the higher timeframe for the analysis.
🔸Lower Timeframe
This input sets the lower timeframe for the analysis.
🔸Show RSI Divergence
This input enables or disables the display of RSI divergence signals.
🔸RSI Length
This input sets the length of the RSI calculation.
🔸RSI Source
This input sets the source data for the RSI calculation (e.g., close price).
🔸RSI Smoothing Length
This input sets the length of the smoothing applied to the RSI values.
🔸Smoothing Method
This input sets the method used for smoothing the RSI values.
🔶 CONCLUSION
The Multi-Asset Cross Timeframe Divergence Indicator (MACDI) is a powerful tool for identifying momentum divergences across multiple assets and timeframes. Its visual cues and customizable table make it easy to use and interpret, providing valuable insights for trading decisions.
EMA-BAND-PIVOT-VCPThis indicator is named "EMA-BAND-PIVOT-VCP" and integrates multiple elements such as moving averages, volume, volatility contraction patterns (VCP), pivot points, and a table to display key market metrics.
Key Features:
Moving Averages: ( 4 - EMA) default settings 20 , 50 ,144 , 200 . Can be changed in settings.
Pivot Highs and Lows:
The script detects pivot highs and pivot lows using customizable left and right lengths and plots labels to mark these points on the chart.
TIG BAND : This is setting of 2 sma - with the high and low of 90 day average which forms like a band . Its a very strong indicator of trend . Buying is suggestable above this .This has to be tested on your own to knowhow it works wonders ( price magnet). Works on all timeframes . (credit : Bhushan Sir from TIG ) .These are the best buy areas.
Volatility Contraction :
It identifies specific price contraction pattern .
vc marked - used 4 candles - first candle is the mother bar ., 2,3 and 4th candles complete range ( high to low ) is within the range of mother candle.
lc marked -here the closing is considered not the wicks. used 8 candles., the 7 candles closing is within the range of motherbar. Crosses are plotted on the last candle
Table Display:
A table is displayed on the chart with data such as EMA values, relative volume (RVol), Average Daily Range (ADR), and volume ratios. This gives a comprehensive overview of current market conditions.(RVol) compared to the 50-period volume SMA, percentage volume change, and other metrics is also displayed.