Price Action UltimateThe Price Action Ultimate indicator is an innovative tool designed to provide traders with a comprehensive view of price action based on either volume or touches. By default, the indicator displays touches, offering a unique perspective on price levels that have been frequently interacted with by the market.
At its core, the indicator divides the price range of a specified lookback period into a number of rows (default 25). For each row, it calculates either the volume traded or the number of times the price touched that level. This data is then visualized in two ways: as a histogram and as horizontal lines on the chart.
The histogram, displayed on the right side of the chart, represents the distribution of touches (or volume) across different price levels. Each bar in the histogram shows the number of touches and the percentage of total touches for that price level. The color of the bars ranges from a user-defined low activity color to a high activity color, providing a quick visual reference for the most active price levels.
The horizontal lines drawn across the chart represent the most significant levels based on touches (or volume). By default, the indicator displays the top 3 levels, but this can be adjusted. The thickness of these lines corresponds to the relative importance of each level - thicker lines indicate more touches or higher volume. This feature allows traders to quickly identify key support and resistance levels based on historical price action.
One of the most innovative aspects of this indicator is the option to fade older levels over time. When enabled, this feature gradually increases the transparency of lines as they age, with newer levels appearing more prominently. This helps traders focus on the most recent and relevant price action while still maintaining awareness of older, potentially significant levels.
The indicator offers flexibility in its display options. Users can choose to show levels based on volume, touches, or both. This allows traders to compare and contrast different perspectives on price action. Additionally, the indicator includes options to display a volume profile and a background fill for the analysis range, further enhancing its visual appeal and informational content.
What makes this indicator particularly valuable is its ability to provide a clear, uncluttered view of key price levels without relying on complex calculations or multiple indicators. It distills price action down to its essence - where price has spent the most time or where the most trading activity has occurred. This can be incredibly useful for identifying potential support and resistance levels, areas of consolidation, or possible breakout points.
For traders focused on price action strategies, this indicator offers a powerful tool to enhance their analysis. It provides a data-driven approach to identifying significant price levels, which can be used to inform entry and exit decisions, set stop losses, or anticipate potential market reactions.
This indicator is a tool to aid in market analysis and should not be used as the sole basis for trading decisions. Always combine multiple forms of analysis and practice proper risk management when trading. Past performance does not guarantee future results.
Trend Analysis
Relative Strength Price Oscillator Indicator (RS PPO)Percentage Price Oscillator (PPO)
The Percentage Price Oscillator (PPO) is a momentum oscillator that measures the difference between two moving averages as a percentage of the larger moving average. As with its cousin, MACD, the Percentage Price Oscillator is shown with a signal line, a histogram and a centerline. Signals are generated with signal line crossovers, centerline crossovers, and divergences.
PPO readings are not subject to the price level of the security and the PPO values for different securities can be compared, regardless of the price of the security.
Relative Strength (RS)
Relative strength is a strategy used in momentum investing and focuses on investing in stocks or other securities that have performed well relative to the market as a whole or to a relevant benchmark.
Chart
In the chart, Microsoft stock (MSFT) is plotted against the VanEck Semiconductor ETF (SMH).
In the example on the left, from the negative values of the RS PPO it can be seen that MSFT, although trending upward, is losing out in negative terms to the SMH etf.
In the example on the right, during a correction phase with a downward price trend, Microsoft held up relatively well compared to the Van Eck Semiconductor etf.
TEMA For LoopThe TEMA for Loop indicator is a unique trend analysis tool designed to provide a more nuanced view of market movements by combining a custom EMA-based calculation with a scoring system. This indicator aims to offer traders a refined way to assess market momentum, using an approach that goes beyond typical moving average crossovers. Here’s how the indicator works and what makes it valuable:
Enhanced Smoothing with Triple EMA:
The core calculation uses three successive Exponential Moving Averages (EMA) to create a smoothed curve. This combination smooths out price data more effectively than a single EMA, reducing noise while still being responsive to market shifts.
The Triple Exponential Moving Average (TEMA) calculation, often used to minimize lag, is customized here to derive a composite EMA value. This results in a more dynamic yet stable trend line that reacts to significant price movements without being overly sensitive to minor fluctuations.
Unique Scoring System for Trend Assessment:
What sets this indicator apart is its custom scoring mechanism that evaluates the strength and direction of trends over a defined range of historical data. By comparing the current smoothed EMA value against previous values within a specified lookback period, the indicator calculates a trend score.
This scoring system helps to quantify the momentum of the trend. A positive score indicates consistent upward momentum, while a negative score suggests downward momentum. The use of this scoring method provides traders with a deeper insight into the trend's persistence over time, allowing for better decision-making.
Trend Visualization with Clear Signals:
Green represents a strong upward trend, indicating potential buying interest.
Red signals a strong downward trend, highlighting potential selling pressure.
Gray denotes a neutral market state, where neither buyers nor sellers dominate.
Why This Indicator Is Original and Useful:
Unlike many traditional TEMA indicators, the TEMA for Loop incorporates a custom blend of multi-layered EMAs with a unique scoring system that offers a more granular view of market dynamics. The combination of TEMA smoothing with a trend scoring mechanism makes this indicator particularly useful for traders who want to identify sustained trends while avoiding false signals caused by market noise.
This enhanced approach to trend detection provides a level of analysis that is not readily available in most open-source TEMA scripts, justifying its unique value. The closed-source nature of this script protects its innovative scoring logic, which has been carefully optimized for accuracy and adaptability across various market conditions.
The TEMA for Loop is ideal for traders looking for a tool that provides a balanced blend of responsiveness and smoothness, making it an excellent choice for those who aim to ride strong trends while minimizing whipsaws. Its distinctive combination of methodologies offers traders a competitive edge in markets characterized by both sharp moves and periods of consolidation.
High and Low in Selected Time Window (Chart's Timezone)Simple indicator for finding the high and low in any selected time period. to use enter the start time by selecting the hour and minute and enter the end time the same.
a line will be drawn along with the price and a timestamp of when it occurred. shows multiple days of the same time period. Useful for observing ICT Macros, 6VS10 etc.
RSI Bars with Higher Timeframe - homburgresearchThe "RSI Bars with Higher Timeframe - homburgresearch" indicator is an advanced tool designed to provide traders with visual cues about overbought, oversold, and trend-related market conditions based on the Relative Strength Index (RSI). This version also includes an analysis of higher timeframes to enhance decision-making and provide a more comprehensive view of market trends.
Indicator Features:
The indicator colors the bars according to the RSI value and considers conditions on both the current and higher timeframes. A bullish trend is represented by gray bars when the RSI is above the 50 level, while a bearish trend is represented by black bars when the RSI is below the 50 level.
The indicator also offers coloring to highlight extreme overbought or oversold conditions. Extremely overbought areas (e.g., RSI > 80) are marked in red and may indicate particularly risky market conditions. Extremely oversold areas (e.g., RSI < 20) are marked in green and indicate potentially very attractive buying opportunities.
In addition to bar coloring, the indicator allows for background coloring based on the RSI values of a higher timeframe chosen by the user. This background helps identify larger trends, with red and green shading representing bearish and bullish conditions, respectively. Additionally, extreme overbought and oversold conditions can also be represented as background, providing traders with even clearer signals for risky or attractive market conditions. This feature allows traders to better align their trading decisions with the broader market trend and adds another layer of analysis.
All parameters are individually adjustable, including the RSI length, thresholds for overbought/oversold conditions, colors for different market states, and the choice of a higher timeframe for background analysis.
The indicator provides alerts that notify you when the RSI reaches certain thresholds, ensuring that you do not miss important trading opportunities. Alerts can be set for entering the overbought zone, the oversold zone, or extreme overbought or oversold conditions.
Using the RSI Bars with Higher Timeframe Indicator:
RSI-based signals can be easily identified through the color-coded bars, helping you recognize when the market might be overbought or oversold. This information can be used for potential counter-movements in the market.
Gray bars indicate that the RSI is above the 50 level, suggesting a bullish trend. Black bars indicate that the RSI is below the 50 level, suggesting a bearish trend. This information helps you better assess the current market direction.
The highlighting of extreme overbought or oversold conditions helps identify overheated markets, which may indicate short-term reversals or a possible continuation. The background color provides context from a higher timeframe and helps traders understand the larger market trend and make more informed decisions.
The alerts keep you updated when the market reaches specific RSI conditions, allowing you to react without constantly monitoring the chart.
Examples of Use:
If the bars are marked in gray, this indicates a bullish trend. It may be advisable to look for long positions or hold existing positions.
If the bars are marked in black, this indicates a bearish trend. It may be advisable to consider short positions or reduce existing long positions.
If the bars are marked in red (overbought), it could be an opportunity to take profits or consider short positions.
If the bars are marked in green (oversold), it could be a good opportunity to look for long positions.
If the background is shaded in green, it indicates a broader bullish trend on the higher timeframe, suggesting that it may be better to align trades in that direction.
If the background is shaded in red, it indicates a broader bearish trend on the higher timeframe, signaling caution for long trades and favoring short trades.
The RSI Bars with Higher Timeframe indicator is particularly useful for traders who base their decisions on RSI signals and want to integrate a multi-timeframe approach into their trading strategy for more comprehensive market analysis.
Note: This indicator is for informational purposes only and does not constitute a buy or sell decision. Any trading decision should be based on your own analysis and consideration of your individual risk profile.
Volatility Gaussian Bands [BigBeluga]The Volatility Gaussian Bands indicator is a cutting-edge tool designed to analyze market trends and volatility with high precision. By applying a Gaussian filter to smooth price data and implementing dynamic bands based on market volatility, this indicator provides clear signals for trend direction, strength, and potential reversals. With updated volatility calculations, it enhances the accuracy of trend detection, making it a powerful addition to any trader's toolkit.
⮁ KEY FEATURES & USAGE
● Gaussian Filter Trend Bands:
The Gaussian Filter forms the foundation of this indicator by smoothing price data to reveal the underlying trend. The trend is visualized through upper and lower bands that adjust dynamically based on market volatility. These bands provide clear visual cues for traders: a crossover above the upper band indicates a potential uptrend, while a cross below the lower band signals a potential downtrend. This feature allows traders to identify trends with greater accuracy and act accordingly.
● Dynamic Trend Strength Gauges:
The indicator includes trend strength gauges positioned at the top and bottom of the chart. These gauges dynamically measure the strength of the uptrend and downtrend, based on the middle Gaussian line. Even if the trend is downward, a rising midline will cause the upward trend strength gauge to show an increase, offering a nuanced view of the market’s momentum.
Weakening of the trend:
● Fast Trend Change Indicators:
Triangles with a "+" symbol appear on the chart to signal rapid changes in trend direction. These indicators are particularly useful when the trend changes swiftly while the midline continues to grow in its previous direction. For instance, during a downtrend, if the trend suddenly shifts upward while the midline is still declining, a triangle with a "+" will indicate this quick reversal. This feature is crucial for traders looking to capitalize on rapid market movements.
● Retest Signals:
Retest signals, displayed as triangles, highlight potential areas where the price may retest the Gaussian line during a trend. These signals provide an additional layer of analysis, helping traders confirm trend continuations or identify possible reversals. The retest signals can be customized based on the trader’s preferences.
⮁ CUSTOMIZATION
● Length Adjustment:
The length of the Gaussian filter can be customized to control the sensitivity of trend detection. Shorter lengths make the indicator more responsive, while longer lengths offer a smoother, more stable trend line.
● Volatility Calculation Mode:
Traders can select from different modes (AVG, MEDIAN, MODE) to calculate the Gaussian filter, allowing for flexibility in how trends are detected and analyzed.
● Retest Signals Toggle:
Enable or disable the retest signals based on your trading strategy. This toggle allows traders to choose whether they want these additional signals to appear on the chart, providing more control over the information displayed during their analysis.
⮁ CONCLUSION
The Volatility Gaussian Bands indicator is a versatile and powerful tool for traders focused on trend and volatility analysis. By combining Gaussian-filtered trend lines with dynamic volatility bands, trend strength gauges, and rapid trend change indicators, this tool provides a comprehensive view of market conditions. Whether you are following established trends or looking to catch early reversals, the Volatility Gaussian Bands offers the precision and adaptability needed to enhance your trading strategy.
Smart Momentum Relative StrengthSmart Momentum Relative Strength
Creator Journey
The Smart Momentum Relative Strength indicator is
created by Vishal R. Janjire , inspired by BharatTrader sir, and parameters guided by mentor stockedge founder Vivek Bajaj sir.
Reason? ...Why choose Smart Momentum Relative Strength.
1.Simple to Trade: This indicator simplifies trading decisions. You just need to follow the background color displayed on the chart. When the background is green, it signals a bullish trend, and when it turns red, it signals a bearish trend. For an even cleaner experience, you can untick the Relative Strength (RS) toggle in the indicator settings and focus purely on trading based on these background colors, making the process straightforward and efficient.
2.Unlock the power to compare any stock, share, commodity, forex or cryptocurrency against major indices like Nasdaq Composite, NYSE Composite, Bitcoin, NG, Gold, Silver, Crude oil, Nasdaq-100, Nifty 50, Hang Seng Index, FTSE 100, and many more! With the Comparative Relative Strength (RS) indicator,
You can easily change the default Nifty 50 comparative symbol to any index or asset of your choice, such as Gold, Silver, Crude Oil, or global benchmarks like the Dow Jones Industrial Average, DAX, Euronext 100, and SSE Composite.
This versatile tool allows traders to measure how well a base symbol (e.g., stock or crypto) performs relative to a chosen benchmark over a specified period. Whether you're analyzing the relative strength of Bitcoin against the Nasdaq-100 or comparing stocks to the S&P 500, this indicator provides valuable insights into market trends and outperforming assets.
The Smart Momentum Relative Strength combines several advanced technical analysis tools into one comprehensive Pine Script indicator designed to provide a nuanced view of market strength and trends. This script integrates Relative Strength (RS), Commodity Channel Index (CCI), and additional trend confirmation mechanisms to deliver actionable insights for traders.
Below are key points to understand before using this indicator:
Important Parameters:
1. Green Line: Represents stocks outperforming the comparative index, which is Nifty 50. However, do not apply this result directly to Nifty 50 itself, as it will not work exclusively on the Nifty 50 index.
2. Red Line: Indicates that the stock is underperforming relative to the Nifty 50 index.
3. Green Background: Signifies that both the current time momentum and higher time momentum are aligned, indicating an upward trend.
4. Red Background: Signifies that both the current time momentum and higher time momentum are aligned, indicating a downward trend.
5. Blank Space: This occurs when the two timeframes are not aligned, indicating market uncertainty and signaling a potential change in market direction, it means short time frame or current time frame changed its direction to opposite side.
Multi-Time Frame (MTF) Settings:
This indicator incorporates a default multi-time frame setup, as follows:
1 and 2 Minute chart = 5 Minute higher time frame
3 Minute chart = 15 Minute higher time frame
5 Minute chart = 15 Minute higher time frame
10 Minute chart = 60 Minute higher time frame
15 Minute chart = 60 Minute higher time frame
20 and 30 Minute chart = 120 Minute higher time frame
1 Hour chart = 4 Hour higher time frame
2 Hour chart = 4 Hour higher time frame
4 Hour chart = 1 Day higher time frame
1 Day chart = 1 Week higher time frame
1 Week chart = 1 Month higher time frame
1 Month chart = 12 Month higher time frame
For any other chart time frame = Day time is default time frame
1. Relative Strength (RS) Analysis:
Calculation: Measures the performance of the base symbol relative to a comparative symbol over a specified period.
Visualization: The RS value is plotted with color-coded lines to indicate bullish (green) or bearish (red) conditions based on crossovers. Users can customize the color based on value or trend direction.
Trend Analysis: A simple moving average (SMA) of RS is displayed to visualize trend strength and direction, with color changes to reflect rising or falling trends.
2. Commodity Channel Index (CCI):
- Current Timeframe CCI: Calculates the CCI for the current timeframe to assess price momentum.
- Higher Timeframe CCI: Computes the CCI for a higher timeframe to provide a broader market perspective.
- Background Color: Highlights the chart background in green or red based on whether both current and higher timeframe CCIs are above or below zero, respectively.
-Blank Space: This occurs when the two timeframes are not aligned, indicating market uncertainty and signaling a potential change in market direction, it means short time frame or current time frame changed its direction to opposite side.
Mark Minirvini's Trend TemplateMark Minirvini's Trend Template is based on Trend Template Criteria specified by the legendary Trader Mark Minervini.
Prerequisite - Use this Indicator only in Weekly Timeframe.
What does the Indictor do?
1. The indicator checks all the trend following criteria specified by the legendary Trader Mark Minervini in his book "Trade Like a Stock Market Wizard", and sets the background color green when all the trend template criteria are satisfied, that represents the Stock is currently in Stage 2 of its upward journey.
2. It plots 52-Week High Line.
3. Shows %Down from 52-Week High in a label on top of the latest candle.
How to use this Indicator?
1. This indicator can help you quickly find out if the company is already in Stage 2 of growth or now.
2. This indicator quickly identifies when the stock is out of Stage 2 and may move further into Stage 3 or 4.
Please note that this indicator does not generate any BUY or SELL signals.
This indicator can best be used for quickly confirming the Current Stage of the stock and how much down stock currently is wrt 52-week high price.
Settings:
1. By default the 52-Week Low line is disabled, one can switch it back on from Settings.
Realized Price Profit/Loss Margin [VWAP Optimized]Shaded Profit/Loss Margin Oscillator
The Shaded Profit/Loss Margin Oscillator is a powerful tool designed to measure Bitcoin’s Net Unrealized Profit/Loss (NUPL). This metric reflects the difference between Bitcoin’s current market price and its realized price, which approximates the price at which coins were last moved. By smoothing the NUPL using a moving average, the indicator provides a clean purple oscillator line that helps users easily gauge market sentiment. When the oscillator is above the zero line, the market is in profit, and when it is below zero, participants are generally in a state of unrealized loss. The shaded area between the oscillator and the zero line enhances visual clarity, making it easier to identify potential shifts in market behavior such as profit-taking or capitulation.
Unique Features and Added Value
What sets this indicator apart from traditional NUPL indicators is the use of a volume-weighted average price (VWAP) as a proxy for the realized price. Unlike the original on-chain NUPL metric, which relies on complex on-chain data, this indicator leverages VWAP to provide an approximation of realized price based solely on price and volume data available directly on TradingView. This method makes it highly accessible to traders who don’t have access to on-chain data platforms.
The use of VWAP not only simplifies the calculation but also provides additional value, as it incorporates volume into the realized price estimation. This volume-sensitive approach may offer a more responsive and dynamic reflection of realized prices compared to on-chain models, which can sometimes lag. In essence, this VWAP-based NUPL oscillator offers a unique edge in tracking profit/loss margins, particularly for traders who want a straightforward and efficient way to gauge sentiment without relying on external on-chain data sources. It brings the essence of NUPL into the world of technical analysis in an accessible and actionable way.
Liquidity VisualizerThe "Liquidity Visualizer" indicator is designed to help traders visualize potential areas of liquidity on a price chart. In trading, liquidity often accumulates around key levels where market participants have placed their stop orders or pending orders. These levels are commonly found at significant highs and lows, where traders tend to set their stop-losses or take-profit orders. The indicator aims to highlight these areas by drawing unbroken lines that extend indefinitely until breached by the price action.
Specifically, this indicator identifies and marks pivot highs and pivot lows, which are price levels where a trend changes direction. When a pivot high or pivot low is formed, it is represented on the chart with a horizontal line that continues to extend until the price touches or surpasses that level. The line remains in place as long as the level remains unbroken, which means there is potential liquidity still resting at that level.
The concept behind this indicator is that liquidity is likely to be resting at unbroken pivot points. These levels are areas where stop-loss orders or pending buy/sell orders may have accumulated, making them attractive zones for large market participants, such as institutions, to target. By visualizing these unbroken levels, traders can gain insight into where liquidity might be concentrated and where potential price reversals or significant movements could occur as liquidity is taken out.
The indicator helps traders make more informed decisions by showing them key price levels that may attract significant market activity. For instance, if a trader sees multiple unbroken pivot high lines above the current price, they might infer that there is a cluster of liquidity in that area, which could lead to a price spike as those levels are breached. Similarly, unbroken pivot lows may indicate areas where downside liquidity is concentrated.
In summary, this indicator acts as a "liquidity visualizer," providing traders with a clear, visual representation of potential liquidity resting at significant pivot points. This information can be valuable for understanding where price might be drawn to, and where large movements might occur as liquidity is targeted and removed by market participants.
FibLevel Size CalculatorThis skript calculates position sizes and new take profits for sizing into an long or short position with 3 entrys defined at custom fibonacci retracement levels.
TP: -0,272
Entry1: 0.382
Entry2: 0.618
Entry3: 0.83
SL: 1.05
Expected RR per trade is 0.2 with a High Win rate definitly profitable.
Search for an established trend on the higher timeframe, drop to the smaller ones and look for correction waves. Once they break to the trenddirection of the higher timeframe take the fib from lowest to highes point. Draw a fib level on the chart and use the Indicator to define these Levels above. The calculator gives you the Margin to use in each position, and will check that you will not get liquidated an that you have enough margin. It tells you the new TP for Limit2 and Limit3 if they get hit so you can get out of the trade full TP with a small bounce.
Inputs:
Account Balance, Risk Percentage, and Leverage: These inputs are used to calculate the position size and risk.
Entry 1, Entry 2, Entry 3, Take Profit (TP), and Stop Loss (SL): These prices are used for calculating position sizes, risk, and profit for up to three entry points.
Calculations:
Risk Amount: Calculated based on the account balance and risk percentage.
Position Sizes (Qty): For each entry point, the position size is determined. The second and third entries have a multiplier (3x for Entry 2, 5x for Entry 3) compared to the first.
Stop Loss and Profit Calculation: The script calculates the potential profit and adjusts the TP levels based on the average entries for Limit 2 and Limit 3.
Margin Calculation: Margin requirements for each position are calculated based on leverage.
Output:
Table Display: A table shows key values like entry prices, position sizes, TP levels, potential profit, and margin requirements for each limit.
Warnings: It includes a liquidation warning and a check for whether the account is at risk of liquidation based on leverage.
Position Type: It automatically detects if the trade is a long or short based on the relationship between TP and SL.
Visualization:
Lines: It draws horizontal lines on the chart to visually represent the entry, TP, and SL levels.
Overall, this script is designed to help traders manage risk and calculate position sizes for multi-level entries using leverage.
Pls drop feedback in the comments.
Follow LineFollow Line is a common MT4 FX indicator based on trend following.
The main idea behind the calculation is volatility:
-Indicator Line increases as price goes above Bollinger Bands but with 1 standard deviation.
-Likewise when price moves below the lower Bollinger Band with 1 Standard deviation, Follow -Line decreases down.
-As you can imagine, indicator stays as a flat line when price moves between the bands.
There are two critical settings about the indicator:
1- Bollinger Bands Deviation is set to 1 as default but if you want to have early signals you have to decrease that amount. Also you'd better increase that to have flat values on sideways market conditions for not getting chopped by the early but false signals.
2- ATR Filter is activated in default settings and the indicator follows the trend with a distance from Highs and Lows considering ATR (default length 5) values. If you turn off the ATR filter, the indicator line only takes into account the Highs and the Lows. Indicator will get more agile but the risk of choppy signals can be taken that time. I personally advise you to increase the Bollinger Band Deviation from 1 to between 1.5-2 to stabilize the fake signals when ATR filter is turned off.
Signals can be shown on the graph:
BUY: when Follow Line changes direction from red to blue.(which means Price is above Bollinger Upper Band with 1 standard deviation)
SELL: when Follow Line changes direction from blue to red. (which means Price moves below Bollinger Lower Band with 1 standard deviation)
Finally, some of you may know there are also several Follow Line indicators on TradingView but unfortunately they don't show the same exact values (close but not same) comparing with original version of MT4 and the Metastock version that I've coded recently. So, I shared this stuff to have the exact same values on graphs on all platforms.
TS CalculatorWhat is Trailing Stop?
A trailing stop is a type of stop-loss order that adjusts itself as the price of an asset moves in a favorable direction. It’s designed to lock in profits or limit losses by following the asset’s price movement. Here’s how it works:
How a Trailing Stop Works
Initial Setup: You set a trailing stop at a certain percentage or dollar amount below (for long trades) or above (for short trades) the current market price.
Price Movement: As the price moves in your favor, the trailing stop moves with it, maintaining the set distance.
Locking in Profits: If the price reverses direction by the set amount, the trailing stop triggers a market order to sell (for long trades) or buy (for short trades), locking in your profits or limiting your losses.
Example
Long Trade: If you buy a stock at $100 and set a trailing stop at 10%, the stop-loss order will initially be at $90. If the stock price rises to $120, the trailing stop moves up to $108 (10% below $120). If the price then drops to $108, the trailing stop triggers a sell order.
Short Trade: If you short a stock at $100 and set a trailing stop at 10%, the stop-loss order will initially be at $110. If the stock price falls to $80, the trailing stop moves down to $88 (10% above $80). If the price then rises to $88, the trailing stop triggers a buy order.
Benefits
Automated Risk Management: It helps manage risk without the need to constantly monitor the market.
Profit Protection: It locks in profits as the price moves in your favor.
Flexibility: It adjusts dynamically with the market price, unlike a fixed stop-loss order.
What this script does ?
This script plots the Trailing Stop from the point of entry to current date, until it hits the trailing stop. Some of the market did not give the trailing stop values exactly so this script may give you a wise view of that.
Variables
Date : Date with YYYY-MM-DD format
Time : Time with HH:MM:SS format
Entry Price : Activation Price of TS order
Bounceback Ratio : Ratio for TS
Order Type : Position of order as Long/Short
There is an also a table implemented which shows
Entry
Ratio
Position
Current Stop
For possible updates feel free to contact me via DM.
Dynamic Darvas Lines [CHE] Dynamic Darvas Lines
Unlock Precision Trading with Dynamic Darvas Lines
Overview:
Dynamic Darvas Lines is an advanced trading indicator designed for traders seeking to enhance their market analysis and decision-making process. Building upon the classic Darvas Box theory, this indicator introduces dynamic zone detection and comprehensive customization features, making it an indispensable tool for both novice and experienced traders.
Key Features & Advantages:
1. Dynamic Zone Detection:
- Adaptive Boxes: Automatically identifies and adjusts support and resistance levels based on market volatility and price movements, ensuring that the indicator remains relevant in varying market conditions.
- Real-Time Updates: Continuously recalculates box boundaries, providing up-to-the-minute insights into potential breakout or reversal points.
2. Enhanced Signal Accuracy:
- Buy & Sell Signals: Generates clear and actionable buy and sell signals based on the crossover and crossunder of price with dynamic Darvas lines, helping traders capitalize on optimal entry and exit points.
- Signal Confirmation: Reduces false signals by requiring confirmation through multiple conditions, enhancing overall trade reliability.
3. Comprehensive Customization:
- Adjustable Parameters: Tailor the indicator to your specific trading style with customizable box length, signal colors, and plot shapes.
- Color Management: Differentiate between various market signals with intuitive color coding for buy/sell signals, box boundaries, and debug lines, enhancing visual clarity on your charts.
4. Advanced Visualization:
- Signal Circles: Visual markers highlight significant price levels where buy and sell signals are triggered, making it easier to spot opportunities at a glance.
- Debug Mode: Activate debug lines to display the lowest lows and highest highs within the defined box length, aiding in in-depth market analysis and strategy refinement.
5. Robust Alert System:
- Custom Alerts: Set up real-time alerts for buy and sell signals, ensuring you never miss critical trading opportunities even when you're away from your screen.
- Automated Notifications: Receive instant notifications directly through your trading platform, keeping you informed and ready to act.
6. Seamless Integration:
- Overlay Capability: Easily integrates with your existing charts, allowing you to combine Dynamic Darvas Lines with other technical indicators for a more comprehensive market view.
- Optimized Performance: Efficiently coded in Pine Script V5, ensuring smooth performance without lag, even on lower-end devices.
Use Cases:
- Trend Identification: Detect and follow market trends by observing the formation and breakout of dynamic Darvas boxes, helping you stay aligned with the market’s momentum.
- Breakout Trading: Capitalize on significant price movements when the price breaks out of established Darvas zones, indicating potential strong directional moves.
- Reversal Detection: Identify potential market reversals by monitoring when the price crosses under the lower Darvas line or above the upper Darvas line, signaling a change in market sentiment.
- Risk Management: Utilize the indicator’s clear support and resistance levels to set strategic stop-loss and take-profit points, enhancing your risk-reward ratio.
- Market Analysis: Combine with other technical tools and indicators to perform comprehensive market analysis, improving the accuracy of your trading strategies.
Why Choose Dynamic Darvas Lines ?
Dynamic Darvas Lines stands out with its blend of traditional Darvas Box principles and modern enhancements. Its dynamic nature ensures adaptability across different market conditions, while the extensive customization options provide traders with the flexibility to tailor the indicator to their unique trading strategies. Whether you’re aiming to identify trends, execute breakout trades, or manage risks more effectively, Dynamic Darvas Lines offers the precision and reliability you need to elevate your trading game.
Get Started Today:
Enhance your trading toolkit with Dynamic Darvas Lines and experience the difference in your market analysis and trading performance. Download now and take the first step towards more informed and strategic trading decisions!
Note: Always backtest any trading indicator and use it in conjunction with other analysis tools to develop a robust trading strategy. Trading involves risk, and it's essential to practice sound risk management.
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Weekly Initial BalanceWeekly Initial Balance Indicator
The Weekly Initial Balance (IB) indicator is a powerful tool designed for traders to identify key support and resistance levels based on the market's initial activity at the start of each week. By analyzing the first 30 hours of trading.
Key Features:
Customizable IB Period: Define the start hour and duration of the initial balance period to suit your trading schedule and the specific market you are analyzing, I have it set at 30 hours by default.
IB High, Low, and Midpoint Levels: Automatically plots the high, low, and midpoint of the IB period, providing immediate visual reference to critical price levels.
Extension Levels: Calculate and display extension levels based on customizable percentages (e.g., 50%, 100%, 150%), allowing you to project potential breakout targets and identify areas of interest beyond the initial balance range.
Dynamic Lines and Labels: The indicator updates in real-time, extending lines and repositioning labels as new bars form, ensuring you always have the most current information.
Customizable Appearance: Adjust line styles, widths, colors, and label positions to match your charting preferences and improve visual clarity.
How to Use:
Set the IB Parameters:
Week Start Hour (UTC): Specify the hour when the weekly IB period begins. I use 1800EST as that is when the futures market opens.
IB Duration in Hours: Define how many hours constitute the IB period.
Configure Extension Levels:
Input the desired extension percentages to calculate levels beyond the IB range.
Customize Visual Settings:
Adjust line colors, styles, widths, and label offsets to tailor the indicator's appearance.
Interpret the Levels:
Use the IB high and low as immediate support and resistance levels.
Monitor the midpoint for potential pivot areas.
Watch for price interactions with extension levels to anticipate breakouts or reversals.
Benefits:
Identify Key Weekly Levels: Understand the market's initial sentiment each week to gauge potential trends.
Enhance Trading Strategies: Incorporate the IB levels into your trading plan for better entry and exit points.
Adaptable to Various Markets: Suitable for Forex, commodities, indices, and other markets where weekly analysis is beneficial.
Industry Group StrengthThe Industry Group Strength indicator is designed to help traders identify the best-performing stocks within specific industry groups. The movement of individual stocks is often closely tied to the overall performance of their industry. By focusing on industry groups, this indicator allows you to find the top-performing stocks within an industry.
Thanks to a recent Pine Script update, an indicator like this is now possible. Special thanks to @PineCoders for introducing the dynamic requests feature.
How this indicator works:
The indicator contains predefined lists of stocks for each industry group. To be included in these lists, stocks must meet the following basic filters:
Market capitalization over 2B
Price greater than $10
Primary listing status
Once the relevant stocks are filtered, the indicator automatically recognizes the industry group of the current stock displayed on the chart. It then retrieves and displays data for that entire industry group.
Data Points Available:
The user can choose between three different data points to rank and compare stocks:
YTD (Year-To-Date) Return: Measures how much a stock has gained or lost since the start of the year.
RS Rating: A relative strength rating for a user-selected lookback period (explained below).
% Return: The percentage return over a user-selected lookback period.
Stock Ranking:
Stocks are ranked based on their performance within their respective industry groups, allowing users to easily identify which stocks are leading or lagging behind others in the same sector.
Visualization:
The indicator presents stocks in a table format, with performance metrics displayed both as text labels and color-coded lines. The color gradient represents the percentile rank, making it visually clear which stocks are outperforming or underperforming within their industry group.
Relative Strength (RS):
Relative Strength (RS) measures a stock’s performance relative to a benchmark, typically the S&P 500 (the default setting). It is calculated by dividing the closing price of the stock by the closing price of the S&P 500.
If the stock rises while the S&P 500 falls, or if the stock rises more sharply than the S&P 500, the RS value increases. Conversely, if the stock falls while the S&P 500 rises, the RS value decreases. This indicator normalizes the RS value into a range from 1 to 99, allowing for easier comparison across different stocks, regardless of their raw performance. This normalized RS value helps traders quickly assess how a stock is performing relative to others.
Consecutive CandlesTrading as Easy as One, Two, and Three
Unlock the power of simplicity in trading with this innovative script inspired by KepalaBesi. Designed for traders of all levels, this script provides a user-friendly approach to market analysis, enabling you to make informed trading decisions effortlessly.
Key Features:
Simplified Signals: Receive clear buy and sell signals based on robust technical indicators. The script streamlines your trading process, allowing you to focus on execution rather than analysis.
Customizable Settings: Tailor the script to fit your trading style. Adjust parameters to suit your risk tolerance and market preferences, ensuring a personalized trading experience.
Visual Clarity: Benefit from intuitive visual cues on your chart, making it easy to identify optimal entry and exit points. The clean interface helps you make quick decisions without confusion.
Whether you’re a seasoned trader or just starting, "Trading as Easy as One, Two, and Three" simplifies your trading journey, turning complex strategies into straightforward actions. Embrace a more efficient way to trade and elevate your performance in the markets!
Get Started Today!
Join the community of traders who have discovered the ease of trading with KepalaBesi's inspired script. Elevate your trading experience and achieve your financial goals with confidence!
Three Bar Reversal Pattern [LuxAlgo]The Three Bar Reversal Pattern indicator identifies and highlights three bar reversal patterns on the user price chart.
The script also provides an option for incorporating various trend indicators used to filter out detected signals, allowing them to enhance their accuracy and help obtain a more comprehensive analysis.
🔶 USAGE
The script automates the detection of three-bar reversal patterns and provides a clear, visually identifiable signal for potential trend reversals.
When a reversal chart pattern is confirmed and price action aligns with the pattern, the pattern's boundaries are extended, forming levels, with the upper boundary often acting as a resistance and the lower boundary as a support.
The script allows users to filter patterns based on a specific trend direction detected by multiple trend indicators. Users can choose to view patterns that are either aligned with the detected trend or opposite to it.
Included trend indicators are: Moving Average Cloud, Supertrend, and Donchian Channels.
🔶 DETAILS
The three-bar reversal pattern is a technical analysis pattern that signals a potential reversal in the prevailing trend. The pattern consists of three consecutive bar formations:
First Bar and Second Bar: 2 consecutive of the same sentiment, representing the prevailing trend in the market.
Third Bar: Confirms the reversal by closing beyond the high or low of the first bar, signaling a potential change in market sentiment.
Various types of three-bar reversal patterns are documented. The script supports two main types:
Normal Pattern: Detects three-bar reversal patterns without requiring the third bar closing price to surpass the high (bullish pattern) or low (bearish pattern) of the first bar. It identifies basic formations signaling potential trend reversals.
Enhanced Pattern: Specifically identifies three-bar reversal patterns where the third bar closing price surpasses the high (bullish pattern) or low (bearish pattern) of the first bar. This type provides a more selective signal for stronger trend reversals.
🔶 SETTINGS
Pattern Type: Users can choose the type of 3-bar reversal patterns to detect: Normal, Enhanced, or All. "Normal" detects patterns that do not necessarily surpass the high/low of the first bar. "Enhanced" detects patterns where the third bar surpasses the high/low of the first bar. "All" detects both Normal and Enhanced patterns.
Derived Support and Resistance: Toggles the visibility of the support and resistance levels/zones.
🔹 Trend Filtering
Filtering: Allows users to filter patterns based on the trend indicators: Moving Average Cloud, Supertrend, and Donchian Channels. The "Aligned" option only detects patterns that align with the trend and conversely, the "Opposite" option detects patterns that go against the trend.
🔹 Trend Indicator Settings
Moving Average Cloud: Allows traders to choose the type of moving averages (SMA, EMA, HMA, etc.) and set the lengths for fast and slow-moving averages.
Supertrend: Options to set the ATR length and factor for Supertrend.
Donchian Channels: Option to set the length for the channel calculation.
🔶 RELATED SCRIPTS
Reversal-Candlestick-Structure .
Reversal-Signals .
[ AlgoChart ] - Pearson Index CorrelationCorrelation Indicator (Pearson Index)
The correlation indicator measures the strength and direction of the relationship between two financial assets using the Pearson Index.
Correlation values range from +100 to -100, where:
+100 indicates perfect positive correlation, meaning the two assets tend to move in the same direction.
-100 indicates perfect negative correlation, where the two assets move in opposite directions.
The neutral zone ranges from +25% to -25%, suggesting that the asset movements are independent, with no clear correlation between them.
Interpreting Correlation Levels:
Correlation above +75%: The two assets tend to move similarly and in the same direction. This may indicate a risk of overexposure if both assets are traded in the same direction, as their movements will be very similar, increasing the likelihood of double losses or gains.
Correlation below -75%: The two assets tend to move similarly but in opposite directions. This correlation level can be useful for strategies that benefit from opposing movements between assets, such as trading pairs with inverse dynamics.
Practical Use of the Indicator:
Risk management: Use the indicator to monitor asset correlations before opening positions. High correlation may indicate you are duplicating exposure, as two highly correlated assets tend to move similarly. This helps avoid excessive risk and improves portfolio diversification.
Statistical Arbitrage: During moments of temporary decorrelation between two assets, the indicator can be used for statistical arbitrage strategies. In such cases, you can take advantage of the divergence by opening positions and closing them when the correlation returns to higher or positive levels, thus potentially profiting from the reconvergence of movements.
While the correlation indicator provides valuable insights into asset relationships, it is most effective when used in conjunction with other concepts and tools. On its own, it may offer limited relevance in trading decisions.
Trend Following Composite Index ( TFCI ) 🏆 Trend Following Composite Index (TFCI) 🏆
Overview 🔎
The Trend Following Composite Index (TFCI) is designed to provide traders with a comprehensive view of market trends by combining several technical indicators in a single, unified tool. Each component brings its unique perspective, and together they create a well-rounded signal that may help traders better understand the current market condition. TFCI simplifies the decision-making process by aggregating these signals into one easy-to-read confidence percentage, allowing traders to quickly gauge whether the market is trending upwards, downwards, or is in a period of indecision.
Combining Multiple Indicators for a Unique Edge 🔀
TFCI integrates six different technical indicators, each tuned to capture distinct aspects of market behavior. Rather than relying on any single indicator, TFCI merges their signals into one, providing a more nuanced and potentially more reliable view of the market. This combination helps reduce the weaknesses inherent in any one indicator, offering a more balanced and holistic trend signal.
RSI Filter: The RSI helps identify potential overbought or oversold conditions, but when used alone, it can generate false signals. In TFCI, the RSI is smoothed and combined with other metrics to avoid reacting to small fluctuations, making the signals more robust.
Kijun-Based Band: This component, inspired by the Kijun-sen line from the Ichimoku system, defines adaptive price bands based on market equilibrium. When combined with a smoothing filter, it provides traders with clear visual cues for potential trend reversals, reducing the guesswork.
Boosted Moving Average: By combining short- and long-term EMAs, this component reacts quickly to price changes, while the "boost" factor enhances its ability to confirm trends early. This combination helps filter out market noise, making it easier to spot genuine trend shifts.
Deviation Condition: This proprietary moving average adjusts dynamically based on volatility, which means it adapts to fast-changing market conditions. By adjusting its sensitivity based on market deviations, it helps smooth out erratic price movements, creating clearer trend signals.
VWTSI (Volume-Weighted Trend Strength Indicator): Volume is an essential factor in confirming trends. This indicator looks at price movements in relation to volume to assess the strength of the trend. By factoring in volatility, it ensures that traders are focusing on the strongest market moves, further enhancing the reliability of the signals.
Supertrend: A volatility-based trailing stop that defines buy and sell points. Its role in TFCI is to help maintain positions during trending markets while avoiding premature exits due to minor pullbacks.
A Streamlined Confidence Signal 🧮
One of the main advantages of TFCI is that it simplifies the multitude of signals into one easy-to-read confidence percentage. The aggregation of multiple indicators means that no single indicator drives the signal; instead, the combined analysis ensures that only when several conditions align do you get a clear trend indication. This reduces false positives and gives traders a more confident view of the overall market direction.
Bullish signals from several components push the percentage higher.
Bearish signals lower the percentage.
A neutral score indicates indecision, signaling a potential range-bound or consolidating market.This consolidated signal allows traders to make quicker decisions without having to interpret several individual indicators, making the tool more user-friendly and practical for daily trading.
Why TFCI’s Combination is Unique and Useful 🔍
What makes TFCI stand out is how each of these indicators works together to offer a more comprehensive view of the market:
Reduced Noise: By combining multiple indicators, TFCI reduces the likelihood of acting on false signals. The integration of smoothing mechanisms and volume-based confirmations further increases signal reliability.
More Balanced Analysis: Using indicators that analyze price, volume, volatility, and trend strength, TFCI provides a balanced view of market conditions. Traders can trust that the signal reflects multiple facets of the market rather than just one aspect, making it more adaptable to different market environments.
Easier to Read: Instead of juggling multiple charts or relying on complex setups, TFCI combines everything into one clear percentage and visual signal. This saves time and reduces the complexity of decision-making.
Tested Across Market Conditions 📅
While no indicator can predict the future, TFCI has been tested in a range of market conditions. Its ability to adapt to different environments (trending, volatile, or range-bound) makes it a versatile tool, though like any technical tool, it should be used alongside other forms of analysis and risk management.
Custom Display Options for Readability 📊
To make TFCI even more versatile, it includes two display modes:
Table Mode: This mode breaks down the signals from each component, showing traders exactly how each element is contributing to the overall confidence score. Ideal for those who want to dig deeper into the details.
Gauge Mode: A simplified visual display, perfect for traders who want a quick, at-a-glance view of market conditions.
Color Blindness Mode 🌈
TFCI also includes several color palettes for traders affected by color blindness, ensuring everyone can easily interpret the signals.
Conclusion 🔒
TFCI brings together multiple technical indicators in a unique way that aims to improve trend detection by providing a balanced and easy-to-read signal. Its proprietary adjustments and combination of price, volume, and volatility indicators offer a comprehensive view of market conditions, making it a valuable tool for traders of all experience levels. However, it is essential to remember that no past performance can guarantee future results.
Pip hunter 1-Minute Scalping Strategy [manesisnet]NOTE: This is my first attempt to write an indicator using pine script and it's not recommended for serious trading, just use it for your own research or feel free to create your own versions based on the below.
Overview: The "1-Minute Scalping Strategy" is a custom TradingView indicator designed for short-term traders looking to capitalize on quick price movements in the 1-minute timeframe. This strategy combines moving averages and the Relative Strength Index (RSI) to generate buy and sell signals while filtering out potential false entries by confirming trends on a higher timeframe.
How It Works:
Moving Averages:
The indicator uses two Simple Moving Averages (SMAs):
A fast SMA (5-period) for short-term price movements.
A slow SMA (20-period) to identify the overall trend.
Buy signals are generated when the fast SMA crosses above the slow SMA, indicating bullish momentum.
Sell signals occur when the fast SMA crosses below the slow SMA, indicating bearish momentum.
Higher Time Frame Confirmation:
To enhance the accuracy of the signals, the strategy checks the trend on a higher timeframe (default is 5 minutes).
A buy signal is only valid if the current price is above the higher timeframe SMA, confirming that the overall trend is bullish.
A sell signal is only valid if the current price is below the higher timeframe SMA, confirming a bearish trend.
This confirmation helps avoid false breakouts and ensures that trades are aligned with the prevailing market direction.
Relative Strength Index (RSI):
The RSI is used to assess market momentum and potential reversal points.
The indicator calculates a 14-period RSI to identify overbought and oversold conditions.
For buy signals, the RSI must be below 60 (indicating the market is not overbought).
For sell signals, the RSI must be above 40 (indicating the market is not oversold).
This helps to filter out trades that might occur during extreme market conditions.
Visual Representation:
The fast SMA (5-period) is plotted in blue, the slow SMA (20-period) in red, and the higher timeframe SMA in orange.
Buy signals are indicated with a green label below the bar, while sell signals are indicated with a red label above the bar.
This visual representation allows traders to quickly identify potential entry points.
Alerts:
The script includes alert conditions for buy and sell signals, enabling traders to receive notifications when the conditions for entering trades are met.
Adaptive MA Scalping StrategyAdaptive MA Scalping Strategy
The Adaptive MA Scalping Strategy is an innovative trading approach that merges the strengths of the Kaufman's Adaptive Moving Average (KAMA) with the Moving Average Convergence Divergence (MACD) histogram. This combination results in a momentum-adaptive moving average that dynamically adjusts to market conditions, providing traders with timely and reliable signals.
How It Works
Kaufman's Adaptive Moving Average (KAMA): Unlike traditional moving averages, KAMA adjusts its sensitivity based on market volatility. It becomes more responsive during trending markets and less sensitive during periods of consolidation, effectively filtering out market noise.
MACD Histogram Integration: The strategy incorporates the MACD histogram, a momentum indicator that measures the difference between a fast and a slow exponential moving average (EMA). By adding the MACD histogram values to the KAMA, the strategy creates a new line—the momentum-adaptive moving average (MOMA)—which captures both trend direction and momentum.
Signal Generation:
Long Entry: The strategy enters a long position when the closing price crosses above the MOMA. This indicates a potential upward momentum shift.
Exit Position: The position is closed when the closing price crosses below the MOMA, signaling a potential decline in momentum.
Cloud Calculation Detail
The MOMA is calculated by adding the MACD histogram value to the KAMA of the price. This addition effectively adjusts the KAMA based on the momentum indicated by the MACD histogram. When momentum is strong, the MACD histogram will have higher values, causing the MOMA to adjust accordingly and provide earlier entry or exit signals.
Performance on Stocks
This strategy has demonstrated excellent performance on stocks when applied to the 1-hour timeframe. Its adaptive nature allows it to respond swiftly to market changes, capturing profitable trends while minimizing the impact of false signals caused by market noise. The combination of KAMA's adaptability and MACD's momentum detection makes it particularly effective in volatile market conditions commonly seen in stock trading.
Key Parameters
KAMA Length (malen): Determines the sensitivity of the KAMA. A length of 100 is used to balance responsiveness with noise reduction.
MACD Fast Length (fast): Sets the period for the fast EMA in the MACD calculation. A value of 24 helps in capturing short-term momentum changes.
MACD Slow Length (slow): Sets the period for the slow EMA in the MACD calculation. A value of 52 smooths out longer-term trends.
MACD Signal Length (signal): Determines the period for the signal line in the MACD calculation. An 18-period signal line is used for timely crossovers.
Advantages of the Strategy
Adaptive to Market Conditions: By adjusting to both volatility and momentum, the strategy remains effective across different market phases.
Enhanced Signal Accuracy: The fusion of KAMA and MACD reduces false signals, improving the accuracy of trade entries and exits.
Simplicity in Execution: With straightforward entry and exit rules based on price crossovers, the strategy is user-friendly for traders at all experience levels
Kijun Sen MedianKey Features:
Kijun-Sen Calculation: The traditional Kijun-Sen is calculated as the average of the highest high and the lowest low over a specified period. This script introduces a variation by using the median price of the user-defined source (kj_src2) over the selected length (med_len), creating a median-based Kijun-Sen.
Trend Indication:
A positive trend is indicated when the source price is above the Kijun-Sen.
A neutral trend is indicated when the source price is equal to the Kijun-Sen.
A negative trend is indicated when the source price is below the Kijun-Sen.
User Inputs:
Plot Kijun-Sen: Toggle to enable or disable the display of the Kijun-Sen line.
Kijun-Sen Length (len): Sets the period for calculating the Kijun-Sen.
Median Length (med_len): Defines the period over which the median price is calculated.
Kijun Source (kj_src): The source price for evaluating conditions above, equal, or below the Kijun-Sen.
Median Source (kj_src2): The source price used in calculating the median price for the Kijun-Sen.
This indicator is designed to help traders identify trend changes and potential reversal points based on a modified Kijun-Sen line. The color-coded line provides an immediate visual cue for the current market condition, making it easier to interpret trends and potential trading signals.