ATR, Chop, Profit Target and Stop Loss TableThe ATR Table indicator is a versatile tool that helps traders visually and quantitatively manage risk, identify market conditions, and set profit targets and stop-loss levels. It is designed to enhance decision-making by incorporating key volatility and chop (market consolidation) signals into a comprehensive table format.
Key Features:
Average True Range (ATR) Calculation : The indicator computes the ATR over a user-defined period (default 14). ATR helps to measure market volatility, providing insights into how much an asset's price typically moves within a given period.
Stop Loss and Profit Target Calculation : You can configure stop-loss and profit target levels using multipliers based on the ATR. This allows dynamic risk management that adjusts to market volatility:
Stop Loss : Defined as a multiple of the ATR to help control losses.
Profit Target : Also based on a multiple of the ATR to lock in gains. The user can specify whether they are trading long or short, and the indicator adjusts the levels accordingly.
Customizable Plot Lines : The indicator can display the Stop Loss and Profit Target levels directly on the chart. Users can toggle these lines on or off and customize their colors.
Chop Signa l: The indicator highlights potential consolidation periods (chop) using a wick-based analysis. It calculates the highest upper or lower wick values and compares them to the ATR to detect periods of indecision or consolidation.
Table Display : When these wick values exceed the ATR by a user-defined multiplier, the corresponding table rows are highlighted.
Background Alerts : Optionally, users can activate background color changes on the chart to visually alert them when chop conditions are detected.
Customizable Table Layout : A table displaying the key values (ATR, Stop Loss, Profit Target, Upper/Lower Wickiness) is placed on the chart. You can choose the table's position, adjust its color scheme, and decide which rows to display.
Chop Background Customization : For users who prefer more visual cues, the indicator allows you to enable or disable background shading when chop conditions are met. You can also choose the color of this background for better customization.
Indikatoren und Strategien
PnF Fibonacci Levels with AlertsMy Pine Script indicator, "PnF Fibonacci Levels with Alerts," overlays on a trading chart to generate alerts based on Fibonacci levels in Point and Figure (PnF) charts.
Key Features:
Inputs and Initialization:
It uses a customizable Fibonacci level (set at 0.236) and initializes variables for tracking the high and low of O and X columns.
O Column Logic:
When the current column is identified as an O column (when the close is less than the open), it calculates the Fibonacci level based on the high and low of that column, drawing a line on the chart.
Buy Alert:
If the closing price of the previous bar is above the Fibonacci level of the O column, a buy alert is triggered.
X Column Logic:
If the current column is an X column and the close is above the previous O column's low, it captures the current high and low, calculates the Fibonacci level, and draws it on the chart.
Sell Alert:
A sell alert is triggered if the closing price of the X column is at or below the specified Fibonacci level.
This indicator aids traders by highlighting critical Fibonacci levels and providing timely alerts for potential buy and sell opportunities.
PnF Bullish & Bearish Trend Line Indicator with Proximity AlertThis Pine Script indicator, "PnF Bullish and Bearish Trend line Proximity Alert," overlays on a trading chart to monitor and alert users about interactions with bullish and bearish trend lines derived from Point and Figure (PnF) charting.
Key Features:
Inputs: Users can set parameters such as box size, bullish and bearish angles (in degrees), and a proximity threshold for detecting touches.
Slope Calculation: The script calculates the slopes for bullish and bearish trendlines using the tangent of the specified angles.
Trendline Management:
It initializes and updates trend lines based on price interactions, adjusting their starting points and positions as conditions change.
Proximity Detection: The indicator checks if the current price is close enough to the trend lines and sets conditions for alerts.
Alerts: Users receive alerts when both trend lines are touched, enhancing decision-making for trading strategies.
Visual Feedback: It highlights areas where both trend lines are touched and plots the trend lines in distinct colors for clarity.
This indicator provides an effective way to track key price levels and potential trend reversals in the market.
D_Rock's MA IndicatorD_Rock's Moving Average Indicator
This is an indicator version of my strategy linked here
**Overview:**
The basic concept of this indicator is to generate a signal when a faster/shorter length moving average crosses over (for Longs) or crosses under (for Shorts) a medium/longer length moving average. All of which are customizable. This indicator can work on any timeframe, however the daily is the timeframe used for the default settings and screenshots, as it was designed to be a multi-day swing strategy. Once a signal has been confirmed with a candle close, based on user options, the strategy is to enter the trade on the open of the next candle.
The crossover strategy is nothing new to trading, but what can make this strategy unique and helpful, is the addition of further confirmation points before a signal is generated along with the ability to show multiple moving averages on the chart if you choose. Each moving average pair can also be turned into a "cloud" instead of the traditional lines, for additional viewing preferences. Just about everything visual can be toggled on/off as well.
This indicator is a Trend (MA) indicator with optional confirmation points using a Momentum (MACD) indicator. While a Volume-based indicator is not shown here, one could consider using their favorite from that category to further compliment the signal idea.
If you would like to see the backtesting results for your favorite moving average crossover/under, please see my strategy version linked here .
Shoutout given to Ripster's Clouds Indicator as pieces of that code were taken and modified to create both the Cloud visualization effects, and the Moving Average Pair Plots that are implemented in this strategy.
MOVING AVERAGE OPTIONS
Select between and change the length & type of up to 5 pairs (10 total) of moving averages
The "Show Cloud-x" option will display a fill color between the "a" and "b" pairs
All moving averages lines can be toggled on/off in the "Style" tab, as well as adjusting their colors.
Visualization features do not affect calculations, meaning you could have all or nothing on the chart and the strategy will still produce results
SIGNAL CHOICES
Choose the fast/shorter length MA and the medium/longer length MA to determine the entry signal
CONFIRMATION OPTIONS
Both of these have customizable values and can be toggled on/off
A candle close over a slower/much longer length moving average
An additional cross-over (cross-under for Shorts) on the MACD indicator using default MACD values. While the MACD indicator is not necessary to have on the chart, it can help to add that for visualization. The calculations will perform whether the indicator is on the chart or not.
ADDITIONAL PLOTS
MACD (Moving Average Convergence/Divergence):
- The MACD is an optional confirmation indicator for this strategy.
- Plotting the indicator is not necessary for the strategy to work, but it can be helpful to visually see the status and position of the MACD if this feature is enabled in the strategy
- This helps to identify if there is also momentum behind the entry signal
[TTM] ICT Key Levels🌟 Overview 🌟
This tool highlights key price levels, such as highs, lows, and session opens, that can influence market moves. Based on ICT concepts, these levels help traders spot potential areas for market reversals or trend continuations.
🌟 Key Levels 🌟
🔹 Week Open (00:00 EST)
Marks the start of the trading week. This level helps track price direction and is useful for framing the Weekly candle formation using ICT’s Power of 3.
🔹 Midnight Open (00:00 EST)
The Midnight Open (MNOP) marks the start of the new trading day. Price often retraces to this level for liquidity grabs, setting up larger moves in the daily trend. It's also key for framing the Daily Power of 3 and spotting possible market manipulation.
🔹 New York Stock Exchange Open (09:30 EST)
The NYSE Open is a major liquidity event, where price seeks liquidity from earlier in the day, like stop hunts or retracements to the London or Midnight Open. This time often brings reversals or trend continuations as volatility increases.
🔹 Previous Day High/Low
These levels show where liquidity rests, often serving as targets for price revisits, ideal for reversals or continuation trades.
🔹 Previous Week High/Low
Similar to daily levels but on a larger scale. They help identify swing trades and track broader market trends.
🔹 Previous Month High/Low
These monthly levels are important for long-term traders, as price often aims to clear them before setting new trends or market cycles.
Happy Trading!
TheTickMagnet
Bullish On Neck Candlestick patternExplanation:
1. Bullish Large Candle: The first candle is defined as bullish, where the closing price is much higher than the opening price. It also needs to have a large body (at least 60% of the total candle height).
2. Small Bearish Candle: The second candle is bearish and closes near the high of the previous bullish candle, with a relatively small body.
3. Bullish On Neck Detection: The script looks for this pattern where the bullish large candle is followed by a smaller bearish candle that closes near the first candle's high, indicating potential for a bullish breakout.
4. Plot: When the pattern is detected, the script places a green triangle above the bar to signal the bullish on neck pattern.
Adaptive Smooth EMA [MacroGlide]Adaptive Smooth EMA is a powerful indicator designed to track and smooth market prices using Adaptive Exponential Moving Averages (EMAs) with dynamic phase adjustment. This tool helps traders analyze price trends and identify shifts in market momentum, making it easier to recognize potential reversals and trend continuations.
Key Features:
• Adaptive EMA Calculation: The indicator calculates multiple EMAs with adaptive smoothing based on volatility, allowing traders to capture the market's movement more accurately. These smoothed values adjust dynamically with the market, making trend detection more precise.
• Dynamic Phase Adjustment: The phase of the EMA is adjusted in real-time according to the market's volatility, ensuring that the smoothing remains responsive to changes in market conditions, reducing lag and enhancing signal clarity.
• Customizable Color Gradients: The indicator uses color gradients to visually distinguish between uptrends and downtrends, making it easier to spot shifts in market direction. Users can customize the color scheme for better visual representation and interpretation.
How to Use:
• Add the indicator to your chart and adjust the EMA length and phase adjustment settings according to your trading strategy.
• Monitor the color shifts to quickly identify potential changes in trend direction. The transition between the uptrend and downtrend colors can signal momentum shifts.
• Utilize the different EMA lengths to analyze short-term and long-term trends. The smaller EMAs will react quicker to price changes, while the longer ones provide a smoother view of the overall trend.
Methodology:
The Adaptive Smooth EMA indicator computes multiple EMAs with lengths ranging from 3 to 90 periods, dynamically adjusting the phase based on market volatility. This adaptive approach allows the indicator to respond effectively to both calm and volatile market conditions, providing a more accurate reflection of current trends. By smoothing the price data while maintaining responsiveness to market changes, the indicator helps traders avoid false signals and make more informed decisions.
Originality and Usefulness:
Adaptive Smooth EMA stands out due to its ability to dynamically adjust to market conditions, offering an adaptive smoothing approach that reduces noise while capturing essential price movements. This makes it particularly useful for identifying trends, reversals, and optimizing entry and exit points in a trading strategy.
Charts:
The indicator plots a series of smoothed EMA lines, each with a unique color gradient reflecting market sentiment. These lines help visualize price trends across different timeframes, providing a comprehensive view of the market's directional strength and momentum. The gradient color transitions further enhance the clarity of trend shifts, offering an easy-to-interpret chart for traders.
Enjoy the game!
KAMA CloudDescription:
The KAMA Cloud indicator is a sophisticated trading tool designed to provide traders with insights into market trends and their intensity. This indicator is built on the Kaufman Adaptive Moving Average (KAMA), which dynamically adjusts its sensitivity to filter out market noise and respond to significant price movements. The KAMA Cloud leverages multiple KAMAs to gauge trend direction and strength, offering a visual representation that is easy to interpret.
How It Works:
The KAMA Cloud uses twenty different KAMA calculations, each set to a distinct lookback period ranging from 5 to 100. These KAMAs are calculated using the average of the open, high, low, and close prices (OHLC4), ensuring a balanced view of price action. The relative positioning of these KAMAs helps determine the direction of the market trend and its momentum.
By measuring the cumulative relative distance between these KAMAs, the indicator effectively assesses the overall trend strength, akin to how the Average True Range (ATR) measures market volatility. This cumulative measure helps in identifying the trend’s robustness and potential sustainability.
The visualization component of the KAMA Cloud is particularly insightful. It plots a 'cloud' formed between the base KAMA (set at a 100-period lookback) and an adjusted KAMA that incorporates the cumulative relative distance scaled up. This cloud changes color based on the trend direction — green for upward trends and red for downward trends, providing a clear, visual representation of market conditions.
Benefits:
Dynamic Sensitivity: By adapting to the market's volatility, KAMA provides more reliable signals than traditional moving averages.
Trend Clarity: The color-coded cloud visually enhances the perception of the trend’s direction and strength, making it easier for traders to decide on their trading strategy.
Versatility: Suitable for various asset classes, including stocks, forex, commodities, and cryptocurrencies, across different timeframes.
Decision Support: Helps traders understand not just the direction but the strength of trends, aiding in more informed decision-making regarding entries, exits, and risk management.
Usage:
The KAMA Cloud is ideal for traders who need a robust trend-following tool that adjusts according to market dynamics. It can be used as a standalone indicator or in conjunction with other technical analysis tools to enhance trading strategies. Look for the cloud’s color shifts as potential signals for trend reversals or continuations, and consider the cloud’s thickness as an indication of trend strength.
Whether you are a day trader, swing trader, or long-term investor, the KAMA Cloud offers a unique approach to understanding market trends, helping you navigate the complexities of various market conditions with confidence.
Previous Day Close (PVC)Indicator Description: Previous Day Close
This indicator visually represents the previous day's closing price, providing traders with a clear reference point on the chart. By marking this key level, it enhances your ability to analyze stock price movements and make informed trading decisions.
Key Features:
Visual Clarity: The previous day's close is prominently displayed, making it easy to spot significant price levels at a glance.
Enhanced Analysis: Use this indicator to identify potential support and resistance levels based on historical closing prices.
User-Friendly: Designed for simplicity, this indicator integrates seamlessly into your trading workflow.
Leverage the power of the previous day’s close to improve your trading strategy and gain a competitive edge in the market!
Options Series - NonOverlay_Technical
⭐ 1. Purpose:
The script is designed to show technical indicators in a non-overlay form using candlestick representations. It combines multiple popular technical analysis tools to gauge the market's bullish or bearish conditions.
⭐ 2. Indicators:
The script uses several indicators across different timeframes: Exponential Moving Averages (EMA) for 5, 20, 50 periods. Simple Moving Average (SMA) for 200 periods. RSI (Relative Strength Index) for momentum. VWAP (Volume Weighted Average Price) for average price evaluation. PSAR (Parabolic SAR) for trend direction. Daily and multi-day (2-day and 3-day) data for broader market context.
⭐ 3. Candlestick Representation:
The script uses color-coded candlesticks to visually represent various indicators and their bullish/bearish states: Green candlesticks for bullish conditions. Red candlesticks for bearish conditions. Neutral/transparent for non-significant conditions.
⭐ 4. Important Conditions:
It calculates bullish and bearish conditions for each indicator: MA20: When the price is above or below the 20-period EMA. RSI: When RSI is above or below 50. VWAP: When the price is above or below the VWAP. PSAR: When the price is above or below the PSAR. 2-day and 3-day Moving Averages: Evaluating the broader trend.
⭐ 5. Bullish vs. Bearish Calculation:
The script sums up bullish and bearish signals to determine the overall market condition: Current_logical_bull: Counts the number of bullish indicators. Current_logical_bear: Counts the number of bearish indicators. The script compares these values to conclude whether the market is more bullish or bearish.
⭐ 6. Visual Plotting:
The script uses plotcandle to display the non-overlay signals at different levels for each condition, stacked vertically from MA20 to PSAR. Additionally, a master candle combines all indicators to show an overall market trend.
⭐ 7. Neon Effect on MA20:
It adds a neon-like effect to the MA20 line, making it visually prominent: A standard plot line with the base color. Two additional neon layers with increasing transparency to enhance the effect.
⭐ 8. Daily Timeframes and Lookahead:
The script fetches daily data using the lookahead feature to get a broader view of the market trend. It tracks the previous day’s and two days' data for comparison.
⭐ 9. Labels and Customization:
The script dynamically adds labels to the chart for the different plotted indicators at the last bar, making it easier to identify which indicator is being represented.
🚀 Conclusion:
The script combines multiple technical indicators, such as EMA, RSI, VWAP, PSAR, and multi-day moving averages, to visually assess bullish and bearish market conditions. It uses color-coded candlesticks to represent each indicator and sums up the signals to determine the overall trend.
Cypher Harmonic Pattern [TradingFinder] Cypher Pattern Detector🔵 Introduction
The Cypher Pattern is one of the most accurate and advanced harmonic patterns, introduced by Darren Oglesbee. The Cypher pattern, utilizing Fibonacci ratios and geometric price analysis, helps traders identify price reversal points with high precision. This pattern consists of five key points (X, A, B, C, and D), each playing an important role in determining entry and exit points in the financial markets.
The reversal point typically occurs in the XD region, with the Fibonacci ratio ranging between 0.768 and 0.886. This zone is referred to as the Potential Reversal Zone (PRZ), where traders anticipate price changes to occur.
The Cypher harmonic pattern is popular among professional traders due to its high accuracy in identifying market trends and reversal points. The pattern appears in two forms: bullish Cypher pattern and bearish Cypher pattern.
In the bullish Cypher pattern, after a price correction, the price moves upward, while in the bearish Cypher pattern, the price moves downward after a temporary increase. These patterns help traders use technical analysis to identify strong reversal points in the PRZ and execute more optimal trades.
Bullish Cypher Pattern :
Bearish Cypher Pattern :
🔵 How to Use
The Cypher pattern is one of the most complex and precise harmonic patterns, leveraging Fibonacci ratios to help traders identify price reversals. This pattern is comprised of five key points, each playing a critical role in determining entry and exit points.
The Cypher pattern appears in two main types :
Bullish Cypher pattern : This pattern appears as an M shape on the chart and indicates a trend reversal to the upside after a price correction. Traders can prepare for buying after identifying this pattern in technical analysis.
Bearish Cypher pattern : This pattern appears as a W shape and signals the start of a downtrend after a temporary price increase. Traders can use this pattern to enter short positions.
🟣 How to Identify the Cypher Pattern on a Chart
Identifying the Cypher pattern requires precision and the use of advanced technical analysis tools. The pattern consists of four main legs, each identified using Fibonacci ratios and geometric analysis.
To spot the Cypher pattern on a chart, first, identify the five key points : X, A, B, C, and D.
XA leg : The initial move from point X to A.
AB leg : The first correction after the XA move, where the price moves to point B.
BC leg : After the correction, the price moves upwards to point C.
CD leg : The final price move that reaches point D, where a price reversal is expected.
In a bullish Cypher pattern, point D indicates the start of a new uptrend, while in a bearish Cypher pattern, point D signals the beginning of a downtrend. Correctly identifying these points helps traders determine the best time to enter a trade.
🟣 How to Trade Using the Cypher Pattern
Once the Cypher pattern is identified on the chart, traders can use it to set entry and exit points. Point D is the key point for trade entry. In the bullish Cypher pattern, the trader can enter a long position after point D forms, while in the bearish Cypher pattern, point D serves as the ideal point for entering a short position.
🟣 Entering a Buy Trade with the Bullish Cypher Pattern
In a bullish Cypher pattern, traders wait for the price to reach point D, after which they can enter a buy position. At this point, the price is expected to start rising.
🟣 Entering a Sell Trade with the Bearish Cypher Pattern
In a bearish Cypher pattern, the trader enters a sell position at point D, expecting the price to move downward after reaching this point. For additional confirmation, traders can use technical indicators such as RSI or MACD.
🟣 Risk Management in Cypher Pattern Trades
Risk management is one of the most critical aspects of any trade, and this holds true for trading the Cypher pattern. Traders should always use stop-loss orders to prevent larger losses in case the pattern fails.
In the bullish Cypher pattern, the stop-loss is usually placed slightly below point D to exit the trade if the price continues to drop.
In the bearish Cypher pattern, the stop-loss is placed above point D to limit losses if the price rises unexpectedly.
🟣 Combining the Cypher Pattern with Other Technical Tools
The Cypher pattern is a powerful tool in technical analysis, but combining it with other methods such as price action and technical indicators can improve trading accuracy.
🟣 Combining with Price Action
Traders can use price action to confirm the Cypher pattern. Candlestick patterns like reversal candlesticks can provide additional confirmation for price reversals at point D.
🟣 Using Technical Indicators
Incorporating technical indicators such as RSI and MACD can also help traders receive stronger signals for entering trades based on the Cypher pattern. These indicators help identify overbought or oversold conditions, allowing traders to make more informed decisions.
🟣 Advantages and Disadvantages of the Cypher Pattern in Technical Analysis
Advantages :
High accuracy : The Cypher pattern, using Fibonacci ratios and geometric analysis, provides high precision in identifying reversal points.
Applicable in various markets : This pattern can be used in a wide range of financial markets, including forex, stocks, and cryptocurrencies.
Disadvantages :
Rarit y: The Cypher pattern appears less frequently on charts compared to other harmonic patterns.
Complexity : Accurately identifying this pattern requires significant experience, which may be challenging for novice traders.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Forma t: If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
🔵 Conclusion
The Cypher harmonic pattern is one of the most powerful and accurate patterns used in technical analysis. Its high precision in identifying price reversal points, particularly within the Potential Reversal Zone (PRZ), has made it a popular tool among professional traders. The PRZ, located between the Fibonacci ratios of 0.768 and 0.886 in the XD region, offers traders a clear indication of where price reversals are likely to occur.
However, to use this pattern successfully, traders must employ proper risk management and combine it with supplementary tools like technical indicators and price action. By understanding how to utilize the PRZ, traders can enhance the accuracy of their trade entries and exits.
Ultimately, the Cypher pattern, when used in conjunction with the PRZ, helps traders make more precise decisions in the financial markets, leading to more successful and well-informed trades.
Prometheus Topological Persistent EntropyPersistence Entropy falls under the branch of math topology. Topology is a study of shapes as they twist and contort. It can be useful in the context of markets to determine how volatile they may be and different from the past.
The key idea is to create a persistence diagram from these log return segments. The persistence diagram tracks the "birth" and "death" of price features:
A birth occurs when a new price pattern or feature emerges in the data.
A death occurs when that pattern disappears.
By comparing prices within each segment, the script tracks how long specific price features persist before they die out. The lifetime of each feature (difference between death and birth) represents how robust or fleeting the pattern is. Persistent price features tend to reflect stable trends, while shorter-lived features indicate volatility.
Entropy Calculation: The lifetimes of these patterns are then used to compute the entropy of the system. Entropy, in this case, measures the amount of disorder or randomness in the price movements. The more varied the lifetimes, the higher the entropy, indicating a more volatile market. If the price patterns exhibit longer, more consistent lifetimes, the entropy is lower, signaling a more stable market.
Calculation:
We start by getting log returns for a user defined look back value. In the compute_persistent_entropy function we separate the overall log returns into windows. We then compute persistence diagrams of the windows. It tracks the birth and death of price patterns to see how persistent they are. Then we calculate the entropy of the windows.
After we go through that process we get an array of entropies, we then smooth it by taking the sum of all of them and dividing it by how many we have so the indicator can function better.
// Calculate log returns
log_returns = array.new()
for i = 1 to lgr_lkb
array.push(log_returns, math.log(close / close ))
// Function to compute a simplified persistence diagram
compute_persistence_diagram(segment) =>
n = array.size(segment)
lifetimes = array.new()
for i = 0 to n - 1
for j = i + 1 to n - 1
birth = array.get(segment, i)
death = array.get(segment, j-1)
if birth != death
array.push(lifetimes, math.abs(death - birth))
lifetimes
// Function to compute entropy of a list of values
compute_entropy(values) =>
n = array.size(values)
if n == 0
0.0
else
freq_map = map.new()
total_sum = 0.0
for i = 0 to n - 1
value = array.get(values, i)
//freq_map := freq_map.get(value, 0.0) + 1
map.put(freq_map, value, value + 1)
total_sum += 1
entropy = 0.0
for in freq_map
p = count / total_sum
entropy -= p * math.log(p)
entropy
compute_persistent_entropy(log_returns, window_size) =>
n = (lgr_lkb) - (2 * window_size) + 1
entropies = array.new()
for i = 0 to n - 1
segment1 = array.new()
segment2 = array.new()
for j = 0 to window_size - 1
array.push(segment1, array.get(log_returns, i + j))
array.push(segment2, array.get(log_returns, i + window_size + j))
dgm1 = compute_persistence_diagram(segment1)
dgm2 = compute_persistence_diagram(segment2)
combined_diagram = array.concat(dgm1, dgm2)
entropy = compute_entropy(combined_diagram)
array.push(entropies, entropy)
entropies
//---------------------------------------------
//---------------PE----------------------------
//---------------------------------------------
// Calculate Persistent Entropy
entropies = compute_persistent_entropy(log_returns, window_size)
smooth_pe = array.sum(entropies) / array.size(entropies)
This image illustrates how the indicator works for traders. The purple line is the actual indicator value. The line that changes from green to red is a SMA of the indicator value, we use this to determine bullish or bearish. When the smoothed persistence entropy is above it’s SMA that signals bearishness.
The indicator tends to look prettier on higher time frames, we see NASDAQ:TSLA on a 4 hour here and below we see it on the 5 minute.
On a lower time frame it looks a little weird but still functions the same way.
Prometheus encourages users to use indicators as tools along with their own discretion. No indicator is 100% accurate. We encourage comments about requested features and criticism.
Prior Day High/Low and Highest High/Lowest LowFeatures:
Prior Day High and Low:
The script tracks and displays the previous trading day's high and low prices. These levels can serve as important areas of support or resistance, helping traders to make informed decisions about potential price reversals or breakouts.
Highest High and Lowest Low Over N Days:
This indicator also tracks and displays the highest high and lowest low over the last N days, where N is user-configurable. This allows traders to see broader trends in price action and identify key levels for potential trend changes.
User-Configurable Inputs:
Show Prior Day High/Low: Toggle whether to display the prior day’s high and low levels.
Days to Consider for Highest High/Lowest Low: Define the number of days over which the highest high and lowest low are calculated.
Show Highest High/Lowest Low: Toggle whether to display the highest high and lowest low levels over the specified period.
Low Source and High Source: Customize the data sources for the high and low values.
Automatic Data Handling:
The script automatically tracks the daily high and low prices, storing them in arrays, and calculates the highest and lowest prices over the user-specified number of days. When a new day begins, the prior day's data is saved, and the calculations are updated accordingly.
Visual Display:
The indicator uses distinct colors and plotting styles:
Prior day’s high and low are plotted as blue circles.
The highest high over N days is plotted as a red circle.
The lowest low over N days is plotted as a green circle.
This indicator helps traders stay informed about significant price levels, which are often used in trading strategies for breakouts, trend following, or reversals.
Forex - Lot size calculatorThis indicator is specifically designed for Forex traders who need a convenient lot size calculator directly on their charts. It allows users to input their account balance, risk percentage, and stop-loss distance in pips to easily determine the appropriate lot size for a given trade, ensuring effective risk management.
Key Features:
Lot Size Calculation: Automatically calculates the lot size based on user-defined inputs: account balance, risk percentage, and stop-loss distance.
Error Handling: The indicator only works with Forex pairs. If applied to non-Forex assets, a clear and prominent red error message will appear in the bottom-right corner of the chart, reminding the user that this script is intended exclusively for Forex trading.
Simple Visualization: The calculated lot size is displayed in an easy-to-read table directly on the chart.
How to Use:
Add the indicator to a Forex chart.
Enter your account balance, risk percentage, and stop-loss pips in the input fields.
The indicator will display the calculated lot size for the chosen Forex pair.
Important Notes:
This script is intended only for Forex assets. If used on other instruments (e.g., stocks, crypto, indices), an error message will be shown.
Always validate lot sizes with your broker, as there can be slight variations depending on broker specifications and leverage settings.
SMI Ergodic Indicator/Oscillator of Money Flow Index▮ Introduction
The Stochastic Momentum Index Ergodic (SMII) indicator is a technical analysis tool designed to predict trend reversals in the price of an asset.
It functions as a momentum oscillator, measuring the ratio of the smoothed price change to the smoothed absolute price change over a given number of previous periods.
The Ergodic SMI is based on the True Strength Index (TSI) and integrates a signal line, which is an exponential moving average (EMA) of the SMI indicator itself.
The Ergodic SMI oscillator provides a clearer picture of market trends than the traditional stochastic oscillator by incorporating the concept of 'ergodicity', which helps remove market noise.
On ther other hand, MFI (Money Flow Index) is a technical analysis indicator used to measure the inflow of money into an asset and thus help identify buying and selling pressure in a given financial instrument.
When these two indicators are combined, they can provide a more comprehensive view of price direction and market strength.
▮ Motivation: why another indicator?
By combining SMII with MFI, we can gain even more insights into the market.
One way to do this is to use the MFI as an input to the SMII, rather than just using price.
This means we are measuring momentum based on buying and selling pressure rather than just price.
Furthermore, there is the possibility of making several fine adjustments to both the calculation and visualization parameters that are not present in other indicators.
▮ What to look for
When using the SMII MFI indicator, there are a few things to look out for.
First, look at the SMII signal line.
When the line crosses above -40, it is considered a buy signal, while the crossing below +40 is considered a sell signal.
Also, pay attention to divergences between the SMII and the price.
If price is rising but the SMII is showing negative divergence, it could indicate that momentum is waning and a reversal could be in the offing.
Likewise, if price is falling but the SMII is showing positive divergence, this could indicate that momentum is building and a reversal could also be in the offing.
Divergences can be considered in both indicator and/or histogram.
Examples:
▮ Notes
The indicator presented here offers both the 'SMII' and the 'SMIO', that is, the 'Stochastic Momentum Index Ergodic Indicator' together with the 'Stochastic Momentum Index Ergodic Oscillator' (histogram), as per the documentation described in reference links.
So it is important to highlight the differences in relation to my other indicator, the 'Stochastic Momentum Index (SMI) of Money Flow Index (MFI)':
This last one is purely based on the SMI , which is implemented using SMA smoothing for the relative range and the high/low range.
Although they may seem the same in some situations, the calculation is actually different. The TSI tends to be more responsive at the expense of being noisier, while the SMI tends to be smoother. Which of these two indicators is best depends on the situation, the context, and the analyst's personal preference.
Please refer to reference links to more info.
▮ References
SMI documentation
SMII documentation
SMIO documentation
MFI documentation
Zero-Lag MA Trend Levels [ChartPrime] The Zero-Lag MA Trend Levels indicator combines a Zero-Lag Moving Average (ZLMA) with a standard Exponential Moving Average (EMA) to provide a dynamic view of the market trend. This indicator uses a color-changing cloud to represent shifts in trend momentum and plots key levels when trend reversals are detected. The addition of trend level boxes helps identify significant price zones where market shifts occur, with retest signals aiding in spotting potential continuation or reversal points.
⯁ KEY FEATURES & HOW TO USE
⯌ Zero-Lag Moving Average (ZLMA) with EMA Cloud :
The indicator employs a Zero-Lag Moving Average (ZLMA) alongside a standard EMA.
series float emaValue = ta.ema(close, length) // EMA of the closing price
series float correction = close + (close - emaValue) // Correction factor for zero-lag calculation
series float zlma = ta.ema(correction, length) // Zero-Lag Moving Average (ZLMA)
The cloud between these averages changes color depending on the trend direction. During a downtrend, if the ZLMA begins to increase, the cloud partially turns green, signaling potential strength. Conversely, during an uptrend, if the ZLMA decreases, the cloud partially turns to the downtrend color (blue by default), indicating potential weakness.
Use : Traders can monitor the cloud's color shifts for early signs of changing momentum. A fully colored cloud aligning with the current trend indicates a strong directional move, while mixed colors suggest a potential trend change.
⯌ Trend Shift and Level Boxes :
Each time a crossover between the EMA and the ZLMA occurs, indicating a trend shift, the indicator plots a box around the price level where the shift occurred. This box remains on the chart to mark the price zone of the trend change.
Use : The boxes provide clear visual markers of where market sentiment shifted. These levels can act as support and resistance zones. Traders can use these boxes to identify potential entry or exit points when the market retests these key levels.
⯌ Retest Detection with Labels :
If the price action crosses a previously plotted trend level box, the indicator marks this event with triangle labels. An upward triangle (▲) appears when the price retests the top of a box during a bullish crossover, and a downward triangle (▼) appears when the price retests the bottom of a box during a bearish crossunder.
Use : These labels help traders identify potential continuation or reversal points at critical price levels, offering additional confirmation for trading decisions.
⯌ Dynamic Color-Coding :
The color of the ZLMA and the EMA is adjusted according to their current trend direction, with the ZLMA adopting green for upward trends and blue for downward trends. This visual representation makes it easier to quickly gauge the market's momentum at a glance.
Use : Traders can use the color-coding to quickly assess the strength and direction of the current trend, allowing for more informed decision-making.
⯁ USER INPUTS
Length : Sets the period for both the ZLMA and EMA calculations.
Trend Levels : Toggle to display the trend level boxes on the chart.
Colors (+ / -) : Define the colors for bullish and bearish trends.
⯁ CONCLUSION
The Zero-Lag MA Trend Levels - ChartPrime indicator offers a nuanced approach to trend detection by combining the ZLMA with a traditional EMA. Its dynamic cloud color changes, trend level boxes, and retest labels make it a versatile tool for traders seeking to identify trend shifts and key price zones effectively. By incorporating elements of support and resistance along with trend momentum, this indicator provides a comprehensive view of market dynamics for both trend-following and counter-trend trading strategies.
Bubbles Volume [BigBeluga]The Bubbles Volume indicator is an innovative visualization tool designed to represent trading volume in a more intuitive and visually appealing manner. By displaying volume as bubbles of varying sizes and colors on the price chart, this indicator helps traders quickly identify significant volume levels and potential areas of interest.
Important Note:
For correct visual representation of indicator, layout it to front:
🔵 KEY FEATURES
● Volume Bubbles
Represents trading volume as bubbles on the price chart
Bubble size increases with higher volume levels
Color intensity changes based on volume significance
Provides an intuitive visual representation of volume distribution
● Heatmap Coloring
Optional feature to color bubbles based on volume intensity
Uses a color gradient from cool (low volume) to hot (high volume) colors
Helps quickly identify extremely high volume areas
● Significant Volume Levels
Option to display horizontal lines at significant volume levels
Shows volume amount as labels for highly significant levels
Helps identify potential support/resistance areas based on volume
Volume Levels:
Levels with HeatMap:
Levels without Volume Bubles:
● Normalized Volume Calculation
Uses normalized volume to account for overall market volume trends
Provides a more accurate representation of volume significance
🔵 HOW TO USE
● Volume Analysis
Larger bubbles indicate higher trading volume
Clusters of large bubbles may suggest areas of high interest or potential reversals
Use in conjunction with price action to identify potential breakouts or fakeouts
● Trend Confirmation
Strong trends often show increasing bubble sizes in the trend direction
Diminishing bubble sizes might indicate weakening trends
● Support and Resistance
Significant volume levels (displayed as lines) can act as potential support/resistance
Pay attention to price reactions at these levels for trading opportunities
● Divergences
Look for divergences between price action and bubble sizes
Price making new highs/lows with smaller bubbles might indicate weakening momentum
● Volatility Assessment
Periods with consistently large bubbles indicate high volatility
Can be used to adjust trading strategies or position sizing
🔵 CUSTOMIZATION
The Bubbles Volume indicator offers several customization options:
Toggle bubble display on/off
Adjust volume threshold for filtering low volume bubbles
Enable/disable heatmap coloring for enhanced visual analysis
Show/hide significant volume levels
Adjust the number of significant levels displayed
Customize colors to suit personal preferences
By fine-tuning these settings, traders can adapt the indicator to various market conditions and personal analysis preferences.
The Bubbles Volume indicator provides a unique and intuitive way to visualize trading volume directly on the price chart. This approach allows traders to quickly identify areas of significant trading activity and potential price levels of interest without the need for a separate volume sub-chart.
This tool can be particularly useful for traders focusing on volume analysis, breakout strategies, or those looking to confirm price action with volume. The visual nature of the bubbles makes it easy to spot volume patterns and anomalies at a glance, potentially leading to faster and more informed trading decisions.
As with all technical indicators, it's recommended to use the Bubbles Volume indicator in conjunction with other forms of analysis and within the context of a well-defined trading strategy. While this indicator provides valuable volume insights, it should be considered alongside other factors such as overall market trends, price patterns, and fundamental analysis when making trading decisions.
Boosted Moving AverageOverview:
The Boosted Moving Average (BMA) is designed to enhance the traditional Exponential Moving Average (EMA) by introducing a boositng factor that amplifies its responsiveness to price changes. This means that the BMA will react more quickly to significant market movements, while still maintaining a smooth trajectory.
Key Features:
Boost Factor Sensitivity: Adjust the BMA's reactivity to price movements. A higher boost factor makes it more responsive, ideal for traders who want to catch price shifts early.
Dual EMA Calculation: The BMA combines two EMAs with different lengths to create a divergence that forms the basis for boosted values. This dual approach helps refine entry and exit points.
Smoothing: After boosting, the moving average is smoothed using another EMA, ensuring you get the clearest possible signal without over-complicating things.
Bullish/Bearish Coloring: The plot changes color based on the current trend, making it easy to visualize market direction:
How It Works:
The script calculates two EMAs: one with the given length and one with half that length.
The boost factor amplifies the difference between these two EMAs to provide an enhanced signal.
A final EMA is applied to smooth the resulting boosted moving average, ensuring clarity in market direction.
Color-coded trends make it easy to see if the market is bullish (green) or bearish (red).
Iceberg Trade Revealer [CHE]Unveiling Iceberg Trades: A Deep Dive into Low Volatility Market Phases
Introduction
In the dynamic world of trading, hidden forces often influence market movements in ways that aren't immediately apparent. One such force is the phenomenon of iceberg trades—large orders that are concealed to prevent significant market impact. This presentation explores the concept of iceberg trades, explains why they are typically hidden during periods of low volatility, and introduces an indicator designed to reveal these elusive trades.
Agenda
1. Understanding Iceberg Trades
- Definition and Purpose
- Impact on Market Dynamics
2. The Low Volatility Concealment
- Why Low Volatility Phases?
- Strategies Behind Hiding Large Orders
3. Introducing the Iceberg Trade Revealer Indicator
- How the Indicator Works
- Key Components and Calculations
4. Demonstration and Use Cases
- Interpreting the Indicator Signals
- Practical Trading Applications
5. Conclusion
- Summarizing the Insights
- Q&A Session
1. Understanding Iceberg Trades
Definition and Purpose
- Iceberg Trades are large single orders divided into smaller lots to disguise the total order quantity.
- Traders use iceberg orders to minimize market impact and avoid unfavorable price movements.
Impact on Market Dynamics
- Concealed Volume: Iceberg orders hide true supply and demand levels.
- Price Stability: They prevent sudden spikes or drops by releasing orders gradually.
- Market Sentiment: Their presence can influence perceptions of market strength or weakness.
2. The Low Volatility Concealment
Why Low Volatility Phases?
- Less Market Attention: Low volatility periods attract fewer traders, making it easier to conceal large orders.
- Reduced Slippage: Prices are more stable, reducing the risk of executing orders at unfavorable prices.
- Strategic Advantage: Large players can accumulate or distribute positions without tipping off the market.
Strategies Behind Hiding Large Orders
- Order Splitting: Breaking down large orders into smaller pieces.
- Time Slicing: Executing orders over an extended period.
- Algorithmic Trading: Using sophisticated algorithms to optimize order execution.
3. Introducing the Iceberg Trade Revealer Indicator
How the Indicator Works
- Core Thesis: Iceberg trades can be detected by analyzing periods of unusually low volatility.
- Volatility Analysis: Uses the Average True Range (ATR) and Bollinger Bands to identify low volatility phases.
- Signal Generation: Marks periods where iceberg trades are likely occurring.
Key Components and Calculations
1. Average True Range (ATR)
- Measures market volatility over a specified period.
- Lower ATR values indicate less price movement.
2. Bollinger Bands
- Creates a volatility envelope around the ATR.
- Bands tighten during low volatility and widen during high volatility.
3. Timeframe Adjustments
- Utilizes multiple timeframes to enhance signal accuracy.
- Options for auto, multiplier, or manual timeframe selection.
4. Signal Conditions
- Iceberg Trade Detection: ATR falls below the lower Bollinger Band.
- Revealed Volatility: ATR rises above the upper Bollinger Band, indicating potential market moves after iceberg trades.
4. Demonstration and Use Cases
Interpreting the Indicator Signals
- Iceberg Trade Zones: Highlighted areas where large hidden orders are likely.
- Revealed Volatility Zones: Areas indicating the market's response to the execution of iceberg trades.
Practical Trading Applications
- Entry and Exit Points: Use signals to time trades alongside institutional activity.
- Risk Management: Adjust strategies during detected low volatility phases.
- Market Analysis: Gain insights into underlying market mechanics.
5. Conclusion
Summarizing the Insights
- Iceberg Trades play a significant role in market movements, especially when concealed during low volatility phases.
- The Iceberg Trade Revealer Indicator provides a tool to uncover these hidden activities, offering traders a strategic edge.
- Understanding and utilizing this indicator can enhance trading decisions by aligning them with the actions of major market players.
Best regards Chervolino ( Volker )
Q&A Session
- Questions and Discussions: Open the floor for any queries or further explanations.
Thank You!
By delving into the hidden aspects of market activity, traders can better navigate the complexities of financial markets. The Iceberg Trade Revealer Indicator serves as a bridge between observable market data and the concealed strategies of large institutions.
References
- Average True Range (ATR): A technical analysis indicator that measures market volatility.
- Bollinger Bands: A volatility indicator that creates a band of three lines which are plotted in relation to a security's price.
- Iceberg Orders: Large orders divided into smaller lots to hide the actual order quantity.
Note: Always consider multiple factors when making trading decisions. Indicators provide tools, but they do not guarantee results.
Educational Content Disclaimer:
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.
Hma Swing Points | viResearchHma Swing Points | viResearch
Conceptual Foundation and Innovation
The "Hma Swing Points" script introduces a simple yet effective method for identifying key swing points in the market using Hull Moving Averages (HMA). The Hull Moving Average is a faster and smoother alternative to traditional moving averages, making it ideal for detecting significant price swings. By applying HMA to both high and low prices, the script identifies swing highs and lows, providing traders with visual cues for potential trend reversals or continuations. This approach helps traders recognize turning points in the market with minimal lag, allowing for more precise entries and exits.
Technical Composition and Calculation
This script uses two Hull Moving Averages—one for the high prices and another for the low prices. These HMAs offer smoother trend detection while filtering out market noise. The script identifies the highest and lowest HMA values over a user-defined lookback period to determine the swing high and swing low points. Long signals are generated when the current HMA of the highs matches the highest value within the lookback period, while short signals are generated when the HMA of the lows matches the lowest value. These signals are plotted on the chart, and alerts can be set to notify the trader of possible entry or exit points.
Features and User Inputs
The script offers several customizable inputs to adjust its sensitivity and behavior according to the trader’s preferences. The lookback period defines the number of bars used to calculate the highest and lowest HMA values, allowing traders to control how responsive the script is to price changes. The length of the Hull Moving Average can also be modified, giving traders flexibility in smoothing the indicator. Additionally, optional bar color settings provide visual cues, with bullish and bearish trends highlighted. Alerts are included to notify traders when long or short swing points are detected, ensuring they are informed even when not actively monitoring the chart.
Practical Applications
The "Hma Swing Points" script is useful for traders who aim to identify critical market turning points and potential reversals. It is especially effective in trending markets where price swings present trading opportunities. Traders can use the script to detect reversals by spotting swing points that indicate a possible shift from bullish to bearish trends, or vice versa. The script also helps confirm ongoing trends by showing the strength of swings, allowing traders to make informed decisions about entering or exiting trades. Its ability to mark precise swing points enhances trade timing, helping traders optimize their entries and exits.
Advantages and Strategic Value
The script offers a streamlined approach to detecting swing points with the speed and smoothness of the Hull Moving Average. This makes it easier to filter out false signals and noise, improving the accuracy of trend identification. The customizable inputs allow traders to tailor the script for different assets and market conditions, making it versatile for various trading styles. By highlighting key swing points, the script provides traders with clear visual signals for potential reversals and trend confirmations, enhancing their ability to follow and act on market movements.
Summary and Usage Tips
Incorporating the "Hma Swing Points" script into a trading strategy helps traders identify market reversals and continuation points more effectively. Adjusting the lookback period and HMA length ensures the script adapts to different assets and market conditions. The alert system ensures traders don’t miss key swing points. As always, backtesting is important to evaluate the script’s performance under various market conditions, and past results may not guarantee future outcomes.
Magic Touch Line DetectorSummary of the Magic Touch Line Detector Script:
Purpose:
The Magic Touch Line Detector script is designed to identify significant price points in the market by analyzing candlestick wicks and bodies. It plots lines based on the detected wicks, classifying them as either ascending or descending. The script tracks how frequently price touches these lines and highlights the "most touched" lines for both ascending and descending categories. This script is particularly useful for traders looking to identify key price levels and trends over time.
How It Works:
Wick and Body Detection:
The script starts by analyzing the highs and lows of candlestick wicks relative to their bodies over a user-defined lookback period. A significant wick is identified based on a specified wick-to-body ratio and a deviation threshold measured against the Average True Range (ATR).
Line Creation:
Once a significant upper or lower wick is detected, the script calculates unconventional highs and lows (i.e., points that differ from the absolute highs and lows of the lookback period). Lines are then drawn from these unconventional price points using the slope between the detected wick and the current bar, ensuring a smooth extension.
Line Refinement and Touch Tracking:
As new bars are added, the script tracks how often the price touches the previously drawn lines. The number of touches each line receives is counted and updated in real-time, and the script ensures that only the most touched line is highlighted.
Highlighting and Labeling:
For each category (ascending and descending), the most touched line is identified and given special highlighting with thicker lines and different colors. Labels are also generated to show the number of touches that the most touched line has received. Old labels are cleared to avoid clutter.
Explanation of the Settings:
Lookback Period for Highs and Lows:
This sets the number of bars the script will use to detect the highest highs and lowest lows. A larger lookback period gives the script a broader context to work with, potentially identifying more significant price points.
Minimum Wick-to-Body Ratio:
This ratio determines what qualifies as a "significant" wick. It compares the length of the wick to the body of the candle. A higher ratio means that only wicks that are much longer than the candle body will be considered significant.
Price Deviation Threshold (in ATR multiples):
This setting controls how much price deviation from the ATR is required for a wick to be deemed significant. It acts as a filter to reduce noise by ignoring smaller wicks that are within normal price movements.
Line Touch Tolerance Factor (ATR multiple):
When checking if a price touches a line, the script uses this setting to define how close the price must be to the line to count as a "touch." This tolerance is a multiplier of the ATR, allowing for some flexibility in what is considered a touch.
Price Difference Threshold:
This defines the minimum price difference required to plot a line. If the price difference between the high and low of a detected wick is too small, the script can avoid plotting a line for insignificant moves.
Slope Adjustment Multiplier:
This multiplier adjusts the slope of the lines that are drawn from detected price points. It affects the length and angle of the lines, allowing users to control how far and at what angle the lines should extend across the chart.
Customization Options:
Show Ascending/Descending Lines:
These toggles allow users to decide whether ascending (bullish) or descending (bearish) lines should be shown on the chart.
Line Color, Style, and Width (for Ascending and Descending Lines):
These settings give users control over how the lines appear visually. You can customize the color, style (solid, dashed, dotted), and width of both ascending and descending lines.
Most Touched Line Color:
Users can define a different color for the "most touched" line, which is automatically identified by the script. This setting helps highlight the line that has been interacted with the most by the price.
How to Use the Script:
Setup the Lookback Period and Deviation Filters:
Start by setting the lookback period and the filters for wick-to-body ratio and deviation threshold. These settings help control the script's sensitivity to market movements.
Refine the Tolerance and Slope:
Adjust the line touch tolerance and slope adjustment multiplier to control how closely the script tracks price touches and how the lines are extended on the chart.
Customize Visuals:
Once the lines are being drawn, customize the colors, styles, and widths to ensure the lines are easy to read on your chart. You can also decide if you want to display both ascending and descending lines or focus on just one.
By setting up the script based on these inputs and parameters, you can get a real-time view of significant price levels and how often the price interacts with them, helping you make more informed trading decisions.
Support, Resistance & Liquidity Pool ZonesSupport, Resistance & Liquidity Pool Zones
This indicator automatically detects and plots support and resistance levels based on pivot points and highlights liquidity pool zones, areas where the trading volume exceeds the average over a set number of bars. It is designed to help traders identify key price levels and liquidity traps that can trigger significant market reactions.
Key Features:
Support & Resistance Levels:
The indicator identifies pivot highs and pivot lows as potential resistance and support levels, respectively.
You can customize the number of levels shown on the chart, making it easier to focus on the most recent and relevant price levels.
Liquidity Pool Zones:
The script detects liquidity pool zones, which are areas with above-average trading volume. These zones often act as regions of interest where price accumulation or distribution occurs, potentially leading to significant price moves.
Liquidity zones are shaded to help traders visually identify areas of high interest in the market.
Customizable Settings:
You can adjust the pivot period to fine-tune how the indicator calculates support and resistance.
Control the number of support/resistance levels displayed on the chart and the period used to detect liquidity pools.
Customize the colors for support, resistance, and liquidity zones to match your charting preferences.
Alerts:
The script includes built-in alerts for when the price breaks above resistance or falls below support, helping traders catch key breakout opportunities.
How It Works:
The script calculates support and resistance levels using pivot highs and lows based on the user-defined pivot period.
It monitors liquidity pool zones by comparing the current trading volume with the average volume over a customizable period. When the volume exceeds the set threshold, a liquidity pool zone is highlighted, providing insight into where the market may accumulate or distribute.
Alerts are triggered when the price breaks above the first resistance level or falls below the first support level, giving traders immediate notification of key market events.
How to Use:
Tune the Pivot Period: Adjust the pivot period to your preferred time horizon (default: 10 bars).
Set Liquidity Pool Parameters: Customize the number of bars considered for liquidity pool detection and the volume multiplier to detect high-volume zones.
Monitor Breakouts: Use the built-in alerts to catch potential breakout or breakdown opportunities near support and resistance levels.
This script is ideal for traders looking for an easy-to-use tool to visualize support and resistance levels and liquidity pools, aiding in decision-making and trade management.
WSITEEE Imbalance/FVG (FAIR VALUE GAP)Imbalance/FVG (Fair Value Gap) refers to a price imbalance, representing a range on the chart where little liquidity was provided.
Imbalance implies a strong impulsive movement of a candle, which the price almost always returns to cover.
The best analogy would be to imagine painting a wall with a roller. If you move the roller from top to bottom, what remains on the wall? That’s right, gaps that need to be filled. How do you fill them? Exactly, by moving the roller from bottom to top. The same principle applies to imbalance.
How do you correctly mark an Imbalance?
The first thing we need to find on the chart is three candles, one of which should be impulsive. Next, using the “Fibonacci Retracement” tool, we stretch it from the wick of the first candle to the wick of the last candle.
Imbalance can be used both for determining context and as an entry model. On a higher timeframe, it acts as a point of interest (POI), within which you can look for factors to build a position.
This Pine Script is designed for Smart Money traders who work with Fair Value Gaps (FVG). FVGs are three-candle patterns where the third candle does not fully overlap the first, leaving a gap on the second candle. The script helps to automatically detect these gaps and highlight them on the chart with different colors based on their status and type.
It allows for the visualization of imbalances on the chart, highlighting key zones that can serve as important levels for decision-making. With flexible color and label settings, the script can be tailored to individual needs, enhancing data visualization on the chart.