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.
Candlestick analysis
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.
The Magic LineThis script is based on the simple 2 or 3 candle entry model taught by Armando "The Professor".
This strategy will work best on the 1hr timeframe or higher and you can also add a MA on your chart to identify direction of trend and trade with the trend. For example, if price is above the 50 SMA, you can opt to only look for 'buy' signals. If price is below the 50 SMA, you can opt to only look for 'sell' signals.
The default setting is to wait for 3 consecutive candles of either bullish or bearish sentiment before printing a buy or sell signal. This can be changed to any number you would like but typically 3 works best, as long as you're using the 1hr timeframe or higher.
Ex: If there are 3 green (bullish) candles print in a row, a 'sell' signal will print, and the entry line will be one tick below the open of the previous green candle. You can use that line as your entry.
For your stop loss, you can try to use the most recent swing high (for sells) or swing low (for buys). You can also use nearby support/resistance levels, or even the PSAR as another way to determine your stop loss.
If there are more than 3 consecutive candles with the same sentiment, signals will continue to print until the streak ends at which point the counter will restart, and the idea is to take the most recent signal as your entry. Limit/Stop entries work best as you can just let price come down to the signal line that is drawn.
Comment below if you have any questions! Good luck!
ABC PatternThe indicator, named "ABC Pattern," is designed to identify specific bullish and bearish patterns on a price chart. Here's a simple explanation of what it does:
What the Indicator Does:
1. Identifies Bullish Patterns:
- The indicator looks for a sequence of candles where certain conditions are met to form a bullish pattern.
- When it detects a bullish pattern, it colors the candle that occurred three periods ago in gold.
2. Identifies Bearish Patterns:
- Similarly, it looks for a sequence of candles where certain conditions are met to form a bearish pattern.
- When it detects a bearish pattern, it colors the candle that occurred three periods ago in pinkish.
3. Creates Alerts:
- Whenever a bullish or bearish pattern is identified, the indicator generates an alert.
- The alert message includes the type of pattern (bullish or bearish), the price level at the time of detection, and the date and time of the pattern formation.
Detailed Conditions:
- Bullish Pattern:
- The current candle closes higher than it opened.
- The previous candle also closes higher than it opened.
- Two candles ago, the candle closed lower than it opened.
- Three candles ago, the candle closed higher than it opened.
- The highest price of two candles ago is below the current close.
- The lowest price of three candles ago is above the close of two candles ago.
- The highest price of three candles ago is below the current close.
- Bearish Pattern:
- The current candle closes lower than it opened.
- The previous candle also closes lower than it opened.
- Two candles ago, the candle closed higher than it opened.
- Three candles ago, the candle closed lower than it opened.
- The lowest price of two candles ago is above the current close.
- The highest price of three candles ago is below the close of two candles ago.
- The lowest price of three candles ago is above the current close.
Visual Representation:
- Gold Color: Indicates a detected bullish pattern.
- Pinkish Color: Indicates a detected bearish pattern.
Alerts:
- Alert Message: "ABC Pattern has appeared!"
- Detailed Alerts: Include the type of pattern, price level, and timestamp for better analysis and decision-making.
This indicator helps traders visually and audibly detect potential bullish and bearish patterns on their charts, aiding in making more informed trading decisions.
Variable Index Dynamic Average (VIDYA) with HistperThe Variable Index Dynamic Average (VIDYA) is a unique and adaptive moving average indicator designed to respond dynamically to market volatility. It adjusts its smoothing factor based on the standard deviation of price changes, making it more responsive during periods of high volatility and smoother during periods of low volatility. This version includes two key parameters:
Period: The number of bars used to calculate the VIDYA.
HistPer: The number of historical bars used to calculate the standard deviation, affecting the smoothness and responsiveness of the indicator.
Features:
Dynamic Adaptation: VIDYA adjusts its responsiveness based on market conditions, providing a balance between smoothness and responsiveness.
Customizable Parameters: Users can customize the Period and HistPer to fit their specific trading style and asset characteristics.
Overlay on Price Chart: The VIDYA is plotted directly on the price chart for easy visualization and integration with other technical analysis tools.
Usage:
Trend Identification: Use VIDYA to identify the prevailing trend. A rising VIDYA line indicates an uptrend, while a falling VIDYA line indicates a downtrend.
Entry and Exit Signals: Combine VIDYA with other indicators and trading strategies to confirm entry and exit signals.
Volatility Analysis: Adjust the HistPer to see how the indicator responds to different levels of market volatility.
Weekly & Daily High/Low AnalyzerOverview
The Weekly & Daily High/Low Analyzer indicator is designed to analyze the likelihood of achieving the High or Low of the day or week based on user-specified parameters. This tool is ideal for traders who want to identify potential turning points in the market by examining historical data.
Features
Weekly High/Low Analysis: Available exclusively on the daily timeframe, this feature allows users to analyze past weeks to determine the probability of reaching the weekly high or low. Users can specify the number of weeks to analyze via the "Number of Weeks to Calculate" input field. Setting this field to 0 includes all available historical data. Note that the current week is excluded from the analysis as it is incomplete, and weekends (Saturdays and Sundays) are not analyzed.
Daily High/Low Analysis: Available exclusively on the 1-hour timeframe, this feature analyzes past days to determine the probability of reaching the daily high or low. Users can specify the number of days to analyze via the "Number of Days to Calculate" input field. Setting this field to 0 includes all available historical data. The current day is excluded from the analysis as it is incomplete, and weekends (Saturdays and Sundays) are not analyzed.
Visualization
A table is displayed in the top right corner of the chart, showing the results of the analysis. The table highlights the hours or days with the highest probabilities in darker colors for easy identification.
How It Works
Weekly Analysis: On the daily timeframe, the script analyzes each week's high and low points. It differentiates between bullish and bearish weeks and calculates the probability of reaching the high or low on each day of the week (Monday to Friday).
Daily Analysis: On the 1-hour timeframe, the script examines the high and low points of each trading day. It differentiates between bullish and bearish days and calculates the probability of reaching the high or low at each hour of the trading day.
Inputs
Number of Weeks to Calculate: An integer input that determines the number of past weeks to include in the analysis. Setting this to 0 includes all historical data.
Number of Days to Calculate: An integer input that determines the number of past days to include in the analysis. Setting this to 0 includes all historical data.
Calculation and Display
The indicator uses arrays to count the occurrences of highs and lows on bullish and bearish weeks and days.
Probabilities are calculated and displayed in a table, with each row representing a day (for weekly analysis) or an hour (for daily analysis).
Colors in the table indicate the strength of the probability, making it easy to identify significant patterns.
Implementation
The script includes detailed logic for resetting values at the start of a new week or day, capturing opening and closing prices, and counting occurrences of highs and lows. The table displays data in a user-friendly format, with gradient colors indicating the probability strength.
Example Usage
Swing Traders: Can use the weekly analysis to identify potential high or low points for the week, aiding in setting entry or exit points.
Day Traders: Can use the daily analysis to determine the most likely hours for reaching the high or low of the day, optimizing intraday trading strategies.
Additional Information
This indicator is inspired by the knowledge shared by Omor and aims to provide traders with a statistical edge in predicting market movements.
FVG Instantaneous Mitigation Signals [LuxAlgo]The FVG Instantaneous Mitigation Signals indicator detects and highlights "instantaneously" mitigated fair value gaps (FVG), that is FVGs that get mitigated one bar after their creation, returning signals upon mitigation.
Take profit/stop loss areas, as well as a trailing stop loss are also included to complement the signals.
🔶 USAGE
Instantaneous Fair Value Gap mitigation is a new concept introduced in this script and refers to the event of price mitigating a fair value gap one bar after its creation.
The resulting signal sentiment is opposite to the bias of the mitigated fair value gap. As such an instantaneously mitigated bearish FGV results in a bullish signal, while an instantaneously mitigated bullish FGV results in a bearish signal.
Fair value gap areas subject to instantaneous mitigation are highlighted alongside their average level, this level is extended until reached in a direction opposite to the FVG bias and can be used as a potential support/resistance level.
Users can filter out less volatile fair value gaps using the "FVG Width Filter" setting, with higher values highlighting more volatile fair value gaps subject to instantaneous mitigation.
🔹 TP/SL Areas
Users can enable take-profit/stop-loss areas. These are displayed upon a new signal formation, with an area starting from the mitigated FVG area average to this average plus/minus N ATRs, where N is determined by their respective multiplier settings.
Using a higher multiplier will return more distant areas from the price, requiring longer-term variations to be reached.
🔹 Trailing Stop Loss
A trailing-stop loss is included, increasing when the price makes a new higher high or lower low since the trailing has been set. Using a higher trailing stop multiplier will allow its initial position to be further away from the price, reducing its chances of being hit.
The trailing stop can be reset on "Every Signal", whether they are bullish or bearish, or only on an "Inverse Signal", which will reset the trailing when a signal of opposite bias is detected, this will preserve an existing trailing stop when a new signal of the same bias to the present one is detected.
🔶 DETAILS
Fair Value Gaps are ubiquitous to price action traders. These patterns arise when there exists a disparity between supply and demand. The action of price coming back and filling these imbalance areas is referred to as "mitigation" or "rebalancing".
"Instantaneous mitigation" refers to the event of price quickly mitigating a prior fair value gap, which in the case of this script is one bar after their creation. These events are indicative of a market more attentive to imbalances, and more willing to correct disparities in supply and demand.
If the market is particularly sensitive to imbalances correction then these can be excessively corrected, leading to further imbalances, highlighting a potential feedback process.
🔶 SETTINGS
FVG Width Filter: Filter out FVGs with thinner areas from returning a potential signal.
🔹 TP/SL
TP Area: Enable take-profit areas for new signals.
Multiplier: Control the distance from the take profit and the price, with higher values returning more distant TP's.
SL Area: Enable stop-loss areas for new signals.
Multiplier: Control the distance from the stop loss and the price, with higher values returning more distant SL's.
🔹 Trailing Stop
Reset Trailing Stop: Determines when the trailing stop is reset.
Multiplier: Controls the initial position of the trailing stop, with higher values returning more distant trailing stops.
Brooks 18 Bars [KintsugiTrading]Brooks 18 Bars
Overview:
This indicator allows traders to specify a time frame within each trading day and plots lines at the highest and lowest prices recorded during that period. It is particularly useful for identifying key levels of support and resistance within a specified time range.
Features:
User-Defined Time Frame: Traders can input their desired start and end times in a 24-hour format, allowing flexibility to analyze different market sessions.
High and Low Price Levels: The indicator plots lines representing the highest and lowest prices observed within the specified time frame each day.
Clear Visual Representation: The high and low lines are color-coded for easy identification, with the high & low prices in Kintsugi Trading Gold.
How to Use:
Set the Time Frame:
Adjust the "Start Time Hour" and "Start Time Minute" to define the beginning of your desired time frame.
Adjust the "End Time Hour" and "End Time Minute" to define the end of your desired time frame.
Analyze Key Levels:
Al Brooks popularized the following idea and basis for creating this indicator:
On a 5-minute chart, Bar 1 has a 20-30% chance of being the High or Low of the day.
Bar 12 has a 50% chance.
Bar 18 has an 80-90% chance.
Use the plotted lines to identify significant support and resistance levels within your specified time frame. These levels can help inform your trading decisions, such as entry and exit points.
Good luck with your trading!
Liquidity Swings & SweepsThis Pine script indicator is designed to create a visual representation liquidity as identified by swing Highs/Lows along with an indication of the liquidity level that was swept, optionally rating the strength of the sweep based on time & price.
Relevance:
Liquidity levels & sweeps are crucial for many SMC/ICT setups and can indicate a point at which the price changes direction or may re-trace in an opposite direction to provide additional liquidity for continued move in the original direction. Additionally, liquidity levels may provide targets for setups, as price action will often seek to take out those levels as they main contain many buy/sell stops.
How It Works:
The indicator tracks all swing points, as identified using user-defined strength of the swing. Once a swing is formed that meets the criteria, it is represented by a horizontal line starting at the price of the current swing until the last bar on the chart. While the swing is valid, this line will continue to be extended until the swing is invalid or a new swing is formed. Upon identifying a new swing, the indicator then scans the earlier swings in the same direction looking for a point of greatest liquidity that was taken by the current swing. This level is then denoted by dashed horizontal line, connecting earlier swing point to the current. At the same time any liquidity zones between the two swings are automatically removed from the chart if they had previously been rendered on the chart. If the setting to enable scan for maximum liquidity is enabled, then while looking back, the indicator will look for lowest low or highest high that was taken by the current swing point, which may not be a swing itself, however, is a lowest/highest price point taken (mitigated) by the current swing, which in many cases will be better price then then the one represented by previous swing. If the option to render sweep label is enabled, the sweep line will also be completed by a label, that will score the sweep and a tooltip showing the details of the level swept and the time it took to sweep it. The score explained further in configurability section ranks the strength of the sweep based on time and is complemented by price (difference in price between the two liquidity levels).
Configurability:
A user may configure the strength of the swing using both left/right strength (number of bars) as well as optionally instruct the indicator to seek the lowest/highest price point which may not be previous swing that was taken out by newly formed swing.
From appearance perspective liquidity level colors & line width presenting the liquidity/swing can be configured. There is also an option to render the liquidity sweep label that will generate an icon-based rating of the liquidity sweep and a tooltip that provides details on the scope of the swing, which includes liquidity level swept and when it was formed along with the time it took to sweep the liquidity.
Rating is of sweeps is primarily based on time with a secondary reference to price
💥- Best rating, very strong sweep with an hourly or better liquidity sweep
🔥- Second rating, strong sweep with 15 – 59 minute liquidity sweep, or 5+ minute sweep of 10+ points
✅- Third rating, ok sweep with 5 - 15 minute liquidity sweep, or lower-time-frame sweep of 10+ points
❄️ - Weakest sweep, with liquidity of 5 or less minutes swept
What makes this indicator different:
Designed with high performance in mind, to reduce impact on chart render time.
Only keeps valid liquidity levels & sweeps on the chart
Automatically removes previously taken liquidity levels
Ranks liquidity sweeps to indicate strength of the sweep
Heads UpAn indicator that gives you the "heads up" that that bullish/ bearish strength is increasing.
I wanted an indicator that could give me the "heads up" that bullish/ bearish strength is increasing. This would help me get into a breakout early or avoid entering a breakout that had a high probability of failure.
Here are my definitions for this indicator:
My bull bar definition:
- A green candle that closes above 75% of it's candle range.
- The candle's body does not overlap the previous candle's body. Tails/ wicks CAN overlap.
My bear bar definition:
- A red candle that closes below 75% of it's candle range.
- the candle's body does not overlap the previous candle's body. Tails/ ticks CAN overlap.
Bullish strength increasing (arrow up):
- Bull bars are increasing in size (the candle's range) compared to previous 5 bars.
- 2 consecutive bull bars.
Bearish strength increasing (arrow down):
- Bear bars are increasing in size (the candle's range) compared to previous 5 bars.
- 2 consecutive bear bars.
You will not see this indicator trigger very often but when it does - it's because there is a change in bullish bearish strength.
Things to be aware of:
Use the indicator in line with the context of the previous trend. You will get triggers that fail. These are usually because they appear counter trend. When in doubt zoom out.
It will not call every successful breakout. If you understand the definitions you'll understand why it appears.
This is my first indicator and used for my personal use. Feedback and other ideas are welcome.
Average Candle Range [UkutaLabs]█ OVERVIEW
The Average Candle Range is a powerful indicator that compares the size of the current bar to past bars. This comparison can be used in a wide variety of trading strategies, allowing traders to understand at a glance the relative size of each candle.
█ USAGE
As each candlestick forms, two bars will be plotted on the indicator. The grey bar represents the total range of the candle from the high to the low, and the second bar represents the body of the bar from the open to the close. Depending on whether the bar is bullish or bearish, the second bar will be colored green or red respectively.
Two averages will also be drawn over these bars that represent the average size of the two bar types over a period that is specified by the user. These averages can be toggled in the indicator settings.
█ SETTINGS
Configuration
• Period: Determines how many bars to use in the calculation of the averages.
• Show Bar Average: Determines whether or not the average for the full bar size is displayed.
• Show Body Average: Determines whether or not the average for the body is displayed.
First 5-Minute Candle BoxTitle: "First 5-Minute Candle Box Indicator"
Description:
Introducing the "First 5-Minute Candle Box" indicator for TradingView! This powerful script is designed to help traders visualize and analyze the high and low prices of the first 5-minute candle of each trading day. By clearly marking this crucial price range, traders can gain valuable insights into potential support and resistance levels right from the start of the trading session.
Features:
First 5-Minute Candle High and Low: Automatically captures and displays the high and low prices of the first 5-minute candle of the trading day, providing key levels for intraday trading strategies.
Daily Reset: Resets the high and low variables at the beginning of each new trading day to ensure accurate data capture for the current session.
Visual Box Representation: Draws a visual rectangle box on the chart from the start of the trading day to the end, highlighting the range between the high and low of the first 5-minute candle.
Customizable Appearance: The box is drawn with a customizable border color and background color, allowing traders to personalize the indicator to their chart's aesthetic.
Usage:
Add the indicator to your TradingView chart to automatically display the high and low of the first 5-minute candle of each trading day.
Utilize these levels as potential support and resistance zones for your intraday trading strategies.
Gain an early edge in your trading day by identifying key price levels right from the market open.
Code Explanation:
Variable Initialization: The script initializes variables to store the high and low prices of the first 5-minute candle.
Daily Reset Logic: At the start of a new day, the variables are reset to ensure they capture the correct data for the new trading session.
Price Capture Logic: The high and low prices of the first 5-minute candle are captured and stored.
Box Drawing Logic: The script defines the start and end times for the visual box and draws the rectangle if the high and low prices are set.
Customizable Box: The box is drawn with specified colors and border properties, providing a clear visual representation on the chart.
Enhance your trading analysis with the "First 5-Minute Candle Box" indicator. Add it to your TradingView chart today and start leveraging the power of early price action!
Heikin Ashi Price DetectionThis script performs custom calculations for both bullish and bearish bars, providing a numerical result that can be used to gauge price movements and potential trading signals.
How It Works
Bullish Bars:
Calculates the absolute difference between the open and low prices (BullOpenLow).
Calculates the absolute difference between the high and close prices (BullHighClose).
Compares BullOpenLow and BullHighClose:
If BullOpenLow is greater, the difference is divided by BullOpenLow.
If BullHighClose is greater, the difference is divided by BullHighClose.
The result is normalized to a percentage and subtracted from 100 to produce a final value.
Bearish Bars:
Calculates the absolute difference between the close and low prices (BearCloseLow).
Calculates the absolute difference between the high and open prices (BearHighOpen).
Compares BearCloseLow and BearHighOpen:
If BearCloseLow is greater, the difference is divided by BearCloseLow.
If BearHighOpen is greater, the difference is divided by BearHighOpen.
The result is normalized to a percentage and subtracted from 100 to produce a final value.
Key Features
Bullish and Bearish Calculations: The script identifies bullish and bearish bars and applies separate calculations to each.
Normalized Results: The calculations provide a normalized result that can be easily interpreted.
Visual Representation: Results are plotted on the chart for quick visual reference.
BooBee Digital - Enhanced Buy & Sell Alerts Suite
BooBee Digital - Enhanced Buy & Sell Alerts Suite
Introduction:
The “BooBee Digital - Enhanced Buy & Sell Alerts Suite” is a comprehensive trading tool designed to provide traders with precise buy and sell signals by integrating the Average True Range (ATR) trailing stop technique and the Volume Weighted Average Price (VWAP) indicator. This script is tailored to help traders make informed decisions by considering both market volatility and trading volume.
How It Works:
1. ATR Calculation:
• Purpose: Measures market volatility to set dynamic stop levels.
• Details: The Average True Range (ATR) is calculated over a user-defined period. The ATR value reflects the average range of price movements over the specified period, which is crucial for assessing market volatility.
2. ATR Trailing Stop:
• Purpose: Identifies potential trend reversals by setting trailing stops based on market volatility.
• Details: The ATR trailing stop is dynamically adjusted using the ATR value and a user-defined sensitivity factor. This trailing stop level helps identify trend reversals by moving in accordance with price fluctuations.
3. VWAP Calculation:
• Purpose: Provides a volume-weighted average price to benchmark fair value.
• Details: The VWAP is calculated by taking the sum of the product of price and volume, divided by the total volume. This indicator gives traders a reference point for the average price at which the asset has traded throughout the day, considering trading volume.
4. EMA Crossover:
• Purpose: Adds a confirmation layer for buy and sell signals.
• Details: A 1-period Exponential Moving Average (EMA) is used to identify short-term price movements. Buy and sell signals are generated based on the crossover of the EMA and the ATR trailing stop, adding an extra layer of confirmation for trade entries and exits.
Signal Generation:
Buy Signal:
• Generated when the price is above the ATR trailing stop and there is a bullish crossover of the EMA and ATR trailing stop.
• Indicator: Green label below the bar with “Buy” text.
Sell Signal:
• Generated when the price is below the ATR trailing stop and there is a bearish crossover of the EMA and ATR trailing stop.
• Indicator: Red label above the bar with “Sell” text.
VWAP Line:
• The VWAP line is plotted on the chart to help traders identify significant price levels based on trading volume.
• Indicator: Blue line representing the VWAP.
How to Use:
• Chart Type: The script is designed for use on standard chart types such as Candlestick and OHLC. It does not support non-standard chart types like Heikin Ashi, Renko, Kagi, Point & Figure, and Range, as they may produce unrealistic results.
• Clean Chart: Ensure your chart is clean and free of other indicators to avoid confusion. The signals and colors plotted by the script should be easily identifiable.
• Trade Confirmation: Use the buy and sell signals generated by the script in conjunction with other analysis methods to confirm trades.
Key Concepts:
• ATR Trailing Stop: This technique sets dynamic stop levels based on market volatility, helping to identify trend reversals.
• VWAP: This indicator provides a benchmark for the average price considering trading volume, helping traders identify fair value.
• EMA Crossover: This adds a layer of confirmation for buy and sell signals, improving the accuracy of trade entries and exits.
Candle Patterns with Volume ValidationHey Guys !
█ This indicator shows validated Hammer and Shooting Star candle patterns based on volume.
This indicator identifies Hammer and Shooting Star patterns and validates them using volume analysis.
Hammer and Shooting Star patterns are candlestick patterns that signal potential reversals in the market.
█ Usages:
A hammer is formed when in a session, the price has fallen, only to reverse and recover to close back near the opening price. This is a sign of strength with the selling having been absorbed in sufficient strength for the buyers to overwhelm the sellers, allowing the market to recover. The hammer is so called as it is ‘hammering out a bottom’, and just like the shooting star, is immensely powerful when combined with Volume Price Analysis (VPA).
The shooting star is a bearish reversal pattern that appears at the top of uptrends. It signifies that prices have peaked and a downward reversal is likely. The presence of high volume strengthens this signal, indicating that the insiders are offloading their positions.
When combined with volume analysis, these patterns become powerful signals. The volume provides context to the price action, helping traders confirm the validity of the pattern. For example, a hammer with high volume suggests strong buying interest, whereas a shooting star with high volume indicates strong selling pressure.
█ Features:
• Detects Hammer and Shooting Star patterns.
• Validates patterns with volume thresholds.
• Color codes patterns based on volume validation.
• Allows customization of volume thresholds and pattern criteria.
• Option to show or hide signals.
█ Parameters:
• Volume Average Period: The period used to calculate the average volume.
• Higher Volume Multiplier: Multiplier to define higher volume threshold.
• Much Higher Volume Multiplier: Multiplier to define much higher volume threshold.
• Enormous Volume Multiplier: Multiplier to define enormous volume threshold.
• Body/Shadow Ratio for Hammer and Shooting Star: Ratio of body to shadow for pattern validation.
• Upper Shadow Limit for Hammer: Upper shadow limit for Hammer pattern.
• Lower Shadow Limit for Shooting Star: Lower shadow limit for Shooting Star pattern.
• Show Hammer Signals: Display signals for Hammer patterns.
• Show Shooting Star Signals: Display signals for Shooting Star patterns.
Enjoy !
Jobinsabu014This Pine Script code is for an advanced trading indicator that displays enhanced moving averages with buy and sell labels, trend probability, and support/resistance levels. Here’s a detailed description of its components and functionality:
### Description:
1. **Indicator Initialization**:
- The indicator is named "Enhanced Moving Averages with Buy/Sell Labels and Trend Probability" and is set to overlay on the chart.
2. **Input Parameters**:
- **Moving Averages**: Four different moving averages (short and long periods for default and enhanced) with customizable periods.
- **Probability Threshold**: Determines the threshold for trend probability.
- **Support/Resistance Lookback**: Number of bars to look back for calculating support and resistance levels.
- **Signals Valid From**: Timestamp from which the signals are considered valid.
3. **Moving Averages Calculation**:
- **Default Moving Averages**: Calculated using simple moving averages (SMA) for the specified periods.
- **Enhanced Moving Averages**: Calculated using SMAs for different specified periods.
4. **Plotting Moving Averages**:
- Plots the default and enhanced moving averages with different colors for distinction.
5. **Crossover Detection**:
- Detects when the short moving average crosses above or below the long moving average for default moving averages.
6. **Buy/Sell Signal Labels**:
- Adds "BUY" and "SELL" labels on the chart when crossovers are detected after the specified valid timestamp.
- Tracks entry prices for buy/sell signals and adds labels when the price moves +100 points.
7. **Trend Detection for Enhanced Indicator**:
- Detects uptrend or downtrend based on the enhanced moving averages.
- Calculates a simple probability of trend based on price movement and EMA.
- Determines buy and sell signals based on trend conditions and volume-based buy/sell pressure.
8. **Plot Buy/Sell Signals for Enhanced Indicator**:
- Plots buy/sell signals based on the enhanced conditions.
9. **Background Color for Trends**:
- Changes the background color to green for uptrend and red for downtrend.
10. **Trend Lines**:
- Draws imaginary trend lines for uptrend and downtrend based on enhanced moving averages.
11. **Support and Resistance Levels**:
- Calculates and plots support and resistance levels using the specified lookback period.
- Stores and plots previous support and resistance levels with dashed lines.
12. **Expected Trend Labels**:
- Adds labels indicating expected uptrend or downtrend based on buy/sell signals.
13. **Alerts**:
- Sets alert conditions for buy and sell signals, triggering alerts when these conditions are met.
14. **Demand and Supply Zones**:
- Draws and extends horizontal lines for demand (support) and supply (resistance) zones.
### Summary:
This script enhances traditional moving average crossovers by adding trend probability calculations, volume-based pressure, and support/resistance levels. It visualizes expected trends and provides comprehensive buy/sell signals with corresponding labels, background color changes, and alerts to help traders make informed decisions.
Prometheus OscillatorThis oscillator is a tool meant to determine an up or down trend using a measure of volatility and what skews the market has.
Calculation
The first thing to do is normalize the price to have a 0 handle and be a decimal. The reason to do this is to get the 0 line for every asset.
After the source value has been normalized calculate standard deviation and skew.
Standard Deviation
To calculate standard deviation Prometheus uses Pinescript's built-in function.
standard_dev = ta.stdev(src, len, true)
Standard deviation is a decent and quick estimation of historical volatility over a period of time specified by the user.
Skew
Skew is calculated as follows:
mean = ta.sma(src, len)
m3 = math.sum(math.pow(src - mean, 3), len) / len
m2 = math.pow(math.sum(math.pow(src - mean, 2), len) / len, 1.5)
skew = m3 / m2
Skew is a value used to determine how far on one side of a distribution a value is. When the market is aggressively moving higher the skew will be a bigger positive number. When it is moving lower, a negative number. When the values are small, still either positive or negative, is when the market is moving calmly in either direction.
Adding these two values together provides us with our oscillator.
Trade Examples
A simple way to use this tool is to use 0-line crosses as bullish or bearish alerts
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price moves down.
Step 3: Cross above 0 line, long alert. The price chops then the price proceeds to move up.
0 line crosses can work but may not always be reliable.
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price bounces as the downtrend is signaled, but then continues to sell off.
Step 3: Cross above 0 line, long alert. The price chops at the high and then reverses.
Step 4: Cross below 0 line, short alert. proceeds to move down.
Step 5: Cross above 0 line, long alert. The price proceeds to move up.
Not every alert will be perfect, we encourage traders to use tools as well as their own discretion.
Previous highs and lows may be a good tell if the alert will be true.
Step 1: Cross above 0 line, long alert. The price proceeds to move up.
Step 2: Cross below 0 line, short alert. The Price bounces as the downtrend is signaled, false alert.
Step 3: Cross above 0 line, long alert. The price chops at the high and then moves up.
Step 4: Cross below 0 line, short alert. The price chops a lot with a false break to the upside, the oscillator itself does not move fast or high which could have been a sign it was false.
Step 5: Step 3's downtrend continues.
Step 6: Cross above the 0 line. A new up trend emerges.
The indicator has more than one use. Detecting false moves in a greater trend is advantageous to not get faked out.
Step 1: Price moves up, however, the oscillator does not break 0, and the trend remains bearish before a true break of 0 line and moves up.
Step 2: While the oscillator is below the 0 line the price moves up. The oscillator does not change its sign and the downtrend continues until a true break of 0 line and moves up.
Inputs:
Len: Lookback length for how many bars back to go to calculate the oscillator.
No indicator is 100% accurate, use them along with your own discretion.
All Divergences with trend / SL - Uncle SamThanks to the main inspiration behind this strategy and the hard work of:
"Divergence for many indicators v4 by LonesomeTheBlue"
The "All Divergence" strategy is a versatile approach for identifying and acting upon various divergences in the market. Divergences occur when price and an indicator move in opposite directions, often signaling potential reversals. This strategy incorporates both regular and hidden divergences across multiple indicators (MACD, Stochastics, CCI, etc.) for a comprehensive analysis.
Key Features:
Comprehensive Divergence Analysis: The strategy scans for regular and hidden divergences across a variety of indicators, increasing the probability of identifying potential trade setups.
Trend Filter: To enhance accuracy, a moving average (MA) trend filter is integrated. This ensures trades align with the overall market trend, reducing the risk of false signals.
Customizable Risk Management: Users can adjust parameters for long/short stop-loss and take-profit levels to match their individual risk tolerance.
Additional Risk Management (Optional): An experimental MA-based risk management feature can be enabled to close positions if the market shows consecutive closes against the trend.
Clear Visuals: The script plots pivot points, divergence lines, and stop-loss levels on the chart for easy reference.
Strategy Settings (Defaults):
Enable Long/Short Strategy: True
Long/Short Stop Loss %: 2%
Long/Short Take Profit %: 5%
Enable MA Trend: True
MA Type: HMA (Hull Moving Average)
MA Length: 500
Use MA Risk Management: False (Experimental)
MA Risk Exit Candles: 2 (If enabled)
Pivot Period: 9
Source for Pivot Points: Close
Backtest Details (Example):
The strategy has been backtested on XAUUSD 1H (Goold/USD 1 hour timeframe) with a starting capital of $1,000. The backtest period covers around 2 years. A commission of 0.02% per trade and a 0.1% slippage per trade were factored in to simulate real-world trading costs.
Disclaimer:
This strategy is for educational and informational purposes only. Backtested results are not indicative of future performance. Use this strategy at your own risk. Always conduct your own analysis and consider consulting a financial professional before making any trading decisions.
Important Notes:
The default settings are a good starting point, but feel free to experiment to find optimal parameters for your specific trading style and market.
The MA-based risk management is an experimental feature. Use it with caution and thoroughly test it before deploying in live trading.
Backtest results can vary depending on the market, timeframe, and specific settings used. Always consider slippage and commission fees when evaluating a strategy's potential profitability.
Candle Body Support/Resistance [LuxAlgo]The Candle Body Support/Resistance indicator is a tool that provides Support/Resistance levels from high-volatility candles, a concept originally described by Steve Nison in "Beyond Candlesticks".
Users can define the candle body percentage used to set the detected support/resistance levels. Occurrences of price testing the returned levels are highlighted using user-customizable dots.
🔶 USAGE
Support/Resistance levels are drawn from volatile candles, that is candles having a body (range between opening and closing price) whose magnitude is larger than the Volatility Threshold , which is determined by the multiplicative factor of an ATR (Average True Range) using a user set length.
The level starts from the opening price +/- a percentage of the open-close range. Users can adjust the percentage of the candle body used as support/resistance levels respectively, with higher percentage values returning levels prone to get reached sooner by the price.
A test is considered valid when a wick passes through the Support/Resistance level while the closing price is not breaking it.
Two modes are included, Trailing and Historical , both affecting the displayed elements of the indicator, these are described in the sub-section below.
🔹 Historical
The Historical Mode will draw a separate line from every Volatile Candle . When this line is tested, a dot will be drawn.
In the above example, the red resistance line was tested once until a bullish volatile candle formed, which closed just below the resistance level. The resistance level was tested again, after which the newly created support level was broken quickly, and the price decreased. These levels proved helpful later, acting as resistance/support levels (illustrated by the extra manually drawn dashed white lines).
To prevent cluttering Support/Resistance , lines will be deleted when the line is mitigated and hasn't been tested.
When a Support/Resistance line reaches its Maximum Line Length , it will also be deleted when it has not been tested.
🔹 Trailing
When a new volatile candle of the same type (bullish/bearish) appears while the Support/Resistance isn't broken, this line will be updated with the values of the new volatile candle. This creates a trailing line and a less cluttered chart.
Unlike the Historical mode , a line will not be deleted after a while or when it is mitigated. Instead, the line won't be updated anymore. A new line will start from the next found volatile candle.
Using the same situation as the Historical Mode example, we can note the future significance of old support/resistance levels (illustrated by the extra manually drawn dashed white lines).
The user can switch between these 2 modes, each offering a unique perspective on the market. This provides a more in-depth examination of the market, enhancing the user's trading analysis.
Using a copy of our indicator while using both modes can also be helpful.
🔶 DETAILS
The Support level is the opening price of a bullish volatile candle plus a user-set percentage of the candle's body, while the Resistance level is the opening price of a bearish volatile candle minus a percentage of the candle's body.
The following example illustrates the ATR with the multiplicative factor (Volatility Threshold) where the body of Volatile candles exceeds the ATR limits. Changing the Volatility Threshold and ATR length gives users extra flexibility to adjust to their needs.
🔹 Max Line Length
When using the Historical Mode and the duration of a displayed level reaches the user-set Max Line Length value, the level will return to the last test or be deleted when it has not been tested.
🔶 SETTINGS
Display Mode: Display mode of the indicator.
Support %: Sets the distance of the Support Line from the opening price relative to the candle body.
Resistance %: Sets the distance of the Resistance Line from the opening price relative to the candle body.
🔹 Filter
Length ATR: Amount of bars for the calculation of the Average True Range.
Volatility Threshold: multiplicative factor of ATR.
Max Line Length: Maximum allowed duration/length (in bars) of a Support/Resistance level.
United HUN CityPurpose and Usage
The purpose of this strategy is to create a composite indicator that combines the signals from the MFI, Fisher Transform, and Bollinger Bands %b indicators. By normalizing and averaging these indicators, the script aims to provide a smoother and more comprehensive signal that can be used to make trading decisions.
MFI (Money Flow Index): Measures buying and selling pressure based on price and volume.
Fisher Transform: Highlights potential reversal points by transforming price data to a Gaussian normal distribution.
Bollinger Bands %b: Indicates where the price is relative to the Bollinger Bands, helping to identify overbought or oversold conditions.
The combined indicator can be used to identify potential buy or sell signals based on the smoothed composite value. For instance, a high combined indicator value might indicate overbought conditions, while a low value might indicate oversold conditions.
Smoothed Heiken Ashi Candles with Delayed SignalsThis is a trend-following approach that uses a modified version of Heiken Ashi candles with additional smoothing. Here are the key components and features:
1. Heiken Ashi Modification: The strategy starts by calculating Heiken Ashi candles, which are known for better trend visualization. However, it modifies the traditional Heiken Ashi by using Exponential Moving Averages (EMAs) of the open, high, low, and close prices.
2. Double Smoothing: The strategy applies two layers of smoothing. First, it uses EMAs to calculate the Heiken Ashi values. Then, it applies another EMA to the Heiken Ashi open and close prices. This double smoothing aims to reduce noise and provide clearer trend signals.
3. Long-Only Approach: As the name suggests, this strategy only takes long positions. It doesn't short the market during downtrends but instead exits existing long positions when the sell signal is triggered.
4. Entry and Exit Conditions:
- Entry (Buy): When the smoothed Heiken Ashi candle color changes from red to green (indicating a potential start of an uptrend).
- Exit (Sell): When the smoothed Heiken Ashi candle color changes from green to red (indicating a potential end of an uptrend).
5. Position Sizing: The strategy uses a percentage of equity for position sizing, defaulting to 100% of available equity per trade. This should be tailored to each persons unique approach. Responsible trading would use less than 5% for each trade. The starting capital used is a responsible and conservative $1000, reflecting the average trader.
This strategy aims to provide a smooth, trend-following approach that may be particularly useful in markets with clear, sustained trends. However, it may lag in choppy or ranging markets due to its heavy smoothing. As with any strategy, it's important to thoroughly back test and forward test before using it with real capital, and to consider using it in conjunction with other analysis tools and risk management techniques.
Other smoothed Heiken Ashi indicators do not provide buy and sell signals, and only show the change in color to dictate a change in trend. By adding buy and sell signals after the close of the changing candle, alerts can be programmed, which helps this be a more hands off protocol to experiment with. Other smoothed Heiken Ashi indicators do not allow for alarms to be set.
This is a unique HODL strategy which helps identify a change in trend, without the noise of day to day volatility. By switching to a line chart, it removes the candles altogether to avoid even more noise. The goal is to HODL a coin while the color is bullish in an uptrend, but once the indicator gives a sell signal, to sell the holdings back to a stable coin and let the chart ride down. Once the chart gives the next buy signal, use that same capital to buy back into the asset. In essence this removes potential losses, and helps buy back in cheaper, gaining more quantitity fo the asset, and therefore reducing your average initial buy in price.
Most HODL strategies ride the price up, miss selling at the top, then riding the price back down in anticipation that it will go back up to sell. This strategy will not hit the absolute tops, but it will greatly reduce potential losses.
Tapak 20RThis strategy originally developed by Jatrader. Kudos to him for giving me chance to develop this indicator.
This script should be use Light Crude Oil Futures 20 Range chart. (This strategy only proven for 20R range chart, Crude Oil.)
How it works?
If current 20R candle is closed green, the closing value must be higher than previous candle to take long position.
If not, it stays as previous direction.
If current candle is closed red, the closing value must be lower than previous candle to take short position.
If not, it stays as previous direction.
How to use this indicator?
1. First, determine the stoploss point from high or low candle.(if current candle is green, stoploss is set higher than high candle and vice versa)
2. Determine how many tick you want to allowed for stoploss, how much profit (ticks) you want to achieve.
3. Determine the color and thickness of each line.
The table will display all value involved with this strategy such as entry value, stoploss value and target profit value.
Please kept in mind that, this is scalping strategy. So, the recommended target profit should be around 10 - 20 ticks.
Thank you.
Futures Weekly Open RangeThe weekly opening range ( high to low ) is calculated from the open of the market on Sunday (1800 EST) till the opening of the Bond Market on Monday morning (0800 EST). This is the first and most crucial range for the trading week. As ICT has taught, price is moving through an algorithm and as such is fractal; because price is fractal, the opening range can be calculated and projected to help determine if price is trending or consolidating. As well; this indicator can be used to incorporate his PO3 concept to enter above the weekly opening range for shorts if bearish, or entering below the opening range for longs if bullish.
This indicator takes the high and low of weekly opening range, plots those two levels, plots the opening price for the new week, and calculates the Standard Deviations of the range and plots them both above and below of the weekly opening range. These are all plotted through the week until the start of the new week.
The range is calculated by subtracting the high from the low during the specified time.
The mid-point is half of that range added to the low.
The Standard deviation is multiples of the range (up to 10) added to the high and subtracted
from the low.
At this time the indicator will only plot the Standard deviation lines on the minutes time frame below 1 hour.
Only the range and range lines will be plotted on the hourly chart.