Support Resistance Pivot EMA Scalp Strategy [Mauserrifle]A strategy that creates signals based on: pivots, EMA 9+20, RSI, ATR, VWAP, wicks and volume.
The strategy is developed as a helper for quick long option scalping. This strategy is primarily designed for intraday trading on the 2m SPY chart with extended hours. However, users can adapt it for use on different symbols and timeframes. These signals are meant as a helper rather than fully automated trading bots.
One of the key elements is its pivot-based calculation, driven by my integrated indicator "Support and Resistance Pivot Points/Lines ". It enables multi-timeframe pivot calculations which are used to generate the signals and offers customizability, allowing you to define rounding methods and cooldown periods to refine pivot levels. The pivots, in combination with EMA crossovers, VWAP trend, and additional filters (RSI, ATR, VWAP, wicks and volume), create an entry and exit strategy for scalping opportunities that is useful for 0/1 DTE options with an average trade time of six minutes with the default setup for SPY. Option trading should be done outside TradingView. At this moment of release there is no option trading support.
All parameters used in the strategy are tweaked based on deep backtests results and real-time behavior. Be mindful that past performance does not guarantee future results.
The strategy is designed for intermediate and advanced users who are familiar intraday option scalping techniques.
How It Works
The strategy identifies entries based on multiple conditions, including: recently above pivot, recent EMA crossovers, RSI range, candle patterns, and VWAP uptrend. It avoids trades below the VWAP lower band due to poor backtesting results in those conditions. It creates a great number of signals when it detects an uptrend, which entails: VWAP and its lower/upper band slopes are going up, and the number of next high pivot points is greater than the number of lower pivot points. This indicates that we hope it will keep going up. In historical testing, this showed favorable results. This uptrend criteria runs on 15m charts max (where up to the VWAP effectiveness is the greatest).
The strategy also checks for candle and volume patterns, identified in backtesting to improve entry levels on historic data. Which include:
A red candle after multiple green ones, hoping to jump on a trend during a small pullback
Zero lower wick
Percentage and volume is up after lower volume candles
Percentage is up and the first and second EMA slopes are going up
Percentage is up, the first EMA is higher than the second, the price low is below the second EMA and price close above it
The VWAP uptrend overrules the candle and volume conditions (thus lots of signals during those moments).
The above is the base for many signals. There is a strict mode that adds extra checks such as:
not trading when there is no next low or high pivot
requiring a VWAP uptrend only
minimum candle percentages
This mode is for analyzing history and seeing performance during these conditions. It is worth it to create a separate alert for strict mode so you are aware of these conditions during trading.
When no stop has been defined, exits will always happen on pivot crossunder confirmations. If a stop is defined (default config), the strategy exits a position when:
the position is negative or no trail has been set
at least 1 bar has past
OR no stop has been defined (overrules previous)
trail has not been activated
The second exit condition happens when the close is below first EMA(9 by default) and when:
the position has been above first EMA
the gap between close and last pivot isn't small
the position is negative or no trail has been set
OR no stop has been defined (overrules above)
trail has not been activated
There are some more variations on this but the above are the most common. These exit conditions are a safety net because the strategy heavily relies on and favors stops. The settings allow changing stops, profit takers and trails. You can configure it to always sell without the conditions above.
The script will paint the pivot lines, trailing activation/stops, EMAs and entry/exits; with extra information in the data panel. For a complete view add VWAP and RSI to your chart, which are available from TradingView official indicator library. The strategy will not rely on those added indicators since VWAP and RSI are programmed in. You can add them to track the behavior of the signals based on these filters you have configured and have a complete view trading this strategy.
As mentioned earlier, the default settings are built for SPY 2m charts, with extended hours and real-time data. Open the strategy on this chart to study how all input parameters are used. If you don't have real-time data you need to adjust the minimum volume settings (set it to 0 at first).
The backtest
The default backtest configuration is set up to simulate SPY option trading.
Start capital is set to 10,000 and we risk around 5% of that per trade (1 contract)
Commission is set to 0.005%. The reason: at the time of this publication the SPY index price is approximately $580. Two ITM 0/1 DTE options contracts, each priced around $280, which is approximately $560. The typical commission for such a trade is around $3. To simulate this commission in the backtest on the SPY index itself, a commission of 0.005% per trade has been applied, approximating the options trading costs.
Slippage of 3 is set reflecting liquid SPY
The bar magnifier feature is turned on to have more realistic fills
Trading
In backtesting, setting commission and slippage to 0 on the SPY 2m chart shows many trades result around breaking even. Personally, I view them as an opportunity and safety net to help manage emotional decisions for exits. The signals are designed for short option scalps, allowing traders to take small profits and potentially re-enter during the strategy’s position window. It's advisable to take small potential profits, such as 4%, whenever the opportunity arises and consider re-entering if the setup still looks favorable, for example price still above ema9. Exiting a long position below ema9 is a common strategy for 2m scalping.
The average trade duration is approximately 6 minutes (3 bars). The choice between ITM (in-the-money), ATM (at-the-money), or OTM (out-of-the-money) options will depend on your trading style. Personally, I’ve seen better results with ITM options because they tend to move more in sync with the underlying index, thanks to their higher delta.
It’s important to note that the signals are designed to be a helper for manual trading rather than to automate a bot. Users are encouraged to take small profits and re-enter positions if favorable conditions persist. Be mindful that past performance does not guarantee future results.
For the default SPY setup the losses will mostly be 4-10% for ITM options. Be mindful of extreme volatile conditions where losses may reach 30% quickly, especially when trading ATM/OTM options.
The following settings can be changed:
8 pivot timeframes with left/right bars and days rendered
Here you can configure the timeframes for the pivots, which are crucial. The strategy wants that a crossover has happened recently (so it might enter after a crossunder if the crossover was recent) or the price is still above the crossed pivot.
When you decide to use a pivot timeframe higher than your chart, make sure it aligns the same starting point as the chart timeframe. As stated in the 43000478429 docs, there is a dependency between the resolution and the alignment of a starting point:
1–14 minutes — aligns to the beginning of a week
15–29 minutes — aligns to the beginning of a month
from 30 minutes and higher — aligns to the beginning of a year
This alignment also affects the setting of rendered days. I recommend a max value of 5 days for 1-14 minutes timeframes.
Also make sure a higher pivot timeframe can be divided by the lower. For instance I had repaint issues using 3m pivots on a 2m chart. But 4m pivots work fine.
Please look up docs 43000478429 to make sure this information is still up to date.
Pivot rounding
The pivot rounding option is used to add pivots based on a rounded price and limit the number of pivots. While this feature is disabled by default it can be useful with tweaking strategy variations, because many orders are placed at rounded levels and tend to act as strong price barriers.
There are multiple rounding methods: round, ceil/floor, roundn (decimal) and rounding to the minimal tick.
The next feature is a powerful extension called "Cooldown rounding":
Pivot cooldown rounding
This rounds new pivot levels for a cooldown period to keep the previous pivot line instead of adding a new line when they match the rounded value within the cooldown period. The existing line will be extended. This feature is useful because it makes sure the initial line is added to the exact high/low pivot level but any future lines within the rounding will just extend the existing line. This limits the number of pivots while still having precise levels (which normal rounding lacks) and allows more precise pivot trading.
This feature also helps ensure that the number of rendered lines will not exceed 500 too much, which is the render limit on TradingView.
You can set a maximum minutes for the cooldown. The default is 3 years which will enable the cooldown rounding permanently on the intraday (due to the max bar limit).
Pivot always added when new higher/lower pivot
When using cooldown rounding, one may find it useful to override this behavior when a new lower or higher pivot level has been reached. When enabled the new level will be added despite the fact that they may be rounded the same in the cooldown check. This is a good balance between limiting pivots but also allowing preciser trading.
VWAP bands multiplier
This is used to tweak the inner VWAP working for the upper and lower band. The default VWAP multiplier (0.9) is set based on backtesting since it performed better on historic data (the strategy does not trade below the lowerband). When you add the VWAP indicator from the TradingView library to the chart, make sure it uses the same multiplier setting as within this strategy so you have a correct view of the conditions the strategy acts on.
ATR EMA smoothing length
Used to tweak the ATR EMA smoothing. By default it is set up to 4 based on deep backtesting historic data.
EMA lengths
Changing the EMA length allows you to fine tune the EMA crossing behavior. By default the strategy is set up to EMA 9 and 20 which are considered commonly used values on the 2-minute chart.
Trading intraday time restrictions
For intraday charts you can configure when the strategy starts trading after market open and when it stops, including a hard sell. This makes sure there are no open positions left for the day during backtesting and can also aid in your trading style. For example some scalpers will not trade in the first two hours. Having no signals during this time can be beneficial. It is possible to configure these settings based on the number of bars or minutes.
Not trading on days the market closes earlier
By default the strategy does not trade on days the market closes earlier in the US. This makes sure there are no open positions left open during backtesting. Make sure to change it when using it on such a day. The days are: day before independence day, day after thanksgiving, Christmas eve and new years eve.
Not trading below VWAP lowerband
Backtesting has shown poor performance when trading below the VWAP lowerband but you are free to allow it to trade in such conditions. Past performance does not guarantee future results.
Minimum volume
A minimum volume can be set up. The current value is based on better deep backtest results for SPY using real-time data (48000). When you do not have a data plan for SPY, please set it to 0 and tweak based on backtests.
Minimum ATRP
The strategy has shown during my trading that it is sensitive to higher ATRP values and more volatile market conditions. There is more chance the index moves and we can profit from this during option scalping (if it moves in your favor). The default is based on SPY backtesting (0.04%), as a balance to have a lot of trades but also capture minimal movement.
RSI range
A RSI range can be set using a minimum and maximum value so we can limit trading during overbought/oversold conditions. Backtesting for SPY has shown the strategy performs better on historic data within a tighter range, so a default range has been set to 40-65.
Allow orders on every tick (no effect on stop/profit/trail)
This setting is used to allow orders on every tick. The strategy has been developed without trading on every tick but you can change this, for example when you have configured a setup different than the default configuration that you know works well with this. The default setup will not work well with it due to too many constant signals.
Stop percentage + ATRP threshold
One of the most important settings for managing the risk. I recommend setting a stop percentage first and later the ATRP threshold where the stop is calculated based on the current ATRP value. The calculated value will only be in effect when it is greater than the normal stop--the normal stop acts as baseline. The default stop is low (0.03). With a default ATRP threshold stop of 1.12, the calculated value overrules the normal stop when the value is greater. 0.03 acts as a minimum value but in reality the stop will most likely be higher on average for SPY with the default ATRP threshold.
For the default SPY setup the losses will be around 4-10% for ITM options. Be mindful of extreme volatile conditions where losses may reach 30% quickly, especially when trading ATM/OTM options.
Profit taker percentage + ATRP threshold
Same principles as the stop percentage above, but for profit taking. There is a very high ATRP threshold of 4 set by default. Backtests showed that trailing stops perform better on historic data.
Trailing stop
Used to set up a trailing stop. A useful feature to secure profit after a run-up, or get out with a small loss after initial activation. It is important to not use too tight values because they will give unrealistic backtest results and trigger too fast in real-time. Both the trail activation level and trail stop itself can be configured with a percentage value and ATRP value. I recommend setting up the ATRP last. By default the values are 0.05 for activation and 0.03 for the stop based on SPY real-time behavior.
Always sell on pivot crossunder confirmation
The strategy includes pivot crossunder confirmations as sell condition. By default it will not sell on every crossunder confirmation but checks for different conditions (explained in detail earlier in this description). You can change this behavior.
Always sell below first EMA when position has been above
The strategy sells below the first EMA when the position has been above it. By default it will not always sell but checks for different conditions (mentioned earlier in this description). You can change this behavior.
Buy modes pivot
By default the strategy buys between pivots as long as there has been a pivot crossover and EMAs crossover recently or price is still above it. You can change the behavior so it only buys on pivot crossovers or pivot crossover confirmations. Backtesting on the default setup shows decreased performance but for other strategy variations and pivot setups this feature can be useful since many scalpers do not buy between pivots.
Strict mode
There is a strict mode that adds extra checks such as not trading when there is no next low or high pivot, requiring a VWAP uptrend only and minimum candle percentages. This mode is for analyzing history and seeing performance during these conditions. It is worth it to create a separate alert for strict mode so you are aware of these conditions during trading. The deep backtests improved with these setting but past performance does not guarantee future results.
In the strict mode section you can override the stop, minimum ATRP, set up a minimum percentage, only trade VWAP uptrends and to not trade candles without a wick.
A summary and some extra detail
At the time of release only long trades are supported
The strategy is meant for quick scalping but one might find other uses for it
Enable extended hours on intraday charts so it captures more pivots
It does not trade extended hours (pre and post market) since options do not trade during those times
real-time data is recommended and required if a symbol has delayed data by default
You can configure that it trades minutes after market open and hard sells minutes after market open
The entries have a specific label text, example: "833 LE1 / 569.71 / P:569.8". This means: / / . The condition number is only for development/debug purposes for me when you have an issue.
The strategy cannot be tweaked to work on multiple symbols and timeframes with a single config. So you will have to make a config for every timeframe and symbol. I recommend using the Indicator Templates feature of TradingView. This way you can save the settings per timeframe and symbol
The strategy is per default config very dependent on (trailing) stops because it trades between pivots too. It wants that a pivot and EMA crossover has happened more recently than a crossunder. But you can change this behavior to always force crossover buys and crossunder sells.
It’s recommended to set up alerts to notify you of entry and exit signals. Watching the chart alone might cause you to miss trades, especially in fast-moving markets.
Only a max of 500 lines can be rendered on the chart, but the strategy will function with more under the hood. When you exceed 500 you will notice the beginning of the chart has no pivots, but beneath everything functions for backtesting.
Changing settings
Changing the settings for a different symbol and/or timeframe can be a challenging task. Here's a how-to you could use the first time to help you get going:
Set commission and slippage to 0. I prefer to do this so it is more clear whether you are balancing on break-even trades
Enable the pivot timeframe equal or above your chart timeframe. Avoid repainting as discussed earlier by choosing timeframes that align with the same timeframe
Set all volume, ATR, stop, profit takers and trail values to 0
Make sure strict mode is disabled at the bottom of the settings
You now have a clean state and you should see the backtest results purely based on pivot and EMA conditions
Tweak the stop and profit taker, beginning with the simple values and then ATRP threshold
At the last moment tweak the trailing stops. Tight trailing stops create an unrealistic backtest so you will need to tweak them based on real-time behavior of the symbol you're using which you will have to monitor during signals while the market is open. The default values are low (2m intraday SPY). Only with the bar magnifier feature it is somewhat possible to tweak realistic with history data. The tighter they are, the more unrealistic your backtest results. As a starting point, set the trailing stop low and find the highest activation level that doesn't change the results drastically, then increase the stop to the value you think reflects real-time behavior.
Keep refining by testing it during real-time behavior. Does it exit too early according to your own judgment? You need to increase the stop and maybe the activation level.
I hope you will find this useful!
DISCLAIMER
Trading is risky & most day traders lose money. This indicator is purely for informational & educational purposes only. Past performance does not guarantee future results.
Pivot points and levels
Central Pivot Point Cross & Retrace Strategy // AlgoFyreThe Central Pivot Point Cross & Retrace Strategy uses pivot points for trend identification and trade entry. It combines accumulation/distribution indicators with pivot point levels to generate signals. The strategy incorporates dynamic position sizing based on a fixed risk amount and allows for both long and short positions with customizable stop-loss levels.
TABLE OF CONTENTS
🔶 ORIGINALITY
🔸Pivot Point-Based Trading
🔸Accumulation/Distribution
🔸Dynamic Position Sizing
🔸Customizable Risk Management
🔶 FUNCTIONALITY
🔸Indicators
🞘 Pivot Points
🞘 Accumulation/Distribution
🔸Conditions
🞘 Long Entry
🞘 Short Entry
🞘 Take Profit
🞘 Stop Loss
🔶 INSTRUCTIONS
🔸Adding the Strategy to the Chart
🔸Configuring the Strategy
🔸Backtesting and Practice
🔸Market Awareness
🔸Visual Customization
🔶 CONCLUSION
▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅▅
🔶 ORIGINALITY The Central Pivot Point Cross & Retrace Strategy uniquely combines pivot point analysis with accumulation/distribution indicators to identify optimal entry and exit points. It employs dynamic position sizing based on a fixed risk amount, ensuring consistent risk management across trades. This approach allows traders to adapt to varying market conditions by adjusting position sizes according to predefined risk parameters, enhancing both flexibility and control in trading decisions. The strategy's integration of customizable stop-loss levels further refines its risk management capabilities.
🔸Pivot Point-Based Trading This strategy utilizes daily pivot points to identify key support and resistance levels, providing a framework for trend identification and trade entry. The central pivot point serves as the intraday point of balance between buyers and sellers, with the largest amount of trading volume assumed to take place in this area.
🔸Accumulation/Distribution The strategy incorporates the Accumulation/Distribution (A/D) line, an underrated volume-based indicator, to establish the main trend. The A/D line is used in conjunction with a trend based indicator like the 200-period Exponential Moving Average (EMA) to confirm trend direction and strength.
🔸Dynamic Position Sizing Position sizes are calculated dynamically based on a fixed risk amount, allowing traders to maintain consistent risk exposure across trades.
🔸Customizable Risk Management Traders can set flexible risk-reward ratios and adjust stop-loss and take-profit levels, tailoring the strategy to their risk tolerance and market conditions. The strategy recommends taking partial profits at S1 or R1 levels and moving the stop-loss to break-even for remaining positions.
🔶 FUNCTIONALITY The Central Pivot Point Cross & Retrace Strategy leverages pivot points and accumulation/distribution indicators to identify optimal trading opportunities. This strategy is designed to capitalize on price movements around key pivot levels by dynamically adjusting position sizes based on predefined risk parameters. It allows traders to manage risk effectively while taking advantage of both long and short positions.
🔸Indicators 🞘 Pivot Points: Calculates daily pivot points (PP, R1, R2, S1, S2) to identify key support and resistance levels. The central pivot point is crucial for determining market bias and entry points.
🞘 Accumulation/Distribution: Uses the A/D line and with a trend based indicator like the 200 EMA to determine market direction and trend strength. This combination helps eliminate noise and provides more reliable trend signals. We recommend using the Adaptive MAs (Hurst, CVaR, Fractal) // AlgoFyre , but any moving average could be used.
🔸Conditions 🞘 Long Entry: Initiates a long position when the price crosses above the central pivot point (PP), retraces back to it and the A/D line is above its 200 EMA, indicating an uptrend. A limit entry order is set at the PP for entering the long trade.
🞘 Short Entry: Initiates a short position when the price crosses below the central pivot point (PP), retraces back to it and the A/D line is below its 200 EMA, indicating a downtrend. A limit entry order is set at the PP for entering the short trade.
🞘 Take Profit: 50% of the position is closed as profit when R1 for Longs and S1 for Shorts is reached. The position is fully closed when R2 for Longs and S2 for Shorts is reached.
🞘 Stop Loss: Stop loss is set via strategy settings. When the first 50% take profit for both long and shorts is taken, stop loss for both will be moved to break-even/entry.
🔶 INSTRUCTIONS
The Central Pivot Point Cross & Retrace Strategy can be set up by adding it to your TradingView chart and configuring parameters such as the accumulation/distribution source, stop-loss percentage, and risk management settings. This strategy is designed to capitalize on price movements around key pivot levels by dynamically adjusting position sizes based on predefined risk parameters. Enhance the accuracy of signals by combining this strategy with additional indicators like trend-following or momentum-based tools. Adjust settings to better manage risk and optimize entry and exit points.
🔸Adding the Strategy to the Chart Go to your TradingView chart.
Click on the "Pine Editor" button at the bottom of the chart.
Copy and paste the strategy code into the Pine Editor.
Click "Add to Chart" to apply the strategy.
Add the technical indicator "Accumulation/Distribution" to the chart.
Add the trend indicator " Adaptive MAs (Hurst, CVaR, Fractal) // AlgoFyre " or any other MA to the chart and move it to the "Accumulation/Distribution" pane.
Set the source of your trend indicator to "Accumulation/Distribution".
🔸Configuring the Strategy Open the strategy settings by clicking on the gear icon next to its name on the chart.
Accumulation/Distribution Source: Select the source for the accumulation/distribution indicator.
Accumulation/Distribution EMA Source: Select the source for the trend indicator.
Stop Loss Percentage: Set the stop loss distance from the pivot point as a percentage.
Risk Amount: Define the fixed risk amount for position sizing.
Base Order Size: Set the base order size for position calculations.
Number of Positions: Specify the maximum number of positions allowed.
Time Frame: Adjust the time frame based on the currency pair or asset being traded (e.g., 15-minute for EUR/USD, 30-minute for GBP/USD).
🔸Backtesting and Practice Backtest the strategy on historical data to understand how it performs in various market environments.
Practice using the strategy on a demo account before implementing it in live trading.
Test different time frames and asset pairs to find the most suitable combinations.
🔸Market Awareness Keep an eye on market news and events that might cause extreme price movements. The strategy reacts to price data and might not account for news-driven events that can cause large deviations.
Remember that this strategy is not recommended for stocks due to the A/D line's inability to account for gaps in its calculation.
🔸Visual Customization Visualization Settings: Customize the display of entry price, take profit, and stop loss levels.
Color Settings: Switch to the AlgoFyre theme or set custom colors for bullish, bearish, and neutral states.
Table Settings: Enable or disable the information table and adjust its position.
🔶 CONCLUSION
The Central Pivot Point Cross & Retrace Strategy provides a robust framework for capitalizing on price movements around key pivot levels by combining pivot point analysis with accumulation/distribution indicators. This strategy leverages pivot point crossovers to identify entry points and utilizes the A/D line crossover with its 200 EMA for trend confirmation, ensuring trades align with prevailing market conditions. By incorporating dynamic position sizing based on a fixed risk amount, traders can effectively manage risk and adapt to varying market conditions. The strategy's focus on trading around the central pivot point and its customizable stop-loss and take-profit levels further enhance its risk management capabilities, making it a versatile tool for both trending and ranging markets. With its strategic blend of technical indicators and risk management, the Central Pivot Point Cross & Retrace Strategy offers traders a comprehensive approach to optimizing trade execution and maximizing potential returns across various currency pairs and commodities.
FVG Order Blocks [BigBeluga]This indicator is an advanced tool designed to detect and visualize market FVGs with order blocks, where the price action has created gaps due to strong buying or selling pressure. These FVG often act as critical support and resistance levels, giving traders strategic points for potential entries and exits. The indicator not only identifies these imbalances but also displays their relative strength by size %, helping traders prioritize order blocks that are more likely to hold or break.
The indicator works on various pairs and stocks, it also works on charts that do not provide volume data
Forex (JPY/USD):
Stocks (NVDA):
🔵 KEY FEATURES & USAGE
● FVGs Detection and Visualization:
The indicator detects bullish and bearish FVGs. Bullish FVG occur when there is significant buying, and order block is plotted below the FVG zone:
Conversely, bearish FVG are plotted with an order block above the zone, indicating potential resistance.
Traders can use these order blocks to anticipate price reactions when the market revisits these areas, making them ideal for setting up trades.
● FVG Filtering:
The indicator includes a FVG % filter that allows traders to only display strong order blocks. This ensures that only significant FVG order blocks are shown, reducing noise and focusing on the most impactful areas.
● Highlighting Broken Levels:
When an imbalance level is broken—either breached by price action or no longer relevant—the indicator can either delete the level or mark it with a gray color areas. This provides a clear visual cue that the level has been compromised, allowing traders to adjust their strategies accordingly.
● Order Blocks Signals:
When price retest the blocks, indicator display potential sell or buy signals. Which can be an opportunity for trades
🔵 CUSTOMIZATION
● FVG Filter:
Adjust the strength filter to control which FVGs are displayed based on their percentage size. This filter helps in focusing only on significant blocks that are likely to impact price action.
● Order Blocks Amount Displayed:
Set the maximum number of Order Blocks to be displayed on the chart. This customization helps keep the chart clean and ensures that only the most important blocks are in view.
● Broken Order Blocks Display:
Choose whether to display order blocks that have been broken by the price. This feature helps in maintaining a focus on blocks that are still valid while filtering out those that are no longer relevant.
● Color Customization:
You can customize the colors for bullish and bearish Order Blocks to match your chart's overall color scheme. Additionally, strength bars can be color-coded based on their percentage to quickly identify high-priority order blocks.
Traders who are confident in the settings of the indicator can confidently use it on various types of markets
Options Series - Dynamic Support & Resistance
🌟 Key Features & How It Works:
⭐ Dynamic Support and Resistance Management:
The script dynamically calculates and draws support and resistance lines based on pivot highs and pivot lows. Unlike static levels that remain unchanged, these lines are updated in real-time. When a support or resistance level is breached, the corresponding line is automatically deleted, keeping the chart clean and relevant. This feature ensures that the trader is always looking at valid support and resistance levels based on the current price action.
⭐ Use of Arrays for Line Management:
The script utilizes arrays to store and manage support and resistance lines (array.new_line(0)). This is a more advanced feature of Pine Script v5, allowing for efficient handling of multiple lines on the chart. By using arrays, the script can easily track and manipulate multiple lines (adding, removing, updating), ensuring that the chart remains optimized for real-time analysis.
⭐ Customizable Inputs for Flexibility:
The script includes user inputs for the pivot length and the line width, making it adaptable to different trading styles and preferences. The pivot length determines how sensitive the indicator is to price changes, while the line width allows traders to customize the visual representation of support and resistance levels. These inputs add flexibility and make the script accessible to a broad range of traders.
⭐ Efficient Breach Detection Mechanism:
The isBreached function is a key part of the script. It checks whether the current price has breached any of the existing support or resistance levels. If a breach is detected (i.e., the price crosses below a support or above a resistance), the respective line is deleted, ensuring that only active and valid lines remain on the chart. This automatic update feature reduces the need for manual intervention, helping traders stay focused on key price levels.
⭐ Visual Clarity and Chart Cleanliness:
By deleting breached lines, the script ensures that the chart does not become cluttered with outdated or irrelevant lines. This visual clarity is crucial for traders who rely on clean, simple charts for decision-making. Removing unnecessary information helps traders make faster, more confident decisions based on the current market structure.
⭐ Scalability for Multiple Timeframes:
The use of pivot points makes the script adaptable to different timeframes, from intraday scalping to longer-term swing trading. By changing the pivot length, traders can optimize the indicator for different market environments, ensuring that it can be applied across various asset classes and timeframes.
⭐ Practical for Range-bound and Breakout Trading:
This script is particularly effective for traders who focus on range-bound markets or breakout strategies. It allows them to quickly identify areas where price is likely to reverse (support/resistance) or break out (when support/resistance is breached), providing real-time insight into market dynamics.
⭐ Simplification of Price Action Analysis:
By automating the calculation of pivots and management of support/resistance levels, the script simplifies price action analysis. Traders no longer need to manually draw or monitor these levels, which is a common task in technical analysis. This provides an edge, as it reduces the time spent on chart preparation and helps focus on executing trades.
⭐ Originality:
The script "Options Series - Pivot Based Support & Resistance" is an original approach to generating support and resistance levels using pivot points. Pivot-based techniques are popular, but the script introduces an automated dynamic way of drawing support and resistance lines, tracking breaches, and deleting lines when they are no longer valid. This aspect adds a refreshing layer of interactivity and functionality that sets it apart from basic pivot point scripts. The use of arrays to store and manage multiple support and resistance lines is also a good application of Pine Script’s newer array functionalities.
⭐ Uniqueness of the Script:
The script stands out due to its dynamic management of support and resistance lines. Unlike traditional scripts that simply plot static pivot points, this one evolves with the market by removing broken levels, ensuring only valid support and resistance lines are visible on the chart. This is particularly useful for traders who focus on clean charting. The use of arrays to store and manage the lines, alongside the efficient deletion of lines when breached, demonstrates a solid understanding of Pine Script v5's advanced features, such as array manipulation.
🚀 Conclusion:
This script stands out for its real-time adaptability, dynamic support/resistance management, and efficient use of Pine Script’s advanced features. It a powerful tool for both novice and advanced traders.
The script is an indicator designed to draw support and resistance levels based on pivot highs and lows, dynamically removing lines when they are breached. If a price crosses a support or resistance level, the respective line is deleted, ensuring the chart reflects the current state of support and resistance accurately.
ATR Range Pivot LinesDescription:
This Pine Script calculates and plots pivot lines based on ATR (Average True Range) value and closing price. It uses the previous trading day's ATR value to set static pivot levels for the current trading day. These pivot lines help traders identify potential support and resistance levels based on historical volatility. The script includes two main pivot lines—ATR High and ATR Low —and two midpoint lines between them for additional context. Labels are added to show the exact pivot values, with options to customize label positions.
Intended Use:
The script is designed to help traders forecast potential price ranges for the current trading day based on the previous day’s volatility. By adding and subtracting the previous day's ATR from the prior close, the script identifies key levels where price action may encounter support or resistance. It is useful for setting realistic price targets or entry/exit points. Since the ATR-based pivot lines are static for the entire day, they provide a reliable range for intraday trading strategies.
Disclosure:
This script was generated using AI. It is recommended to review and test the script thoroughly before applying it in live trading scenarios.
Flat Tops/Bottoms aka Devil's MarkThis Pine script indicator is designed to visually depict price inefficiencies, as identified by Flat Top/Bottom Candles (aka Devil's Mark). A Flat Top/Bottom Candle is a scenario where there is an absence of a wick at the top or the bottom of the candle. These represent zones of inefficiency and will frequently act as magnets for price that the market will strive to rebalance in accordance with ICT principles.
Relevance:
Flat Top/Bottom Candles are zones where price delivery didn't provide opportunity for manipulation representing an inefficiency that the market will seek to rebalance. Consequently, these zones can provide good targets for entries in the opposite direction or take profit targets for previous entries in the direction of the Flat Top/Bottom Candle.
How It Works:
The indicator keeps track of all Flat Top/Bottom Candles from the beginning of the available history. It automatically removes all mitigated Flat Top/Bottom Candles, which are situations where the price has gone past the candle without a wick.
Configurability:
You can configure the colors, style & width of the lines used to represent flat top/bottom candles.
What makes this indicator different:
Designed with high performance in mind, to reduce impact on chart render time.
Only keeping the currently valid flat top/bottoms on the chart.
Vertical Lines & Price RangeThis Pine Script indicator visually marks significant historical price points on the chart by drawing vertical lines at intervals of 6 months, 3 months, and 1 month ago. Each vertical line is accompanied by a label indicating the time frame (6M, 3M, 1M). Additionally, it calculates and displays the percentage change between the closing prices at 6 months ago and 3 months ago, as well as between 3 months ago and 1 month ago, using horizontal lines to connect these price points. This tool is useful for analyzing trends and price movements over time, providing traders with a clear visual representation of historical performance.
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.
Key Levels Suite - By LeviathanThis is a comprehensive script, designed to display over 100 key price levels across multiple dimensions, including volume profile levels, HTF levels, VWAPs, SMAs/EMAs, market session levels, day of week levels and more. The indicator offers high flexibility in features, settings and visual appearance.
● The script organizes levels into six main categories:
Higher Timeframe (HTF) Levels
- Current and/or previous period: Open, High, Low, and Midpoint for Daily, Weekly, Monthly, Quarterly, and Yearly timeframes (eg. levels for current weekly high/low and previous weekly high/low).
- These levels provide a clear structure for identifying key support and resistance zones. Traders often use HTF levels to anticipate price reactions, such as bounces or rejections, at major highs and lows. For example, a price nearing the weekly high could signal an area of resistance.
VWAP Levels
- Current and/or previous period: VWAP and upper/lower standard deviations for Daily, Weekly, Monthly, Quarterly, and Yearly timeframes (eg. levels for current daily VWAP and previous weekly VWAP).
- VWAP levels give traders insight into whether the current price is above or below the fair market value for a given period. It’s often used as a reference point for trend direction or S/R. If the price remains above VWAP, the trend may be seen as bullish, while breaks below VWAP can suggest a shift toward bearish sentiment. Standard deviations help identify areas where the price may be overextended, offering opportunities for mean reversion trades.
Moving Average Levels
- EMA and SMA for three customizable lengths (eg. levels for 200 EMA, 50 EMA and 100 SMA).
- These levels act as dynamic support and resistance lines that adjust with price movement. Traders use them to confirm trend direction and watch for reactions around these levels, particularly in trending markets. For example, when the price pulls back to a 200 EMA, it could present an opportunity to enter a trade in line with the prevailing trend.
Volume Profile Levels
- Current and previous: Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL) for Daily, Weekly, Monthly, Quarterly, and Yearly timeframes (eg. levels for current day POC and previous day POC).
- Volume Profile levels highlight price areas where significant trading occurred. The POC indicates the price where the most volume was traded and can act as a strong magnet for price. VAH and VAL mark the boundaries of value areas, making them excellent spots for breakout or mean reversion trades. Traders look for price reactions around these zones to either join or fade moves.
Market Session Levels
- Current and previous: Open, high, low, and midpoint for three user-defined sessions, with default being Tokyo, London, and New York (eg. levels for current New York session open and previous New York session high and low).
- Session levels allow traders to track how price behaves across different global market sessions. For instance, the New York open often brings increased liquidity and volatility. Traders often use these levels to anticipate sharp moves or continuations, especially after session highs and lows are broken, signaling shifts in market momentum.
Day of Week Levels
- Open, high, low, and midpoint for Monday through Sunday (eg. levels for Monday's high and low and Tuesday open).
- These levels help traders identify recurring intraday or intraweek price behaviors. For example, highs or lows established earlier in the week can serve as benchmarks for breakouts or retracements later on. Monday’s open or Friday’s high/low often reflect market sentiment going into or out of the weekend, providing valuable clues for planning trades.
● About the script
I published this script because it was heavily requested by my Tradingview followers who wanted a clean and feature-rich indicator that can display various levels they use in their analysis. The indicator can display levels that are not available in other similar public scripts and makes sure to calculate and load calculation-intensive levels (like volume profile levels, higher timeframe vwap levels, etc) as fast and efficiently as possible. It is one of the only scripts I've published that is not open source. The code is protected because it includes some proprietary calculations (eg: for POC/VAH/VAL), that I don't wish to open source, but I still want to publish a heavily requested script in a public and free format.
● How to use the script
1. Add the script to your chart
Start by adding the script to your chart like any other indicator.
2. Open the indicator settings
Click the settings icon to access all customization options.
3. Select which level groups to display
In the "Controls" section, choose which groups of levels (HTF, VWAP, Moving Averages, etc.) you want displayed. This allows you to quickly toggle between different sets of levels depending on your analysis needs, without overcrowding the chart.
4. Adjust group-specific settings
Scroll down to access detailed settings for each group. For any group, you can choose:
- The relevant time parameter (e.g., Daily, Weekly, Monthly, etc for HTF/VWAP/Volume Profile levels, length for Moving Average levels, day for Day of Week Levels, etc).
- Specific levels to display (e.g., Open/High/Low/Midpoint for HTF, VWAP, Day of Week, Session levels and POC/VAH/VAL for Volume Profile levels).
- For applicable groups, you can also toggle previous period levels by selecting them from the row starting with the "↳" icon.
5. Customize visual appearance
In the "Appearance" section, you have full control over how the levels and labels look. You can:
- Choose what details appear in the labels (e.g., level name, price, or percentage distance from current price).
- Pick from different line types, line style (solid, dashed, dotted), adjust line width, and manage the length of the lines using "Offset Right" and "Offset Left" settings.
- Modify font, label size, and color options. If multiple levels overlap at the same price, use the “Merge Levels” option to combine them into one, reducing visual clutter.
6. Customize level names to your preference
In the "Labels" section, you can rename any parameter to match your preferred abbreviations (e.g., change “Weekly Open” to “wO” or any other shorthand that works for you).
● Key Features:
- Display various different important levels, all in one indicator
- Seamless control of which group of levels / specific level to display
- Choose from various line and label styles to display levels.
- Labels can show the level's title (customizable abbreviations), price, and percentage distance from the current price.
- Merge nearby levels to reduce chart clutter, either for identical levels or those within a user-defined percentage range.
- Fully customizable visual appearance of levels to suit individual preferences.
Pivot Liquidity Sweep + SignalsCore Functionalities:
Sweep Signals:
The indicator identifies sweeps of liquidity by detecting when price exceeds recent pivot highs (swing highs) or pivot lows (swing lows) and then reverses direction. It draws attention to these scenarios by labeling them on the chart.
For bullish sweep signals, the entry point is the closing price of the sweep candle, with the stop loss placed at the highest point between the sweep candle and the previous candle.
For bearish sweeps, the entry point is similarly identified, with the stop loss being the lowest price of the sweep candle and the candle before it. The profit target is dynamically set to the low or high of the closest valid pivot depending on the direction of the trade.
Rejection Signals:
Rejection signals are identified when price attempts to break a pivot high or low but fails, causing a rejection.
Bullish rejections involve price trying to break a pivot low but closing back above it, indicating potential for a bounce.
Bearish rejections follow a similar pattern, with price attempting to break a pivot high but failing to hold above it, signaling a potential bearish move.
High-Precision Intrabar Data:
The "Intrabar Precision" feature allows the indicator to use lower timeframe data to accurately plot sweeps and rejections, providing traders with precise entry and exit points.
The intrabar settings are particularly useful for traders looking for high-precision trades, such as scalpers who want to capture small yet consistent moves.
ATR and Percentage-Based Filters:
The indicator allows for customizable filters to ensure signals meet certain thresholds before being validated. Traders can use ATR (Average True Range) or percentage-based conditions to filter out low-quality signals, ensuring that the trades captured have enough volatility or price movement potential.
Dashboard:
The built-in dashboard provides a quick overview of trades executed using the indicator, displaying metrics such as the total number of sweep and rejection trades, their success rates, and total profit in points.
The dashboard is color-coded for easy reading and offers traders insights into the overall performance of their strategy, helping with ongoing evaluation and optimization.
Labeling and Alerts:
Every time a sweep or rejection signal is detected, the indicator automatically labels the chart to help traders quickly identify the trading opportunities.
Alerts are also generated for each trading signal, providing the trader with real-time notifications, which can be useful for those who are not constantly monitoring their charts.
Stop Loss and Target Adaptation:
The stop loss levels are adjusted dynamically based on the recent pivot points, and the target profit is derived from valid subsequent pivot levels to ensure realistic and efficient trade exits.
Gold IBH/IBL with IBM, Overnight Levels, OVM, and ONVPOCThe Initial Balance (IB) indicator for gold trading is a valuable tool for identifying key price levels and potential trade setups. Here's an overview of how it works:
Initial Balance Calculation
The Initial Balance for gold is calculated from 8:20 AM to 9:20 AM EST, coinciding with the COMEX open. This one-hour period establishes crucial reference points for the trading day.
Key Levels
The indicator displays several important price levels:
IB High: The highest price reached during the Initial Balance period
IB Low: The lowest price reached during the Initial Balance period
IB Midpoint: The average of the IB High and IB Low
These levels often serve as significant support and resistance areas, with many traders placing stop-losses around them.
Overnight Levels
In addition to the IB levels, the indicator shows overnight price action:
ONH: Overnight High
ONL: Overnight Low
ONM: Overnight Midpoint
Overnight VWAP: Volume Weighted Average Price from the overnight session
These overnight levels have a high probability of being tested during the COMEX trading session, making them valuable reference points for traders.
Trading Applications
Traders can use the IB and overnight levels for various purposes:
Setting profit targets
Identifying potential trade entry points
Managing risk by placing stop-losses at key levels
Gauging overall market sentiment and volatility
The levels established during both the Initial Balance and overnight sessions are likely to be touched during the COMEX trading session. This insight allows traders to make more informed decisions and enhances their trading strategies.
If you have more questions about the trading strategy, please DM me, and I can explain further. I also have probabilities of all these levels being broken during the COMEX trading hours, which gives us confidence to hold our trades to targets.
Understanding and utilizing these levels can provide traders with a competitive edge in gold trading, helping them make more informed decisions based on early market dynamics and overnight price action.
Price Action Analyst [OmegaTools]Price Action Analyst (PAA) is an advanced trading tool designed to assist traders in identifying key price action structures such as order blocks, market structure shifts, liquidity grabs, and imbalances. With its fully customizable settings, the script offers both novice and experienced traders insights into potential market movements by visually highlighting premium/discount zones, breakout signals, and significant price levels.
This script utilizes complex logic to determine significant price action patterns and provides dynamic tools to spot strong market trends, liquidity pools, and imbalances across different timeframes. It also integrates an internal backtesting function to evaluate win rates based on price interactions with supply and demand zones.
The script combines multiple analysis techniques, including market structure shifts, order block detection, fair value gaps (FVG), and ICT bias detection, to provide a comprehensive and holistic market view.
Key Features:
Order Block Detection: Automatically detects order blocks based on price action and strength analysis, highlighting potential support/resistance zones.
Market Structure Analysis: Tracks internal and external market structure changes with gradient color-coded visuals.
Liquidity Grabs & Breakouts: Detects potential liquidity grab and breakout areas with volume confirmation.
Fair Value Gaps (FVG): Identifies bullish and bearish FVGs based on historical price action and threshold calculations.
ICT Bias: Integrates ICT bias analysis, dynamically adjusting based on higher-timeframe analysis.
Supply and Demand Zones: Highlights supply and demand zones using customizable colors and thresholds, adjusting dynamically based on market conditions.
Trend Lines: Automatically draws trend lines based on significant price pivots, extending them dynamically over time.
Backtesting: Internal backtesting engine to calculate the win rate of signals generated within supply and demand zones.
Percentile-Based Pricing: Plots key percentile price levels to visualize premium, fair, and discount pricing zones.
High Customizability: Offers extensive user input options for adjusting zone detection, color schemes, and structure analysis.
User Guide:
Order Blocks: Order blocks are significant support or resistance zones where strong buyers or sellers previously entered the market. These zones are detected based on pivot points and engulfing price action. The strength of each block is determined by momentum, volume, and liquidity confirmations.
Demand Zones: Displayed in shades of blue based on their strength. The darker the color, the stronger the zone.
Supply Zones: Displayed in shades of red based on their strength. These zones highlight potential resistance areas.
The zones will dynamically extend as long as they remain valid. Users can set a maximum number of order blocks to be displayed.
Market Structure: Market structure is classified into internal and external shifts. A bullish or bearish market structure break (MSB) occurs when the price moves past a previous high or low. This script tracks these breaks and plots them using a gradient color scheme:
Internal Structure: Short-term market structure, highlighting smaller movements.
External Structure: Long-term market shifts, typically more significant.
Users can choose how they want the structure to be visualized through the "Market Structure" setting, choosing from different visual methods.
Liquidity Grabs: The script identifies liquidity grabs (false breakouts designed to trap traders) by monitoring price action around highs and lows of previous bars. These are represented by diamond shapes:
Liquidity Buy: Displayed below bars when a liquidity grab occurs near a low.
Liquidity Sell: Displayed above bars when a liquidity grab occurs near a high.
Breakouts: Breakouts are detected based on strong price momentum beyond key levels:
Breakout Buy: Triggered when the price closes above the highest point of the past 20 bars with confirmation from volume and range expansion.
Breakout Sell: Triggered when the price closes below the lowest point of the past 20 bars, again with volume and range confirmation.
Fair Value Gaps (FVG): Fair value gaps (FVGs) are periods where the price moves too quickly, leaving an unbalanced market condition. The script identifies these gaps:
Bullish FVG: When there is a gap between the low of two previous bars and the high of a recent bar.
Bearish FVG: When a gap occurs between the high of two previous bars and the low of the recent bar.
FVGs are color-coded and can be filtered by their size to focus on more significant gaps.
ICT Bias: The script integrates the ICT methodology by offering an auto-calculated higher-timeframe bias:
Long Bias: Suggests the market is in an uptrend based on higher timeframe analysis.
Short Bias: Indicates a downtrend.
Neutral Bias: Suggests no clear directional bias.
Trend Lines: Automatic trend lines are drawn based on significant pivot highs and lows. These lines will dynamically adjust based on price movement. Users can control the number of trend lines displayed and extend them over time to track developing trends.
Percentile Pricing: The script also plots the 25th percentile (discount zone), 75th percentile (premium zone), and a fair value price. This helps identify whether the current price is overbought (premium) or oversold (discount).
Customization:
Zone Strength Filter: Users can set a minimum strength threshold for order blocks to be displayed.
Color Customization: Users can choose colors for demand and supply zones, market structure, breakouts, and FVGs.
Dynamic Zone Management: The script allows zones to be deleted after a certain number of bars or dynamically adjusts zones based on recent price action.
Max Zone Count: Limits the number of supply and demand zones shown on the chart to maintain clarity.
Backtesting & Win Rate: The script includes a backtesting engine to calculate the percentage of respect on the interaction between price and demand/supply zones. Results are displayed in a table at the bottom of the chart, showing the percentage rating for both long and short zones. Please note that this is not a win rate of a simulated strategy, it simply is a measure to understand if the current assets tends to respect more supply or demand zones.
How to Use:
Load the script onto your chart. The default settings are optimized for identifying key price action zones and structure on intraday charts of liquid assets.
Customize the settings according to your strategy. For example, adjust the "Max Orderblocks" and "Strength Filter" to focus on more significant price action areas.
Monitor the liquidity grabs, breakouts, and FVGs for potential trade opportunities.
Use the bias and market structure analysis to align your trades with the prevailing market trend.
Refer to the backtesting win rates to evaluate the effectiveness of the zones in your trading.
Terms & Conditions:
By using this script, you agree to the following terms:
Educational Purposes Only: This script is provided for informational and educational purposes and does not constitute financial advice. Use at your own risk.
No Warranty: The script is provided "as-is" without any guarantees or warranties regarding its accuracy or completeness. The creator is not responsible for any losses incurred from the use of this tool.
Open-Source License: This script is open-source and may be modified or redistributed in accordance with the TradingView open-source license. Proper credit to the original creator, OmegaTools, must be maintained in any derivative works.
LIT_Globas_sys - Liquidity Inducement Theorem (SMC, IDM)LIT_GLOBAL_SYS Trading Tool Documentation, is a comprehensive market analysis tool that includes all components needed for trading according to Liquidity Inducement Theorem (LIT). LIT differs from classical trading methods and is considered a highly effective and profitable strategy.
What can LIT_GLOBAL_SYS do?
--- Market Structure
The main feature of Liquidity Inducement Theorem is building the correct structure, specifically construction taking into account inducement (IDM). Thus, a new HH or LL can only form when the price has taken the first correct pullback - inducement (IDM), and after this, we understand the location of BoS (break of structure) and CHoCH (change of character).
LIT_GLOBAL_SYS automatically and perfectly displays the correct structure following all LIT rules. Looking at the indicator, a trader always understands which range the price is currently in and where it's trending at the moment. The indicator also shows dynamic (live) levels, providing a clear understanding of the market structure in real-time.
The indicator settings allow customization of each structural element according to trader preferences. For example, you can change the style, color, and shape of structural objects.
--- Correct Pullbacks and Inside Bars
In Liquidity Inducement Theorem, correct pullbacks are fundamental. The structure, order blocks, liquidity levels, order flow, and single candle order blocks (CSOB) are all built based on pullbacks.
What is a pullback?
- When the next candle updates the low of the previous candle, we can finish drawing an upward pullback
- We can start drawing a downward correct pullback when the next candle updates the low of the previous candle
- The downward movement will continue until the opposite occurs - updating the high of the previous candle
There are complexities in determining pullbacks - these are inside bars. In Liquidity Inducement Theorem, inside bars are completely ignored!
For example, in an upward movement, at some point, candles may stop updating the high and low of the previous candle and remain within the boundaries of the previous candle. Theoretically, there could be any number of such candles from 1 to infinity. In such cases, it's important to wait for the price to exit the mother candle (the candle after which other candles remained within its high and low range).
LIT_GLOBAL_SYS easily handles this and displays both pullbacks and inside bars correctly.
--- Order Blocks and Fair Value Gaps (FVG)
In Liquidity Inducement Theorem, order blocks are defined differently from classical order blocks:
1. The order block must take liquidity from the previous candle
2. The order block must have Fair Value Gaps (FVG) before it
3. Inside bars are completely ignored for both Order Blocks and FVG
4. If an OB fulfills the first condition (taking liquidity from the previous candle) but doesn't have FVG before it, this block is moved forward along the candles until there is an imbalance before it
There are two most important order blocks in LIT strategy:
1. Inducement order block (idm ob) - the first order block after Inducement
2. Extreme order block (Ext ob) - the first order block before CHoCH
LIT_GLOBAL_SYS perfectly displays correct order blocks and Fair Value Gaps following all rules. It offers full customization options:
- Specify the number of displayed OBs
- Disable all order blocks except idm ob and Ext ob
- Change block frame color and style
- Disable or modify text display in blocks
--- Single Candle Order Block (Scob)
Rules for building Scob:
1. The candle takes liquidity from the previous candle and closes within the body of the previous candle
2. The candle following the Scob candle must close its body below the previous candle
3. Scob forms in continuation of the trend movement
4. Scob completely ignores inside bars
LIT_GLOBAL_SYS accurately displays Scob as triangles and fully ignores inside bars both left and right. The menu allows complete customization of display and quantity of displayed Scobs.
--- Liquidity Lines, Order Flow, and Three-Minute Rule
Auxiliary functions include:
- Liquidity Lines -
Each pullback is marked with a line, showing where unclosed liquidity exists. Completed lines can be hidden to help predict price movement and enter trades correctly.
- Order Flow -
The indicator implements order flow by drawing a line when a pullback is broken (closed by body) in the opposite direction until the second touch. If price moves away without a second touch, the line remains, showing unclosed OF and potential price return zones.
- Three-Minute Rule -
Some LIT traders use the three-minute rule: price manipulations in the last and first three minutes of each 15-minute candle are additional entry factors, especially in the last quarter of an hourly candle. LIT_GLOBAL_SYS displays this rule only on the one-minute timeframe with symbols below for M15 and H1.
--- Trading Sessions, PDH/PDL, and EMA
The system includes:
- Trading sessions (Tokyo, Frankfurt, London, New York) with customizable time settings
- Previous Day High and Previous Day Low (pdh/pdl) levels
- Exponential Moving Average (EMA) with adjustable length
- Equilibrium display between current BoS and CHoCH levels
--- Alert System
LIT_GLOBAL_SYS includes all necessary alerts for Liquidity Inducement Theorem:
1. SCOB
2. EMA
3. BoS, ChoCh, Sweep
4. IDM
5. IDM OB and Ext OB
Users can simply check the desired alerts in the menu and activate them to receive notifications when price reaches specified zones.
Session Range Breakouts With Targets [AlgoAlpha]⛓️💥Session Range Breakouts With Targets 🚀
Introducing the "Session Range Breakouts With Targets" indicator by AlgoAlpha, a powerful tool for traders to capitalize on session-based range breakouts and identify precise target zones using ATR-based calculations! Whether you trade the Asian, American, European, or Oceanic sessions, this script highlights key breakout levels and targets that adapt to market volatility, ensuring you're always prepared for those crucial price movements. 🕒📊
Session-based Trading : The indicator highlights session-specific ranges, offering clear breakouts for Asian, American, European, Oceanic, and even custom sessions 🌍.
Adaptive Volatility Zones : Uses ATR to determine dynamic zone widths, filtering out fakeouts and adjusting to market conditions ⚡.
Precise Take-Profit Targets : Set multiple levels of take-profits based on ATR multipliers, ensuring you can manage both aggressive and conservative trades 🎯.
Customizable Appearance : Tailor the look with customizable colors for session highlights and breakout zones to fit your chart style 🎨.
Alerts on Key Events : Built-in alert conditions for breakouts and take-profit hits, so you never miss a trading opportunity 🔔.
🚀 Quick Guide to Using the Indicator
🛠 Add the Indicator : Add the indicator to favorites by pressing the star icon. Choose your session (Asia, America, Europe, Oceana, or Custom) and adjust the ATR length, zone width multiplier, and target multipliers to suit your strategy.
📊 Analyze Breakouts : Watch for the indicator to plot upper and lower range boxes based on session highs and lows. Price breaking through these boxes will signal a potential entry.
📈 Monitor Targets : Track bullish and bearish targets as price moves, with up to three take-profit levels based on ATR multipliers.
🔔 Set Alerts : Enable alerts for session breakouts or when price hits your designated take-profit targets.
🔍 How It Works
This script operates by identifying session-specific ranges based on highs and lows from the beginning of the selected session (Asia, America, Europe, or others). After a user-defined wait period (default: 120 bars), it calculates the highest and lowest points and creates upper and lower zones using the Average True Range (ATR) to adapt to market volatility. If the price breaks above or below these zones, it is identified as a breakout, and the script dynamically calculates up to three take-profit targets for both bullish and bearish scenarios using an ATR multiplier. The indicator also includes alerts for breakouts and take-profit hits, providing real-time trading signals.
Directional Targets & POC TableThe "Directional Targets & POC Table" Pine Script™ is a comprehensive tool designed to help traders identify directional bias, potential price targets, and important levels like the Point of Control (POC). Additionally, it detects fair value gaps (FVGs) and order blocks, which are crucial concepts in Smart Money Concepts (SMC) trading. Here's an overview of its functionality:
1. Indicator Overview:
The script combines multiple technical tools into a single visual aid:
Directional Targets: Fibonacci-based upper and lower targets that provide a forecast of where the price might move.
Point of Control (POC): Midpoint of the daily range, displayed visually on the chart.
Fair Value Gaps (FVGs): Areas of imbalance in the market, potentially leading to price reversals.
Order Blocks: Areas where institutional traders might have entered large positions, potentially serving as support or resistance.
2. Key Features:
Directional Targets & POC Table:
A table is displayed in the top-right corner of the chart, showing:
Direction: Based on whether the price is above or below the POC.
Target ↑: The upper target, calculated using Fibonacci's 0.618 level, which acts as a potential resistance.
POC: The midpoint between the daily high and low, serving as the central level of interest.
Target ↓: The lower target, also calculated using the 0.618 Fibonacci level, which serves as potential support.
The table uses colors to make each level easily distinguishable, with green for bullish targets, red for bearish, and yellow for the POC.
POC Visualization:
The Point of Control (POC) is drawn on the chart as a box that stretches horizontally. It highlights the central price range where the highest volume or interest may have occurred, providing a key level for traders to watch.
The POC can act as a support or resistance area, with price frequently reacting at or near this level.
FVG Detection:
Fair Value Gaps are identified when there’s a price imbalance between two bars. These gaps occur when the high of one bar is lower than the low of a bar two periods earlier, or vice versa.
The script draws lines at the boundaries of these gaps, helping traders spot potential areas where the price may return to fill the gap.
If the price revisits and fills the gap, the FVG lines are automatically deleted, signaling the gap is no longer relevant.
Order Blocks Detection:
Bullish Order Blocks are detected when a strong bullish candle forms, where the close equals the high, and it’s higher than the previous bar’s low. This represents potential institutional buying interest.
Bearish Order Blocks are detected when a strong bearish candle forms, where the close equals the low, and it’s lower than the previous bar’s high, representing potential selling interest.
The order blocks are drawn as rectangles on the chart, marking significant price zones that may act as future support (bullish) or resistance (bearish).
3. Direction Determination:
The script calculates the daily high, low, and mid-point (POC). If the current price is above the POC, the market is deemed bullish; if it’s below, the market is bearish. If it’s near the POC, the market is considered neutral.
This directional bias is then displayed in the table, giving traders an easy way to assess whether they should be looking for long or short opportunities.
4. Use Case:
This script is particularly useful for traders who:
Want to identify key levels like the POC and potential price targets based on Fibonacci retracement.
Follow Smart Money Concepts (SMC) and need tools to detect FVGs and order blocks, which can signal areas of market imbalance or institutional involvement.
Need a simple visual aid to determine market direction and structure, helping them make informed trading decisions.
5. Additional Features:
The script is highly visual, providing both numeric information in a table and plotted elements (lines, boxes) directly on the chart.
The automatic detection and clearing of FVGs and order blocks make this tool dynamic and easy to follow.
The script helps identify areas where price might react, giving traders a roadmap to follow for potential entries, exits, or take-profit levels.
This indicator is designed for traders looking to incorporate both conventional and advanced concepts like Fibonacci targets, POC, and SMC principles (FVGs and Order Blocks) into their strategy.
Trademania - PVSRA IndicatorTrademania - PVSRA Indicator
The Trademania - PVSRA Indicator is based on a proven MT4 indicator suite that has been in use since 2013. Over time, it has been expanded with additional features and tools. Originally developed for the Forex market, it also works well for cryptocurrencies, stocks, and other assets. The goal of this indicator is to combine classic chart analysis with PVSRA analysis, allowing for a clean mixed chart analysis. Traders gain access to a wide range of important information and can use it to form their trading assumptions. The indicator is designed to make it as simple as possible: identifying price levels at the breakout of key support/resistance, for confirmations above/below an imbalance, or recognizing and validating standard structures.
Important: This indicator is designed to be used across all timeframes. It works equally well for scalping on lower timeframes and for larger timeframes, such as spot trading on the 4H or daily chart.
The following core features are available:
- PVSRA Candles
- Dynamic Zones for PVSRA Candles (Imbalance)
- Market sessions with high/low points
- Integrated EMAs (daily, weekly, higher time frames)
- Fully customizable EMAs
- Pivot points with mid/50% level
- Price ranges from yesterday and last week
- Average daily range (also available for weekly and monthly)
- Psychological levels (for Forex)
- Daily open
- High/Low Point of Control (POC) indicators for wicks and candle bodies
- WIL (Weekly Interest Level) - High/Low of the Asian session
- On-chart labels for nearly all elements
Key Features:
- PVSRA, integrated POC levels, and WIL levels distinguish this indicator.
- Integrated EMAs and the daily, weekly, high time frame EMAs can be supplemented or replaced by custom EMAs for maximum flexibility.
Special Feature:
- Lite Mode for better visibility and simplified chart analysis.
Instructions and Notes
PVSRA Candles
Display volume or tick volume on the chart.
- Candles with more than 200% average volume of the last 10 candles, where the product of candle spread and volume is greater than the last 10 candles/timeframes, are shown in green (bullish) and red (bearish).
- Blue and purple candles show the same with 150% average volume of the last 10 candles.
**Note:** To obtain valid information, the trading volume should be as large as possible. If you're viewing the chart of an exchange with low trading volume, you can use the PVSRA override to display the volume from another exchange. For example, you can view the Phemex chart but display the tick/volume of the Binance chart as PVSRA/Vector candles.
Dynamic Zones for PVSRA Candles (Imbalance)
Zones that match the color of the respective vector candle display imbalance on the chart.
- In PVSRA analysis, it is assumed that such imbalances will be revisited and corrected. It can be customized whether this should happen with candle wicks or just the candle bodies.
Market Sessions with High/Low Points (DST)
Relevant market sessions: Sydney/NZX, Tokyo, Hong Kong, EU, New York, as well as the Brinks sessions pre EU/NY, are marked with high/low points and labeled on the chart.
- In PVSRA/Mixed analysis, these represent important liquidity zones of the individual trading sessions, often serving as key support/resistance levels.
WIL (Weekly Interest Level) - High/Low of the Asian Session
The new WIL levels represent the market open/Asian session of the new trading week: Sydney open to Hong Kong close.
- This forms an important price range for the trading week and is always a key breakout zone or rejection area in mixed analysis. Additional liquidity is needed to break through these levels.
- Higher effort against the start of the week – an imbalance (above/below).
High/Low Point of Control (POC) Indicators for Wicks and Candle Bodies
Additionally, the indicator includes pivot-based POC markers at key highs/lows on the chart.
- A POC is generated from the candle footprint (1000 resolution) and displayed on the chart.
- **Note:** If the POC is in a wick, it is shown as a line; if the POC is only in the candle body, it is displayed in small text.
- In mixed analysis, POCs in volume-heavy wicks are always a key indication of price levels that will be revisited and a potential enhancer for a wick-fill upwards or downwards.
EMA/Pivot Points/Psychological Levels Classic/Average Ranges:
Daily/ADR - Weekly/AWR / High/Low values for day/week, as well as the daily open of the current trading day, form the foundation of the indicator.
- Base structures that account for imbalance must break certain price levels to confirm or invalidate a previous movement (bullish or bearish).
- 13/50/200/800 EMA retrace: Breaking these in either direction without addressing an imbalance on the opposite side requires confirmation after the break.
- Pivot-level trading operates on the same principle.
- **Note:** Pivot levels in this indicator have additional M-levels, which represent 50% markers to provide better insights into potential retraces or upward moves.
- For example: Breaking M1, retracing, and confirming at M1 with a target at M2.
To recognize a standard 3-level rise or retrace scenario in mixed analysis, as well as a potential extended chart progression, these levels are essential.
**Note:** Average ranges such as High/Low ADR are particularly important levels where interruptions are expected. Profit-taking, long/short, is common at these points, independent of standard structures. This also applies to the high/low levels of the last trading day and the weekly versions of these levels.
The daily open helps identify possible SPOT/Futures gaps (depending on the asset, such as a missing futures market over the weekend: NAS/DAX).
Important:
The Lite Mode is designed to help traders reduce the chart to essential core functions (PVSRA/EMA/WIL/Psy/Daily Open/Hi-Lo) to apply classic TA effectively and strengthen a mixed analysis or challenge certain assumptions regarding confirmation and imbalance.
**Note:** It is recommended to additionally use a MACD indicator to identify potential trends and momentum.
- For example, a positive MACD trend supporting a 50 EMA breakout with a target of the 200 EMA under positive imbalance (standard mixed pattern).
To cater to personal preferences or trading strategies, it is possible to add custom EMA values to the indicator without the need for a second or third separate indicator.
All functions are fully customizable within the indicator settings.
BB NWOG - NDOG - RTH NDOGThe BB Gaps Indicator is a comprehensive tool designed for traders looking to track and visualize significant opening gaps within various market sessions, including:
• New Day Opening Gaps (NDOGs): These gaps form between the closing price of the previous day and the opening price of the new day, providing insight into potential liquidity pools or imbalances.
• RTH New Day Opening Gaps (RTH NDOGs): This focuses on gaps that occur during Regular Trading Hours (RTH), capturing gaps between session closures and the next day’s open, ideal for intraday traders.
• New Week Opening Gaps (NWOGs): These gaps track the price differential between the last candle of the week and the first candle of the new trading week, providing a broader market perspective for swing traders.
Key Features:
• Dynamic Plotting: Visualize gaps with customizable extensions, box fills, and mid-range (50%) or quarter-range (25%, 75%) levels.
• Sidecar Labels: Handy sidecar labels display the gap information right on the chart for easy reference.
• Multiple Session Support: Track gaps across different trading sessions (Daily, RTH, Weekly) with adjustable plot extensions and fill styles.
• Configurable Limits: Set a maximum number of gaps to plot, ensuring your chart remains clean and clutter-free.
Futures Daily Settlement PricesDaily settlement prices reflect the fair market value of the underlying commodity or financial instrument, as determined by buyers and sellers during the settlement period or “close”. The price quoted in the evening news for items like a bush of corn, a barrel of crude oil, or a 10-year U.S. Treasury note frequently use the settlement price for the corresponding futures product that day.
Settlement prices are used to mark traders’ positions to market daily, determining profits or losses. Daily settlement prices play a key role in facilitating price discovery, risk management, and market integrity.
This indicator plots up to 30 settlement prices as well as the date of settlement on your chart, on time frames under 1 hour.
Customizable line types, colors, and label colors.
Dynamic Price Oscillator [CHE]Dynamic Price Oscillator
Overview:
Welcome to the Dynamic Price Oscillator ! This indicator is designed to help traders identify potential trend reversals and divergences by comparing short-term and long-term price movements in percentage terms. It’s a powerful tool to enhance your trading strategies by spotting bullish and bearish divergences effectively.
Key Features:
Dynamic Oscillator Calculation: The DPO calculates the percentage difference between two EMAs (Exponential Moving Averages), offering insight into the relative strength of price movements.
Bullish & Bearish Divergence Detection:
The indicator highlights divergences between price and the oscillator, allowing you to identify potential reversal points with ease.
Long-Term Divergence Option: Enable or disable long-term divergences to focus on either short-term trends or broader market movements.
High/Low Markers:
Visual markers for significant peaks and troughs in the DPO, helping you quickly spot potential trade setups.
Custom Alerts: Set up alerts for both bullish and bearish divergence signals, ensuring you never miss an important opportunity.
How to Use:
Bullish Divergence: A bullish divergence occurs when price is making lower lows, but the DPO shows higher lows. This can indicate a potential reversal to the upside.
Bearish Divergence: A bearish divergence happens when price is making higher highs, but the DPO shows lower highs. This can signal a potential downside reversal.
Customizable Settings: Adjust the fast and slow EMA periods, smoothing factor, and divergence lookback to fit your personal trading style.
Ideal For:
Swing traders and day traders looking for early signs of market reversals.
Those who want a clear, visual representation of divergence between price and momentum.
Traders who appreciate flexibility with customizable parameters and built-in alerts.
Why Use Dynamic Price Oscillator ?
This indicator gives you the edge by providing a reliable way to measure price momentum and detect divergences that are often missed by other indicators. With the option to enable long-term divergences, you can tailor the indicator to fit both short-term and long-term strategies.
Give it a try and see how the Dynamic Price Oscillator can enhance your trading performance!
Best regards Chervolino
NY 5M ORB-COMEX OpenThe indicator is designed to display dynamic and static key market levels, including Opening Range Breakout (ORB) levels, Initial Daily Range (IDR), and other important session levels. It offers extensive customization to accommodate a variety of trading strategies and sessions, all while providing an adaptable user interface for traders to personalize their charts.
#### Key Features:
1. **Session Timings**:
- The script allows you to define regular and extended market hours. These timings can be adjusted using input fields for the market open range, session start, and session end times, with default settings for the U.S. stock market.
2. **Opening Range Breakout (ORB)**:
- You can enable or disable lines for the High/Low (H/L) and Open/Close (O/C) of the first 5-minute candle, which are key for ORB strategies.
- Optional middle lines are provided for both H/L and O/C, offering additional reference points for price action.
3. **Multiple Plot Styles and Line Types**:
- The script includes customization for line styles (Solid, Dashed, or Dotted) and colors for ORB, IDR, and session markers, giving traders flexibility in visualizing key market levels.
4. **Dynamic and Static Levels**:
- Users can choose to display either dynamic or static lines for additional price levels that extend throughout the session. Dynamic levels automatically adapt based on the session’s high and low, while static levels are manually configured.
- These lines can also display labels with the option to turn on or off their visibility.
5. **Custom Time Zone and Session Adjustments**:
- The script offers full flexibility in adjusting session timings based on different time zones, which is crucial for global traders working in different markets.
6. **Background Shading**:
- You can add shading between high and low levels for a more visual representation of ranges during specific sessions (e.g., ORB or IDR), and customize the color and transparency of this background.
7. **Comex Open Indicator**:
- An additional feature highlights the Comex Open, with optional labels, making it useful for traders who follow commodities markets.
#### Known Issues:
- The indicator requires a chart with intraday time frames (e.g., 1-minute, 5-minute) for accurate display.
- Extensive customization may lead to performance issues on lower-end machines or in high-frequency chart environments due to the number of drawn elements (lines, boxes, labels).
This indicator is suitable for advanced traders who need detailed control over their session timing and price level analysis, with multiple layers of customization for visualizing key market behaviors.
ICT Judas Swing | Flux Charts💎 GENERAL OVERVIEW
Introducing our new ICT Judas Swing Indicator! This indicator is built around the ICT's "Judas Swing" strategy. The strategy looks for a liquidity grab around NY 9:30 session and a Fair Value Gap for entry confirmation. For more information about the process, check the "HOW DOES IT WORK" section.
Features of the new ICT Judas Swing :
Implementation of ICT's Judas Swing Strategy
2 Different TP / SL Methods
Customizable Execution Settings
Customizable Backtesting Dashboard
Alerts for Buy, Sell, TP & SL Signals
📌 HOW DOES IT WORK ?
The strategy begins by identifying the New York session from 9:30 to 9:45 and marking recent liquidity zones. These liquidity zones are determined by locating high and low pivot points: buyside liquidity zones are identified using high pivots that haven't been invalidated, while sellside liquidity zones are found using low pivots. A break of either buyside or sellside liquidity must occur during the 9:30-9:45 session, which is interpreted as a liquidity grab by smart money. The strategy assumes that after this liquidity grab, the price will reverse and move in the opposite direction. For entry confirmation, a fair value gap (FVG) in the opposite direction of the liquidity grab is required. A buyside liquidity grab calls for a bearish FVG, while a sellside grab requires a bullish FVG. Based on the type of FVG—bullish for buys and bearish for sells—the indicator will then generate a Buy or Sell signal.
After the Buy or Sell signal, the indicator immediately draws the take-profit (TP) and stop-loss (SL) targets. The indicator has three different TP & SL modes, explained in the "Settings" section of this write-up.
You can set up alerts for entry and TP & SL signals, and also check the current performance of the indicator and adjust the settings accordingly to the current ticker using the backtesting dashboard.
🚩 UNIQUENESS
This indicator is an all-in-one suit for the ICT's Judas Swing concept. It's capable of plotting the strategy, giving signals, a backtesting dashboard and alerts feature. Different and customizable algorithm modes will help the trader fine-tune the indicator for the asset they are currently trading. Three different TP / SL modes are available to suit your needs. The backtesting dashboard allows you to see how your settings perform in the current ticker. You can also set up alerts to get informed when the strategy is executable for different tickers.
⚙️ SETTINGS
1. General Configuration
Swing Length -> The swing length for pivot detection. Higher settings will result in
FVG Detection Sensitivity -> You may select between Low, Normal, High or Extreme FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
2. TP / SL
TP / SL Method ->
a) Dynamic: The TP / SL zones will be auto-determined by the algorithm based on the Average True Range (ATR) of the current ticker.
b) Fixed : You can adjust the exact TP / SL ratios from the settings below.
Dynamic Risk -> The risk you're willing to take if "Dynamic" TP / SL Method is selected. Higher risk usually means a better winrate at the cost of losing more if the strategy fails. This setting is has a crucial effect on the performance of the indicator, as different tickers may have different volatility so the indicator may have increased performance when this setting is correctly adjusted.
Daily, Weekly, Monthly, and Quarterly High/Low LinesDescription:
This indicator draws the high and low lines for the previous day, week, month, and quarter on any timeframe chart, including lower timeframes such as minutes and hours. It allows traders to visualize key levels from higher timeframes directly on intraday charts, helping them identify potential support and resistance areas.
You can customize which lines to display—whether daily, weekly, monthly, or quarterly—and choose custom colors for each of these lines for better chart clarity. The lines are drawn using higher timeframe data, meaning that even when viewing minute or hourly charts, the lines will accurately represent the high and low of previous periods.
Features:
Customizable display: Choose whether to display Daily, Weekly, Monthly, or Quarterly lines.
Custom colors: Select colors for each timeframe’s lines for better visual clarity.
Works on all timeframes: Displays higher timeframe lines even on lower timeframes like minute and hourly charts.
Supports multiple strategies: Ideal for identifying key levels of support and resistance across multiple timeframes, whether you're a day trader or a swing trader.
How to Use:
Add the script to your chart.
Customize which lines (Daily, Weekly, Monthly, Quarterly) you want to display.
Pick custom colors for each timeframe to match your chart preferences.
Use the lines to identify potential areas of interest where the price may react based on previous high and low levels.
Ideal for:
Day traders looking for higher timeframe support and resistance on lower timeframes.
Swing traders who want to visualize important levels from multiple timeframes.
Traders of all experience levels who prefer customizable charts.
Tags:
Multi-timeframe
Support and Resistance
Day Trading
Swing Trading
Key Levels
Customizable Indicator
Technical Analysis
Intraday Trading
Higher Timeframes
Multi-timeframe Analysis
[Becak] - Swing Point Retracement & Prediction" - Swing Point Retracement & Prediction," is designed to identify swing points in price action, calculate retracement levels, and predict potential future price levels. It's a technical analysis tool that can help traders identify potential support and resistance levels, as well as possible reversal points.
HOW IT WORK
Swing Point Detection:
The indicator uses the ta.pivothigh() and ta.pivotlow() functions to identify swing highs and lows within a specified lookback period.
Retracement Levels:
When a new swing point is detected, the indicator calculates a retracement level based on the user-defined retracement percentage. It draws a dashed blue line at the retracement level, along with a yellow circle and a label showing the price.
Swing Point Labeling:
Swing highs are marked with a green "H" label and the price, and Swing lows are marked with a red "L" label and the price.
Price Prediction:
Based on the most recent swing point, the indicator attempts to predict the next potential high or low. It draws a purple dashed line extending into the future, indicating the predicted price level.
HOW TO USE THIS INDICATOR:
adjust the input parameters:
"Swing Point Lookback": Determines how far back the indicator looks to identify swing points. A larger value will result in fewer, more significant swing points.
"Retracement %": Sets the percentage for calculating retracement levels. 50% is a common Fibonacci retracement level, but you can adjust this based on your trading strategy.
"Prediction Length": Determines how far into the future the prediction line extends.
Interpret the results:
Use the swing point labels (H and L) to quickly identify recent highs and lows. The blue dashed lines and yellow circles indicate potential support or resistance levels based on the retracement percentage. The purple dashed line shows a potential future price target. This can be used to set profit targets or identify potential reversal zones.
Combine with other analysis:
This indicator works best when combined with other forms of analysis, such as trend lines, moving averages, or candlestick patterns.
Use the retracement levels and predictions as potential entry or exit points, but always confirm with other indicators or price action signals.