Gaussian Weighted Moving Average with Forecast [CHE]Presentation for TradingView: Gaussian Weighted Moving Average with Forecast
Introduction
Welcome to our presentation on the "Gaussian Weighted Moving Average with Forecast" (GWMA). This script, written in Pine Script™, offers an enhanced method for analyzing and predicting price movements on TradingView. The script combines Gaussian Weighted Moving Averages and polynomial regression to provide accurate and customizable forecasts.
Overview
Title: Gaussian Weighted Moving Average with Forecast
Author: chervolino
License: Mozilla Public License 2.0
Main Features
1. Gaussian Weighted Moving Average (GWMA):
- Calculates a weighted moving average using a Gaussian weighting function.
- Parameters for length and standard deviation allow fine-tuning of the smoothing effect.
2. Polynomial Regression with Forecast:
- Creates a model to predict future price movements.
- Adjustable length and degree of polynomial regression.
- Option to extrapolate predictions and visualize them.
3. Visual Representation:
- Uses lines and colors to depict trend changes.
- Customizable colors for upward and downward trends.
Input Parameters
Length: Length of the moving average (default: 50)
Standard Deviation: Standard deviation for Gaussian weighting (default: 10.0)
Width: Width of the plotted lines (default: 1)
Colors: Customizable colors for upward and downward trends
Forecast Length: Length of the forecast period (default: 20)
Extrapolate Length: Length of the extrapolation (default: 50)
Polynomial Degree: Degree of the polynomial regression (default: 3)
Lock Forecast: Option to lock and stabilize the forecast
Core Algorithms
1. Gaussian Weight Calculation:
gaussian_weight(x, std_dev) =>
1 / (std_dev * math.sqrt(2 * math.pi)) * math.exp(-0.5 * math.pow(x / std_dev, 2))
2. GWMA Calculation:
calculate_gwma(length, std_dev) =>
// Algorithm to calculate the weighted moving average
3. Initialize Lines for Polynomial Regression:
initialize_lines_array(extrapolate, length) =>
// Initialize array lines
4. Create Design Matrix for Polynomial Regression:
get_design_matrix(length, degree) =>
// Create the design matrix
5. Calculate and Plot Polynomial Regression:
calculate_polynomial_regression(src, length, degree, extrapolate, lines_arr, lock, width, upward_color, downward_color) =>
// Algorithm to calculate polynomial regression and plot the forecast
Combining Indicators: Originality and Usefulness
The combination of Gaussian Weighted Moving Average and polynomial regression provides traders with a robust tool for trend analysis and prediction. The GWMA smooths out price data while emphasizing recent prices, making it sensitive to short-term trends. Polynomial regression, on the other hand, offers a mathematical approach to model and forecast future prices based on historical data. By integrating these two methodologies, traders can achieve a more comprehensive view of market trends and potential future movements, making the tool highly valuable for decision-making.
Explanation for Users
Most TradingView users are not familiar with Pine Script, so a clear description is essential for understanding how to use the script.
Gaussian Weighted Moving Average (GWMA): This indicator calculates a moving average using Gaussian weights, which gives more importance to recent prices. The length and standard deviation parameters allow users to control the sensitivity and smoothness of the average.
Polynomial Regression with Forecast: This feature uses polynomial regression to model the price trend and predict future movements. Users can adjust the length of the historical data used, the degree of the polynomial, and the length of the forecast. The script plots these predictions, making it easier for traders to visualize potential future price paths.
Visualization of Results
1. GWMA Plotting:
plot(gaussian_ma_result, title="GWMA", color=line_color, linewidth=width_input)
2. Forecast Extrapolation:
plot(forecast_val, 'Extrapolation', offset=extrapolate_setting, linewidth=width_input, style=plot.style_circles)
Conclusion
The "Gaussian Weighted Moving Average with Forecast" script provides a powerful tool for analyzing and predicting price movements on TradingView. By combining Gaussian weighting and polynomial regression, it offers a precise and customizable method for trend analysis and forecasting.
Thank you for your attention! For any questions or further information, please feel free to reach out.
Corak carta
Pro V3 [SMRT Algo]SMRT Algo Suite is a versatile toolkit featuring advanced features designed to deliver valuable signals and insights, catering to every trader's technical analysis requirements with precise data.
The SMRT Algo V3 represents a groundbreaking, comprehensive solution built from the ground up for traders.
While SMRT Algo can complement other technical analysis methods, it is also designed to function effectively as a standalone indicator adaptable to any trading style. Each feature is designed with the understanding that not all technical indicators suit every market condition.
The optimal approach to leveraging this indicator is to explore its diverse features gradually, select a few that best match your trading style, and use them consistently to develop a personalized SMRT Algo strategy.
Features:
Buy & Sell Signals: Clear buy and sell signals displayed on the chart, with ‘+’ indicating strong signals and normal signals without ‘+’.
Candle Coloring: Blue and red candle colors to signify bullish and bearish trends, respectively.
Signal Sensitivity: Adjust the frequency of signals to match your trading preferences.
MA Filter: Customizable moving average filter to ensure trades align with the prevailing trend.
Dashboard: Multi-timeframe analysis with information on various timeframes, offering quick decision-making capabilities and a customizable dashboard size.
Trailing Stop Loss: Suggestions for trailing stop losses to maximize profits while minimizing risk.
Power MA: A custom moving average that closely follows price, highlighting short-term market trends.
ChoCh/Bos: Displays internal market structure, including changes of character and breaks of structure.
Market Structure: Shows external market structure, detailing changes of character, breaks of structure, and pivot points.
Support & Resistance: Key support and resistance zones plotted on the chart.
Reversals: Highlights areas with a high likelihood of reversal using diamond markers.
Reversal Bands: Zones where price is likely to reverse or correct.
Trend Lines: Auto-plotted trendlines for quick and easy analysis.
Retest Zones: Ideal for break-and-retest traders, identifying key retest zones for entries and re-entries
Take Profit & Stop Loss: Customizable take profit and stop loss points.
Full Any Alert() Function Call Conditions: Create custom alerts directly to your TradingView device for timely notifications.
Additional features: A set of toggles turning on/off these indicators.
SMRT Algo Pro V3 offers a comprehensive set of features designed to enhance your trading experience by providing actionable insights and customizable tools for all trading styles.
SMRT Algo Pro V3 Confirmation Signals and Candle Coloring
The signals in SMRT Algo Pro V3 can generate both normal and strong labels, with strong signals marked by the "+" symbol. These signals are closely linked to the candle coloring, providing a visual representation of trend development to help navigate various market conditions effectively.
Candle Coloring:
Blue Candles: Indicate bullish trends.
Red Candles: Indicate bearish trends.
Candles will turn blue when there is a buy signal, and turn red when there is a sell signal.
The candle coloring is especially useful when interpreting signals. For instance, a consistent series of blue candles alongside buy signals suggests a strong uptrend, reducing the likelihood of a fake-out. Conversely, a series of red candles with sell signals indicates a strong downtrend.
Dashboard for Multi-Timeframe Analysis
The dashboard provides a consolidated view of multiple timeframes, helping traders make quick decisions based on comprehensive data. This feature reduces the need to switch between charts, streamlining the analysis process.
The dashboard will show the trend of higher timeframes, based on signal calculation and the trend filter.
Note on the dashboard: To reduce memory load, it will only display information from the current timeframe and up.
Trailing Stop Loss
This component workw to maximize profits and manage risk. The Trailing Stop Loss feature provides dynamic stop loss levels. Traders can use this feature to place their stop loss in profit while price goes in favor of your direction, so that less profit is left on the table, should the trade reverse against you.
Green trailing stop loss ranges are shown for buy trades, while red lines are shown for sell trades. This can be used together with the buy & sell signals to trail the stop loss for those trades.
Power MA
The Power MA follows the price closely, indicating short-term market trends and potential exit points. Traders can use the Power MA to determine when to enter a trade. For example, if the Pro V3 prints a buy signal, but the power MA is red (indicating that the market is short term bearish), it can act as a confirmation to stay out of that trade. Conversely, if the power MA is blue, then it can be an added confirmation to enter the buy trade based on the signals.
Market Structure
The inclusion of ChoCh/Bos (Change of Character and Break of Structure) helps traders understand internal and external market shifts. The ChoCh/Bos shows internal market structure, while the Market Structure feature shows the external market structure. This feature is crucial for identifying key turning points and potential trend continuations, as well as ICT traders.
We recommend traders to use this as an added confirmation, for example, once a buy signal is printed, wait for an internal or external Choch/BOS, possibly indicating that the market is now in control of the bulls. From there traders an either enter off another signal from the V3 or wait for the retest from the Retest Zones feature of the V3.
Support & Resistance, Reversals, and Reversal Bands
These features highlight critical market levels and areas where price is likely to reverse or correct. They are essential for traders looking to capitalize on key support and resistance zones or potential reversal points.
They can be used together with the buy & sell signals. An example is when a sell signal appears, we can look for potential trade exits either at the S/R zones, the reversal diamonds that are printed on the candle, or when price touches the reversal bands.
Trend Lines
Auto-plotted trend lines and the trend ribbon provide insights into longer-term trends. They can be used together with the buy sell features of the V3, e.g. if a sell signal is printed, but price is in the lower half of the trend lines, we can assume that price is in an area of premium for our short trade. Traders can choose whether to wait for price to retrace back into an area of discount (top half of the trend line), where they can look to short.
Retest Zones
The Retest Zones feature identifies optimal entry and re-entry points for break-and-retest strategies. As mentioned earlier, this feature can be used together with other features to act as a re-entry or further confirmation before entering a trade.
Traders can wait for a signal to be printed by the V3, and wait for further confrirmation from the retest zones to enter at a better price. This feature can be used together with the signals, and the market structure features to create a simple break & retest strategy.
Take Profit Modes:
SMRT Algo Pro V3 includes a versatile Take Profit Mode designed to help traders optimize their exits:
Hybrid Mode: Displays Take Profit, entry, and stop loss lines on the chart for the current position. Additionally, small circles labeled TP1, TP2, and TP3 indicate the points where take profit levels were hit.
Minimal Mode: Only displays the small circles labeled TP1, TP2, and TP3, providing a cleaner chart view while still indicating take profit hits.
Traditional Mode Only: Displays only the lines for Take Profit, entry, and stop loss, without the small circles.
Take profits are based off of 1:1, 1:2 and 1:3 risk to reward ratio with respect to the stop loss.
These modes offer flexibility for traders to choose their preferred level of detail on the chart, helping them to manage their trades effectively and track their take profit levels clearly.
The features of SMRT Algo Pro V3 can significantly strengthen your market analysis by providing additional confluences. These features allow traders to cross-verify signals and trends, making their strategies more robust and reliable. Here's how you can leverage these features:
SMRT Algo Pro V3 offers a comprehensive suite of tools and features that extend beyond the capabilities of standard or open-source indicators, providing significant additional value to users.
Integrated System: Unlike basic or open-source tools that may require multiple installations and configurations, SMRT Algo Pro V3 combines all necessary indicators into a cohesive system.
Advanced Customization: The toolkit offers extensive customization options, including signal sensitivity adjustments, customizable MA Filters, and various Take Profit Modes. These features allow traders to tailor the system to their specific trading styles and risk tolerance, providing a level of personalization that free tools often lack.
Real-Time Market Adaptation: SMRT Algo Pro V3 includes features like a deep learning dashboard and real-time market data integration, which continuously update and adapt to changing market conditions. This ensures that users receive the most current and relevant signals, enhancing decision-making accuracy.
Educational Support: Alongside the tools, SMRT Algo provides comprehensive educational resources and tutorials, helping traders understand how to effectively use the system and develop robust trading strategies. This educational aspect adds significant value, especially for beginners looking to deepen their knowledge.
Comprehensive Analysis Tools: The inclusion of multi-timeframe analysis, a detailed dashboard, and advanced market structure indicators help traders make more informed decisions by offering a complete picture of market dynamics.
Support and Community: Subscribers to SMRT Algo Pro V3 gain access to dedicated 24/7 support and an active trading community. This support network can be invaluable for troubleshooting, strategy development, and gaining insights from other experienced traders.
SMRT Algo believe that there is no magic indicator that is able to print money. Indicator toolkits provide value via their convinience, adaptibility and uniqueness. Combining these items can help a trader make more educated; less messy, more planned trades and in turn hopefully help them succeed.
RISK DISCLAIMER
Trading involves significant risk, and most day traders lose money. All content, tools, scripts, articles, and educational materials provided by SMRT Algo are intended solely for informational and educational purposes. Past performance is not indicative of future results. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
Consolidation Range Detector [Pt]█ Author's Note:
After extensively reviewing the existing consolidation detection tools in the TradingView library, I found that none fully met my expectations. Some tools were overly sensitive, producing too many invalid ranges, while others lacked the necessary sensitivity. Consequently, I decided to develop my own tool. I hope that you, fellow traders, find it valuable and enjoy using it.
█ Description:
The Consolidation Range Detector is a sophisticated TradingView tool designed to identify and visualize periods of price consolidation on any financial chart. This indicator employs advanced algorithms to detect ranges where price movements are confined, helping traders spot potential breakout zones and make informed trading decisions.
█ Key Features:
► Customizable Detection Sensitivity: Adjust the sensitivity of the detection algorithm to suit your trading strategy, ensuring a precise fit within the consolidation range.
► Dynamic Coloring: Choose between random or fixed colors for the consolidation ranges, with options to match different background color schemes (Dark, Light, Neutral).
► Visual Clarity: Highlight detected consolidation ranges directly on the chart with customizable color schemes to enhance visibility and provide clear visual cues.
► ATR-Based Validation: Ensures detected consolidation ranges are significant and reliable by using the Average True Range (ATR) for validation.
█ User-Defined Inputs:
► Minimum Detection Bars: Set the minimum number of bars required to detect a consolidation range.
► Max Range Multiplier: Define the maximum range for detection as a multiple of the ATR.
► Detection Sensitivity: Adjust the sensitivity of the detection algorithm. Higher values mean a tighter fit within the consolidation range.
► Color Options: Choose the color for the consolidation range boxes and decide whether to use random colors.
► Color Scheme (Background): Select a color scheme for the chart background (Dark, Light, Neutral).
█ How It Works:
► Range Detection: The indicator scans the chart for potential consolidation ranges based on user-defined parameters. It calculates the average price and ATR to determine the significance of the range.
► Validation: Each detected range is validated based on criteria such as ATR threshold, range validity, average price comparison, and the number of touches at the range boundaries.
► Visualization: Validated ranges are highlighted on the chart with colored boxes, providing a clear visual cue of potential consolidation zones.
█ Usage Examples:
► Example 1:
The image below showcases the Consolidation Range Detector in action on a chart of S&P 500 E-mini Futures. The indicator highlights several consolidation ranges with different colors, demonstrating its ability to adapt to varying market conditions and visually emphasize key areas of price consolidation. The annotations for breakouts and price reactions are manually marked to illustrate the practical application of the tool in identifying potential trading opportunities based on these key areas.
█ Practical Applications:
► Identify Breakout Zones: Use the detected consolidation ranges to identify potential breakout zones, helping to anticipate significant price movements.
► Identify Key Price Levels: The tool helps in pinpointing key price levels where there is a high probability of significant price reactions, providing crucial insights for trading strategies.
► Enhance Technical Analysis: Integrate the Consolidation Range Detector into your existing technical analysis toolkit to improve the accuracy of your trading decisions.
█ Conclusion:
The Consolidation Range Detector is a powerful tool for traders looking to identify periods of price consolidation and potential breakout zones. With its customizable settings and advanced detection algorithms, it provides a reliable and visual method to enhance your trading strategy. Whether you're a beginner or an experienced trader, this indicator can add significant value to your technical analysis.
█ Cautionary Note:
While the Consolidation Range Detector is a powerful tool, it's important to combine it with other indicators and analysis methods for comprehensive trading decisions. Always consider market context and external factors when interpreting detected consolidation ranges.
Algo Market Structure (Nephew_Sam_)This indicator takes a different approach into reading market structure.
The key difference between this logic compared to the pivot logic is; we read highs and lows based on bullish and bearish candles. Ie:
Pivot method - highest/lowest point in previous and next X candles
Algo method - Bullish candle(s) followed by a bearish candle and vice versa
More explanation in each of the key feature below.
Here are all of the concepts and features included in the indicator:
Timeframe
- You can select the timeframe of the indicator (has to be higher or equal to the chart timeframe)
- Min option is the minimum timeframe to show the indicator. If you show daily structure on 1m chart, you can run into a timeout error so keep it close to the chart timeframe.
- Recommended timeframe for no bugs is the current chart timeframe.
Structure
The structure is calculated using a combination of candle patterns (ie. pivot top = Bullish x3-Bearish-Bullish) and marks out circle labels after a new HH or LL
Structure high = 1 or more consecutive bull candles followed by a bear candle
Structure low = 1 or more consecutive bear candles followed by a bull candle
Structure direction change = when the second previous H/L is taken out (TLQ)
ILQ - Inducement Liquidity concept
In a bearish example this is the most recent structure high.
TLQ
In a bearish example this is the second most recent structure high.
This is also what helps define our structure direction. If broken, the structure changes (bullish / bearish) and plots a bos line.
EPA - Efficient price action
When price returns back to previous structure point after bos. Similar to an ICT breaker.
Note: It might be a little, just a little buggy if you have set your indicator timeframe to higher than the chart timeframe.
Extremes Zones
The final zone to find a trade entry before a structural shift. These are wick of the TLQ candle. This is select the wick of the current timeframe candle even if indicator is set to higher timeframe.
MSU
Tiny arrow labels at the bottom of your chart. Plots the arrows when price is between an ILQ and TLQ
VTA
Valid trading range. This is when we get some sort of a structure pattern. Plots a box when price induces previous structure point and then breaks structure in the opposite direction. Here are the patterns:
Bull VTA - HH-LL-HH
Bear VTA - LL-HH-LL
Bull Strict VTA - LL-HH-LL-HH
Bear Strict VTA - HH-LL-HH-LL
Bar colors
Changes the bar color based on the structure to all green/red.
Note: for this to work, you will have to right click on the indicator, then under visual order select 'bring to front'
Table
This table plots the structure stats/data
1. If structure is bullish / bearish
2. If price is efficient or not
3. If there is an MSU
4. If price is inside a VTA
Disclaimer: This indicator is fully written from scratch by me, the idea behind the concepts come from AlgoHub material on Youtube. Do NOT use this code for reselling purposes and if anything is created using any part of this code, the source code should be public.
Harmonic Patterns [WinWorld]PREFACE
This indicator was made with the help of our team's fellow friend and harmonic patterns expert, whose support we deeply appreciate — @Muneer_Gove
DESCRIPTION
Harmonic patterns are one the most recognizable and popular trading concepts in the word of trading.
They are distinct formations, found in the financial markets, that predict potential price movements based on Fibonacci ratios. These patterns, which include the Gartley, Bat, Alt Bat, Butterfly and etc., identify specific and repetitive price structures that can forecast future price reversals. By incorporating these patterns into trading process, one does gain an opportunity to profit from repetetitve price movements.
The whole thing about harmonic pattern is the process of finding them. The basic step-by-step guide to build a harmonic pattern is this:
Locate significant highs and lows on the chart, which form the basis of the pattern. The best tools to use for this purple is zigzag, because zigzag indicator draw lines, which will be helpful quite helpful in the process and will save you a lot of time;
Use Fibonacci tools to measure the retracement and extension levels between legs of pattern — distances between pair of points . Each harmonic pattern has specific Fibonacci ratios that define its structure;
Draw lines connecting the pivot points according to the pattern's structure. For example, a Gartley pattern connects five points (X, A, B, C, D) in a specific sequence and ratio;
Ensure that the identified structure adheres to the harmonic pattern’s Fibonacci requirements. If the points align within the acceptable ranges, the pattern is valid.
In order to better understand this process let's see an example of the pattern from our indicator right away:
This is a Butterfly pattern. Its set of retracememt ratios is as follows:
AB/XA = 0.756 to 0.816
BC/AB = 0.382 to 0.990
CD/BC = 1.618 to 2.618
AD/XA = 1.27
Below you can see that each ratio of the pattern is successfully met:
* Note : white lines — ratio range, yellow line — point 's price level in between ranges.
AB/XA Ratio
BC/AB Ratio
CD/BC Ratio
AD/XA Ratio
SETTINGS
Main Settings
Failed Patterns — shows/hides patterns, which meet one of these conditions:
— Price crossed level of point C before reaching PRZ;
— New pattern appeared and PRZ of previous pattern was not reached;
Completed Patterns — shosw/hides patterns, whose PRZ was reached;
Dashboard — shows/hides dashboard, which displays active patterns (patterns, which can be used to trade).
Alert Settings
PRZ — enables/disables alert of event, when price reaches PRZ.
ZigZag Settings
Depth #1-9 — shows/hides patterns of the chosen zigzag copy. Here you can choose customize depth number.
Pattern Visual Controls
Bullish Patterns — shows/hides bullish patterns;
Bearish Patterns — shows/hides bearish patterns;
Pending Patterns — shows/hides patterns, whose PRZ has not been reached yet;
list of pattern names — hides/shows chosen pattern.
Colours
Bullish — colour of bullish patterns;
Bearish — colour of bearish patterns.
IMPORTANT CONCEPTS
PRZ — entry target level.
If its text near the line level is purple, it means that PRZ has NOT been reached yet.
If it is white, it means that PRZ has been reached.
In order for SL or TP to be counted when price reaches, price has to reach PRZ first with its high/low.
SL — stop-loss.
If its near the line level is red, it means that SL has NOT been reached yet.
If it is white, it means that SL has been reached.
If it is gray, it means that SL has been invalidated — price crossed with high/low the level of point C before reaching PRZ.
If SL is reached and price reaches TP targets, they will be counted.
SL of each pattern are built by individual ratio. For example, in Butterfly pattern SL ratio is 1.414 and it is calculated as (SL - A)/XA.
IMPORTANT NOTE : SL is reached when price crosses SL level with candle's close (!)
TP — take-profit.
If its near the line level is green, it means that TP has NOT been reached yet.
If it is white, it means that TP has been reached.
If one of the TP targets is reached and price reached SL, it will not be counted.
IMPORTANT NOTE : TP is reached when price crosses TP level with candle's high/low(!)
TP of each pattern are built by same the ratios for all patterns, but it is calculated by individual algorithm. For example, in the same Butterfly pattern TP ratio will be 0.382, 0.500 and 0.618 and they will be placed as Fibonacci retracement grid from point A to point D ( same for formula for all other patterns, excluding the ones listed next ), BUT on Shark , Muner and AB=CD pattern the same TP will be placed as Fibonacci retracement grid from point C to point D
WHY USE THIS INDICATOR?
Our Harmic Patterns indicator uses zigzag, which is based on depth mechanic. In order to identify the maximum possible amount of patterns this indicator runs 9 copies of the same zigzags with different depth values. Each copy of zigzag can be turned off in the settings individually.
At the moment of publishing, this indicator can autmatically identify 10 patterns:
Crab
Deep Crab
Gartley
Deep Gartley
Bat
Alt Bat
Muner
Butterfly
Shark
AB=CD
Things, that make this indicator different from other harmonic pattern indicator, are:
Advanced pattern recognition and validation process. We have implemeted special logic, which allows the indicator to draw fully accurate patterns, which satisfy industry standards.
For example, let's say we have a bearish pattern. We take points X an A. If there is a price's high, that is above X point's high, such pattern should be automatically invalidated. We have found even one indicator that does perform such validation process, and our indicator does that. . And this is just one example, we have much of such mechanics implemeted thanks to Mr. Muner's knowledge.
Advanced pattern extension mechanics . Right this mechanic applies to only one pattern — Shark. Its classic CD/BC ratio is 0.886, but when price moves in a way so this ratio now equals to 1.13, this signal the indicator to redraw the pattern, based on this new CD/BC ratio. We haven't found any indicator on the market that has such mechanic implemented.
Dashboard for displaying active patterns . On this dashboard you can find patterns, whose SL and TP have not been touched yet. If price touches the SL or TP of the pattern, this pattern is removed from the dashboard, because it is considered finished.
At the moment of publishing this dashboard only shows the patterns from the current timeframe.
Informative alert when price reaches PRZ of the pattern . Many other indicator do not provide details of this event, which requires trader to waste his time on opening up the chart and searching for this event. Our indicator allows trader to see the PRZ price right when alert happens and open up the trade much fastr.
Alert message is made by this template:
, : PRZ was reached at on
Example:
BTCUSDT, long Bat: PRZ was reached at 70,000 on 15m.
ALERTS
At the moment of publishing this indicator offers one alert, which happens when price reaches PRZ level.
HOW CAN I GET THE MOST OUT OF THIS INDICATOR?
This indicator can act as the standalone tool, because PRZ, TP and SL are assigned to each pattern and tracked during the pattern's life period.
You can this indicator with any other strategy or indicator, because this indicator is basically a tool that shows the trader repetitive price formations, after which price tends to go a certaion direction in the most cases, allowing trader to profit from it.
You can try combining Harmonic Patterns indicator with Smart Money tools, made by our team, because Smart Money strategies basically show the most liquid price zones and levels, which can be used to find an entry opportunity and Harmonic Patterns indicator can be added to make a final decision on the entry.
If you are interested in trying these two strategies together, feel free to learn Smart Money trading strategy by reading our Advanced SMC guide, which is available in our eductional materials.
SUMMARY
Harmonic Patterns indicator is an advanced tool of technical analysis, which automatically finds 10 most used harmonic patterns on the chart, assign PRZ, TP and SL targets to them and tracks them during each pattern 'life period'.
While searching for these patterns, this indicator performs series of validation techniques, that allow trader to see only the most valid patterns, which have a higher changes to succeed.
This indicator can be used both as a standalone tool and as 'team player' for any stategy by being the tool, which can be used for making a final decision on an entry target.
AFTERWORD
This indicator has been developed for more than 2 weeks, which consisted of everyday discussions, bug fixes and special additons to the algorithm in order to making patterns more valid, so we really hope you will find a great use of this indicator and it will help you recude time on the analysis and boost your profits :)
We want to express our gratitude to @Muneer_Gove once again, because he has done huge job helping us fine-tuning the algorithm, building complex pattern validatiom and extension logic and fixing bugs. Thank you!
Best of luck , traders!
— with love, WinWorld Team
Money Flow Index Crossover IndicatorThe "Money Flow Index Crossover Indicator" is a specialized technical analysis tool designed to assist traders by providing a clear visualization of potential buy and sell signals based on the Money Flow Index (MFI) and its smoothed moving average (SMA). This indicator delineates overbought and oversold zones, offering valuable insights into market dynamics. It operates as an oscillator on a separate pane, helping traders identify bullish and bearish market conditions with greater precision. By incorporating k-Nearest Neighbor (KNN) machine learning techniques, this indicator enhances the reliability and accuracy of the signals provided.
Originality and Usefulness:
This script is not just a simple mashup of existing indicators but integrates multiple components to create a unique and comprehensive analysis tool. The combined information from the MFI, its smoothed moving average, and the KNN machine learning techniques influence the form and accuracy of the Money Flow Index Average line and the Smoothed Money Flow Index line giving a visually helpful representation of overbought and oversold conditions. These lines are displayed in an oscillator style crossover, allowing users to visualize potential buy and sell zones for setting up potential signals. The user can adjust various settings of these tools behind the code to fine-tune the behavior and sensitivity of these lines. This integration provides a more robust and insightful trading tool that can adapt to different market conditions and trading styles.
How It Works:
Inputs:
MFI Settings:
Show Signals: Allows users to toggle the display of MFI and SMA crossing signals, which are critical for identifying potential market reversals.
Plot Amount: Determines the number of plots in the heat map, ranging from 2 to 28, enabling customization based on user preference.
Source: Defines the data source for MFI calculations, typically set to OHLC4 for a balanced view of price movements.
Smooth Initial MFI Length: Specifies the smoothing length for the initial MFI calculations to reduce noise and enhance signal clarity.
MFI SMA Length: Sets the length for the SMA used to smooth the MFI average, providing a more stable reference line.
Machine Learning Settings:
Use KInSource: Option to average MFI data by adding a lookback to the source, improving the accuracy of historical comparisons.
KNN Distance Requirement: Defines the distance calculation method for KNN (Max, Min, Both) to refine the data filtering process.
Machine Learning Length: Specifies the amount of machine learning data stored for smoothing results, balancing between responsiveness and stability.
KNN Length: Sets the number of KNN used to calculate the allowable distance range, enhancing the precision of the machine learning model.
Fast and Slow Lengths: Defines the lengths for fast and slow MFI calculations, allowing the indicator to capture different market dynamics.
Smoothing Length: Determines the length at which MFI calculations start for a more smoothed result, reducing false signals.
Variables and Functions:
KNN Function: Filters machine learning data to calculate valid distances based on defined criteria, ensuring more accurate MFI averages.
MFI Calculations: Computes both fast and slow MFI values, applies smoothing, and stores them for KNN processing to refine signal generation.
MFI KNN Calculation: Uses the KNN function to calculate the machine learning average of MFI values, enhancing signal reliability.
MFI Average and SMA: Calculates the average and smoothed MFI values, which are crucial for determining crossover signals.
Calculations:
MFI Values: Calculates current fast and slow MFI values and applies smoothing to reduce market noise.
Storage Arrays: Stores MFI data in arrays for KNN processing, enabling historical comparison and pattern recognition.
KNN Processing: Computes the machine learning average of MFI values using the KNN function, improving the robustness of signals.
MFI Average: Scales the MFI average to fit the heat map and calculates the smoothed SMA, providing a clear visual representation of trends.
Crossover Signals: Identifies bullish (MFI crossing above SMA) and bearish (MFI crossing below SMA) signals, which are key for making trading decisions.
Plots and Visuals:
MFI Average and SMA Lines: Plots the MFI average and smoothed SMA on the chart, allowing traders to easily visualize market trends and potential reversals.
Zones: Defines and plots overbought, neutral, and oversold zones for easy visualization. The recommended settings for these zones are:
Overbought Zone: Level set to approximately 24.6, indicating a potential market top.
Neutral Zone: Level set to 14, representing a balanced market condition.
Oversold Zone: Level set to 5.4, signaling a potential market bottom.
Crossover Marks: Plots circles on the chart to indicate bullish and bearish crossover signals, making it easier to spot entry and exit points.
Visual Alerts:
Bullish and Bearish Alerts: one can see overbought and oversold conditions and up alert conditions for bullish and bearish MFI crossover signals, enabling traders to have access to visual cues when these events are on trajectory to occur and, if they occur, act promptly with the visual representation of its zones.
Why It's Helpful:
The "Money Flow Index Crossover Indicator" provides traders with a sophisticated tool to identify potential buy and sell conditions based on the combined information of the MFI and its smoothed moving average. The KNN machine learning techniques enhance the accuracy of this indicator's clear visual representation of overbought, neutral, and oversold zones. This combination of data represented on the chart helps traders make informed decisions about market conditions. This indicator is particularly useful for traders looking to refine their entry and exit points by leveraging advanced data analysis in respect to overbought and oversold conditions.
Disclaimer:
This indicator is intended to assist traders in making informed decisions based on technical analysis. However, it is not a guarantee of future performance and should be used in conjunction with other analysis techniques and risk management practices. Past performance is not indicative of future results, and traders should exercise caution and perform their own due diligence before making any trading decisions.
Crab Harmonic Pattern [TradingFinder] Harmonic Chart patterns🔵 Introduction
The Crab pattern is recognized as a reversal pattern in technical analysis, utilizing Fibonacci numbers and percentages for chart analysis. This pattern can predict suitable price reversal areas on charts using Fibonacci ratios.
The structure of the Crab pattern can manifest in both bullish and bearish forms on the chart. By analyzing this structure, traders can identify points where the price direction changes, which are essential for making informed trading decisions.
The pattern's structure is visually represented on charts as shown below. To gain a deeper understanding of the Crab pattern's functionality, it is beneficial to become familiar with its various harmonic forms.
🟣 Types of Crab Patterns
The Crab pattern is categorized into two types based on its structure: bullish and bearish. The bullish Crab is denoted by the letter M, while the bearish Crab is indicated by the letter W in technical analysis.
Typically, a bullish Crab pattern signals a potential price increase, whereas a bearish Crab pattern suggests a potential price decrease on the chart.
The direction of price movement depends significantly on the price's position within the chart. By identifying whether the pattern is bullish or bearish, traders can determine the likely direction of the price reversal.
Bullish Crab :
Bearish Crab :
🔵 How to Use
When trading using the Crab pattern, crucial parameters include the end time of the correction and the point at which the chart reaches its peak. Generally, the best time to buy is when the chart nears the end of its correction, and the best time to sell is when it approaches the peak price.
As we discussed, the end of the price correction and the time to reach the peak are measured using Fibonacci ratios. By analyzing these levels, traders can estimate the end of the correction in the chart waves and select a buying position for their stock or asset upon reaching that ratio.
🟣 Bullish Crab Pattern
In this pattern, the stock price is expected to rise at the pattern's completion, transitioning into an upward trend. The bullish Crab pattern usually begins with an upward trend, followed by a price correction, after which the stock resumes its upward movement.
If a deeper correction occurs, the price will change direction at some point on the chart and rise again towards its target price. Price corrections play a critical role in this pattern, as it aims to identify entry and exit points using Fibonacci ratios, allowing traders to make purchases at the end of the corrections.
When the price movement lines are connected on the chart, the bullish Crab pattern resembles the letter M.
🟣 Bearish Crab Pattern
In this pattern, the stock price is expected to decline at the pattern's completion, leading to a strong downward trend. The bearish Crab pattern typically starts with a price correction in a downward trend and, after several fluctuations, reaches a peak where the direction changes downward, resulting in a significant price drop.
This pattern uses Fibonacci ratios to identify points where the price movement is likely to change direction, enabling traders to exit their positions at the chart's peak. When the price movement lines are connected on the chart, the bearish Crab pattern resembles the letter W.
🔵 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 Format : 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.
Trendline Cross CountThe Trendline Cross Count indicator is an innovative technical analysis tool that revolutionizes the way traders interact with trendlines. This cutting-edge indicator doesn't just identify trendlines - it quantifies their impact on price action in real-time, providing traders with unprecedented insight into market structure.
Core Functionality:
Trendline Cross Quantification:
At the heart of this indicator is its ability to display the actual number of trendlines being crossed by the current price. The algorithm doesn't just count intersections; it evaluates the significance of each trendline, weighing factors such as trendline duration, number of touch points, and historical reliability.
Dynamic Trendline Generation:
The indicator employs an advanced pivot-based trendline detection system. It continuously scans the chart for significant pivot points and constructs trendlines based on these pivots. The innovation lies in its ability to adapt to changing market conditions, constantly updating its trendline library.
Confluence Analysis:
By tracking multiple trendlines simultaneously, the indicator provides a real-time measure of trendline confluence. This allows traders to identify areas where multiple significant trendlines converge, potentially signaling powerful support or resistance levels.
Key Inputs and Their Significance:
Trendline Source:
This input allows traders to select the price data used for trendline analysis. While the default is the closing price, the flexibility to choose other price points enables traders to tailor the analysis to their specific trading style or market preferences.
Pivot Size:
This crucial parameter defines the lookback period for identifying pivot points. The default value of 3 strikes a balance between sensitivity and reliability, but adjusting this value can dramatically alter the indicator's behavior. Lower values increase sensitivity but may introduce noise, while higher values provide more stable, long-term trendlines.
Pivot Sequence:
This innovative feature allows traders to focus on specific market structures. Options include:
"LL" (Lower Lows): Focuses on downtrends
"HH" (Higher Highs): Emphasizes uptrends
"Any": Provides a comprehensive view of all trendlines
What Makes It Unique:
The Trendline Cross Count indicator stands out due to several groundbreaking features:
Quantitative Trendline Analysis:
While most indicators simply draw trendlines, this tool quantifies their impact, providing a numerical representation of market structure complexity.
Adaptive Pivot Detection:
The indicator's ability to dynamically adjust its pivot detection based on market volatility ensures relevance across all market conditions.
Sequence-Based Filtering:
The unique pivot sequence option allows traders to focus on specific trend types, a feature not found in conventional trendline tools.
Real-Time Confluence Measurement:
By providing a live count of intersecting trendlines, traders gain instant insight into potential support and resistance strength.
Significance Algorithm:
Not all trendlines are created equal. This indicator employs an algorithm to weigh the importance of each trendline, ensuring that the cross count reflects truly significant levels.
This indicator represents a significant advancement in trendline analysis, offering insights that are not readily available through traditional methods. Its ability to quantify trendline interactions in real-time provides traders with a unique edge in understanding market structure and potential price movements. The Trendline Cross Count indicator is not just a tool, but a gateway to a new dimension of technical analysis.
R-Squared Trend Strength and Direction [CHE] Introduction
TradingView is a web-based platform that allows traders and investors to conduct comprehensive technical analyses, develop trading strategies, and track market movements in real-time. One of the many features TradingView offers is the ability to create custom indicators using Pine Script. In this presentation, we will focus on the implementation and application of an R-Squared indicator for analyzing trend strength and direction, as well as using the T3 indicator for trend direction confirmation.
---
What is R-Squared?
R-Squared (R²), also known as the coefficient of determination, is a statistical measure that represents the proportion of the variance for a dependent variable that's explained by an independent variable(s). In technical analysis, R-Squared is used to quantify the clarity of a trend. A higher R-Squared indicates a clearer trend, less affected by random price fluctuations.
---
Pine Script: Implementing the R-Squared Indicator
Inputs:
- Source: The data source to be analyzed, such as the average of high and low prices.
- Period: The period length for calculating sums and R-Squared values.
Sum Calculations:
- Sum X and Sum XX: These sums relate to the indices of the selected period.
- Sum XY and Sum YY: These sums relate to the products of the indices and their respective price values.
- Sum Y: The sum of price values over the chosen period.
Q-Values Calculation:
- Q-values are used to calculate the R-Squared value, which indicates trend clarity.
Trend State:
- Based on the R-Squared value, a trend state is determined, indicating whether a clear trend is present. Specific threshold values are used to identify trend changes.
---
Using the T3 Indicator
The T3 indicator is used exclusively for confirming the trend direction in this strategy. It helps verify the direction of the trend identified by the R-Squared indicator.
T3 Indicator Calculation:
- The T3 indicator uses a series of exponential smoothings to smooth price movements and provide a clearer view of the trend direction.
- The T3 indicator confirms the trend direction indicated by the R-Squared indicator.
---
Functioning of the R-Squared and T3 Combination
1. Input Parameters:
- Define the data source and period length for calculating sums and R-Squared values.
2. Sum Calculations:
- Calculate various sums over the defined period needed to derive Q-values.
3. Q-Values Calculation:
- Derive Q1, Q2, and Q3 from the sums to calculate the R-Squared value.
4. Trend State:
- Use the R-Squared value to determine if a clear trend is present, utilizing threshold values to recognize trend changes.
5. Trend Direction Confirmation with T3:
- Calculate the T3 indicator to confirm the trend direction. The T3 is used solely for direction confirmation, not for clarity.
6. Long and Short Conditions:
- Define long and short entry conditions based on the combination of R-Squared and T3 indicators, and visualize them on the chart.
---
Conclusion
The R-Squared indicator is a powerful tool for analyzing the clarity of a trend. By integrating it into TradingView using Pine Script, traders can make informed decisions and optimize their trading strategies. The T3 indicator is used exclusively in this strategy to confirm the trend direction, enhancing the accuracy of trading signals.
---
Questions and Discussion
Are there any questions about the implementation or application of the R-Squared indicator in TradingView? How can we further improve this indicator or integrate it into existing strategies?
Best regards
Chervolino
Advanced Fully Reversed Candles with Reversed IchimokuThe "Advanced Fully Reversed Candles with Reversed Ichimoku" indicator is a sophisticated tool designed for traders who seek a unique perspective on market dynamics. This innovative indicator not only reverses the traditional candlestick chart but also inverts the Ichimoku Cloud components, providing a comprehensive view of the market's inverted behavior.
Key Features:
Reversed Candlestick Chart:
The indicator recalculates the OHLC (Open, High, Low, Close) prices by reversing them along the price axis. This means that what typically would be an upward movement is displayed as a downward movement, and vice versa. This reversal provides an alternative view that can help traders identify hidden patterns and potential reversal points that might not be obvious on a standard chart.
Reversed Ichimoku Cloud:
All components of the Ichimoku Cloud indicator are recalculated based on the reversed price data. This includes:
Tenkan-sen (Conversion Line): Reversed based on the highest and lowest prices over the specified period.
Kijun-sen (Base Line): Reversed in a similar manner to the Tenkan-sen, providing a medium-term perspective on price trends.
Senkou Span A (Leading Span A): Reversed to form one boundary of the Kumo (cloud), offering insight into future support and resistance levels.
Senkou Span B (Leading Span B): Reversed to form the other boundary of the Kumo, complementing Senkou Span A.
Chikou Span (Lagging Span): Reversed and plotted backward for additional confirmation of trend direction and strength.
Dynamic Price Range Calculation:
The indicator dynamically calculates the maximum and minimum prices over the last 500 bars (or the available range if fewer bars are present). This ensures that the reversal is always based on the most relevant data, providing accurate and up-to-date visualizations.
Visual Enhancements:
The reversed candlesticks are color-coded for easy interpretation: green for upward movements and red for downward movements, based on the reversed data.
The Ichimoku Cloud is filled with semi-transparent colors to clearly distinguish between bullish and bearish conditions even in its reversed state.
Debugging Aids:
For transparency and accuracy, the indicator plots the maximum and minimum price lines used for the reversal calculations. This allows users to verify the internal workings of the indicator and ensure the reversal logic is correctly applied.
Usage:
This indicator is ideal for advanced traders and analysts who want to explore market behavior from an unconventional angle. By reversing both the candlestick chart and the Ichimoku Cloud, it provides a unique perspective that can uncover new trading opportunities and enhance market analysis.
Customization:
Users can customize the periods for the Tenkan-sen, Kijun-sen, and Senkou Span B, as well as the displacement for the Ichimoku Cloud. This flexibility allows traders to adapt the indicator to their specific trading strategies and timeframes.
Conclusion:
The "Advanced Fully Reversed Candles with Reversed Ichimoku" indicator is a powerful tool that transforms traditional market analysis. By inverting both price movements and key technical indicators, it opens up a new dimension of trading insights, helping traders to see the market in a completely different light.
Parameters:
Tenkan-sen period (default: 9)
Kijun-sen period (default: 26)
Senkou Span B period (default: 52)
Displacement (default: 26)
How to Apply:
Add the script to your TradingView account via the Pine Editor.
Customize the parameters according to your trading strategy.
Analyze the reversed candlestick chart and Ichimoku Cloud to gain unique insights into market trends and potential reversal points.
Edufx's Power of ThreeIndicator Overview
Name: Edufx's Power of Three
Purpose:
To highlight the high and low price ranges of specific hourly candles on a chart.
To visualize these ranges using rectangles.
Features
Visibility Toggle:
Users can enable or disable the visibility of the rectangles highlighting the high and low price ranges of the specified candles.
Customizable Rectangle Length:
Users can adjust the length of the rectangles that extend from the specified candle's high and low prices.
Price Range Tracking:
The high and low prices of the specified candles are tracked and stored.
Rectangle Drawing:
Rectangles are drawn from 5 bars before the end of the specified hour, highlighting the high and low price ranges.
How It Works
Price Range Tracking:
During each specified hour, the high and low prices are updated with the highest and lowest prices observed.
Rectangle Drawing:
At the end of each specified hour, the high and low prices are used to draw rectangles extending 5 bars backward from the end of the hour.
Rectangles are color-coded (red, green, and blue) for easy identification.
Usage
This indicator is useful for traders who want to monitor and react to key price levels at specific times of the day.
The visual rectangles help in identifying potential trading opportunities based on price action relative to these key levels.
Example
If the price moves above the high of the specified candle but fails to close above it, a visual rectangle will highlight this price range.
Similarly, if the price moves below the low of the specified candle but fails to close below it, the rectangle will indicate this range.
This indicator provides visual aids to assist traders in making informed decisions based on the behavior of price at specific key levels.
All Possible Trendlines W/AlertsCore Functionality:
Trendline Detection: The system uses a proprietary algorithm that goes beyond traditional pivot point connection methods. It analyzes price action patterns and market structure to identify potential trendlines that many traders might overlook. This includes not just obvious trendlines, but also subtle ones that could become significant in the future.
Significance Evaluation: Unlike conventional indicators that treat all trendlines equally, the system employs a unique scoring system to evaluate each trendline's importance. This system considers factors such as the number of touch points, the length of the trendline, and its historical reliability in predicting price movements. This allows traders to focus on the most relevant trendlines.
Dynamic Updating: The AITI continuously reassesses and adjusts trendlines as new price data becomes available. This dynamic approach ensures that the indicator adapts to changing market conditions, providing up-to-date and relevant information.
What Makes It Original:
The AITI's originality lies in its holistic approach to trendline analysis. While most indicators focus on identifying a few key trendlines, this system aims to present a complete picture of all possible trendlines in the market. This comprehensive view allows traders to:
- Gain deeper insights into market structure and potential price movements.
- Identify less obvious but potentially significant trendlines that other traders might miss.
- Understand the relative importance of different trendlines, rather than treating all trendlines as equally significant.
The indicator's ability to dynamically update and re-evaluate trendlines in real-time sets it apart from static trendline tools. This ensures that traders always have the most current and relevant information at their disposal.
By providing a more nuanced and complete view of trendlines, the AITI enables traders to make more informed decisions based on a deeper understanding of market structure. This approach to trendline analysis is not readily available in open-source alternatives, making the AITI a valuable tool for traders seeking a more comprehensive technical analysis solution.
MNQ/NQ Rotations [Tiestobob]### Indicator Description: MNQ/NQ Rotations
TO BE USED ONLY ON THE CONTINOUS CONTRACTS NQ1! and MNQ1! It will not work on others or the forward contracts of these.
#### Overview
The MNQ/NQ Rotations indicator is designed for traders of Nasdaq futures (MNQ and NQ) to visualize key price levels where typical market rotations occur. This indicator identifies and highlights the xxx.20 and xxx.80 levels based on empirical data and trading experience, allowing traders to recognize potential support and resistance points during trading sessions.
#### Key Features
- **Timeframe Selection**: The indicator allows users to specify a timeframe for identifying breakout candles, ensuring flexibility across different trading strategies.
- **Active Trading Range**: Users can define an active trading range, focusing the analysis on specific hours when the market is most active.
- **Visual Representation**: The indicator paints horizontal lines at key price levels (xxx.20 and xxx.80), extending them across a user-defined length to aid in visual analysis.
- **Customization**: Users can customize the color of the lines to match their charting preferences.
#### Inputs
- **Timeframe (`tf`)**: Defines the timeframe to select the breakout candle (default: 1 minute).
- **Active Trading Range (`session`)**: Specifies the time range for identifying breakout candles (default: 08:00-12:00).
- **Line Color (`line_color`)**: Allows customization of the line color (default: purple).
#### Logic
1. **Session Validation**: The indicator checks if the current bar falls within the specified active trading range.
2. **Price Point Calculation**: For each candle close, the indicator calculates the nearest xxx.20 and xxx.80 levels.
3. **Line Drawing**: Horizontal lines are drawn at these key levels, extending a specified length forward to highlight potential rotation points.
#### Use Cases
- **Support and Resistance Identification**: By highlighting the xxx.20 and xxx.80 levels, traders can easily spot areas where the market is likely to reverse or consolidate.
- **Breakout Trading**: Traders can use the indicator to identify breakout levels and set appropriate entry points.
- **Risk Management**: The visual cues provided by the indicator can help traders set more effective stop-loss and take-profit levels.
#### Example
A trader using a 1-minute timeframe with an active trading range from 08:00 to 12:00 will see horizontal lines painted at the nearest xxx.20 and xxx.80 levels for each candle close during this period. These lines serve as visual markers for typical rotation points, aiding in decision-making and trade planning.
#### Conclusion
The MNQ/NQ Rotations indicator is a powerful tool for traders looking to enhance their market analysis of Nasdaq futures. By focusing on empirically derived rotation levels, this indicator provides clear visual cues for identifying key price levels, supporting more informed trading decisions.
HTF TriangleHTF Triangle by ZeroHeroTrading aims at detecting ascending and descending triangles using higher time frame data, without repainting nor misalignment issues.
It addresses user requests for combining Ascending Triangle and Descending Triangle into one indicator.
Ascending triangles are defined by an horizontal upper trend line and a rising lower trend line. It is a chart pattern used in technical analysis to predict the continuation of an uptrend.
Descending triangles are defined by a falling upper trend line and an horizontal lower trend line. It is a chart pattern used in technical analysis to predict the continuation of a downtrend.
This indicator can be useful if you, like me, believe that higher time frames can offer a broader perspective and provide clearer signals, smoothing out market noise and showing longer-term trends.
You can change the indicator settings as you see fit to tighten or loosen the detection, and achieve the best results for your use case.
Features
It draws the detected ascending and descending triangles on the chart.
It supports alerting when a detection occurs.
It allows for selecting ascending and/or descending triangle detection.
It allows for setting the higher time frame to run the detection on.
It allows for setting the minimum number of consecutive valid higher time frame bars to fit the pattern criteria.
It allows for setting a high/low factor detection criteria to apply on higher time frame bars high/low as a proportion of the distance between the reference bar high/low and open/close.
It allows for turning on an adjustment of the triangle using highest/lowest values within valid higher time frame bars.
Settings
Ascending checkbox: Turns on/off ascending triangle detection. Default is on.
Descending checkbox: Turns on/off descending triangle detection. Default is on.
Higher Time Frame dropdown: Selects higher time frame to run the detection on. It must be higher than, and a multiple of, the chart's timeframe. Default is 5 minutes.
Valid Bars Minimum field: Sets minimum number of consecutive valid higher time frame bars to fit the pattern criteria. Default is 3. Minimum is 1.
High/Low Factor checkbox: Turns on/off high/low factor detection criteria. Default is on.
High/Low Factor field: Sets high/low factor to apply on higher time frame bars high/low as a proportion of the distance between the reference bar high/low and open/close. Default is 0. Minimum is 0. Maximum is 1.
Adjust Triangle checkbox: Turns on/off triangle adjustment using highest/lowest values within valid higher time frame bars. Default is on.
Detection Algorithm Notes
The detection algorithm recursively selects a higher time frame bar as reference. Then it looks at the consecutive higher time frame bars (as per the requested number of minimum valid bars) as follows:
Ascending Triangle
Low must be higher than previous bar.
Open/close max value must be lower than (or equal to) reference bar high.
When high/low factor criteria is turned on, high must be higher than (or equal to) reference bar open/close max value plus high/low factor proportion of the distance between reference bar high and open/close max value.
Descending Triangle
High must be lower than previous bar.
Open/close min value must be higher than (or equal to) reference bar low.
When high/low factor criteria is turned on, low must be lower than (or equal to) reference bar open/close min value minus high/low factor proportion of the distance between reference bar low and open/close min value.
Risk Management Calculator with Fees and Take Profit [CHE]Risk Management Calculator with Fees and Take Profit
Welcome to the Risk Management Calculator with Fees and Take Profit script! This powerful tool is designed to help traders manage their risk effectively, calculate leverage, and set take profit targets. The script is inspired by and builds upon the ideas from the following TradingView script: ().
This script is inspired by and builds upon the ideas from the following TradingView script:
Features
1. Portfolio Size Input: Enter the size of your portfolio to accurately calculate your risk and leverage.
2. Max Loss Percent Input: Specify the maximum percentage of your portfolio that you are willing to risk on a single trade.
3. Max Leverage Input: Set the maximum leverage you are comfortable using.
4. Trading Fee Input: Include trading fees in your calculations to get a more realistic view of your potential losses and gains.
5. ATR Settings: Configure the ATR period and multiplier to calculate your stop loss and take profit levels.
6. RSI Settings: Adjust the RSI period for trend analysis.
How to Use
Portfolio Size
- Description: This is the total value of your trading account.
- Input: `portfolioSize`
- Default Value: 100
- Minimum Value: 0.001
Max Loss Percent
- Description: The maximum percentage of your portfolio you are willing to lose on a single trade.
- Input: `maxLossPercent`
- Default Value: 3%
- Range: 0.1% to 100%
Max Leverage
- Description: The maximum leverage you wish to use.
- Input: `maxLeverage`
- Default Value: 125
- Range: 1 to 125
Trading Fee
- Description: The fee percentage you pay per trade.
- Input: `feeRate`
- Default Value: 1%
- Range: 0% to 10%
ATR Settings
- ATR Period: Number of bars used to calculate the Average True Range.
- Input: `atrPeriod`
- Default Value: 5
- ATR Multiplier: Multiplier for ATR to set stop loss levels.
- Input: `atrMultiplier`
- Default Value: 2.0
Take Profit Multiplier
- Description: Multiplier for ATR to set take profit levels.
- Input: `takeProfitMultiplier`
- Default Value: 2.0
RSI Settings
- RSI Period: Period for the RSI calculation.
- Input: `rsiPeriod`
- Default Value: 14
Dashboard
The script includes a customizable dashboard that displays the following information:
- Portfolio Size
- Maximum Loss Amount
- Entry Price
- Stop Loss Price
- Stop Loss Percentage
- Calculated Leverage
- Order Value
- Order Quantity
- Trend Direction
- Adjusted Maximum Loss Percentage
- Take Profit Price
Dashboard Settings
- Location: Choose the position of the dashboard on the chart.
- Options: 'Top Right', 'Bottom Right', 'Top Left', 'Bottom Left'
- Size: Adjust the size of the dashboard text.
- Options: 'Tiny', 'Small', 'Normal', 'Large'
- Text/Frame Color: Set the color for the text and frame of the dashboard.
Underlying Principles and Assumptions
Leverage Calculation
The leverage calculation is fundamental to risk management in trading. It ensures that the risk per trade does not exceed a specified percentage of the portfolio. This calculation takes into account the potential loss from the entry price to the stop loss level, adjusted for trading fees. By dividing the maximum acceptable loss by the total potential loss (including fees), we derive a leverage that limits the exposure per trade. This approach helps traders avoid over-leveraging, which can lead to significant losses.
ATR and Stop Loss
The Average True Range (ATR) is used to set stop loss levels because it measures market volatility. A higher ATR indicates more volatility, which means wider stop losses are needed to avoid being prematurely stopped out by normal market fluctuations. By using an ATR multiplier, the stop loss is dynamically adjusted based on current market conditions, providing a more robust risk management strategy.
Take Profit Calculation
The take profit level is calculated as a multiple of the ATR, ensuring that it is set at a realistic level relative to market volatility. This method aims to capture significant price movements while avoiding the noise of smaller fluctuations. Setting take profit targets this way helps in locking in profits when the market moves favorably.
RSI for Trend Confirmation
The Relative Strength Index (RSI) is used to confirm the trend direction. An RSI above 50 typically indicates a bullish trend, while an RSI below 50 indicates a bearish trend. By aligning trades with the prevailing trend, the script increases the probability of successful trades. This trend confirmation helps in making informed decisions about leverage and position sizing.
Risk Color Coding
The script uses color coding to visually indicate the risk level and trend direction. Green indicates a favorable condition for long trades, red for short trades, and gray for neutral conditions. This intuitive color coding aids in quickly assessing the market conditions and making timely trading decisions.
Conclusion
This script aims to provide a comprehensive risk management tool for traders. By integrating portfolio size, leverage, fees, ATR, and RSI, it helps in making informed trading decisions. We hope you find this tool useful in your trading journey.
Happy Trading!
Customizable NQ Level PlotterThis indicator, inspired by Kellyannnn, will plot user specified levels on the NQ Chart.
Add the levels you want to see, customize the colors, and you're good to go.
Let me give you an example of how this might be used:
Say, for example, that you have noticed that the NQ seems to move between the even hundred levels and the even fifty levels.... if you tell this indicator to plot those 2 levels at every even hundred and every even 50 level it will do so at:
18000
18050
18100
18150
18200
18250... and so on.
It will plot these levels above and below the current price.
If you want to add 2 other levels, you can do that as well.
So if you wanted to have it plot a line at every 00, 26, 50, and 77 it would do so like this:
18000
18026
18050
18077
18100
18126
18150
18177
18200
18226
18250
18277
18300... and so on.
Some people may find this helpful in planning their trades.
ICSM (Impulse-Correction & SCOB Mapper) [WinWorld]DESCRIPTION
ICSM (Impulse-Correction SCOB Mapper) is the indicator that analyzes the price movement and identifies valid impulses, corrections and SCOBs. It is a powerful tool that can be used with any type of technical analysis because it's flexible, informative, easy to use and it does substantially improve trader's awareness of the most liquid zones of interest.
SETTINGS
General | Visuals
Colour theme — defines the colour theme of the ICSM.
SCOB | Visuals
Show SCOB — enables/disables SCOB;
Mark SCOB with — represents a list of style options for SCOB representation;
SCOB colour — defines the colour of the SCOB;
ICM | Visuals
Show ICM lines — enables/disables ICM (Impulse-Correction Mapper) lines;
Show IC trend — enables/disables visualization of impulse-correction trend via coloured divider at the bottom of the chart;
Line colour — defines the colour of the ICM lines;
Line style — defines the style of the ICM lines;
Alerts
ICM — enables/disables alert for breaking ICM lines;
SCOB — enables/disables alert for SCOB creation;
ICM+SCOB — enables/disables alert for SCOB occurance at the end of the single impulse/correction, which grabs ICM line's liquidity.
ICM+SCOB (same candle) — enables/disables alert for SCOB occurance at the candle, which grabs ICM line's liquidity.
IMPORTANT CONCEPTS
In order to fully understand what ICSM can do, let's do a quick overview of the most important concepts that this indicator is built on.
By ICM we mean the liquidity grabbing of Impulse-Correction Mapper's lines (ICM lines; represented as dashed horizontal lines on the chart ). Saying shortly, liquidity grabs of ICM lines posses great opportunities for finding great entries.
SCOB (Single Candle Order Block) builds up by 3 simple rules:
Previous candle's liquidity is grabbed;
Current candle closes inside previous candle;
Imbalance occurs on the next candle.
SCOB is a quite useful zone of interest, from which the price usually reverses. You can also use SCOB as POI* on HTF** or as entry zone on LTF***.
* POI — Point Of Interest
* HTF — Higher TimeFrame
* LTF — Lower TimeFrame
"ICM+SCOB" is a short name that we use for event, at which price first grabs the liquidity from ICM line and then creates a SCOB at the same impulse/correction movement ( on the same ICM line, that does the liquidity grab ). Usually the SCOB that occurs after this event represents a highly liquid zone of interest , which should be considered when choosing entry level.
"ICM+SCOB (same candle)" is basically the same as "ICM+SCOB" event but with one major difference — the candle, which grabs the liquidity of ICM line, is also the candle at which the SCOB occurs, making such SCOB an even better zone of interest than a regular SCOB from ICM+SCOB event.
BIGGEST ADVANTAGES
ICSM precisely identifies impulses and corrections. Huge load of indicators on the TradingView does only show the simplest zones of interests, while ICSM uses our team's signature algorithms to precisely identify true impulses and corrections in the market, allowing traders to see both local and global price direction better and at the same time providing traders with the most liquid zones of interest;
ICSM shows points of interest and liquidity. The indicator identifies the nearest points of interest and zones, where the liquidity is concentrated, allowing you to find great entry and exit points for your trades;
ICSM has SCOB (Single Candle Order Block) detection function. ICM is packed with the extremely useful in SMC trading SCOB detetction feature, which allows you find even more solid points of interest;
ICSM has super minimalistic design, which contains only the things you really need. Your chart will not be overloaded with unnecessary information. You will only see clear points of interest, liquidity and price movement.
WHY SHOULD YOU USE IT?
As was said above, ICSM allows you to see the most profitable points and zones of interest, which professional SMC traders consider as one of the best in the market, because they are historically the areas from which the price bounces the most, allowing the smartest traders to get quick an clean profits with low drawdown.
In the ICSM indicator these zones are SCOB and ICM line liquidity grabs. By using these zones of interest to find entry points, you increase the chance to open a trade at the most lucrative price and reduce trading risks.
Considering what was said above, this indicator can help traders reduce drawdown risks and increase potential profits simply by showing the most liquid zones of interest, which are perfect for opening a trading position.
Here are some of the examples of how you leverage ICSM in your trading process:
Example of the short trade:
Price shows overall short trend. Trend liquidity is being formed.
Price grabs liduiqity from three ICM lines in a row and then creates a long SCOB at the end of 3rd liquidity grab.
SCOB, which occured at the end of ICM line, represents much stronger zone of interest than a regular SCOB. In this case it represents a zone, which we will use to find an entry.
The entry for the trade will be SCOB candle's low, stop-loss target should be put above SCOB candle's high. Our take-profit target is trend liquidity. See the screenshot above for better understanding.
▼ Now let's see the long trade example. ▼
Example of the long trade:
Price creates trend liquidity by showing equal highs ( EQH ).
Price grabs liduiqity from four ICM lines in a row and then creates a long SCOB at the end of 4th liquidity grab.
Again: SCOB, which occured at the end of ICM line, represents much stronger zone of interest than a regular SCOB. In this case it represents a zone, which we will use to find an entry.
The entry for the trade will be SCOB candle's high, stop-loss target should be put below SCOB candle's low. Our take-profit target is EQH. See the screenshot above for better understanding.
ALERTS
ICSM provides simple and easy alert customization, allwoing to choose only the alerts you want to receive. You can choose from the following alert options:
ICM — impulse or correction liquidity grab;
SCOB — SCOB is formed, wether or not the liquidity is grabbed from the impulse or correction;
SCOB+ICM — SCOB is formed after grabbing the liquidity of the ICM line;
SCOB+ICM (same candle) — SCOB is formed in the liquidity area of the impulse or correction.
HOW CAN I GET THE MOST OUT OF IT?
ICSM displays only the first liquidity of an impulse or correction, which matches the IDM (Inducement) in the Advanced SMC strategy . This strategy is completely covered in the World Class SMC indicator and is available for free for PDF in three parts.
You can also ICSM with any other strategy, because ICSM is a very flexible indicator and will help anyone improve their trading by making one aware of the high-quality liquidity on the chart.
Let's see how you can leverage ICSM with our World Class SMC indicator and other different strategies:
Example of the long & short trades with World Class SMC.
Long (1-3):
Price reached previous OB-EXT . This is the first sign for the potential price reversal;
ICM+SCOB happened after price reached OB-EXT;
After that, you can need to look for an entry on LTF. If you don't know how to do it, you can refer to our education materials.
Short (4-6):
Price reached OB-IDM , which is also a great sign for a potential upcoming price reversal;
ICM+SCOB occured after liquidity grab of the previous SCOB. This fact does strengthen the probability of the potential upcoming price reversal;
Now you need to switch to LTF and find an entry there.
Example of the short trade with simple Fibonacci retracement strategy.
Price grabs the liquidity of the ICM lines three times in a row, forming SCOB after the 3rd grab;
Price performs correctional move down without testing the SCOB, leaving no entry opportunity by our initial strategy, so we can add another strategy — Fibonacci retracement from 0.618 level — to our analysis in order to find an entry ;
We use Fibonacci grid with our initial strategy to find the best POI, that will align with the trend direction and will eventually become our entry point.
SUMMARY
ICSM is a unique indicator that indentifies zones and points of interests with high-quiality liquidity and can be both a stand-alone tool and can be integrated into any other strategy to increase the efficiency of analysis, accuracy of trading entries and reduce trading risks.
If you want to learn the SMC strategies that our team uses in our products, you can refer to our educational materials.
We hope that you will find a great use of ICSM and it will help you improve your perfomance as a trader. Best of luck, traders!
— with love, WinWorld Team
Multiple Divergences [UAlgo]🔶 Description:
"Multiple Divergences " is providing insights into potential divergences across multiple indicators. Divergence, a concept in technical analysis, occurs when the price of an asset diverges from the direction of an accompanying indicator, suggesting a possible reversal or continuation in the price trend.
🔶 Key Features:
Customizable Divergence Settings: Users can adjust parameters such as the minimum number of divergences required to display labels, pivot lookback periods, and plot options for various types of divergences (regular or hidden) and bullish/bearish labels.
Multiple Technical Indicators: The script supports a wide range of popular indicators, including MACD, RSI, Stochastic, CCI, Momentum, OBV, DMI Oscillator, VWmacd, Chaikin Money Flow, Money Flow Index, and Awesome Oscillator. You can choose any of the above-mentioned technical indicators for which you want to capture divergences.
🔶 Purpose of Using Multiple Technical Indicators
In the complex and volatile world of trading, relying on a single indicator can provide an incomplete or misleading picture of market conditions. Different technical indicators analyze various aspects of price movement, volume, and momentum, offering unique insights that can complement each other. By utilizing multiple indicators, traders can cross-verify signals, reduce false positives, and increase the reliability of their trading decisions.
Identifying divergences across multiple indicators further enhances this reliability, as a divergence spotted in several indicators simultaneously is a stronger signal than one found in isolation. This comprehensive approach helps traders to anticipate potential market turning points with greater confidence and precision.
By integrating multiple technical indicators and meticulously tracking their divergences, this script aims traders with a robust tool for navigating the complexities of financial markets.
🔶 How to Obtain Divergences
Regular Bullish Divergence:
This occurs when the price makes a new lower low compared to a previous pivot low, indicating a downward trend. Simultaneously, the selected oscillator makes a higher low compared to its previous pivot low, indicating a potential upward momentum. This divergence suggests that, despite the falling price, the underlying momentum is strengthening, potentially signaling a reversal to an upward trend.
Regular Bearish Divergence:
This happens when the price makes a new higher high compared to a previous pivot high, indicating an upward trend. Concurrently, the selected oscillator makes a lower high compared to its previous pivot high, indicating weakening momentum. This divergence suggests that, despite the rising price, the underlying momentum is weakening, potentially signaling a reversal to a downward trend.
Example for Regular Bullish and Regular Bearish Divergences (Minimum Divergenes Count to Display = 3, All Selected):
Hidden Bullish Divergence:
Hidden bullish divergence is observed when the price makes a higher low compared to a previous pivot low, indicating an upward trend. At the same time, the oscillator makes a lower low compared to its previous pivot low, indicating a potential strengthening momentum. This condition suggests that the underlying strength of the upward trend is intact, despite the oscillator indicating otherwise.
Hidden Bearish Divergence:
This occurs when the price makes a lower high compared to a previous pivot high, indicating a downward trend. Simultaneously, the oscillator makes a higher high compared to its previous pivot high, indicating a potential weakening momentum. This divergence suggests that the underlying weakness of the downward trend is intact, despite the oscillator indicating otherwise.
Divergence Labeling: The script dynamically generates labels on the chart to visually highlight detected divergences based on user-defined criteria. (E.g. "5 Regular Bullish Divs." , "1 Hidden Bearish Div")
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Half Cup [LuxAlgo]The Half Cup indicator detects and displays patterns with the shape of a Half Cup , initiating a channel. From this channel, breakouts are detected and highlighted with dots.
Users can control the shape of the Half Cup and the channel length through various settings.
Do note that the displayed half cups are displayed retrospectively, making them subject to backpainting.
🔶 USAGE
The idea behind the indicator is derived from the Cup & Handle pattern, which requires waiting for the pattern full completion.
Our Half Cup publication aims to find opportunities when the potential cup is only formed halfway.
In this example, a green dot shows the first breakout of the upper channel extremity. A few bars later, the price went under it, after which it returned above, triggering a second green dot. Both triggers were good opportunities in this case, and the price rose afterward.
The Half Cup pattern can be the start of a potential complete Cup & Handle (As in the example above, a complete Cup pattern (without the Handle ) is shown, manually drawn with dashed lines).
Every green/red dot, whether on a bullish or bearish pattern, points to a breakout respectively above/below the channel.
Besides drawing patterns and the corresponding breakouts, the Half Cup indicator can also provide insights into trends and potential opportunities in the long run.
🔶 DETAILS
🔹 Validation
Several criteria must be fulfilled before a visible pattern on the chart is drawn.
Calculations are done beforehand to know where the Half Cup pattern would be positioned.
The pattern's bottom and top edges are checked for the number of bars whose closing price is outside the half-cup area. When the number of breakouts above/below is equal to or lower than the user-defined settings ( Max % Breaks Top/Bottom ), the pattern is drawn together with a brighter-colored channel next to it.
Dots highlighting the channel's breakout can be drawn from that moment until the end of both channel lines.
🔹 Positioning
Users can adjust the following settings to fit their needs:
% Broadness: Moves the Top/Bottom line (bullish or bearish) diagonally upwards/downwards.
Vertical Shift: Shifts the entire pattern up/down.
Channel Length: Sets the line length of the channel.
Note that adjusting the position of the pattern will change the validation; the script will be rerun to check if patterns are still valid or if new patterns can be drawn. Some patterns may disappear, while new ones may appear.
Before adjusting the position, the user can set Max % Breaks Top/Bottom at 100%. When the positioning is set, Max % Breaks Top/Bottom can be set as desired.
🔹 Updated Drawings
The Half Cup pattern is always drawn retrospectively (that is it is subject to backpainting), the channel is drawn from the bar from where the pattern is detected. Every breakout of the channel will remain visible as dots.
When a new swing high/low is found while the previous swing low/high remains the same, the pattern is updated to minimize clutter. The dots of earlier drawings will remain visible (to ensure no repainting occurs), but the color becomes faded, as such bright dots are associated with patterns that are visible on the chart, while faded dots are from removed/updated patterns.
🔶 SETTINGS
Swing Length: Period used for the swing detection, with higher values returning longer-term Swing Levels.
🔹 Validation
Max % Breaks Bottom: Allowed maximum amount of bars where the closing price is below the bottom of the Half Cup pattern against the total width of the pattern (bars).
Max % Breaks Top: Allowed maximum amount of bars where the closing price is above the top of the Half Cup pattern against the total width of the pattern (bars).
🔹 Positioning
% Broadness: Moves the Top/Bottom line (bullish or bearish) diagonally upwards/downwards.
Vertical Shift: Shifts the entire pattern up/down.
Channel Length: Sets the line length of the channel.
Bearish 3 Bars Reversal PatternThis TradingView Pine Script indicator identifies and highlights a bearish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current low and the previous high, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bearish 3-bar reversal pattern when the high of the previous bar is higher than the high of the bar before it, and the current high is lower than the previous high.
Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current low and the previous high. This percentage is displayed on the chart.
Visual Indicators:
When a bearish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with a downward arrow, red color, and white text for clear visibility.
Alerts:
An alert condition is set up to notify users when the bearish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.
Bullish 3 Bars Reversal PatternThis TradingView Pine Script indicator identifies and highlights a bullish 3-bar reversal pattern on your chart. The script also calculates the percentage difference between the current high and the previous low, displaying this value on the chart when the pattern is detected.
Features:
Pattern Detection:
The script detects a bullish 3-bar reversal pattern when the low of the previous bar is lower than the low of the bar before it, and the current low is higher than the previous low.
Percentage Difference Calculation:
When the pattern is detected, the script calculates the percentage difference between the current high and the previous low. This percentage is displayed on the chart.
Visual Indicators:
When a bullish 3-bar reversal pattern is detected, a label is created on the chart showing the calculated percentage difference. The label is styled with an upward arrow, green color, and white text for clear visibility.
Alerts:
An alert condition is set up to notify users when the bullish 3-bar reversal pattern is detected. This allows traders to take timely action based on the pattern.
Percentages from 52 Week HighThis script is helpful for anyone that wants to monitor 5, 10, 20, 30, 40, 50% drops from the 52 week moving high.
I have been using a version of this script for a few years now and thought I would share it back with the community as I wrote it in 2021 to find quick deals when flipping through charts of stocks I've been watching. I never seemed to find anything doing this simple yet intuitive thing and I found myself regularly computing these lines manually on each chart. This will save you from having to do that as it automatically draws each level on your chart based on the recent 52 week or daily high.
I recently added the ability to turn on/off different levels and defaulted to setting 5, 10, and 20 % drops from the 52 week high. You can also change this to be a 52 day moving high if that's your preference.
Please let me know if you have ideas for modification as I wanted to share this with the community given I had not seen anything out there giving me what I wanted - which is why I wrote it.
All the best friends.
Weekday H/L Raids Weekday H/L Raids
The "Weekday H/L Raids" indicator is a powerful tool designed to help traders identify and visualize key levels from previous days' highs and lows, track their raids, and manage alerts effectively. This script is equipped with numerous customizable features to suit your trading style and preferences.
Key Features:
Display Settings:
Show previous highs and lows: Toggle to display previous highs and lows on the chart.
Show labels: Toggle to display labels for the highs and lows.
Lookback days: Set the number of days to look back for high and low levels (1-10 days).
Style Settings:
Line Style: Choose between Solid, Dashed, or Dotted lines.
Line Width: Adjust the width of the lines (1-4).
High Color: Set the color for high levels (default: green).
Low Color: Set the color for low levels (default: red).
Label Size: Customize the label size (Tiny, Small, Normal, Large).
Table Settings:
Show table: Toggle to display a table summarizing the levels.
Table Position: Position the table at Top Left, Top Right, Bottom Left, or Bottom Right.
Number of Table Rows: Set the number of rows to display in the table (1-10).
Table Border Color: Choose the border color of the table.
Table Background Color: Choose the background color of the table.
Table Text Color: Choose the text color in the table.
Alert Settings:
Enable Alerts: Toggle to enable or disable alerts for when levels are raided.
How It Works:
The script identifies previous day high and low levels, allowing you to visualize these critical points on your chart. It updates these levels daily and checks if they are raided, providing visual cues and alerts when this occurs.
High and Low Levels: Automatically plots previous day's highs and lows with customizable styles.
Labels: Displays labels indicating high and low levels with optional customization for size and color.
Alerts: Get notified when a previous high or low is raided, ensuring you never miss critical market movements.
Table Summary: Summarizes the levels and their statuses (raided or not) in a table, with customizable position, colors, and size.
Usage:
Add the indicator to your chart.
Customize the display, style, table, and alert settings to fit your preferences.
Monitor the levels and respond to alerts as necessary.
Disclaimer:
This script is a tool to help analysts and traders visualize important levels and manage alerts. It does not provide financial advice or guarantee any trading results.