H-Infinity Volatility Filter [QuantAlgo]Introducing the H-Infinity Volatility Filter by QuantAlgo 📈💫
Enhance your trading/investing strategy with the H-Infinity Volatility Filter , a powerful tool designed to filter out market noise and identify clear trend signals in volatile conditions. By applying an advanced H∞ filtering process, this indicator assists traders and investors in navigating uncertain market conditions with improved clarity and precision.
🌟 Key Features:
🛠 Customizable Noise Parameters: Adjust worst-case noise and disturbance settings to tailor the filter to various market conditions. This flexibility helps you adapt the indicator to handle different levels of market volatility and disruptions.
⚡️ Dynamic Trend Detection: The filter identifies uptrends and downtrends based on the filtered price data, allowing you to quickly spot potential shifts in the market direction.
🎨 Color-Coded Visuals: Easily differentiate between bullish and bearish trends with customizable color settings. The indicator colors the chart’s candles according to the detected trend for immediate clarity.
🔔 Custom Alerts: Set alerts for trend changes, so you’re instantly informed when the market transitions from bullish to bearish or vice versa. Stay updated without constantly monitoring the charts.
📈 How to Use:
✅ Add the Indicator: Add the H-Infinity Volatility Filter to your favourites and apply it to your chart. Customize the noise and disturbance parameters to match the volatility of the asset you are trading/investing. This allows you to optimize the filter for your specific strategy.
👀 Monitor Trend Shifts: Watch for clear visual signals as the filter detects uptrends or downtrends. The color-coded candles and line plots help you quickly assess market conditions and potential reversals.
🔔 Set Alerts: Configure alerts to notify you when the trend changes, allowing you to react quickly to potential market shifts without needing to manually track price movements.
🌟 How It Works and Academic Background:
The H-Infinity Volatility Filter is built on the foundations of H∞ (H-infinity) control theory , a mathematical framework originating from the field of engineering and control systems. Developed in the 1980s by notable engineers such as George Zames and John C. Doyle , this theory was designed to help systems perform optimally under uncertain and noisy conditions. H∞ control focuses on minimizing the worst-case effects of disturbances and noise, making it a powerful tool for managing uncertainty in complex environments.
In financial markets, where unpredictable price fluctuations and noise often obscure meaningful trends, this same concept can be applied to price data to filter out short-term volatility. The H-Infinity Volatility Filter adopts this approach, allowing traders and investors to better identify potential trends by reducing the impact of random price movements. Instead of focusing on precise market predictions, the filter increases the probability of highlighting significant trends by smoothing out market noise.
This indicator works by processing historical price data through an H∞ filter that continuously adjusts based on worst-case noise levels and disturbances. By considering several past states, it estimates the current price trend while accounting for potential external disruptions that might influence price behavior. Parameters like "worst-case noise" and "disturbance" are user-configurable, allowing traders to adapt the filter to different market conditions. For example, in highly volatile markets, these parameters can be adjusted to manage larger price swings, while in more stable markets, they can be fine-tuned for smoother trend detection.
The H-Infinity Volatility Filter also incorporates a dynamic trend detection system that classifies price movements as bullish or bearish. It uses color-coded candles and plots—green for bullish trends and red for bearish trends—to provide clear visual cues for market direction. This helps traders and investors quickly interpret the trend and act on potential signals. While the indicator doesn’t guarantee accuracy in trend prediction, it significantly reduces the likelihood of false signals by focusing on meaningful price changes rather than random fluctuations.
How It Can Be Applied to Trading/Investing:
By applying the principles of H∞ control theory to financial markets, the H-Infinity Volatility Filter provides traders and investors with a sophisticated tool that manages uncertainty more effectively. Its design makes it suitable for use in a wide range of markets—whether in fast-moving, volatile environments or calmer conditions.
The indicator is versatile and can be used in both short-term trading and medium to long-term investing strategies. Traders can tune the filter to align with their specific risk tolerance, asset class, and market conditions, making it an ideal tool for reducing the effects of market noise while increasing the probability of detecting reliable trend signals.
For investors, the filter can help in identifying medium to long-term trends by filtering out short-term price swings and focusing on the broader market direction. Whether applied to stocks, forex, commodities, or cryptocurrencies, the H-Infinity Volatility Filter helps traders and investors interpret market behavior with more confidence by offering a more refined view of price movements through its noise reduction techniques.
Disclaimer:
The H-Infinity Volatility Filter is designed to assist in market analysis by filtering out noise and volatility. It should not be used as the sole tool for making trading or investment decisions. Always incorporate other forms of analysis and risk management strategies. No statements or signals from this indicator or us should be considered financial advice. Past performance is not indicative of future results.
Educational
Interest Rate Trading (Manually Added Rate Decisions) [TANHEF]Interest Rate Trading: How Interest Rates Can Guide Your Next Move.
How were interest rate decisions added?
All interest rate decision dates were manually retrieved from the 'Record of Policy Actions' and 'Minutes of Actions' on the Federal Reserve's website due to inconsistent dates from other sources. These were manually added as Pine Script currently only identifies rate changes, not pauses.
█ Simple Explanation:
This script is designed for analyzing and backtesting trading strategies based on U.S. interest rate decisions which occur during Federal Open Market Committee (FOMC) meetings, to make trading decisions. No trading strategy is perfect, and it's important to understand that expectations won't always play out. The script leverages historical interest rate changes, including increases, decreases, and pauses, across multiple economic time periods from 1971 to the present. The tool integrates two key data sources for interest rates—USINTR and FEDFUNDS—to support decision-making around rate-based trades. The focus is on identifying opportunities and tracking trades driven by interest rate movements.
█ Interest Rate Decision Sources:
As noted above, each decision date has been manually added from the 'Record of Policy Actions' and 'Minutes of Actions' documents on the Federal Reserve's website. This includes +50 years of more than 600 rate decisions.
█ Interest Rate Data Sources:
USINTR: Reflects broader U.S. interest rate trends, including Treasury yields and various benchmarks. This is the preferred option as it corresponds well to the rate decision dates.
FEDFUNDS: Tracks the Federal Funds Rate, which is a more specific rate targeted by the Federal Reserve. This does not change on the exact same days as the rate decisions that occur at FOMC meetings.
█ Trade Criteria:
A variety of trading conditions are predefined to suit different trading strategies. These conditions include:
Increase/Decrease: Standard rate increases or decreases.
Double/Triple Increase/Decrease: A series of consecutive changes.
Aggressive Increase/Decrease: Rate changes that exceed recent movements.
Pause: Identification of no changes (pauses) between rate decisions, including double or triple pauses.
Complex Patterns: Combinations of pauses, increases, or decreases, such as "Pause after Increase" or "Pause or Increase."
█ Trade Execution and Exit:
The script allows automated trade execution based on selected criteria:
Auto-Entry: Option to enter trades automatically at the first valid period.
Max Trade Duration: Optional exit of trades after a specified number of bars (candles).
Pause Days: Minimum duration (in days) to validate rate pauses as entry conditions. This is especially useful for earlier periods (prior to the 2000s), where rate decisions often seemed random compared to the consistency we see today.
█ Visualization:
Several visual elements enhance the backtesting experience:
Time Period Highlighting: Economic time periods are visually segmented on the chart, each with a unique color. These periods include historical phases such as "Stagflation (1971-1982)" and "Post-Pandemic Recovery (2021-Present)".
Trade and Holding Results: Displays the profit and loss of trades and holding results directly on the chart.
Interest Rate Plot: Plots the interest rate movements on the chart, allowing for real-time tracking of rate changes.
Trade Status: Highlights active long or short positions on the chart.
█ Statistics and Criteria Display:
Stats Table: Summarizes trade results, including wins, losses, and draw percentages for both long and short trades.
Criteria Table: Lists the selected entry and exit criteria for both long and short positions.
█ Economic Time Periods:
The script organizes interest rate decisions into well-defined economic periods, allowing traders to backtest strategies specific to historical contexts like:
(1971-1982) Stagflation
(1983-1990) Reaganomics and Deregulation
(1991-1994) Early 1990s (Recession and Recovery)
(1995-2001) Dot-Com Bubble
(2001-2006) Housing Boom
(2007-2009) Global Financial Crisis
(2009-2015) Great Recession Recovery
(2015-2019) Normalization Period
(2019-2021) COVID-19 Pandemic
(2021-Present) Post-Pandemic Recovery
█ User-Configurable Inputs:
Rate Source Selection: Choose between USINTR or FEDFUNDS as the primary interest rate source.
Trade Criteria Customization: Users can select the criteria for long and short trades, specifying when to enter or exit based on changes in the interest rate.
Time Period: Select the time period that you want to isolate testing a strategy with.
Auto-Entry and Pause Settings: Options to automatically enter trades and specify the number of days to confirm a rate pause.
Max Trade Duration: Limits how long trades can remain open, defined by the number of bars.
█ Trade Logic:
The script manages entries and exits for both long and short trades. It calculates the profit or loss percentage based on the entry and exit prices. The script tracks ongoing trades, dynamically updating the profit or loss as price changes.
█ Examples:
One of the most popular opinions is that when rate starts begin you should sell, then buy back in when rate cuts stop dropping. However, this can be easily proven to be a difficult task. Predicting the end of a rate cut is very difficult to do with the the exception that assumes rates will not fall below 0.25%.
2001-2009
Trade Result: +29.85%
Holding Result: -27.74%
1971-2024
Trade Result: +533%
Holding Result: +5901%
█ Backtest and Real-Time Use:
This backtester is useful for historical analysis and real-time trading. By setting up various entry and exit rules tied to interest rate movements, traders can test and refine strategies based on real historical data and rate decision trends.
This powerful tool allows traders to customize strategies, backtest them through different economic periods, and get visual feedback on their trading performance, helping to make more informed decisions based on interest rate dynamics. The main goal of this indicator is to challenge the belief that future events must mirror the 2001 and 2007 rate cuts. If everyone expects something to happen, it usually doesn’t.
ETH Signal 15m
This strategy uses the Supertrend indicator combined with RSI to generate buy and sell signals, with stop loss (SL) and take profit (TP) conditions based on ATR (Average True Range). Below is a detailed explanation of each part:
1. General Information BINANCE:ETHUSDT.P
Strategy Name: "ETH Signal 15m"
Designed for use on the 15-minute time frame for the ETH pair.
Default capital allocation is 15% of total equity for each trade.
2. Backtest Period
start_time and end_time: Define the start and end time of the backtest period.
start_time = 2024-08-01: Start date of the backtest.
end_time = 2054-01-01: End date of the backtest.
The strategy will only run when the current time falls within this specified range.
3. Supertrend Indicator
Supertrend is a trend-following indicator that provides buy or sell signals based on the direction of price changes.
factor = 2.76: The multiplier used in the Supertrend calculation (increasing this value makes the Supertrend less sensitive to price movements).
atrPeriod = 12: Number of periods used to calculate ATR.
Output:
direction: Determines the buy/sell direction based on Supertrend.
If direction decreases, it signals a buy (Long).
If direction increases, it signals a sell (Short).
4. RSI Indicator
RSI (Relative Strength Index) is a momentum indicator, often used to identify overbought or oversold conditions.
rsiLength = 12: Number of periods used to calculate RSI.
rsiOverbought = 70: RSI level considered overbought.
rsiOversold = 30: RSI level considered oversold.
5. Entry Conditions
Long Entry:
Supertrend gives a buy signal (ta.change(direction) < 0).
RSI must be below the overbought level (rsi < rsiOverbought).
Short Entry:
Supertrend gives a sell signal (ta.change(direction) > 0).
RSI must be above the oversold level (rsi > rsiOversold).
The strategy will only execute trades if the current time is within the backtest period (in_date_range).
6. Stop Loss (SL) and Take Profit (TP) Conditions
ATR (Average True Range) is used to calculate the distance for Stop Loss and Take Profit based on price volatility.
atr = ta.atr(atrPeriod): ATR is calculated using 12 periods.
Stop Loss and Take Profit are calculated as follows:
Long Trade:
Stop Loss: Set at close - 4 * atr (current price minus 4 times the ATR).
Take Profit: Set at close + 2 * atr (current price plus 2 times the ATR).
Short Trade:
Stop Loss: Set at close + 4 * atr (current price plus 4 times the ATR).
Take Profit: Set at close - 2.237 * atr (current price minus 2.237 times the ATR).
Summary:
This strategy enters a Long trade when the Supertrend indicates an upward trend and RSI is not in the overbought region. Conversely, a Short trade is entered when Supertrend signals a downtrend, and RSI is not oversold.
The trade is exited when the price reaches the Stop Loss or Take Profit levels, which are determined based on price volatility (ATR).
Disclaimer:
The content provided in this strategy is for informational and educational purposes only. It is not intended as financial, investment, or trading advice. Trading in cryptocurrency, stocks, or any financial markets involves significant risk, and you may lose more than your initial investment. Past performance is not indicative of future results, and no guarantee of profit can be made. You should consult with a professional financial advisor before making any investment decisions. The creator of this strategy is not responsible for any financial losses or damages incurred as a result of following this strategy. All trades are executed at your own risk.
The Vet [TFO]In collaboration with @mickey1984 , "The Vet" was created to showcase various statistical measures of price.
The first core measurement utilizes the Defining Range (DR) concept on a weekly basis. For example, we might track the session from 09:30-10:30 on Mondays to get the DR high, DR low, IDR high, and IDR low. The DR high and low are the highest high and lowest low of the session, respectively, whereas the IDR high and low would be the highest candle body level (open or close) and lowest candle body level, respectively, during this window of time.
From this data, we use the IDR range (from IDR high to IDR low) to extrapolate several, custom projections of this range from its high and low so that we can collect data on how often these levels are hit, from the close of one DR session to the open of the next one.
This information is displayed in the Range Projection Table with a few main columns of information:
- The leftmost column indicates each level that is projected from the IDR range, where (+) indicates a projection above the range high, and (-) indicates a projection below the range low
- The "First Touch" column indicates how often price has reached these levels in the past at any point until the next weekly DR session
- The "Other Side Touch" column indicates how often price has reached a given level, then reversed to hit the opposing level of the same magnitude. For example, the above chart shows that if price hit the +1 projection, ~33% of instances also hit the -1 projection before the next weekly DR session. For this reason, the probabilities will be the same for projection levels of the same but opposite magnitude (+1 would be the same as -1, +3 would be the same as -3, etc.)
- The "Next Level Touch" column provides insight into how often price reaches the next greatest projection level. For example, in the above chart, the red box in the projection table is highlighting that once price hits the -2 projection, ~86% of instances reached the -3 projection before the next weekly DR session
- The last columns, "Within ADR" and "Within AWR" show if any of the projection levels are within the current Average Daily Range, or Average Weekly Range, respectively, which can both be enabled from the Average Range section
The next section, Distributions, primarily measures and displays the average price movements from specified intraday time windows. The option to Show Distribution Boxes will overlay a box showing each respective session's average range, while adjusting itself to encapsulate the price action of that session until the average range is met/exceeded. Users can choose to display the range average by Day of Week, or the Total average from all days. Values for average ranges can either be shown as point or percent values. We can also show a table to display this information about price's average ranges for each given session, and show labels displaying the current range vs its average.
The final section, Average Range, simply offers the ability to plot the Average Daily Range (ADR) and Average Weekly Range (AWR) of a specified length. An ADR of 10 for example would take the average of the last 10 days, from high to low, while an AWR of 10 would take the average of the last 10 weeks (if the current chart provides enough data to support this). Similarly, we can also show the Average Range Table to indicate what these ADR/AWR values are, what our current range is and how it compares to those values, as well as some simple statistics on how often these levels are hit. As an example, "Hit +/- ADR: 40%/35%" in this table would indicate that price has hit the upper ADR limit 40% of the time, and the lower limit 35% of the time, for the amount of data available on the current chart.
CRT overlay 2Overview
The "CRT overlay 2" is designed to plot key levels and detect market patterns based on the 4-hour candle around a specific start time (5AM). It incorporates elements like the high, low, and 50% level of a key 4-hour candle, and also tracks Fair Value Gaps (FVGs) to help identify potential price imbalances in the market. The indicator is primarily based on Candle Range Theory (CRT), which focuses on the significance of price movements within key candles and their relation to future market activity.
How the Script is Made
Key Components:
4-hour CRT Candle: The script identifies a specific 4-hour candle using a customizable start time (by default, it’s set to the 5 AM candle).
High, Low, and Midline Levels: For this selected 4-hour candle, the script calculates and draws the high, low, and 50% midpoint. These levels are used as reference points for further analysis.
Fair Value Gaps (FVGs): The script detects price gaps between candles (where the third candle does not fully overlap the first), which can act as areas of potential support or resistance. The user can toggle the plotting of midlines for these gaps.
Time Restrictions: The script limits its key functionalities (e.g., detecting highs, lows, and gaps) to a specific time window, between the target hour and the end hour (e.g., 5 AM to 10 AM).
Extensions and Visibility:
The plotted high, low, and midlines of the 4-hour candle extend a certain number of bars forward for visibility.
These lines stop extending after the end of the defined session (e.g., after 10 AM).
Wick Length Calculation:
The script calculates the length of a candle's wick as a percentage of the total range of the candle, which may provide insights into market rejections or momentum shifts.
Fair Value Gap (FVG) Detection:
The script detects both bullish and bearish FVGs based on a 3-candle pattern, plotting the gaps with customizable colors. The FVGs are then drawn on the chart for visual guidance.
Midlines of these gaps can also be drawn, and outdated or filled FVGs are removed after a set number of bars or if they are filled by price action.
How to Use It
Indicator Setup:
After adding the indicator to your chart, you will be able to customize settings for your desired timezone and the target 4-hour candle. By default, the script is set to the 5 AM candle, but this can be changed to any hour depending on your analysis needs.
The "CRT Candle Start" and "CRT Candle End" allow you to define the time range when the high, low, and midlines will be plotted and tracked.
Key Levels:
The script draws white lines for the high and low of the selected 4-hour candle, along with a green dashed line for the 50% mid-level. These lines serve as significant support and resistance levels.
During the defined session (e.g., 5 AM to 10 AM), these lines will actively extend and be visible on your chart.
After the session ends, these lines stop extending but remain on the chart for reference.
Fair Value Gaps (FVGs):
The script automatically identifies gaps between candles and plots them on the chart with colored boxes (green for bullish gaps, orange for bearish gaps). These areas can serve as potential reversal or continuation zones.
You can choose whether or not to plot a dashed line at the 50% mark of these FVGs. This midline can be important for targeting partial fills or retracements.
Sweep Alerts and Higher Highs/Lower Lows:
The script monitors price action to detect when the market forms the very first higher high or lower low within the high and low range of the 4-hour candle. When a higher high or lower low is detected, the script plots a yellow label on the chart to mark the event and triggers an alert.
These events can indicate potential sweep patterns or liquidity grabs.
FVG Removal:
The script includes a feature to automatically remove FVGs when they are filled by price action or after they become too old (based on a user-defined number of bars). This helps keep the chart clean for further analysis without clutter from outdated information.
Practical Application
Intraday Traders: The script helps traders focus on specific time windows (like 5 AM to 10 AM) and provides key reference levels (high, low, midline) that can guide trading decisions. Breaks and retests of these levels are common trading strategies.
Market Reversal and Continuation: The detection of Fair Value Gaps and higher highs/lower lows within the defined range can be useful for identifying potential reversal points or continuation signals in the market.
Candle Range Theory (CRT): The script is rooted in CRT, which emphasizes the importance of high and low levels of key candles for future price action. This theory is often used by traders looking to identify support/resistance zones or liquidity grabs in the market.
In summary, CRT overlay 2 is designed for precision trading around key timeframes, focusing on levels from the 4-hour candle and incorporating Fair Value Gaps for potential trade entries or exits. Its customizable inputs make it flexible for various strategies, and its focus on time-based levels is aligned with concepts in intraday trading and market structure analysis.
itradesize /\ Previous Liquidity x ICTI’d like to introduce a clean and simple RTH gap and liquidity levels indicator with additional Asian and London ranges, along with standard deviation levels and many customizable options.
Previous D/W/M highs and lows are areas where liquidity tends to accumulate. This is because many traders place stop-loss orders around these levels, creating a concentration of buy stops above the previous day's high and sell stops below the previous day's low. High-frequency trading algorithms and institutional traders often target these areas to capture liquidity.
What the indicator could show in summary?
- Regular trading hours gap with deviations
- Asia with deviations (lines or boxes)
- London with deviations (lines or boxes)
- Weekdays on chart
- 3 AM candle marker
- Previous D/W/M levels
- Important opening times (08:00, 09:30, 10:00, 14:00, 00:00, 18:00)
- Daily separators
By marking out the previous day's highs and lows, traders can create a framework for their trading day. This helps in identifying potential setups and understanding where significant price action might occur. It also aids in filtering out noise and focusing on the most relevant price levels.
These levels can also act as potential reversal points. When the market reaches a previous high or low, it might reverse direction, especially if it has raided the liquidity resting there. This concept is part of a strategy where traders look for the market to raid these levels and then reverse, providing trading opportunities
The indicator shows previous liquidity levels on a daily, weekly, and monthly basis. It also displays opening times at 8:30, 9:30-10:00, 14:00-00:00, and 18:00. Opening times are crucial in trading because they help define specific periods when market activity is expected to be higher, which can lead to better trading opportunities. The script has been made mostly for indices.
You can create various entry and exit strategies based on the indicator. Please remember, that adequate knowledge of ICT is necessary for this to be beneficial.
You might wonder why only these times are shown. This is because these are the times when the futures market is active or should be active. It's important to note that opening times can vary between different asset classes.
18:00 A new daily candle open
00:00 Midnight open
02:00 New 4-hour candle open
08:30 High-impact news
09:30 NY Equities open
10:00 New 4-hour candle open
The concept of "Asian Killzone Standard Deviations" involves using the Asian trading session's price range to project potential price movements during subsequent trading sessions, such as the London or New York sessions. This is done by calculating standard deviations from the Asian range, which can help traders identify potential support and resistance levels.
You can create a complete model by exclusively focusing on the Asian time zone. Deviations within this zone may have varying impacts on future price movements, and the Interbank Price Delivery Agreement (IPDA) often reflects Asia's high, close, and low prices.
A similar approach can be taken with the London time zone. The standard deviation levels within each zone could potentially serve as support or indicate reversals, including liquidity hunts. It's important to backtest these ideas to gain reliable insights into when and where to apply them.
* Asian Range: This is the price range established during the Asian trading session. It serves as a reference point for calculating standard deviations.
* London Range: The same applies to the London range as well. Combine standard deviation projections with other technical analysis tools, such as order blocks or fair value gaps, to enhance accuracy.
* Standard Deviations: These are statistical measures that indicate the amount of variation or dispersion from the average. In trading, they are used to project potential price levels beyond the current range.
You can also use regular trading hours gap as a standalone model. The 4 STDV and 2.5 STDV levels are important for determining the high or low of the current price action.
The RTH gap is created when there is a difference between the closing price of a market at the end of one trading day and the opening price at the start of the next trading day. This gap can be upward (gap higher), downward (gap lower), or unchanged. It is significant because it often indicates market sentiment and can create inefficiencies that traders look to exploit.
Alternatively, you can combine these elements to create a complete strategy for different scenarios.
ICT Indicator with Paper TradingThe strategy implemented in the provided Pine Script is based on **ICT (Inner Circle Trader)** concepts, particularly focusing on **order blocks** to identify key levels for potential reversals or continuations in the market. Below is a detailed description of the strategy:
### 1. **Order Block Concept**
- **Order blocks** are price levels where large institutional orders accumulate, often leading to a reversal or continuation of price movement.
- In this strategy, **order blocks** are identified when:
- The high of the current bar crosses above the high of the previous bar (for bullish order blocks).
- The low of the current bar crosses below the low of the previous bar (for bearish order blocks).
### 2. **Buy and Sell Signal Generation**
The core of the strategy revolves around identifying the **breakout** of order blocks, which is interpreted as a signal to either enter or exit trades:
- **Buy Signal**:
- Generated when the closing price crosses **above** the last identified bullish order block (i.e., the highest point during the last upward crossover of highs).
- This signals a potential upward trend, and the strategy enters a long position.
- **Sell Signal**:
- Generated when the closing price crosses **below** the last identified bearish order block (i.e., the lowest point during the last downward crossover of lows).
- This signals a potential downward trend, and the strategy exits any open long positions.
### 3. **Strategy Execution**
The strategy is executed using the `strategy.entry()` and `strategy.close()` functions:
- **Enter Long Positions**: When a buy signal is generated, the strategy opens a long position (buying).
- **Exit Positions**: When a sell signal is generated, the strategy closes the long position.
### 4. **Visual Indicators on the Chart**
To make the strategy easier to follow visually, buy and sell signals are marked directly on the chart:
- **Buy signals** are indicated with a green upward-facing triangle above the bar where the signal occurred.
- **Sell signals** are indicated with a red downward-facing triangle below the bar where the signal occurred.
### 5. **Key Elements of the Strategy**
- **Trend Continuation and Reversals**: This strategy is attempting to capture trends based on the breakout of important price levels (order blocks). When the price breaks above or below a significant order block, it is expected that the market will continue in that direction.
- **Order Block Strength**: Order blocks are considered strong areas where price action could reverse or accelerate, based on how institutional investors place large orders.
### 6. **Paper Trading**
This script uses **paper trading** to simulate trades without actual money being involved. This allows users to backtest the strategy, seeing how it would have performed in historical market conditions.
### 7. **Basic Strategy Flow**
1. **Order Block Identification**: The script constantly monitors price movements to detect bullish and bearish order blocks.
2. **Buy Signal**: If the closing price crosses above the last order block high, the strategy interprets it as a sign of bullish momentum and enters a long position.
3. **Sell Signal**: If the closing price crosses below the last order block low, it signals a bearish momentum, and the strategy closes the long position.
4. **Visual Representation**: Buy and sell signals are displayed on the chart for easy identification.
### **Advantages of the Strategy:**
- **Simple and Clear Rules**: The strategy is based on clearly defined rules for identifying order blocks and trade signals.
- **Effective for Trend Following**: By focusing on breakouts of order blocks, this strategy attempts to capture strong trends in the market.
- **Visual Aids**: The plot of buy/sell signals helps traders to quickly see where trades would have been placed.
### **Limitations:**
- **No Shorting**: This strategy only enters long positions (buying). It does not account for shorting opportunities.
- **No Risk Management**: There are no built-in stop losses, trailing stops, or profit targets, which could expose the strategy to large losses during adverse market conditions.
- **Whipsaws in Range Markets**: The strategy could produce false signals in sideways or choppy markets, where breakouts are short-lived and prices quickly reverse.
### **Overall Strategy Objective:**
The goal of the strategy is to enter into long positions when the price breaks above a significant order block, and exit when it breaks below. The strategy is designed for trend-following, with the assumption that price will continue in the direction of the breakout.
Let me know if you'd like to enhance or modify this strategy further!
Median Kijun-Sen [InvestorUnknown]The Median Kijun-Sen is a versatile technical indicator designed for both trend-following strategies and long-term market valuation. It incorporates various display modes and includes a backtest mode to simulate its performance on historical price action.
Key Features:
1. Trend-Following and Long-Term Valuation:
The indicator is ideal for trend-following strategies, helping traders identify entry and exit points based on the relationship between price and the Kijun-Sen calculated from median price (customizable price source).
With longer-term settings, it can also serve as a valuation tool (in oscillator display mode), assisting in identifying potential overbought or oversold conditions over extended timeframes.
2. Display Modes:
The indicator can be displayed in three main modes, each serving a different purpose:
Overlay Mode : Plots the Median Kijun-Sen directly over the price chart, useful for visualizing trends relative to price action.
Oscillator Mode : Displays the oscillator that compares the current price to the Median Kijun-Sen, providing a clearer signal of trend strength and direction
Backtest Mode : Simulates the performance of the indicator with different settings on historical data, offering traders a way to evaluate its reliability and effectiveness without needing TradingView's built-in strategy tool
3. Backtest Functionality:
The inbuilt backtest mode enables users to evaluate the indicator's performance across historical data by simulating long and short trades. Users can customize the start and end dates for the backtest, as well as specify whether to allow long & short, long only, or short only signals.
This backtest functionality mimics TradingView's strategy feature, allowing users to test the effectiveness of their chosen settings before applying them to live markets.
equity(series int sig, series float r, startDate, string signals, bool endDate_bool) =>
if time >= startDate and endDate_bool
float a = 0
if signals == "Long & Short"
if sig > 0
a := r
else
a := -r
else if signals == "Long Only"
if sig > 0
a := r
else if signals == "Short Only"
if sig < 0
a := -r
else
runtime.error("No Signal Type found")
var float e = na
if na(e )
e := 1
else
e := e * (1 + a)
float r = 0.0
bool endDate_bool = use_endDate ? (time <= endDate ? true : false) : true
float eq = 1.0
if disp_mode == "Backtest Mode"
r := (close - close ) / close
eq := equity(sig, r, startDate, signals, endDate_bool)
4. Hint Table for Pane Suggestions:
An inbuilt hint table guides users on how to best visualize the indicator in different display modes:
For Overlay Mode, it is recommended to use the same pane as the price action.
For Oscillator and Backtest Modes, it is advised to plot them in a separate pane for better clarity.
This table also provides step-by-step instructions on how to move the indicator to a different pane and adjust scaling, making it user-friendly.
Potential Weakness
One of the key drawbacks is the indicator’s tendency to produce false signals during price consolidations, where price action lacks clear direction and may trigger unnecessary trades. This is particularly noticeable in markets with low volatility.
Alerts
The indicator includes alert conditions for when it crosses above or below key levels, enabling traders to receive notifications of LONG or SHORT signals.
Summary
The Median Kijun-Sen is a highly adaptable tool that serves multiple purposes, from trend-following to long-term valuation. With its customizable settings, backtest functionality, and built-in hints, it provides traders with valuable insights into market trends while allowing them to optimize the indicator to their specific strategy.
This versatility, however, comes with the potential weakness of false signals during consolidation phases, so it's most effective in trending markets.
Bull Trade Zone IndicatorThe BULL TRADE ZONE INDICATOR is a powerful trading tool designed to help traders identify optimal entry and exit points in the market. This script uses a combination of two Exponential Moving Averages (EMA) and the Average True Range (ATR) to generate buy and sell signals, making it ideal for traders looking to enhance their trading strategy with precise and timely alerts.
Key Features:
Dynamic Buy and Sell Signals: The indicator generates buy signals when the 14 EMA crosses above the 150 EMA and the price is trading above the 150 EMA. Sell signals are generated when the 14 EMA crosses below the 150 EMA and the price is below the 150 EMA, providing clear guidance on potential market trends.
Built-In Stop-Loss Levels: Automatic stop-loss levels are calculated based on the ATR, helping traders manage risk effectively by setting realistic stop-loss points based on market volatility.
Minimal Chart Clutter: To maintain a clean and focused trading environment, the 14 EMA and 150 EMA values are privately used within the script without being visibly plotted on the chart, ensuring that the focus remains on actionable signals.
Clear Visual Alerts: Buy and sell signals are highlighted directly on the chart with intuitive labels, making it easy to spot trading opportunities at a glance.
Who Is This For?
This indicator is suitable for traders of all levels—whether you are a beginner looking for a straightforward trading tool or an experienced trader seeking to add an additional layer of confirmation to your strategy. The BULL TRADE ZONE INDICATOR helps you stay ahead of the market by precisely identifying key trading zones.
How to Use:
Add the indicator to your chart.
Monitor the buy and sell signals generated by the script.
Use the plotted stop-loss levels to manage your trades effectively.
Customize your trading strategy using the indicator’s signals to align with your risk appetite and market view.
Disclaimer:
This indicator is a technical analysis tool designed to assist with decision-making. It should be used alongside other analyses and strategies, not as the sole basis for trading decisions. Always perform your due diligence and risk management when trading.
Relative volume zone + Smart Order Flow Dynamic S/ROverview:
The Relative Volume Zone + Smart Order Flow with Dynamic S/R indicator is designed to help traders identify key trading opportunities by combining multiple technical components. This script integrates relative volume analysis, order flow detection, VWAP, RSI filtering, and dynamic support and resistance levels to offer a comprehensive view of the market conditions. It is particularly effective on shorter timeframes (M5, M15), making it suitable for scalping and day trading strategies.
Key Components:
1. Relative Volume Zones:
• The script calculates the relative volume by comparing the current volume with the average volume over a defined lookback period (volLookback). When the relative volume exceeds a specified multiplier (volMultiplier), it indicates a high volume zone, signaling potential accumulation or distribution areas.
• Purpose: Identifies high-volume trading zones that may act as significant support or resistance, indicating possible entry or exit points.
2. Smart Order Flow Analysis:
• The indicator uses Volume Delta (the difference between buying and selling volume) and a Cumulative Delta to detect order imbalances in the market.
• Order Imbalance is identified using a moving average of the Volume Delta (orderImbalance), which helps highlight hidden buying or selling pressure.
• Purpose: Reveals market sentiment by showing whether buyers or sellers dominate the market, aiding in the identification of trend reversals or continuations.
3. VWAP (Volume Weighted Average Price):
• VWAP is calculated over a default daily length (vwapLength) to show the average price a security has traded at throughout the day, based on both volume and price.
• Purpose: Provides insight into the fair value of the asset, indicating whether the market is in an accumulation or distribution phase.
4. RSI (Relative Strength Index) Filter:
• RSI is used to filter buy and sell signals, preventing trades in overbought or oversold conditions. It is calculated using a specified period (rsiPeriod).
• Purpose: Reduces false signals and improves trade accuracy by only allowing trades when RSI conditions align with volume and order flow signals.
5. Dynamic Support and Resistance Levels:
• The script dynamically plots support and resistance levels based on recent swing highs and lows (swingLookback).
• Purpose: Identifies potential reversal zones where price action may change direction, allowing for more precise entry and exit points.
How It Works:
• Buy Signal:
A buy signal is generated when:
• The price enters a high-volume zone.
• The price crosses above a 5-period moving average.
• The cumulative delta shows more buying pressure (cumulativeDelta > SMA of cumulativeDelta).
• The RSI is below 70 (not in overbought conditions).
• Sell Signal:
A sell signal is generated when:
• The price enters a high-volume zone.
• The price crosses below a 5-period moving average.
• The cumulative delta shows more selling pressure (cumulativeDelta < SMA of cumulativeDelta).
• The RSI is above 30 (not in oversold conditions).
• Dynamic Support and Resistance Lines:
Drawn based on recent swing highs and lows, these lines provide context for potential price reversals or breakouts.
• VWAP and Order Imbalance Lines:
Plotted to show the average traded price and highlight order flow shifts, helping to validate buy/sell signals.
How to Use:
1. Apply the Indicator:
Add the script to your chart and adjust the settings to match your trading style and preferred timeframe (optimized for M5/M15).
2. Interpret the Signals:
Use the buy and sell signals in conjunction with dynamic support/resistance, VWAP, and order imbalance lines to identify high-probability trade setups.
3. Monitor Alerts:
Set alerts for significant order flow events to receive notifications when there is a positive or negative order imbalance, indicating potential market shifts.
What Makes It Unique:
This script is unique because it combines multiple market analysis tools — relative volume zones, smart order flow, VWAP, RSI filtering, and dynamic support/resistance — to provide a well-rounded, multi-dimensional view of the market. This integration allows traders to make more informed decisions by validating signals across various indicators, enhancing overall trading accuracy and effectiveness.
Relative volume zone + Smart Order Flow Dynamic S/ROverview:
The Relative Volume Zone + Smart Order Flow with Dynamic S/R indicator is designed to help traders identify key trading opportunities by combining multiple technical components. This script integrates relative volume analysis, order flow detection, VWAP, RSI filtering, and dynamic support and resistance levels to offer a comprehensive view of the market conditions. It is particularly effective on shorter timeframes (M5, M15), making it suitable for scalping and day trading strategies.
Key Components:
1. Relative Volume Zones:
• The script calculates the relative volume by comparing the current volume with the average volume over a defined lookback period (volLookback). When the relative volume exceeds a specified multiplier (volMultiplier), it indicates a high volume zone, signaling potential accumulation or distribution areas.
• Purpose: Identifies high-volume trading zones that may act as significant support or resistance, indicating possible entry or exit points.
2. Smart Order Flow Analysis:
• The indicator uses Volume Delta (the difference between buying and selling volume) and a Cumulative Delta to detect order imbalances in the market.
• Order Imbalance is identified using a moving average of the Volume Delta (orderImbalance), which helps highlight hidden buying or selling pressure.
• Purpose: Reveals market sentiment by showing whether buyers or sellers dominate the market, aiding in the identification of trend reversals or continuations.
3. VWAP (Volume Weighted Average Price):
• VWAP is calculated over a default daily length (vwapLength) to show the average price a security has traded at throughout the day, based on both volume and price.
• Purpose: Provides insight into the fair value of the asset, indicating whether the market is in an accumulation or distribution phase.
4. RSI (Relative Strength Index) Filter:
• RSI is used to filter buy and sell signals, preventing trades in overbought or oversold conditions. It is calculated using a specified period (rsiPeriod).
• Purpose: Reduces false signals and improves trade accuracy by only allowing trades when RSI conditions align with volume and order flow signals.
5. Dynamic Support and Resistance Levels:
• The script dynamically plots support and resistance levels based on recent swing highs and lows (swingLookback).
• Purpose: Identifies potential reversal zones where price action may change direction, allowing for more precise entry and exit points.
How It Works:
• Buy Signal:
A buy signal is generated when:
• The price enters a high-volume zone.
• The price crosses above a 5-period moving average.
• The cumulative delta shows more buying pressure (cumulativeDelta > SMA of cumulativeDelta).
• The RSI is below 70 (not in overbought conditions).
• Sell Signal:
A sell signal is generated when:
• The price enters a high-volume zone.
• The price crosses below a 5-period moving average.
• The cumulative delta shows more selling pressure (cumulativeDelta < SMA of cumulativeDelta).
• The RSI is above 30 (not in oversold conditions).
• Dynamic Support and Resistance Lines:
Drawn based on recent swing highs and lows, these lines provide context for potential price reversals or breakouts.
• VWAP and Order Imbalance Lines:
Plotted to show the average traded price and highlight order flow shifts, helping to validate buy/sell signals.
How to Use:
1. Apply the Indicator:
Add the script to your chart and adjust the settings to match your trading style and preferred timeframe (optimized for M5/M15).
2. Interpret the Signals:
Use the buy and sell signals in conjunction with dynamic support/resistance, VWAP, and order imbalance lines to identify high-probability trade setups.
3. Monitor Alerts:
Set alerts for significant order flow events to receive notifications when there is a positive or negative order imbalance, indicating potential market shifts.
What Makes It Unique:
This script is unique because it combines multiple market analysis tools — relative volume zones, smart order flow, VWAP, RSI filtering, and dynamic support/resistance — to provide a well-rounded, multi-dimensional view of the market. This integration allows traders to make more informed decisions by validating signals across various indicators, enhancing overall trading accuracy and effectiveness.
PTBPrevious Highs and Lows with Fibonacci
This Pine Script indicator, "Previous Highs and Lows with Fibonacci," is designed to overlay on a trading chart and visually represent key Fibonacci levels based on historical highs and lows. It features:
Lookback Periods: The script allows you to define two lookback periods for calculating highs and lows: a short lookback period and a long lookback period. These are adjustable via input fields.
Highs and Lows Calculation: It calculates the highest and lowest values over the specified short and long periods, which are then plotted on the chart as reference lines.
Previous Highs and Lows Storage: The indicator stores the previous highs and lows for both short and long periods. These values are updated based on changes in the chart's timeframe.
Fibonacci Levels: The script calculates and plots key Fibonacci levels (0.0, 0.236, 0.382, 0.618, and 1.0) based on the highest and lowest values from the long lookback period. These Fibonacci lines are plotted as dotted lines on the chart.
Fibonacci Level Management: Old Fibonacci lines are deleted before new ones are drawn, ensuring that the chart remains uncluttered.
0.5 Fibonacci Level: The script specifically calculates and plots the 0.5 Fibonacci level, which is used to identify potential price levels of interest.
Crossing Alert: An alert condition is set to notify you when the price crosses the 0.5 Fibonacci level, which can be crucial for making trading decisions.
Plotting: In addition to the Fibonacci levels, the script plots the current highs and lows for both short and long periods for easy reference.
FED and ECB Interest RatesFED and ECB Interest Rates Indicator
This indicator provides a clear visual representation of the Federal Reserve (FED) and European Central Bank (ECB) interest rates, offering traders and analysts a quick way to track these crucial economic metrics.
• Displays both FED (red) and ECB (blue) interest rates on a single chart
• Shows rates in basis points in the status line for precise reading
• Uses daily data for up-to-date rate information
• Features robust error handling for consistent performance
How It Works:
• Fetches FED rate from FRED and ECB rate from ECONOMICS database
• Plots rates as percentage values on the chart
• Displays rates in basis points when hovering over the chart
Use Cases:
• Monitor central bank policies and their potential impact on markets
• Compare FED and ECB rate trends over time
• Analyze correlation between interest rates and asset prices
• Assist in fundamental analysis for forex, equities, and fixed income trading
Note:
This indicator is for informational purposes only. Always combine this data with other forms of analysis and stay informed about central bank announcements and economic events.
Enhance your trading strategy with real-time insights into two of the world's most influential interest rates!
Adaptive Trend [StabTrading]The Adaptive Trend is a versatile tool designed to help traders stay in trades longer by adapting to real-time market conditions. Based on the Exponential Moving Average (EMA) trend, this indicator automatically adjusts its values according to the flow of money, making it a fully automated and responsive trend-following tool. Traders can use this adaptive trend to maintain positions longer and identify optimal entry and exit points before the trend fully reverses.
💡 Features
EMA-Based Trend - The Adaptive Trend Indicator is grounded in the EMA, providing a reliable foundation for tracking market trends.
Adaptive Values - The indicator’s values change dynamically based on money flow, allowing it to adjust to market conditions automatically.
Designed for Longer Trades - This tool is specifically designed to keep traders in trades for extended periods, maximizing potential profits.
Automated Algorithm - The fully automated nature of this indicator ensures that it adapts without manual intervention, making it user-friendly and efficient.
Pre-Trend Flip Signals - Traders can utilize this indicator to spot entry and exit points before a trend reversal, offering a strategic advantage in trade timing.
📈 How to Use the Adaptive Trend Indicator
The Adaptive Trend Indicator is designed to help traders identify potential entry and exit points by observing the relationship between price and the trend line. Generally, the price should follow the trend line's momentum. However, when the price deviates from the trend line, this indicates a divergence in momentum, signalling a potential trading opportunity.
Monitor the Trend Line - Pay attention to the color and flatness of the trend line. A blue trend line indicates bullish momentum, while a yellow trend line signals bearish momentum. When the trend line starts to flatten, it suggests that the current momentum is weakening. This is the time to watch for price deviations from the trend line as potential trade signals.
🛠️ Usage/Practice
As the downward trend begins to lose momentum, the trend line flattens and shows early signs of money flow moving up. This flattening indicates a potential shift in market sentiment, suggesting that a reversal may be on the horizon.
The trend line changes to blue, indicating a bullish shift in momentum. Since the price is close to the trend line, this serves as a strong confirmation to enter a long trade. The proximity to the trend line offers a favourable risk-to-reward ratio.
The trend line begins to level out, signalling a potential slowdown in momentum. Notice how the price starts to deviate from the trend line. As price rises above the trend line, this presents an opportunity to take partial profits or initiate a covered sell position.
The price briefly dips below the blue trend line, and the trend itself remains flat, indicating the bullish trend’s resilience. As the trend line stays blue, this suggests that the upward momentum remains intact, and the dip may be temporary, offering another potential entry point.
Despite the trend line flattening, the price continues to respect the trend, suggesting that the uptrend has not exhausted itself. This continuation implies that the bullish trend is still likely to persist.
The trend line flips, signalling a clear end to the previous upward trend. This flip is a strong indication that the bullish momentum has been fully exhausted, and a reversal may be in progress. Notice how the price has respected the trend line as it flips.
The trend line has shifted to yellow, signalling downward price action. As the trend begins to flatten and shows signs of moving upward again, traders should wait for the price to cross above the trend line. This crossing could indicate a safer entry point for a sell trade, as the market may still be in a bearish phase.
The price drops sharply below the trend line, but the trend itself remains relatively stable, suggesting that the downward momentum may not be as strong as the price action suggests. This discrepancy signals an opportune moment to take profits and potentially enter a buy position.
The price is not aligning with the trend line, suggesting the market may be trending sideways. The trend currently shows bullish momentum, but it lacks strong upward acceleration, and the price is significantly above the trend line. This weakening momentum indicates a potential area to consider a sell trade. Similar to point 8, the lack of acceleration and the distance from the trend line suggest that the upward movement may be losing strength.
While the trend remains in a downward (yellow) phase, it begins to rise without flipping to blue. This suggests that upward momentum is weak. As the price significantly deviates above the trend line, traders might consider entering a new sell trade, as the upward movement within a downward trend could indicate a temporary correction rather than a full reversal.
🔶 Conclusion
The Adaptive Trend allows traders to maintain their positions longer while providing strategic entry and exit points before trends fully reverse. As part of a comprehensive trading system, this indicator is particularly valuable for those looking to capitalize on subtle shifts in market momentum. By following its guidelines and signals, traders can better align their strategies with market dynamics.
Volatility-Adjusted DEMA Supertrend [QuantAlgo]Introducing the Volatility-Adjusted DEMA Supertrend by QuantAlgo 📈💫
Take your trading and investing strategies to the next level with the Volatility-Adjusted DEMA Supertrend , a dynamic tool designed to adapt to market volatility and provide clear, actionable trend signals. This innovative indicator is ideal for both traders and investors looking for a more responsive approach to market trends, helping you capture potential shifts with greater precision.
🌟 Key Features:
🛠 Customizable Trend Settings: Adjust the period for trend calculation and fine-tune the sensitivity to price movements. This flexibility allows you to tailor the Supertrend to your unique trading or investing strategy, whether you're focusing on shorter or longer timeframes.
📊 Volatility-Responsive Multiplier: The Supertrend dynamically adjusts its sensitivity based on real-time market volatility. This could help filter out noise in calmer markets and provide more accurate signals during periods of heightened volatility.
✨ Trend-Based Color-Coding: Visualize bullish and bearish trends with ease. The indicator paints candles and plots trend lines with distinct colors based on the current market direction, offering quick, clear insights into potential opportunities.
🔔 Custom Alerts: Set up alerts for key trend shifts to ensure you're notified of significant market changes. These alerts would allow you to act swiftly, potentially capturing opportunities without needing to constantly monitor the charts.
📈 How to Use:
✅ Add the Indicator: Add the Volatility-Adjusted DEMA Supertrend to your chart. Customize the trend period, volatility settings, and price source to match your trading or investing style. This ensures the indicator aligns with your market strategy.
👀 Monitor Trend Shifts: Watch the color-coded trend lines and candles as they dynamically shift based on real-time market conditions. These visual cues help you spot potential trend reversals and confirm your entries and exits with greater confidence.
🔔 Set Alerts: Configure alerts for key trend shifts, allowing you to stay informed of potential market reversals or continuation patterns, even when you're not actively watching the market.
⚙️ How It Works:
The Volatility-Adjusted DEMA Supertrend is designed to adapt to changes in market conditions, making it highly responsive to price volatility. The indicator calculates a trend line based on price and volatility, dynamically adjusting it to reflect recent market behavior. When the market experiences higher volatility, the trend line becomes more flexible, potentially allowing for greater sensitivity to rapid price movements. Conversely, during periods of low volatility, the indicator tightens its range, helping to reduce noise and avoid false signals.
The indicator includes a volatility-responsive multiplier, which further enhances its adaptability to market conditions. This means the trend direction would always be based on the latest market data, potentially helping you stay ahead of shifts or continuation trends. The Supertrend's visual color-coding simplifies the process of identifying bullish or bearish trends, while customizable alerts ensure you can stay on top of significant changes in market direction.
This tool is versatile and could be applied across various markets and timeframes, making it a valuable addition for both traders and investors. Whether you’re trading in fast-moving markets or focusing on longer-term investments, the Volatility-Adjusted DEMA Supertrend could help you remain aligned with the current market environment.
Disclaimer:
This indicator is designed to enhance your analysis by providing trend information, but it should not be used as the sole basis for making trading or investing decisions. Always combine it with other forms of analysis and risk management practices. No statements or claims aim to be financial advice, and no signals from us or our indicators should be interpreted as such. Past performance is not indicative of future results.
ICT NY Silver Bullet SessionsThe ICT NY Silver Bullet Sessions refer to two specific time windows within the New York trading session, during which traders aim to exploit short-term, high-probability price movements, particularly using price-action techniques inspired by the Inner Circle Trader (ICT) methodology. These sessions are typically associated with a higher likelihood of volatility and liquidity due to their proximity to key market hours, making them ideal for scalping or intraday trading strategies.
The Silver Bullet concept emphasizes precise entries and exits, taking advantage of institutional trading behaviors and order flow within these two specific time windows:
(I) The AM Silver Bullet Session (10:00 AM – 11:00 AM EST)
Time Frame: This session runs from 10:00 AM to 11:00 AM Eastern Standard Time (EST).
Significance: During this hour, the New York Stock Exchange (NYSE) has been open for about 30 minutes, which typically generates volatility as the market reacts to overnight price movements, economic news, or early U.S. session developments. Traders look for institutional price action setups like stop runs, liquidity grabs, or reversals.
Key Considerations: Traders often focus on major indices (such as the S&P 500 or NASDAQ), forex pairs, or commodities like gold and silver. The AM session is especially important for catching trends or retracements established in the London session or the early New York market hours.
(II) The PM Silver Bullet Session (02:00 PM – 03:00 PM EST)
Time Frame: This session occurs from 2:00 PM to 3:00 PM Eastern Standard Time (EST).
Significance: Known as the afternoon session, this time period aligns with institutional rebalancing and pre-close positioning, where significant liquidity enters the market as traders anticipate the upcoming New York close and London close (which happens at 11:00 AM EST). It is also a common time for institutional traders to initiate price moves that carry through into the end of the trading day.
Key Considerations: Traders monitor for key reversals, liquidity sweeps, or continuations of earlier trends. This is a prime time for trading major currencies and indices, as well as commodities like crude oil and metals, with a focus on exploiting liquidity imbalances.
Dynamic Volume RSI (DVRSI) [QuantAlgo]Introducing the Dynamic Volume RSI (DVRSI) by QuantAlgo 📈✨
Elevate your trading and investing strategies with the Dynamic Volume RSI (DVRSI) , a powerful tool designed to provide clear insights into market momentum and trend shifts. This indicator is ideal for traders and investors who want to stay ahead of the curve by using volume-responsive calculations and adaptive smoothing techniques to enhance signal clarity and reliability.
🌟 Key Features:
🛠 Customizable RSI Settings: Tailor the indicator to your strategy by adjusting the RSI length and price source. Whether you’re focused on short-term trades or long-term investments, DVRSI adapts to your needs.
🌊 Adaptive Smoothing: Enable adaptive smoothing to filter out market noise and ensure cleaner signals in volatile or choppy market conditions.
🎨 Dynamic Color-Coding: Easily identify bullish and bearish trends with color-coded candles and RSI plots, offering clear visual cues to track market direction.
⚖️ Volume-Responsive Adjustments: The DVRSI reacts to volume changes, giving greater significance to high-volume price moves and improving the accuracy of trend detection.
🔔 Custom Alerts: Stay informed with alerts for key RSI crossovers and trend changes, allowing you to act quickly on emerging opportunities.
📈 How to Use:
✅ Add the Indicator: Set up the DVRSI by adding it to your chart and customizing the RSI length, price source, and smoothing options to fit your specific strategy.
👀 Monitor Visual Cues: Watch for trend shifts through the color-coded plot and candles, signaling changes in momentum as the RSI crosses key levels.
🔔 Set Alerts: Configure alerts for critical RSI crossovers, such as the 50 line, ensuring you stay on top of potential market reversals and opportunities.
🔍 How It Works:
The Dynamic Volume RSI (DVRSI) is a unique indicator designed to provide more accurate and responsive signals by incorporating both price movement and volume sensitivity into the RSI framework. It begins by calculating the traditional RSI values based on a user-defined length and price source, but unlike standard RSI tools, the DVRSI applies volume-weighted adjustments to reflect the strength of market participation.
The indicator dynamically adjusts its sensitivity by factoring in volume to the RSI calculation, which means that price moves backed by higher volumes carry more weight, making the signal more reliable. This method helps identify stronger trends and reduces the risk of false signals in low-volume environments. To further enhance accuracy, the DVRSI offers an adaptive smoothing option that allows users to reduce noise during periods of market volatility. This adaptive smoothing function responds to market conditions, providing a cleaner signal by reducing erratic movements or price spikes that could lead to misleading signals.
Additionally, the DVRSI uses dynamic color-coding to visually represent the strength of bullish or bearish trends. The candles and RSI plots change color based on the RSI values crossing critical thresholds, such as the 50 level, offering an intuitive way to recognize trend shifts. Traders can also configure alerts for specific RSI crossovers (e.g., above 50 or below 40), ensuring that they stay informed of potential trend reversals and significant market shifts in real-time.
The combination of volume sensitivity, adaptive smoothing, and dynamic trend visualization makes the DVRSI a robust and versatile tool for traders and investors looking to fine-tune their market analysis. By incorporating both price and volume data, this indicator delivers more precise signals, helping users make informed decisions with greater confidence.
Disclaimer:
The Dynamic Volume RSI is designed to enhance your market analysis but should not be used as a sole decision-making tool. Always consider multiple factors before making any trading or investment decisions. Past performance is not indicative of future results.
RishiMoney RSIRishiMoney RSI
The "RishiMoney RSI" indicator is designed for traders who want to leverage the power of the Relative Strength Index (RSI) across multiple timeframes.
In addition to regular RSI, this script allows the users to select custom timeframes for two additional RSI calculations, making it easier to identify trends, reversals, and potential entry or exit points.
USAGE
While Returning the same information as a regular RSI the RishiMoney RSI provides two more RSI calculations One for Lagrgest Timeframe and one for middle Timeframe so that the users need not to check for higher timeframes separately Which is very Time consuming. This script solves the problem of time taking process of checking different timeframes RSI calculations.
This script is ideal for traders who want to confirm their analysis across multiple timeframes. By comparing the main RSI with larger and intermediate timeframes, traders can better understand the market's momentum and make more informed decisions.
The RishiMoney RSI crossing above the overbought level can be indicative of a strong uptrend which is highlighted as a green gradient area, while when RishiMoney RSI is crossing under the oversold level can be indicative of a strong downtrend which is highlighted as a red area.
Key Features:
Customizable RSI Period: Set your preferred RSI period for precise calculation and analysis.
Multi-Timeframe RSI:
Largest RSI Timeframe: Choose the largest timeframe for your analysis (Monthly, Weekly, Daily, Hourly, 15 minutes, or 5 minutes).
Middle RSI Timeframe: Select an intermediate timeframe for comparison with the main RSI.
Overbought and Oversold Levels: The indicator includes customizable overbought and oversold levels, which are clearly marked on the chart with dynamic bands.
Alerts: Set up alerts for when the RSI crosses into overbought or oversold territory, so you never miss a potential trading opportunity.
Visual Clarity: The script plots the RSI for your selected timeframes with distinct colors, helping you quickly identify trends across different timeframes.
This script is provided for educational purposes only and should not be considered financial advice. Always conduct your own research and consult with a financial advisor before making any trading decisions.
Volume Analysis - Heatmap and Volume ProfileHello All!
I have a new toy for you! Volume Analysis - Heatmap and Volume Profile . Honestly I started to work to develop Volume Heatmap then I decided to improve it and add more features such Volume profile, volume, difference in Buy/Sell volumes etc. I tried to put my abilities into this script and tried to use some new Pine Language™ features ( method, force_overlay, enum etc features ). I hope the usage of these new features would be an example for Pine Programmers.
Lets talk about how it works:
- It gets number of Rows/Columns from the user for each candle to create heatmap
- It calculates the number of the candles to analyze. Number of the candles may change by number of Rows/columns or if any volume / difference in volumes / volume profile is enabled
- It gets Closing/Opening price, Volume and Time info from lower time frame for each candle ( it can be up to 100K for each candle )
- After getting the data it calculates lower time frame to analyze
- Then it calculates how closing price moves, how much volume on each move and create boxes by the volume/move in each box
- The colors for each box calculated by volume info and closing price movements in the lower time frame
- It shows the boxes on Absolute places or Zero Line optionally
- it shows Volume, Cumulative volume, Difference between Buy/Sell volume for each column
- it changes empty box color by Chart background color, also you can change transparency
- At this time it creates Volume Profile with up to 25 rows
- As a new Pine Language™ feature, it can show Volume Profile in the indicator window or in Main chart, shows Value Area, Value Area High (VAH), Value Area Low (VAL), and draw it and POC (Point Of Control) in the indicator window and/or in the main chart
- Honestly the feature I like is that: For the markets that are not open 24/7, it combines the data from the lower time period without any gaps. For example, if you work for a market that is closed on Saturdays and Sundays, it ensures data integrity by omitting weekends and holidays. so for example if the data is like "ABC---DEF-X---YL-Z" then it makes this data like "ABCDEFXYLZ". In this way, there will be no data breaks in the displayed boxes, there will be no empty colons, and it will appear as if data is coming in at any time.
- Finally it shows Info Panel to give info, its background color automatically changes by the Chart background color
- Important! You should set your "Plan" accordingly, your plan is "Premium or Higher" or "Lower tier". so the script can understand the minimum time frame it can get data!!
I tried to share many screenshots below to explain it much better
How it looks?
it shows Highest Buy/Sell volumes brighter, move volume -> brighter
Volume Profile ( up to 25 row s) ( number of contained candles should be more than 1 )
Volume Profile can be shown in the main chart optionally
How the main chart looks:
Closing price shown and you can enable it, change colors & line width
Can include many candles according to Row&Column number you set
Optionally it can show cumulative volume for each candle
Closing prices from lower time frame
Shows Candle Body by changing background colors
It can shows all included candles on Zero line
You can change the colors of many things
You can set Empty box and border transparency
Table, Empty box Colors adjustment done automatically by chart background color
Sometimes we can not get data from some historical candles if time frame is high such 2days, 1 week etc, and it looks like:
It also checks if Chart time frame and Chart type is suitable
Enjoy!
DP-OCR MTF & MA 2024This script developed is designed for multi-timeframe analysis of previous open, close, and range, with additional signal plots based on various percentage extension levels. It also incorporates EMA calculations for crossover strategies. Here's a quick breakdown of what the script does:
Key Features:
1. Timeframes:
o Two separate timeframes (TF1 and TF2), which can be set by the user (e.g., 15 mins, 30 mins, daily, etc.). The script computes price actions and extensions for both timeframes. For better analysis, use Daily in TF1 and Weekly in TF2
2. Extension Levels:
o Calculates and plots 10%, 21%, 31%, 51%, and 61% extensions (both positive and negative) for each timeframe.
o The most commonly used extension levels are 61%, 31%, -61%, and -21%.
o These extension levels can be turned on or off by the user.
3. Open/Close/Range:
o Tracks the high, low, open, and close for both timeframes.
o Highlights open/close gaps.
o Plots the previous high/low range for both timeframes with a fill and different colors based on price movement.
How to Use:
• You can toggle specific extension levels on or off in the script’s settings.
• For example, when price hits a +61% extension, it could signal a breakout, and when it hits a -61% extension, it may indicate a potential retracement.
• Use these levels in conjunction with your price action analysis to set entry/exit points or stop-loss levels.
4. Today’s Open:
o Plots today’s opening price for both timeframes.
How to Use:
• Use today’s open as a key reference point to determine the day’s price action.
• Compare today’s open with the previous high/low or extension levels to evaluate possible trends or reversals.
5. EMA Calculations:
o The script calculates 5, 15, and 20 period EMAs and plots them on the chart.
o Additional EMA crossover signals can be included for strategy optimization.
How to Use:
• Observe the EMAs for potential crossover signals. For example, a 5-period EMA crossing above a 15-period or 20-period EMA may signal a buy opportunity, while a crossover in the opposite direction may signal a sell.
• Combine the EMA crossovers with extension levels or previous price data to refine your entries and exits.
Customizations Available:
• Users can select whether to display extension levels for either timeframe.
• The script allows automatic adaptation to intraday, daily, weekly, or monthly timeframes based on the current chart settings.
Moreover, the extension levels are calculated based on the previous period’s range, with the most commonly usable extension levels being 61, 31, -61, and -21. These levels are often used for identifying potential price retracements, breakouts, or reversal points in technical analysis.
Historical Fed Interest rate This script is Historical Fed Interest rate
The data is between 1991 - 2023 , but for some reason data between 1991 - 10/2001 is not work
Green line for rate cut and Red line for rate hike and detail at the label
Liquidity strategy tester [Influxum]This tool is based on the concept of liquidity. It includes 10 methods for identifying liquidity in the market. Although this tool is presented as a strategy, we see it more as a data-gathering instrument.
Warning: This indicator/strategy is not intended to generate profitable strategies. It is designed to identify potential market advantages and help with identifying effective entry points to capitalize on those advantages.
Once again, we have advanced the methods of effectively searching for liquidity in the market. With strategies, defined by various entry methods and risk management, you can find your edge in the market. This tool is backed by thorough testing and development, and we plan to continue improving it.
In its current form, it can also be used to test well-known ICT or Smart Money concepts. Using various methods, you can define market structure and identify areas where liquidity is located.
Fair Value Gaps - one of the entry signal options is fair value gaps, where an imbalance between buyers and sellers in the market can be expected.
Time and Price Theory - you can test this by setting liquidity from a specific session and testing entries as that liquidity is grabbed
Judas Swing - can be tested as a market reversal after a breakout during the first hours of trading.
Power of Three - accumulation can be observed as the market moving within a certain range, identified as cluster liquidity in our tool, manipulation occurs with the break of liquidity, and distribution is the direction of the entry.
🟪 Methods of Identifying Liquidity
Pivot Liquidity
This refers to liquidity formed by local extremes – the highest or lowest prices reached in the market over a certain period. The period is defined by a pivot number and determines how many candles before and after the high/low were higher/lower. Simply put, the pivot number represents the number of adjacent candles to the left and right, with a lower high for a pivot high and a higher low for a pivot low. The higher the number, the more significant the high/low is. Behind these local market extremes, we expect to find orders waiting for breakout as well as stop-losses.
Gann Swing
Similar to pivot liquidity, Gann swing identifies significant market points. However, instead of candle highs and lows, it focuses on the closing prices. A Gann swing is formed when a candle closes above (or below) several previous closes (the number is again defined by a strength parameter).
Percentage Change
Apart from ticks, percentages are also a key unit of market movement. In the search for liquidity, we monitor when a local high or low is formed. For liquidity defined by percentage change, a high must be a certain percentage higher than the last low to confirm a significant high. Similarly, a low must be a defined percentage away from the last significant high to confirm a new low. With the right percentage settings, you can eliminate market noise.
Session Range (3x)
Session range is a popular concept for finding liquidity, especially in smart money concepts (SMC). You can set up liquidity visualization for the Asian, London, or New York sessions – or even all three at once. This tool allows you to work with up to three sessions, so you can easily track how and if the market reacts to liquidity grabs during these sessions.
Tip for traders: If you want to see the reaction to liquidity grab during a specific session at a certain time (e.g., the well-known killzone), you can set the Trading session in this tool to the exact time where you want to look for potential entries.
Unfinished Auction
Based on order flow theory, an unfinished auction occurs when the market reverses sharply without filling all pending orders. In price action terms, this can be seen as two candles at a local high or low with very similar or identical highs/lows. The maximum difference between these values is defined as Tolerance, with the default setting being 3 ticks. This setting is particularly useful for filtering out noise during slower market periods, like the Asian session.
Double Tops and Bottoms
A very popular concept not only from smart money concepts but also among price pattern traders is the double bottom and double top. This occurs when the market stops and reverses at a certain price twice in a row. In the tool, you can set how many candles apart these bottoms/tops can be by adjusting the Length parameter. According to some theories, double bottoms are more effective when there is a significant peak between the two bottoms. You can set this in the tool as the Swing value, which defines how large the movement (expressed in ticks) must be between the two peaks/bottoms. The final parameter you can adjust is Tolerance, which defines the possible price difference between the two peaks/bottoms, also expressed in ticks.
Range or Cluster Liquidity
When the market stays within a certain price range, there’s a chance that breakout orders and stop-losses are accumulating outside of this range. Our tool defines ranges in two ways:
Candle balance calculates the average price within a candle (open, high, low, and close), and it defines consolidation when the centers of candles are within a certain distance from each other.
Overlap confirms consolidation when a candle overlaps with the previous one by a set percentage.
Daily, Weekly, and Monthly Highs or Lows
These options simply define liquidity as the previous day’s, week’s, or month’s highs or lows.
Visual Settings
You can easily adjust how liquidity is displayed on the chart, choosing line style, color, and thickness. To display only uncollected liquidity, select "Delete grabbed liquidity."
Liquidity Duration
This setting allows you to control how long liquidity areas remain valid. You can cancel liquidity at the end of the day, the second day, or after a specific number of candles.
🟪 Strategy
Now we come to the part of working with strategies.
Max # of bars after liquidity grab – This parameter allows you to define how many candles you can search for entry signals from the moment liquidity is grabbed. If you are using engulfing as an entry signal, which consists of 2 candles, keep in mind that this number must be at least 2. In general, if you want to test a quick and sharp reaction, set this number as low as possible. If you want to wait for a structural change after the liquidity grab, which may require more candles, set the number a bit higher.
🟪 Strategy - entries
In this section, we define the signals or situations where we can enter the market after liquidity has been taken out.
Liquidity grab - This setup triggers a trade immediately after liquidity is grabbed, meaning the trade opens as the next candle forms.
Close below, close above - This refers to situations where the price closes below liquidity, but then reverses and closes above liquidity again, suggesting the liquidity grab was a false breakout.
Over bar - This occurs when the entire candle (high and low) passes beyond the liquidity level but then experiences a pullback.
Engulfing - A popular price action pattern that is included in this tool.
2HL - weak, medium, strong - A variation of a popular candlestick pattern.
Strong bar - A strong reactionary candle that forms after a liquidity grab. If liquidity is grabbed at a low, this would be a strong long candle that closes near its high and is significantly larger compared to typical volatility.
Naked bar - A candlestick pattern we’ve tested that serves as a good confirmation of market movement.
FVG (Fair Value Gap) - A currently popular concept. This is the only signal with additional settings. “Pending FVG order valid” means if a fair value gap forms after a liquidity grab, a limit order is placed, which remains valid for a set number of candles. “FVG minimal tick size” allows you to filter based on the gap size, measured in ticks. “GAP entry model” lets you decide whether to place the limit order at the gap close or its edge.
🟪 Strategy - General
Long, short - You can choose whether to focus on long or short trades. It’s interesting to see how long and short trades yield different results across various markets.
Pyramiding - By default, the tool opens only one trade at a time. If a new signal arises while a trade is open, it won’t enter another position unless the pyramiding box is checked. You also need to set the maximum number of open trades in the Properties.
Position size - Simply set the size of the traded position.
🟪 Strategy - Time
In this section, you can set time parameters for the strategy being tested.
Test since year - As the name implies, you can limit the testing to start from a specific year.
Trading session - Define the trading session during which you want to test entries. You can also visualize the background (BG) for confirmation.
Exclude session - You can set a session period during which you prefer not to search for trades. For example, when the New York session opens, volatility can sharply increase, potentially reducing the long-term success rate of the tested setup.
🟪 Strategy - Exits
This section lets you define risk management rules.
PT & SL - Set the profit target (PT) and stop loss (SL) here.
Lowest/highest since grab - This option sets the stop loss at the lowest point after a liquidity grab at a low or at the highest point after a liquidity grab at a high. Since markets usually overshoot during liquidity grabs, it’s good practice to place the stop loss at the furthest point after the grab. You can also set your risk-reward ratio (RRR) here. A value of 1 sets an RRR of 1:1, 2 means 2:1, and so on.
Lowest/highest last # bars - Similar to the previous option, but instead of finding the extreme after a liquidity grab, it identifies the furthest point within the last number of candles. You can set how far back to look using the # bars field (for an engulfing pattern, 2 is optimal since it’s made of two candles, and the stop loss can be placed at the edge of the engulfing pattern). The RRR setting works the same way as in the previous option.
Other side liquidity grab - If this option is checked, the trade will exit when liquidity is grabbed on the opposite side (i.e., if you entered on a liquidity grab at a low, the trade will exit when liquidity is grabbed at a high).
Exit after # bars - A popular exit strategy where you close the position after a set number of candles.
Exit after # bars in profit - This option exits the trade once the position is profitable for a certain number of consecutive candles. For example, if set to 5, the position will close when 5 consecutive candles are profitable. You can also set a maximum number of candles (in the max field), ensuring the trade is closed after a certain time even if the profit condition hasn’t been met.
🟪 Alerts
Alerts are a key tool for traders to ensure they don’t miss trading opportunities. They also allow traders to manage their time effectively. Who would want to sit in front of the computer all day waiting for a trading opportunity when they could be attending to other matters? In our tool, you currently have two options for receiving alerts:
Liquidity grabs alert – if you enable this feature and set an alert, the alert will be triggered every time a candle on the current timeframe closes and intersects with the displayed liquidity line.
Entry signals alert – this feature triggers an alert when a signal for entry is generated based on the option you’ve selected in the Entry type. It’s an ideal way to be notified only when a trading opportunity appears according to your predefined rules.
Lot Size Calculator by MenolakRugiThe Lot Size Formula in forex trading is a critical tool that offers several key benefits to traders:
🟢Risk Management: By using the formula, traders can control the amount of capital they risk on each trade. This helps prevent excessive losses by aligning the lot size with a predefined risk tolerance, such as 1% or 2% of the account balance.
🟢Consistent Position Sizing: The formula ensures that position sizes are calculated based on the specific trade setup, including the distance to the stop loss. This consistency helps avoid over-leveraging and reduces the emotional aspect of trading.
🟢Adaptability: The lot size can be adjusted according to different currency pairs and market conditions. This flexibility ensures that traders can apply the formula across various trading instruments and environments.
🟢Improved Profit Potential: By managing risk effectively, traders can protect their capital while maximizing profit opportunities. When losses are controlled, traders are able to stay in the market longer and compound their gains over time.
🟢Precision in Trade Planning: Calculating the lot size allows traders to plan their trades more precisely, aligning their strategies with the amount they are willing to risk. This leads to more disciplined and structured trading, reducing impulsive decisions.
In summary, the lot size formula helps maintain a balanced approach to trading, where both risk and reward are carefully managed to increase the chances of long-term success.