PDH PDL IndicatorThis TradingView indicator plots important historical levels on your chart, including the previous day's high (PDH) and low (PDL), previous week's high (PWH) and low (PWL), and the current day's, week's, and month's opening prices (D, W, M). The lines and labels are customizable in terms of color, and each level can be toggled on or off based on your preference.
Features:
PDH (Previous Day High): Displays the high price of the previous trading day.
PDL (Previous Day Low): Displays the low price of the previous trading day.
PWH (Previous Week High): Displays the high price of the previous trading week.
PWL (Previous Week Low): Displays the low price of the previous trading week.
D (Daily Open): Displays the opening price of the current trading day.
W (Weekly Open): Displays the opening price of the current trading week.
M (Monthly Open): Displays the opening price of the current trading month.
Customization:
Color Settings: You can customize the colors of the lines and text for each level.
Toggle Levels: You can toggle the display of each level (PDH, PDL, PWH, PWL, D, W, M) on or off.
How to Use:
Add the indicator to your TradingView chart.
Customize the colors and toggle the levels as per your requirements from the settings panel.
The lines will be plotted on the right side of the last candle, with labels indicating the corresponding level.
Example Usage:
This indicator is particularly useful for traders who want to keep track of significant price levels from previous trading sessions and the opening prices of the current trading periods. These levels can serve as potential support and resistance areas.
Candlestick analysis
Candle Size with Moving Averages and AlertsOverview
The "Candle Size with Moving Averages and Alerts" indicator is designed to provide traders with a visual representation of the size of each candle. This is useful for identifying periods of high volatility or significant price movements. The indicator also offers moving averages of the candle sizes and customizable alert thresholds to notify traders of unusually large or small candles.
Key Features
Candle Size Plot: Displays the size of each candle on a separate panel.
Moving Averages: Optionally plot moving averages of the candle sizes with customizable lengths and colors.
Alert Thresholds: Define thresholds to get alerted when candle sizes are unusually large or small.
Customizable Colors: Choose colors for different elements of the indicator.
Alerts: Visual and background color alerts for significant candle sizes.
How to Use the Indicator
Adding the Indicator to Your Chart
Open TradingView and navigate to your chart.
Click on the "Indicators" button at the top of the chart.
Search for "Candle Size with Moving Averages and Alerts."
Click on the indicator to add it to your chart.
Customizing the Indicator
Once the indicator is added to your chart, click on the settings icon (gear icon) next to the indicator's name in the chart legend.
This will open the settings panel where you can customize various parameters of the indicator.
Settings and Parameters
Show Moving Averages
Checkbox: Enable or disable the display of moving averages on the candle size plot.
MA Length 1
Input: Set the length of the first moving average (default is 14).
MA Length 2
Input: Set the length of the second moving average (default is 28).
Alert Threshold
Input: Define the threshold for alerts as a multiple of the average candle size (default is 1.5).
MA Color 1
Color Picker: Choose the color for the first moving average (default is blue).
MA Color 2
Color Picker: Choose the color for the second moving average (default is red).
Candle Size Color
Color Picker: Choose the color for the candle size plot (default is green).
Alert Threshold Color
Color Picker: Choose the color for the alert thresholds (default is orange).
Understanding the Plots
Candle Size Plot
The main plot shows the size of each candle (high minus low) in green by default.
This helps you visualize the volatility and identify significant price movements.
Moving Averages
If enabled, two moving averages are plotted on the candle size chart to help you understand the average candle size over different periods.
MA 1 (blue by default) and MA 2 (red by default) provide a smoothed view of the candle sizes.
Alert Thresholds
The upper and lower thresholds are plotted as dashed lines (orange by default).
The upper threshold indicates an unusually large candle size, while the lower threshold indicates an unusually small candle size.
Alerts and Background Colors
When the candle size exceeds the upper threshold, an alert is triggered, and the background color changes to a semi-transparent orange.
When the candle size falls below the lower threshold, an alert is triggered, and the background color changes to a semi-transparent orange.
These visual cues help you quickly identify significant candle sizes.
Example Settings
MA Length 1: 14
MA Length 2: 28
Alert Threshold: 1.5
MA Color 1: Blue
MA Color 2: Red
Candle Size Color: Green
Alert Threshold Color: Orange
Doji Modern IndicatorDoji Patterns will be found based on 3 conditions -
Check if Open-close difference is a certain percentage of High-low difference
Check Upper & Lower wick sizes are greater than respective min threshold values
Check if the difference of Upper & Lower wick size is higher than the min threshold value
The threshold values are predetermined based on the timeframe selected for the chart
Candle Price MovementThis Pine Script indicator calculates and visualizes the price movement for each candlestick on the chart.
- **Calculation**: The price movement for each candle is determined by subtracting the opening price from the closing price.
- **Visualization**: The price movement is plotted as a histogram, with positive values indicating upward movement (green bars) and negative values indicating downward movement (red bars).
- **Options**:
- The histogram bars are colored blue with zero opacity, providing a clear visual distinction from the background.
- A horizontal line at zero (the "Zero Line") is added for reference, helping to identify periods of no price movement.
---
This indicator provides traders with a quick visualization of the price movement for each candlestick, helping to identify trends and potential trading opportunities.
Svopex Pin Bar DetectorThe Pin Bar Detector is a technical analysis tool designed to identify pin bar candlestick patterns on trading charts. A pin bar is characterized by a small candle body and a long shadow, indicating a significant rejection of prices that can signal potential reversals in the market.
FBT - Money Flow StructureThis indicator was created for Far Beyond Trading members to assist in the drawing and creation of Ranges, Breakouts and Fakeouts. You can change the "Length" which will take into consideration how many candles it takes to create a range. The lower the amount the less candles required to create a valid range, and not just become a 'pause'. You can change the timeframe this indicator works on to show ONLY higher timeframes. This will break if you select lower timeframes. Change the colors as you wish, and enjoy!
- A range is just a hold or sideways price action in between a set high and low.
- A breakout is considered to be a push out of the hold. (arrows)
Trend Bars Pro (HTF PO3)Hello Traders!
The innovative TRN Trend Bars Pro are designed to help traders to analyze markets in an intuitive way and provide high probability entry and exit signals. It combines three core concepts:
TRN Trend Bars to see the current trend and reversals (replaces the default chart bars)
Bar Ranges to highlight consolidations
Dynamic Trend to see the overall trend.
First, let's have a look at each of these concepts individually. Afterwards, we describe how a combination of all three gives you a crystal-clear picture of the market.
TRN Trend Bars Pro
They show bullish and bearish trends and reversals based on color coding the bars and give high probability trade opportunities with special colors. The trend analysis is based on a new algorithm that includes several different inputs:
classical and advanced bar patterns and their statistical frequency
probability distributions of price expansions after certain bar patterns
bar information such as wick length in %, overlapping of the previous bar in % and many more
historical trend and consolidation analysis
The algorithm weighs these concepts and outputs a color scheme for the chart bars or candlesticks.
Bar Types
Trend bars in green and red
Reversal Bars in blue and fuchsia
Continuation Bars in turquoise and orange
Breakout Bars in dark green and pink
Green Bars signify a sustained uptrend, indicating bullish market sentiment. On the other hand, Red Bars indicate a persistent downtrend, representing bearish market sentiment. The transition from red to green denotes a bullish trend reversal, suggesting a shift from bearish to bullish sentiment. Conversely, the shift from green to red signals a bearish trend reversal, indicating a transition from bullish to bearish sentiment. By monitoring these color changes, traders can identify potential trend reversals and make informed trading decisions.
The presence of gray and black bars indicates a neutral market state, often observed before an impending color change from red to green or green to red. These neutral bars serve as a transition phase between the previous trend and the potential reversal.
The TRN Trend Bars Pro incorporate signal bars, distinguished by their distinct colors, to offer potential buy and sell signals and deeper insights into market dynamics.
Reversal Bars
The presence of blue Reversal Bars indicates a trend reversal to the upside, while pink Reversal Bars indicate a reversal to the downside. These bars not only serve as signals for potential trend shifts but also present favorable opportunities to enter the market or increase one's position size.
Continuation Bars
In addition to the reversal bars, the indicator also includes bullish continuation bars (colored turquoise) and bearish continuation bars (colored orange). These bars act as signals for the continuation of an existing trend. Like the reversal bars, they can be utilized as entry points or opportunities to augment one's position size.
Breakout Bars
The dark green breakout bars within TRN Trend Bars Pro show a powerful breakout from a price range detected by our integrated bar range feature. They signify the continuation or potential change in a trend following a consolidation phase. As such, these bars hold dual functionality, serving as reversal signals and validating the persistence of an ongoing trend.
Bar Ranges
The bar range feature automatically finds consolidations where the price range of several consecutives bars is rather small. The detection of the bar ranges includes among other things the overlapping percentage of these bars.
How to Use Price Ranges
Here are a few ways you can use the bar ranges in your trading:
Identify Support and Resistance Levels
The price ranges can help you identify key support and resistance levels on a chart. By observing price ranges and identifying these levels, you can make more informed decisions about entering or exiting trades.
Breakout Trading
Price ranges can also provide insights into potential breakout opportunities. Breakouts occur when the price breaks out of a defined range, signaling a potential shift in market sentiment and the start of a new trend. The Color highlighted Breakout Bars from the TRN Trend Bars Pro are signaling a powerful breakout of a price range. Traders can enter positions in the direction of the breakout and set appropriate stop-loss orders to manage risk. Note that not every price range is left by a powerful breakout.
Dynamic Trend
The Dynamic Trend combines elements from standard trend strength indicators (e.g. DI-, DI+, Parabolic SAR) and volatility indicators (e.g. ATR, Standard Deviation). It produces a moving average line that adapts to changing market volatility. It is inspired by the ideas of the programmer and trader Fat Tails. The adaptive behavior provides more relevant information for traders when compared to traditional moving averages which do not consider volatility and trend strength together. This makes the Dynamic Trend completely unique, and no other moving average indicator can give you this precision.
How to use Dynamic Trend
Generally, a rising Dynamic Trend line, displayed in green, indicates that an uptrend is strong, while a falling Dynamic Trend, displayed in red, suggests that the downtrend is sharp. The Dynamic Trend turns gray when there is insufficient clarity to establish a distinct trend and especially when there is not volatility in the market.
Identify potential trade entries and exits: When used in conjunction with price action, the Dynamic Trend can provide potential trade signals. For example, if the price crosses above the Dynamic Trend, it may be a bullish sign, suggesting a potential buy entry. Conversely, if the price crosses below the Dynamic Trend, it may indicate bearish conditions and a potential sell signal.
Trend Identification and Pullback trading
Observe the Dynamic Trend's color. When it's on the rise and appears green, it indicates a bullish trend. Conversely, if it's in decline and displayed in red, it signals a bearish trend.
If Dynamic Trend is green and price pulls from above back to the Dynamic Trend, then this can be considered as a bullish signal.
If Dynamic Trend is red and price pulls from below back to the Dynamic Trend, then this can be considered as a bearish signal.
In the event of a bearish signal, such as a bearish TRN Signal Bar, and the Dynamic Trend is red, it provides additional confirmation to the bearish signal. Likewise, bullish signals gain added conviction when the Dynamic Trend is green.
Crossovers
As with other moving averages, crossovers between the Dynamic Trend and the price can be significant.
If price is crossing above the Dynamic Trend, then this can be considered as a bullish signal.
If price is crossing below the Dynamic Trend, then this can be considered as a bearish signal.
If you currently hold a position, both bullish and bearish crossovers can serve as potential exit signals. For instance, in the case of a long position, a bearish crossover can indicate a potential shift in sentiment, signaling a bearish reversal and a potential opportunity to close your long position.
Filtering Noise
Due to its adaptive nature, the Dynamic Trend can be a useful tool to filter out market noise. When the market is choppy or consolidating, the Dynamic Trend tends to remain flat and colored gray, signaling traders to potentially stay out of the market.
Stop Losses
The Dynamic Trend can also be used as a dynamic stop loss. For instance, in a long trade, traders can use the Dynamic Trend as a trailing stop, selling their position if the price crosses below the Dynamic Trend.
Combining TRN Trend Bars Pro, Bar Ranges and Dynamic Trend together
Combining all three concepts gives you a crystal-clear picture of the market. The Dynamic Trend shows you the overall trend. If price pulls back to the dynamic trend line and then price picks up the trend direction again, then the TRN Trend Bars Pro immediately switches the color to the trend direction. Therefore, you can easily identify high probability entry signals based on the bar color.
As a simple trading model, you can set the stop loss below the last swing or below a TRN signal bar (vice versa for short entries) and use 2.5 R or 3 R as target.
You can increase the success rate of the high probability TRN signal bars entries even more if they are in line with the Dynamic Trend line.
On the other hand, the TRN Bar Ranges help you to stay out of the market in case the price does not really change. As a confluence signal to stay flat in this period the dynamic trend line tends to be grey as well. If the price breaks out of the range, then the indicator prints a breakout bar which serves as a high probability entry signal.
Although it is possible to switch off any of these concepts, it is highly recommended to use all three in combination to get a crystal-clear picture of the market.
Alerts
Experience the power of our TRN Trend Bars Pro alerts, delivering real-time notifications for trend changes, price range breakouts, and signal bar formations or confirmations. Stay on top of the market with these versatile alerts, customizable to your preferred assets and timeframes.
Conclusion
While signals from TRN Trend Bars Pro can be informative, it is important to recognize that their reliability may vary. Various external factors can impact market prices, and it is essential to consider your risk tolerance and investment goals when executing trades.
Risk Disclaimer
The content, tools, scripts, articles, and educational resources offered by TRN Trading are intended solely for informational and educational purposes. Remember, past performance does not ensure future outcomes.
Tradr Engulf
Introduction
"Candlesticks" patterns are used to predict price movements. This is engulfing candlestick pattern that is common and very useful in "technical analysis" in this script to identify itautomatically. The most important advantage of this indicator for users is saving time and high precision in identifying patterns. By using these pattern, you can predict price movements more accurately and therefore make better decisions in your trades.
Engulfing : The Engulfing candlestick pattern is a reversal pattern and consists of at least two candles, where one of them completely engulfs the body of the previous or following candle due to high volatility.
For this reason, the term "engulfing" is used for this pattern. This pattern occurs when the price body of a candle encompasses one or more candles before it. Engulfing candles can be bullish or bearish. Bullish Engulfing forms as a reversal candle at the end of a downtrend.
Bullish Engulfing indicates strong buying power and signals the beginning of an uptrend. This pattern is a bullish candle with a long upward body that completely covers the downward body before it. Bearish Engulfing, as a reversal pattern, is a long bearish candle that engulfs the upward candle before it.
Bearish Engulfing forms at the end of an uptrend and indicates the pressure of new sellers and their strong power. Additionally, forming this pattern at resistance levels and the absence of a lower shadow increases its credibility.
7 hours a day by Yasser (YWMAAAWORLD)Hey there, traders! Today, we're diving into a nifty Pine Script called "7 hours a day," crafted by me Yasser (YWMAAAWorld). So, what's the scoop?
Imagine having a tool that highlights specific times on your chart like clockwork, making your trading day a breeze. That's precisely what this script does. It's like having a personal assistant reminding you of the important moments in the market.
Picture this: as the clock strikes 8:00 PM and 3:00 AM, our script draws these magical lines on your chart. These aren't just any lines; they're your guides, marking the boundaries of a crucial 7-hour period. Think of it as your trading sanctuary within the chaos of the market.
But wait, there's more! Our script isn't just about pretty lines. It's smart too. It knows when it's a weekend or Monday morning, so you can kick back and relax without unnecessary clutter on your chart.
Now, here's where the magic really happens. Within these 7-hour windows, our script calculates the highest and lowest price points, giving you a clear picture of market dynamics during those crucial hours. It's like having a crystal ball revealing the market's secrets.
So, whether you're a seasoned trader or just starting, "7 hours a day" is your trusty sidekick, guiding you through the twists and turns of the market with style and precision. Say goodbye to guesswork and hello to clarity in your trading journey!
it is believed that market ranges within these 7-hour windows, and when broken up or down you could expect a momentum price movement.
Length True Range BarColorOverview
The indicator prints different colors on the candles for pre-determined amplitudes in relation to the simple moving average over the average true range.
Calculations
The indicated value of the simple moving average in relation to the average true range is being used to restrict the color of the candle signal to its pre-determined amplitude.
How It Works
Supposing you have a strategy where there is a need to determine the size of the acceptable signal bar in relation to the average true range, as well as size your stop and target through this range. In summary, coloring based on the size of the amplitude due to the average of the ATR, provides the ease of identifying weak signals, where there will possibly not be a sequence of movement, or identifying stretched signals where it will possibly provide a correction movement. This way you can determine an ideal size range for your input signal. Ex: Color candle signal with size of ( Candle => 2* the SMA (ATR) and <= 3* the SMA (ATR).
Inputs
Valores
Period: To determine the length of the ATR
SMA: To determine the length of the Simple Moving Average
LengthMin: Minimum amplitude size factor
LengthMax: Maximum amplitude size factor
Traço: Coloring ATR
SMA: Coloring SMA
Traço: Coloring TR
Bar Color: Coloring candle Sing
Note 1
The values of ATR, SMA and TR will normally be shown in the indicator header for a dynamic visualization of the values, and possible exceptions for candles signals outside the initially proposed factor can be compared.
Note 2
Codes made available in the PINE language reference manual were used to develop the indicator, therefore it is a practical code for trend following setup strategies not available in the community.
IsAlgo - AI Trend Strategy► Overview:
The AI Trend Strategy employs a combination of technical indicators to guide trading decisions across various markets and timeframes. It uses a custom Super Trend indicator and an Exponential Moving Average (EMA) to analyze market trends and executes trades based on specific candlestick patterns. This strategy includes options for setting stop losses, take profit levels, and features an alert system for trade notifications.
► Description:
This strategy focuses on identifying the optimal "entry candle," which signals either a potential correction within the ongoing trend or the emergence of a new trend. The entry criteria for this candle are highly customizable, allowing traders to specify dimensions such as the candle's minimum and maximum size and body ratio. Additional settings include whether this candle should be the highest or lowest compared to recent candles and if a confirmation candle is necessary to validate the entry.
The Super Trend indicator is central to the strategy’s operation, dictating the direction of trades by identifying bullish or bearish trends. Traders have the option to configure trades to align with the direction of the trend identified by this indicator, or alternatively, to take positions counter to the trend for potential reversal strategies. This flexibility can be crucial during varying market conditions.
Additionally, the strategy incorporates an EMA alongside the Super Trend indicator to further analyze trend directions. This combined approach aims to reduce the occurrence of false signals and improve the strategy's overall trend analysis.
The learning algorithm is a standout feature of the AI Trend Strategy. After accumulating data from a predefined number of trades (e.g., after the first 100 trades), the algorithm begins to analyze past performances to identify patterns in wins and losses. It considers variables such as the distance from the current price to the trend line, the range between the highest and lowest prices during the trend, and the duration of the trend. This data informs the algorithm's predictions for future trades, aiming to improve accuracy and reduce losses by adapting to the evolving market conditions.
► Examples of Trade Execution:
1. In an Uptrend: The strategy might detect a suitable entry candle during a correction phase, which aligns with the continuing uptrend for a potential long trade.
2. In a Downtrend: Alternatively, the strategy might identify an entry candle at the end of a downtrend, suggesting a potential reversal or correction where a long trade could be initiated.
3. In an Uptrend: The strategy may also spot an entry candle at the end of an uptrend and execute a short trade, anticipating a reversal or significant pullback.
4. In a Downtrend: The strategy might find a suitable entry candle during a correction phase, indicating a continuation of the downtrend for a potential short trade.
These examples illustrate how the strategy identifies potential trading opportunities based on trend behavior and candlestick patterns.
► Features and Settings:
⚙︎ Trend: Utilizes a custom Super Trend indicator to identify the direction of the market trend. Users can configure the strategy to execute trades in alignment with this trend, take positions contrary to the trend, or completely ignore the trend information for their trading decisions.
⚙︎ Moving average: Employs an Exponential Moving Average (EMA) to further confirm the trend direction indicated by the Super Trend indicator. This setting can be used in conjunction with the Super Trend or disabled if preferred.
⚙︎ Entry candle: Defines the criteria for the candle that triggers a trade. Users can customize aspects such as the candle's size, body, and its relative position to previous candles to ensure it meets specific trading requirements before initiating a trade.
⚙︎ Learning algorithm: This component uses historical trade data to refine the strategy. It assesses various aspects of past trades, such as price trends and market conditions, to make more informed trading decisions in the future.
⚙︎ Trading session: Users can define specific trading hours during which the strategy should operate, allowing trades to be executed only during preferred market periods.
⚙︎ Trading days: This option enables users to specify which days the strategy should be active, providing the flexibility to avoid trading on certain days of the week if desired.
⚙︎ Backtesting: Enables a period during which the strategy can be tested over a selected start and end date, with an option to deactivate this feature if not needed.
⚙︎ Trades: Detailed configuration options include the direction of trades (long, short, or both), position sizing (fixed or percentage-based), the maximum number of open trades, and limitations on the number of trades per day or based on trend changes.
⚙︎ Trades Exit: Offers various strategies for exiting trades, such as setting limits on profits or losses, specifying the duration a trade should remain open, or closing trades based on trend reversal signals.
⚙︎ Stop loss: Various methods for setting stop losses are available, including fixed pips, based on Average True Range (ATR), or utilizing the highest or lowest price points within a designated number of previous candles. Another option allows for closing the trade after a specific number of candles moving in the opposite direction.
⚙︎ Break even: This feature adjusts the stop loss to a break-even point under certain conditions, such as reaching predefined profit levels, to protect gains.
⚙︎ Trailing stop: The trailing stop feature adjusts the stop loss as the trade moves into profit, aiming to secure gains while potentially capturing further upside.
⚙︎ Take profit: Up to three take profit levels can be established using various methods, such as a fixed amount of pips, risk-to-reward ratios based on the stop loss, ATR, or after a set number of candles that move in the direction of the trade.
⚙︎ Alerts: Includes a comprehensive alert system that informs the user of all significant actions taken by the strategy, such as trade openings and closings. It supports placeholders for dynamic values like take profit levels, stop loss prices, and more.
⚙︎ Dashboard: Provides a visual display of detailed information about ongoing and past trades on the chart, helping users monitor the strategy’s performance and make informed decisions.
► Backtesting Details:
Timeframe: 15-minute BTCUSD chart.
Initial Balance: $10,000.
Order Size: 4% of equity per trade.
Commission: 0.01%.
Slippage: 5 ticks.
Risk Management: Strategic stop loss settings are applied based on the most extreme price points within the last 18 candles.
Johnny's Trend Lines, Supports and ResistancesInspired and based on ismailcarlik's Trend Lines, Supports and Resistances.
Additions include an overall upgrade to Pinescript v5, changes in the way resistance and support levels are calculated, improved visual queues, and additional customization options.
This indicator is meticulously crafted to provide traders with visual tools for identifying trend lines, support, and resistance levels, enhancing the decision-making process in trading activities.
Features and Functionality
Trend Lines: The indicator allows users to enable or disable trend lines, adjust the number of points to check for establishing a trend, and set parameters for trend validation, including the maximum violation and exceptions for the last bars.
Support and Resistance: It offers tools to identify and visualize key support and resistance levels based on recent pivot points. This includes adjustable parameters for the maximum violations allowed and the exclusion of recent bars from the analysis.
Pivot Points: Users can define the pivot length for calculating highs and lows, which helps in marking significant pivot points that are instrumental in trend analysis.
Alerts and Notifications: The indicator is equipped with customizable alerts for trend line breaches and pivot point formations, which can be set to trigger at different frequencies based on user preference.
How It Works
Input Flexibility: Users can adjust various settings like the length of trend lines and pivot points, enabling or disabling specific features like marking pivots, and managing alert settings directly from the indicator’s input panel.
Dynamic Analysis: By analyzing the price action relative to the calculated trend lines and pivot points, the indicator dynamically identifies potential trend reversals, continuations, and significant price levels.
Visualization: It plots trend lines and marks support and resistance levels directly on the chart, with options to extend these lines and add labels for better clarity. Violated trend lines can be visually differentiated by changing their style and width.
Practical Application
Trend Line Strategy: Traders can use the trend lines to determine the strength of the current market trend and to spot potential reversal points.
Support and Resistance Strategy: By marking where the price has historically faced resistance or found support, traders can plan entry and exit points, set stop-loss orders, or identify breakout opportunities.
Pivot Points Strategy: Pivot points serve as vital indicators for intraday trading or long-term trend analysis, providing insights into potential support and resistance levels.
Customization and Alerts
Custom Alerts: Traders can set alerts for when the price crosses trend lines or when new support or resistance levels are formed, helping them stay informed of critical market movements without having to continuously monitor the charts.
Visual Customization: Users can personalize the appearance of trend lines and labels, choosing from a variety of colors and styles to match their chart setup or preferences.
"Johnny's Trend Lines, Supports and Resistances" is an essential tool for traders who rely on technical analysis, offering detailed insights and real-time updates on market conditions, trend strength, and potential price barriers.
Untested Levels Dynamic Timeframes**WORKS BEST ON 30M TIMEFRAME**
This indicator, titled "Untested Levels with Timeframes" is designed to identify and visualize price levels within different timeframes that have not been tested recently. Here's a breakdown of its benefits and usage:
Identifying Untested Price Levels: The indicator helps traders identify support and resistance levels that haven't been tested for a specified period within different timeframes. This can be valuable because untested levels may represent potential areas where price could reverse or encounter significant movement.
Customizable Timeframes: The indicator allows users to specify different timeframes (e.g., 30 minutes, 1 hour, 4 hours, daily) for analyzing untested levels. This flexibility enables traders to adapt the tool to their trading style and preferences.
Visual Representation: Untested levels are plotted on the chart as rays extending to the right. This visual representation makes it easy for traders to identify and assess these levels at a glance, enhancing their chart analysis process.
Dynamic Management: The indicator dynamically manages untested and tested levels over time, ensuring that traders focus on the most relevant price levels within each timeframe. This feature helps prevent clutter on the chart and maintains the indicator's effectiveness.
Potential Trading Opportunities: By identifying untested levels, traders may uncover potential trading opportunities, such as entering trades near untested support or resistance levels or waiting for confirmation of a breakout or reversal at these levels.
Risk Management: Understanding untested levels can also assist in risk management by providing traders with additional context when setting stop-loss levels or determining the risk-reward ratio for a trade.
Overall, this indicator can be a valuable tool for traders seeking to enhance their technical analysis and identify potential trading opportunities based on untested price levels across different timeframes. However, like any trading tool, it's essential to combine it with other analysis techniques and thoroughly backtest it to assess its effectiveness within your trading strategy.
Single Prints - BrightSingle Prints - Bright is a Pine Script indicator designed to identify and visualize significant price levels based on the concept of "single prints." Single prints are price levels where trading activity occurred but with little or no follow-up trading. This indicator plots these levels as lines on the chart, allowing traders to easily identify areas of potential support and resistance.
Features:
Customizable Line Distance: Adjust the distance between single print lines to suit your trading style and time frame.
Maximum Array Size: Set the maximum number of single print lines to be displayed on the chart.
Remove Gaps: Option to remove lines if the price gaps over them.
Multiple Time Frames: Choose to display single prints for daily, weekly, monthly, or yearly sessions.
Color Gradient: Lines are color-coded from red (oldest) to green (newest), providing a visual indication of their relative age.
Thicker, Lime-Colored Lines: Improved visibility with thicker lines and a more lime-like color scheme for easier identification on the chart.
How to Use:
Adding the Indicator:
Open TradingView and navigate to the chart where you want to apply the indicator.
Click on "Indicators" in the top menu.
Select "Pine Editor" and paste the provided Pine Script code into the editor.
Click "Add to Chart" to apply the indicator to your chart.
Configuring the Indicator:
Distance Between Lines (i_line_distance): Set the distance between single print lines. Adjust this value based on the volatility and time frame of the asset you are trading.
Maximum Array Size (i_max_array): Define the maximum number of single print lines to be displayed on the chart. This helps in managing the clutter on the chart.
Remove Gaps (i_remove_gaps): Enable or disable the option to remove lines if the price gaps over them.
Show Daily Single Prints (ShowDailySP): Enable or disable the display of daily single print lines.
Show Daily Extended Single Prints (ShowDailyExtendSP): Enable or disable the display of extended daily single print lines.
Show Weekly Single Prints (ShowWeeklySP): Enable or disable the display of weekly single print lines.
Show Monthly Single Prints (ShowMonthlySP): Enable or disable the display of monthly single print lines.
Show Yearly Single Prints (ShowYearlySP): Enable or disable the display of yearly single print lines.
Interpreting the Lines:
Color Gradient: The lines are color-coded to indicate their relative age. Red lines are the oldest, transitioning through orange and yellow to green, which are the newest. This color gradient helps in identifying how long a particular level has been significant.
Support and Resistance: Use the lines as potential support and resistance levels. Multiple lines close together indicate stronger levels of support or resistance.
Volatility Analysis: The number of lines within a gap can provide insights into market volatility. More lines indicate higher volatility and multiple potential reversal points within that range.
Trading Strategies:
Entry Points: Consider using the single print lines as entry points. For example, if the price approaches a support level with multiple lines, it may be a good buying opportunity.
Stop Loss and Take Profit: Use the single print lines to set stop-loss and take-profit levels. Placing stop-loss orders below multiple support lines can provide additional protection.
Trend Analysis: Analyze the overall trend and momentum in conjunction with the single print lines to make informed trading decisions. If the price is in an uptrend and approaching resistance lines, watch for potential breakouts or reversals.
Bulls And Bears [CHE]This Pine Script™ indicator, Bulls And Bears , aims to provide traders with potential entry points by analyzing market conditions. Here's how it works:
Calculation of Maximum and Minimum Values: The script calculates the highest and lowest values based on the high, open, close, and low prices of the asset.
Relative Strength Index (RSI) Condition: It evaluates whether the RSI value (with a period of 14) is above 50, indicating bullish momentum.
Bullish and Bearish Conditions: Based on the calculated maximum and minimum values, along with the RSI condition, it determines bullish and bearish conditions. If the current maximum value is higher than the previous maximum and the RSI condition is met, it suggests a bullish condition. Conversely, if the current maximum value is lower than the previous maximum and the RSI condition is not met, it suggests a bearish condition.
Super Smoother Function: This function is used to calculate a smoother moving average, reducing noise in the data.
Input Parameters: Traders can adjust the "Length Difference" and "Length threshold" parameters to customize the indicator according to their trading preferences.
Calculation of Super Smooth Moving Averages: The script calculates super smooth moving averages for both bullish and bearish conditions.
Plotting: It plots the super smooth moving averages on the chart, indicating potential entry points for bullish (green) and bearish (red) conditions.
Filling Areas: It fills the areas between the moving averages and the threshold line based on the conditions. Green filling represents bullish conditions, while red filling represents bearish conditions.
By using this indicator, traders can potentially identify favorable entry points based on market conditions, helping them make informed trading decisions.
Dead Simple Heikin Ashi Candles (HA Candles)Are you looking for a dead simple calculation of the Heikin Ashi candles as they are calculated in tradingview? Here it is!
I was looking through the library and I saw that many have come up with a lot of awesome scripts using heikin ashi candles. But, I can't find anywhere that had the straightforward simple version of how Tradingview calculates them. This was a problem for me because I realized after punching the formula in that TradingView doesn't calculate HA candles in the original way.
You might say they don't calculate them the "right" but, spoiler alert, there is no right in trading. You can only be rational or irrational as you make money or lose money.
This is useful to me for building out some portions of an algo that are not going to be compatible with the built-in function. It happens. So, if you were looking for it too, hopefully it saves you some time.
For reference the original calc of HA candles is:
o = (prev_HA_open + prev_HA_close) / 2
h = math.max(high, ha_open, ha_close)
l = math.min(low, ha_open, ha_close)
c = ohlc4
Trade Well.
LumleyTrading GapsName: LumleyTrading Gaps
Description:
The Gap Tracker Indicator is a powerful tool designed for traders to identify, monitor, and capitalize on price gaps in financial markets. It serves two primary functions:
Identifying Gaps: The indicator scans price action to detect instances where the current trading session's opening price significantly differs from the previous session's closing price. These disparities indicate the presence of price gaps.
Tracking Gap Fills: Once a gap is identified, the indicator continues to monitor the price movement. It dynamically adjusts its parameters to track whether and when the price retraces back to fill the gap. As soon as the gap is filled, the indicator generates a signal to notify traders of this occurrence.
Key Features:
Customizable Parameters: Traders can adjust the sensitivity and criteria for what constitutes a significant gap based on their trading preferences and the market conditions.
Visual Alerts: The indicator provides clear visual signals on price charts, highlighting the presence of gaps and indicating when they are filled. This helps traders to easily spot trading opportunities and make informed decisions.
Alert Notifications: In addition to visual cues, traders can opt to receive real-time alerts via email, SMS, or within their trading platform, ensuring they never miss an opportunity or a filled gap.
Historical Analysis: The indicator may also offer historical gap data, allowing traders to conduct backtesting and analyze the performance of trading strategies based on gap patterns.
Benefits:
Gap Trading Opportunities: Traders can use the indicator to identify potential areas of price continuation or reversal, leveraging the phenomenon of gap trading for profit.
Risk Management: By tracking gap fills, traders can manage their risk more effectively, knowing when a gap is likely to act as support or resistance and adjusting their positions accordingly.
Enhanced Decision Making: With real-time gap detection and fill tracking, traders gain valuable insights into market sentiment and price dynamics, empowering them to make timely and informed trading decisions.
Compatibility:
The Gap Tracker Indicator is compatible with popular trading platforms and can be seamlessly integrated into various technical analysis tools and strategies.
Conclusion:
In the fast-paced world of financial markets, identifying and understanding price gaps is crucial for successful trading. The Gap Tracker Indicator provides traders with a reliable tool to spot, track, and capitalize on gap opportunities, enhancing their trading efficiency and profitability.
Wyckoff Method IndicatorThe Wyckoff Method Market Cycle Indicator is a powerful tool designed to help traders identify the current market phase based on the principles of the Wyckoff Method. This indicator analyzes price action and volume patterns to determine whether the market is in an accumulation, markup, distribution, or markdown phase.
The Wyckoff Method, developed by Richard D. Wyckoff, is a time-tested approach to understanding market dynamics and identifying potential trading opportunities. By studying the interaction between price and volume, the Wyckoff Method aims to provide insight into the actions of market participants and the potential direction of the market.
This indicator automatically detects the key market phases as defined by the Wyckoff Method:
Accumulation: This phase occurs when large institutional investors are quietly accumulating positions, often leading to a period of consolidation with low volatility and decreasing volume.
Markup: Following the accumulation phase, the markup phase is characterized by a breakout above the accumulation range, accompanied by increasing volume. This indicates a potential bullish trend.
Distribution: After a significant price advance, the distribution phase emerges. It is marked by high volatility and increasing volume as large investors begin to distribute their holdings to the public.
Markdown: The markdown phase follows the distribution phase and is characterized by a breakdown below the distribution range, accompanied by increasing volume. This suggests a potential bearish trend.
The indicator plots the detected market phases on the chart using the following signals:
Green triangle pointing upwards: Accumulation phase
Blue triangle pointing downwards: Markup phase
Red triangle pointing downwards: Distribution phase
Orange triangle pointing upwards: Markdown phase
By utilizing this indicator, traders can gain valuable insights into the underlying market structure and make more informed trading decisions. However, it is important to note that the Wyckoff Method Market Cycle Indicator should be used in conjunction with other technical analysis tools and risk management strategies.
The indicator provides two input parameters:
Lookback Period: The number of bars used to calculate the volatility and determine the market phases. The default value is 50.
Volume Condition Multiple: The multiple used to compare the current volume with the volume of the lookback period. The default value is 2.
Traders can adjust these parameters to suit their specific trading style and the characteristics of the asset being analyzed.
Please note that this indicator is intended for educational and informational purposes only. It does not constitute financial advice. Always conduct your own analysis and exercise proper risk management when trading.
Happy trading!
Engulfing CandlesThis script serves as the "Engulfing Candles" indicator in TradingView. Here's what it does:
- It identifies bullish candlestick patterns where the current candle's high is lower than the previous candle's high, the current candle's low is higher than the previous candle's low, the current candle's close is higher than the previous candle's close, and the current candle's open is higher than the previous candle's open. It also identifies bearish candlestick patterns where the conditions are reversed.
- The indicator colors bullish candles in a specific color (Yellow Green) to visually highlight the bullish pattern, and colors bearish candles in another color (Purple pink) to visually highlight the bearish pattern.
- Additionally, it triggers an alert when either the bullish or bearish triangle shape appears, notifying traders with the message "A Southern Star Shadows pattern has appeared!"
High-Low DifferenceThe "High-Low Difference" indicator calculates the difference between the high and low prices within a specified period. In technical analysis, the high and low prices of an asset over a given period can provide valuable insights into the price volatility and trading range. By subtracting the low price from the high price, this indicator quantifies the range covered by price movements during the selected timeframe.
Understanding the high-low difference is essential for traders and analysts to gauge the volatility and potential price movements of an asset. A larger difference indicates higher volatility, implying greater price fluctuation within the chosen period. Conversely, a smaller difference suggests lower volatility, indicating relatively stable price movements.
Traders often use the high-low difference as part of their technical analysis toolkit to identify potential trading opportunities. For instance, a significant increase in the high-low difference may signal a breakout or increased market activity, prompting traders to adjust their trading strategies accordingly. Conversely, a narrowing high-low difference may indicate decreased volatility or a period of consolidation, suggesting potential price range-bound trading conditions.
Overall, the high-low difference serves as a simple yet valuable metric for understanding price volatility, identifying trading opportunities, and making informed decisions in the financial markets.
Support Resistance & Ema
The "Support Resistance & Ema" indicator combines various strategies to assist traders in identifying significant support and resistance levels on the chart and in following trends through exponential moving averages (EMA). This script is designed to be versatile and useful in different trading strategies.
Key Features:
Support and Resistance: It utilizes pivot highs and lows to pinpoint support and resistance levels. These levels are plotted on the chart with lines that change color based on trend reversals.
Trend Identification: The indicator follows trends using four conditions:
_hh: Higher highs and higher lows, indicating an uptrend.
_ll: Lower highs and lower lows, indicating a downtrend.
_hl: Higher highs and lower lows, indicating weakening uptrend or an impending reversal.
_lh: Lower highs and higher lows, indicating weakening downtrend or an impending reversal.
Exponential Moving Averages (EMA): It also displays various EMAs (9, 21, 50, 100, 200) on the chart to provide further insights into the trend direction.
Usage:
Support and Resistance: Support and resistance lines are automatically plotted on the chart. Trend reversals are highlighted by changing the color of the lines.
Trend Identification: The _hh, _ll, _hl, _lh conditions help identify trend changes. When one of these conditions is met, it indicates a particular configuration of highs and lows that might suggest a trading opportunity.
Exponential Moving Averages (EMA): The EMAs are plotted on the chart and can be used to confirm trends identified by the main indicator.
To use this script, you need to add it as an indicator to your trading chart. Once applied, the support, resistance lines, and EMAs will be visible on the chart, providing traders with valuable information to make informed trading decisions.
In summary, this script offers a comprehensive way to identify significant support and resistance levels, spot market trends, and confirm those trends through the use of exponential moving averages.
HTF Candle Consistency [LuxAlgo]The HTF Candle Consistency indicator tracks the most recent candle sentiment in up to 10 Higher Timeframe (HTF) and colors the user chart candle bodies based on the dominating sentiment. Users can weigh specific timeframes more significantly.
Additionally, the script provides an HTF dashboard that displays the current directional readouts for each selected timeframe to allow for an independent HTF analysis.
🔶 USAGE
Analyzing the movement and direction of higher timeframe candles can help filter out noisy variation from the price, and could be utilized to time trades better. When the majority of recent candles from the selected timeframes are bullish, the candle body will be colored in green, if this majority is bearish it will be colored in red.
Using the "Tricolor" coloring mode introduces a third coloring option, and is used when there isn't a clear sentiment majority across the selected timeframes, this option effectively allows for filtering out unwanted trends.
Users can control the variations to be filtered out depending on their chart timeframe and the enabled HTF's in the settings. Using low timeframes with higher HTF's will gray out a larger amount of candles, disabling these timeframes, changing them, or giving higher weighting to lower HTF's will allow for obtaining more dominance detection, and as such less grayed-out candles.
As seen above, the weight function allows for precise control over the specific elements being analyzed.
This indicator also features a dashboard for viewing each timeframe's direction at the same time. By doing so, it allows for better judgment on the specific elements composing the current HTF majority.
🔶 DETAILS
This indicator is only intended for Higher Timeframe Analysis, all the input timeframes should be kept equal to or lower than your current chart timeframe.
NOTE: This is necessary for data accuracy in most multi-timeframe indicators, and is generally a good practice to keep in mind.
As a reminder, the dashboard will display the timeframe in red text if a lower timeframe is detected. It is recommended to change or disable this timeframe for your analysis.
This indicator can support up to 10 timeframes, each with independent weightings.
NOTE: When a timeframe is disabled, the dashboard will no longer display that timeframe, and it will not be used in calculations.
🔹 Candle Coloring
Candle color can be selected between 3 modes.
Tricolor (Default): Changes the color based on a 3-part split of the possible data sum range.
Bicolor: Changes the color based on the sum being greater than or less than 0.
Gradient: Uses a 3-color gradient to determine the candle color based on the possible data sum range.
🔶 SETTINGS
🔹 Higher Timeframes
Toggle: Enable/Disable the timeframe from analysis.
Timeframe: Select which timeframe to use for analysis. <- NOTE: This input reflects any custom intervals you have created on Tradingview.
Weight: Determines the Weighting (Multiplier) for the timeframe's direction.
🔹 Style
Color Mode: (More details above) Determines the color mode in use for coloring candles.
🔹 Dashboard
General Settings: Control Toggle, Location, & Size of Dashboard on your chart.
Orientation: Choose to display the dashboard in a "Vertical (default)" or "Horizontal" orientation to fit your style.
[EmreKb] Volume AnalysisI've noticed that many Pine coders calculate buy and sell volumes by considering the volume of a bullish candle as buy volume and the volume of a bearish candle as sell volume. However, I believe this approach isn't very logical, especially for candles with long wicks like pinbars.
Therefore, I've devised a method to calculate the buy and sell volumes of a candle by separately considering the sizes of its top and bottom wicks and its body. I distribute the volume of the candle equally among its top wick, body, and bottom wick sizes. If the candle is bearish, I consider the body volume as sell volume; if bullish, as buy volume. For the top and bottom wick volumes, since there's a two-way movement, I allocate half to buy volume and the other half to sell volume.
This indicator displays the sum of buy and sell volumes retrospectively up to the "lookback" value on the candle. You can set the lookback value to 1 to only visualize the buy and sell volume distribution of a single candle.
If this method has been used by another Pine coder, please inform me!