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.
Indicators and strategies
Consecutive CandlesTrading as Easy as One, Two, and Three
Unlock the power of simplicity in trading with this innovative script inspired by KepalaBesi. Designed for traders of all levels, this script provides a user-friendly approach to market analysis, enabling you to make informed trading decisions effortlessly.
Key Features:
Simplified Signals: Receive clear buy and sell signals based on robust technical indicators. The script streamlines your trading process, allowing you to focus on execution rather than analysis.
Customizable Settings: Tailor the script to fit your trading style. Adjust parameters to suit your risk tolerance and market preferences, ensuring a personalized trading experience.
Visual Clarity: Benefit from intuitive visual cues on your chart, making it easy to identify optimal entry and exit points. The clean interface helps you make quick decisions without confusion.
Whether you’re a seasoned trader or just starting, "Trading as Easy as One, Two, and Three" simplifies your trading journey, turning complex strategies into straightforward actions. Embrace a more efficient way to trade and elevate your performance in the markets!
Get Started Today!
Join the community of traders who have discovered the ease of trading with KepalaBesi's inspired script. Elevate your trading experience and achieve your financial goals with confidence!
Three Bar Reversal Pattern [LuxAlgo]The Three Bar Reversal Pattern indicator identifies and highlights three bar reversal patterns on the user price chart.
The script also provides an option for incorporating various trend indicators used to filter out detected signals, allowing them to enhance their accuracy and help obtain a more comprehensive analysis.
🔶 USAGE
The script automates the detection of three-bar reversal patterns and provides a clear, visually identifiable signal for potential trend reversals.
When a reversal chart pattern is confirmed and price action aligns with the pattern, the pattern's boundaries are extended, forming levels, with the upper boundary often acting as a resistance and the lower boundary as a support.
The script allows users to filter patterns based on a specific trend direction detected by multiple trend indicators. Users can choose to view patterns that are either aligned with the detected trend or opposite to it.
Included trend indicators are: Moving Average Cloud, Supertrend, and Donchian Channels.
🔶 DETAILS
The three-bar reversal pattern is a technical analysis pattern that signals a potential reversal in the prevailing trend. The pattern consists of three consecutive bar formations:
First Bar and Second Bar: 2 consecutive of the same sentiment, representing the prevailing trend in the market.
Third Bar: Confirms the reversal by closing beyond the high or low of the first bar, signaling a potential change in market sentiment.
Various types of three-bar reversal patterns are documented. The script supports two main types:
Normal Pattern: Detects three-bar reversal patterns without requiring the third bar closing price to surpass the high (bullish pattern) or low (bearish pattern) of the first bar. It identifies basic formations signaling potential trend reversals.
Enhanced Pattern: Specifically identifies three-bar reversal patterns where the third bar closing price surpasses the high (bullish pattern) or low (bearish pattern) of the first bar. This type provides a more selective signal for stronger trend reversals.
🔶 SETTINGS
Pattern Type: Users can choose the type of 3-bar reversal patterns to detect: Normal, Enhanced, or All. "Normal" detects patterns that do not necessarily surpass the high/low of the first bar. "Enhanced" detects patterns where the third bar surpasses the high/low of the first bar. "All" detects both Normal and Enhanced patterns.
Derived Support and Resistance: Toggles the visibility of the support and resistance levels/zones.
🔹 Trend Filtering
Filtering: Allows users to filter patterns based on the trend indicators: Moving Average Cloud, Supertrend, and Donchian Channels. The "Aligned" option only detects patterns that align with the trend and conversely, the "Opposite" option detects patterns that go against the trend.
🔹 Trend Indicator Settings
Moving Average Cloud: Allows traders to choose the type of moving averages (SMA, EMA, HMA, etc.) and set the lengths for fast and slow-moving averages.
Supertrend: Options to set the ATR length and factor for Supertrend.
Donchian Channels: Option to set the length for the channel calculation.
🔶 RELATED SCRIPTS
Reversal-Candlestick-Structure .
Reversal-Signals .
Long Wick Indicator
This indicator identifies and highlights candles with long wicks, which can be useful for various trading strategies.
Key Features:
1. Timeframe Limitation:
- Optional feature to limit the indicator to specific timeframes
- User can set a maximum timeframe (default: 5 minutes)
2. Customizable Wick-to-Body Ratio:
- User-defined minimum ratio for wick length to body length (default: 0.8)
3. Customizable Visual Indicators:
- Triangles appear above or below candles with long wicks (user can change triangles to another symbol)
- Yellow triangle pointing up: long bottom wick
- Yellow triangle pointing down: long top wick
Functionality:
- Calculates body size and wick sizes for each candle
- Compares wick sizes to body size using the user-defined ratio
- Plots indicators only if the current timeframe is within the specified limit (if enabled)
Usage:
Add this indicator to your TradingView chart to identify potential setups.
Customization:
Users can adjust the wick-to-body ratio and timeframe limitations in the indicator settings to suit their trading style and strategy.
[ AlgoChart ] - Pearson Index CorrelationCorrelation Indicator (Pearson Index)
The correlation indicator measures the strength and direction of the relationship between two financial assets using the Pearson Index.
Correlation values range from +100 to -100, where:
+100 indicates perfect positive correlation, meaning the two assets tend to move in the same direction.
-100 indicates perfect negative correlation, where the two assets move in opposite directions.
The neutral zone ranges from +25% to -25%, suggesting that the asset movements are independent, with no clear correlation between them.
Interpreting Correlation Levels:
Correlation above +75%: The two assets tend to move similarly and in the same direction. This may indicate a risk of overexposure if both assets are traded in the same direction, as their movements will be very similar, increasing the likelihood of double losses or gains.
Correlation below -75%: The two assets tend to move similarly but in opposite directions. This correlation level can be useful for strategies that benefit from opposing movements between assets, such as trading pairs with inverse dynamics.
Practical Use of the Indicator:
Risk management: Use the indicator to monitor asset correlations before opening positions. High correlation may indicate you are duplicating exposure, as two highly correlated assets tend to move similarly. This helps avoid excessive risk and improves portfolio diversification.
Statistical Arbitrage: During moments of temporary decorrelation between two assets, the indicator can be used for statistical arbitrage strategies. In such cases, you can take advantage of the divergence by opening positions and closing them when the correlation returns to higher or positive levels, thus potentially profiting from the reconvergence of movements.
While the correlation indicator provides valuable insights into asset relationships, it is most effective when used in conjunction with other concepts and tools. On its own, it may offer limited relevance in trading decisions.
Overnight Positioning w EMA - Strategy [presentTrading]I've recently started researching Market Timing strategies, and it’s proving to be quite an interesting area of study. The idea of predicting optimal times to enter and exit the market, based on historical data and various indicators, brings a dynamic edge to trading. Additionally, it is integrated with the 3commas bot for automated trade execution.
I'm still working on it. Welcome to share your point of view.
█ Introduction and How it is Different
The "Overnight Positioning with EMA " is designed to capitalize on market inefficiencies during the overnight trading period. This strategy takes a position shortly before the market closes and exits shortly after it opens the following day. What sets this strategy apart is the integration of an optional Exponential Moving Average (EMA) filter, which ensures that trades are aligned with the underlying trend. The strategy provides flexibility by allowing users to select between different global market sessions, such as the US, Asia, and Europe.
It is integrated with the 3commas bot for automated trade execution and has a built-in mechanism to avoid holding positions over the weekend by force-closing positions on Fridays before the market closes.
BTCUSD 20 mins Performance
█ Strategy, How it Works: Detailed Explanation
The core logic of this strategy is simple: enter trades before market close and exit them after market open, taking advantage of potential price movements during the overnight period. Here’s how it works in more detail:
🔶 Market Timing
The strategy determines the local market open and close times based on the selected market (US, Asia, Europe) and adjusts entry and exit points accordingly. The entry is triggered a specific number of minutes before market close, and the exit is triggered a specific number of minutes after market open.
🔶 EMA Filter
The strategy includes an optional EMA filter to help ensure that trades are taken in the direction of the prevailing trend. The EMA is calculated over a user-defined timeframe and length. The entry is only allowed if the closing price is above the EMA (for long positions), which helps to filter out trades that might go against the trend.
The EMA formula:
```
EMA(t) = +
```
Where:
- EMA(t) is the current EMA value
- Close(t) is the current closing price
- n is the length of the EMA
- EMA(t-1) is the previous period's EMA value
🔶 Entry Logic
The strategy monitors the market time in the selected timezone. Once the current time reaches the defined entry period (e.g., 20 minutes before market close), and the EMA condition is satisfied, a long position is entered.
- Entry time calculation:
```
entryTime = marketCloseTime - entryMinutesBeforeClose * 60 * 1000
```
🔶 Exit Logic
Exits are triggered based on a specified time after the market opens. The strategy checks if the current time is within the defined exit period (e.g., 20 minutes after market open) and closes any open long positions.
- Exit time calculation:
exitTime = marketOpenTime + exitMinutesAfterOpen * 60 * 1000
🔶 Force Close on Fridays
To avoid the risk of holding positions over the weekend, the strategy force-closes any open positions 5 minutes before the market close on Fridays.
- Force close logic:
isFriday = (dayofweek(currentTime, marketTimezone) == dayofweek.friday)
█ Trade Direction
This strategy is designed exclusively for long trades. It enters a long position before market close and exits the position after market open. There is no shorting involved in this strategy, and it focuses on capturing upward momentum during the overnight session.
█ Usage
This strategy is suitable for traders who want to take advantage of price movements that occur during the overnight period without holding positions for extended periods. It automates entry and exit times, ensuring that trades are placed at the appropriate times based on the market session selected by the user. The 3commas bot integration also allows for automated execution, making it ideal for traders who wish to set it and forget it. The strategy is flexible enough to work across various global markets, depending on the trader's preference.
█ Default Settings
1. entryMinutesBeforeClose (Default = 20 minutes):
This setting determines how many minutes before the market close the strategy will enter a long position. A shorter duration could mean missing out on potential movements, while a longer duration could expose the position to greater price fluctuations before the market closes.
2. exitMinutesAfterOpen (Default = 20 minutes):
This setting controls how many minutes after the market opens the position will be exited. A shorter exit time minimizes exposure to market volatility at the open, while a longer exit time could capture more of the overnight price movement.
3. emaLength (Default = 100):
The length of the EMA affects how the strategy filters trades. A shorter EMA (e.g., 50) reacts more quickly to price changes, allowing more frequent entries, while a longer EMA (e.g., 200) smooths out price action and only allows entries when there is a stronger underlying trend.
The effect of using a longer EMA (e.g., 200) would be:
```
EMA(t) = +
```
4. emaTimeframe (Default = 240):
This is the timeframe used for calculating the EMA. A higher timeframe (e.g., 360) would base entries on longer-term trends, while a shorter timeframe (e.g., 60) would respond more quickly to price movements, potentially allowing more frequent trades.
5. useEMA (Default = true):
This toggle enables or disables the EMA filter. When enabled, trades are only taken when the price is above the EMA. Disabling the EMA allows the strategy to enter trades without any trend validation, which could increase the number of trades but also increase risk.
6. Market Selection (Default = US):
This setting determines which global market's open and close times the strategy will use. The selection of the market affects the timing of entries and exits and should be chosen based on the user's preference or geographic focus.
Trend Following Composite Index ( TFCI ) 🏆 Trend Following Composite Index (TFCI) 🏆
Overview 🔎
The Trend Following Composite Index (TFCI) is designed to provide traders with a comprehensive view of market trends by combining several technical indicators in a single, unified tool. Each component brings its unique perspective, and together they create a well-rounded signal that may help traders better understand the current market condition. TFCI simplifies the decision-making process by aggregating these signals into one easy-to-read confidence percentage, allowing traders to quickly gauge whether the market is trending upwards, downwards, or is in a period of indecision.
Combining Multiple Indicators for a Unique Edge 🔀
TFCI integrates six different technical indicators, each tuned to capture distinct aspects of market behavior. Rather than relying on any single indicator, TFCI merges their signals into one, providing a more nuanced and potentially more reliable view of the market. This combination helps reduce the weaknesses inherent in any one indicator, offering a more balanced and holistic trend signal.
RSI Filter: The RSI helps identify potential overbought or oversold conditions, but when used alone, it can generate false signals. In TFCI, the RSI is smoothed and combined with other metrics to avoid reacting to small fluctuations, making the signals more robust.
Kijun-Based Band: This component, inspired by the Kijun-sen line from the Ichimoku system, defines adaptive price bands based on market equilibrium. When combined with a smoothing filter, it provides traders with clear visual cues for potential trend reversals, reducing the guesswork.
Boosted Moving Average: By combining short- and long-term EMAs, this component reacts quickly to price changes, while the "boost" factor enhances its ability to confirm trends early. This combination helps filter out market noise, making it easier to spot genuine trend shifts.
Deviation Condition: This proprietary moving average adjusts dynamically based on volatility, which means it adapts to fast-changing market conditions. By adjusting its sensitivity based on market deviations, it helps smooth out erratic price movements, creating clearer trend signals.
VWTSI (Volume-Weighted Trend Strength Indicator): Volume is an essential factor in confirming trends. This indicator looks at price movements in relation to volume to assess the strength of the trend. By factoring in volatility, it ensures that traders are focusing on the strongest market moves, further enhancing the reliability of the signals.
Supertrend: A volatility-based trailing stop that defines buy and sell points. Its role in TFCI is to help maintain positions during trending markets while avoiding premature exits due to minor pullbacks.
A Streamlined Confidence Signal 🧮
One of the main advantages of TFCI is that it simplifies the multitude of signals into one easy-to-read confidence percentage. The aggregation of multiple indicators means that no single indicator drives the signal; instead, the combined analysis ensures that only when several conditions align do you get a clear trend indication. This reduces false positives and gives traders a more confident view of the overall market direction.
Bullish signals from several components push the percentage higher.
Bearish signals lower the percentage.
A neutral score indicates indecision, signaling a potential range-bound or consolidating market.This consolidated signal allows traders to make quicker decisions without having to interpret several individual indicators, making the tool more user-friendly and practical for daily trading.
Why TFCI’s Combination is Unique and Useful 🔍
What makes TFCI stand out is how each of these indicators works together to offer a more comprehensive view of the market:
Reduced Noise: By combining multiple indicators, TFCI reduces the likelihood of acting on false signals. The integration of smoothing mechanisms and volume-based confirmations further increases signal reliability.
More Balanced Analysis: Using indicators that analyze price, volume, volatility, and trend strength, TFCI provides a balanced view of market conditions. Traders can trust that the signal reflects multiple facets of the market rather than just one aspect, making it more adaptable to different market environments.
Easier to Read: Instead of juggling multiple charts or relying on complex setups, TFCI combines everything into one clear percentage and visual signal. This saves time and reduces the complexity of decision-making.
Tested Across Market Conditions 📅
While no indicator can predict the future, TFCI has been tested in a range of market conditions. Its ability to adapt to different environments (trending, volatile, or range-bound) makes it a versatile tool, though like any technical tool, it should be used alongside other forms of analysis and risk management.
Custom Display Options for Readability 📊
To make TFCI even more versatile, it includes two display modes:
Table Mode: This mode breaks down the signals from each component, showing traders exactly how each element is contributing to the overall confidence score. Ideal for those who want to dig deeper into the details.
Gauge Mode: A simplified visual display, perfect for traders who want a quick, at-a-glance view of market conditions.
Color Blindness Mode 🌈
TFCI also includes several color palettes for traders affected by color blindness, ensuring everyone can easily interpret the signals.
Conclusion 🔒
TFCI brings together multiple technical indicators in a unique way that aims to improve trend detection by providing a balanced and easy-to-read signal. Its proprietary adjustments and combination of price, volume, and volatility indicators offer a comprehensive view of market conditions, making it a valuable tool for traders of all experience levels. However, it is essential to remember that no past performance can guarantee future results.
Options Strategy Straddle StrangleThe "Options Strategy Straddle Strangle" indicator is designed to assist traders in identifying and executing optimal options trading strategies by leveraging the foundational principles of option greeks. This tool focuses on two prevalent strategies in options trading: straddles and strangles, providing a systematic approach to determining appropriate strike prices based on real-time market data.
At its core, the indicator calculates strike prices by analyzing key option greeks, including Delta, Gamma, Theta, and Vega. By evaluating these sensitivities, the tool assesses the potential risks and rewards associated with different strike prices, ensuring that the selected levels align with the trader's specified thresholds. Users can input their desired thresholds for each greek, allowing for a customized approach that reflects individual risk tolerance and market outlook.
Once the thresholds are set, the indicator applies its underlying logic to filter and identify the most suitable strike prices for both straddle and strangle strategies. A straddle involves purchasing both a call and a put option at the same strike price, benefiting from significant price movements in either direction. Conversely, a strangle involves buying a call and a put option at different strike prices, which can be more cost-effective while still capitalizing on substantial market shifts.
The output of the "Options Strategy Straddle Strangle" indicator is presented in a clear and organized table format. This table displays the recommended strike prices for implementing either a straddle or a strangle strategy, based on the current market conditions and the predefined greek thresholds. By providing this information in an accessible manner, the indicator enables traders to make informed decisions quickly, enhancing their ability to respond to market volatility effectively.
Note:
Used methodology of the following indicator:
Pip hunter 1-Minute Scalping Strategy [manesisnet]NOTE: This is my first attempt to write an indicator using pine script and it's not recommended for serious trading, just use it for your own research or feel free to create your own versions based on the below.
Overview: The "1-Minute Scalping Strategy" is a custom TradingView indicator designed for short-term traders looking to capitalize on quick price movements in the 1-minute timeframe. This strategy combines moving averages and the Relative Strength Index (RSI) to generate buy and sell signals while filtering out potential false entries by confirming trends on a higher timeframe.
How It Works:
Moving Averages:
The indicator uses two Simple Moving Averages (SMAs):
A fast SMA (5-period) for short-term price movements.
A slow SMA (20-period) to identify the overall trend.
Buy signals are generated when the fast SMA crosses above the slow SMA, indicating bullish momentum.
Sell signals occur when the fast SMA crosses below the slow SMA, indicating bearish momentum.
Higher Time Frame Confirmation:
To enhance the accuracy of the signals, the strategy checks the trend on a higher timeframe (default is 5 minutes).
A buy signal is only valid if the current price is above the higher timeframe SMA, confirming that the overall trend is bullish.
A sell signal is only valid if the current price is below the higher timeframe SMA, confirming a bearish trend.
This confirmation helps avoid false breakouts and ensures that trades are aligned with the prevailing market direction.
Relative Strength Index (RSI):
The RSI is used to assess market momentum and potential reversal points.
The indicator calculates a 14-period RSI to identify overbought and oversold conditions.
For buy signals, the RSI must be below 60 (indicating the market is not overbought).
For sell signals, the RSI must be above 40 (indicating the market is not oversold).
This helps to filter out trades that might occur during extreme market conditions.
Visual Representation:
The fast SMA (5-period) is plotted in blue, the slow SMA (20-period) in red, and the higher timeframe SMA in orange.
Buy signals are indicated with a green label below the bar, while sell signals are indicated with a red label above the bar.
This visual representation allows traders to quickly identify potential entry points.
Alerts:
The script includes alert conditions for buy and sell signals, enabling traders to receive notifications when the conditions for entering trades are met.
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.
[MAD MBS] L3 Float Operations & ML-NormalizersFirst of all:
This indicator is not a standalone tool ; it relies on other script series for its inputs.
This script is an indicator designed for multi-path float operations with integrated machine learning normalizers.
It supports up to four distinct paths, each customizable with multiple sources, factors, and operations.
Users can perform various mathematical operations on price data, including addition, subtraction, multiplication, division, and percentage changes, as well as more advanced tasks like double and triple moving averages or power operations.
The script also integrates several normalization methods (e.g., Min-Max, Z-Score, Robust) to standardize data—an important step for machine learning models.
Each path supports multiple smoothing techniques (e.g., EMA, SMA, and specialized Ehlers smoothers) to further refine the output.
Designed to handle multiple data inputs simultaneously, this tool is especially useful for traders looking to analyze and normalize data from different price sources.
The combination of advanced mathematical operations, normalization techniques, and smoothing enhances data management, aiding in more effective trading decisions.
Here you can see a single path, out of the four possible:
Details to the screenshot:
First Series
Second Series
Option to override the second series with a custom constant (or when normalizing, use the length instead)
The first selection box sets the mathematical operation or activates the normalizer.
The second selection box sets the normalization method.
The third selection box sets the final smoothing technique, followed by parameters for smoothing length.
These settings are repeated identically for Paths 2–4.
At the bottom of the setup, there's a general offset option (add the 'close' price for overlay purposes).
Additionally, there's an option to display a line at zero for centered results.
Adaptive MA Scalping StrategyAdaptive MA Scalping Strategy
The Adaptive MA Scalping Strategy is an innovative trading approach that merges the strengths of the Kaufman's Adaptive Moving Average (KAMA) with the Moving Average Convergence Divergence (MACD) histogram. This combination results in a momentum-adaptive moving average that dynamically adjusts to market conditions, providing traders with timely and reliable signals.
How It Works
Kaufman's Adaptive Moving Average (KAMA): Unlike traditional moving averages, KAMA adjusts its sensitivity based on market volatility. It becomes more responsive during trending markets and less sensitive during periods of consolidation, effectively filtering out market noise.
MACD Histogram Integration: The strategy incorporates the MACD histogram, a momentum indicator that measures the difference between a fast and a slow exponential moving average (EMA). By adding the MACD histogram values to the KAMA, the strategy creates a new line—the momentum-adaptive moving average (MOMA)—which captures both trend direction and momentum.
Signal Generation:
Long Entry: The strategy enters a long position when the closing price crosses above the MOMA. This indicates a potential upward momentum shift.
Exit Position: The position is closed when the closing price crosses below the MOMA, signaling a potential decline in momentum.
Cloud Calculation Detail
The MOMA is calculated by adding the MACD histogram value to the KAMA of the price. This addition effectively adjusts the KAMA based on the momentum indicated by the MACD histogram. When momentum is strong, the MACD histogram will have higher values, causing the MOMA to adjust accordingly and provide earlier entry or exit signals.
Performance on Stocks
This strategy has demonstrated excellent performance on stocks when applied to the 1-hour timeframe. Its adaptive nature allows it to respond swiftly to market changes, capturing profitable trends while minimizing the impact of false signals caused by market noise. The combination of KAMA's adaptability and MACD's momentum detection makes it particularly effective in volatile market conditions commonly seen in stock trading.
Key Parameters
KAMA Length (malen): Determines the sensitivity of the KAMA. A length of 100 is used to balance responsiveness with noise reduction.
MACD Fast Length (fast): Sets the period for the fast EMA in the MACD calculation. A value of 24 helps in capturing short-term momentum changes.
MACD Slow Length (slow): Sets the period for the slow EMA in the MACD calculation. A value of 52 smooths out longer-term trends.
MACD Signal Length (signal): Determines the period for the signal line in the MACD calculation. An 18-period signal line is used for timely crossovers.
Advantages of the Strategy
Adaptive to Market Conditions: By adjusting to both volatility and momentum, the strategy remains effective across different market phases.
Enhanced Signal Accuracy: The fusion of KAMA and MACD reduces false signals, improving the accuracy of trade entries and exits.
Simplicity in Execution: With straightforward entry and exit rules based on price crossovers, the strategy is user-friendly for traders at all experience levels
Kurutoga Histogram with HTF and LTF
Kurutoga Histogram:
The Kurutoga Histogram is a technical analysis indicator designed to measure price divergence from the 50% level of a recent price range. By calculating how far the current price is from the midpoint of a selected base length of candles, the histogram provides insight into the momentum, strength, and potential reversals in the market. Additionally, it can be applied across multiple timeframes to provide a comprehensive view of both short- and long-term market dynamics.
Key Components:
Base Length:
The base length is the number of candles (bars) over which the high and low prices are observed. The default base length is typically 14 periods, but it can be adjusted according to the trader's preference.
This base length defines the range from which the 50% level, or midpoint, is calculated.
50% Level (Midpoint):
The midpoint is the average of the highest high and the lowest low over the selected base length. This 50% level acts as an equilibrium point around which the price fluctuates.
Formula:
Midpoint = (Highest High + Lowest Low) / 2
The price’s distance from this midpoint is an indicator of how strong the current trend or divergence is.
Price Divergence:
The main calculation of the histogram is the difference between the current closing price and the midpoint of the price range.
Formula:
Divergence = Close Price − Midpoint
A positive divergence (price above the midpoint) indicates bullish strength, while a negative divergence (price below the midpoint) indicates bearish strength.
Multi-Timeframe Analysis:
The Kurutoga Histogram can be applied to both the current timeframe and a higher timeframe (HTF), allowing traders to gauge price movement in both short-term and long-term contexts.
By comparing the histograms of multiple timeframes, traders can determine if there is alignment (confluence) between trends, which can strengthen trade signals or provide additional confirmation.
Color-Coded Histogram:
Blue Bars (Positive Divergence): Represent that the price is above the 50% level, indicating bullish momentum. Taller blue bars suggest stronger upward momentum, while shrinking bars suggest weakening strength.
Red Bars (Negative Divergence): Represent that the price is below the 50% level, indicating bearish momentum. Taller red bars suggest stronger downward momentum, while shrinking bars suggest a potential reversal or consolidation.
The histogram’s color intensity and transparency can be adjusted to enhance the visual effect, distinguishing between current timeframe (LTF) and higher timeframe (HTF) divergence.
Interpretation:
Bullish Signals: When the histogram bars are blue and growing, the price is gaining momentum above the midpoint of its recent range. This could signal an ongoing uptrend.
Bearish Signals: When the histogram bars are red and growing, the price is gaining momentum below the midpoint, signaling an ongoing downtrend.
Momentum Shifts: When the histogram bars shrink in size (whether blue or red), it could indicate that the current trend is losing strength and may reverse or enter consolidation.
Neutral or Sideways Movement: When the histogram bars hover around zero, it means the price is trading near the midpoint of its recent range, often signaling a lack of strong momentum in either direction.
Multi-Timeframe Confluence:
When the current timeframe (LTF) histogram aligns with the higher timeframe (HTF) histogram (e.g., both are showing strong bullish or bearish divergence), it may provide stronger confirmation of the trend's strength.
Divergence between timeframes (e.g., bullish on LTF but bearish on HTF) may suggest that price movements on lower timeframes are not yet reflected in the broader trend, signaling caution.
Applications:
Trend Identification: The Kurutoga Histogram is highly useful for detecting when the price is trending away from its equilibrium point, providing insight into the strength of ongoing trends.
Momentum Analysis: By measuring the divergence from the 50% level, the histogram helps traders identify when momentum is increasing or decreasing.
Reversal Detection: Shrinking histogram bars can signal weakening momentum, which often precedes trend reversals.
Consolidation and Breakouts: When the histogram remains near zero for an extended period, it suggests consolidation, which often precedes a breakout in either direction.
Advantages:
Clear Visuals: The use of a color-coded histogram makes it easy to visually assess whether the market is gaining bullish or bearish momentum.
Multi-Timeframe Utility: The ability to compare current timeframe signals with higher timeframe signals adds an extra layer of confirmation, reducing false signals.
Dynamic Adjustment: By adjusting the base length, traders can fine-tune the sensitivity of the indicator to match different markets or trading styles.
Limitations:
Lagging Indicator: Like most divergence indicators, the Kurutoga Histogram may lag slightly behind actual price movements, especially during fast, volatile markets.
Requires Confirmation: This indicator works best when used in conjunction with other technical tools like moving averages, support/resistance levels, or volume indicators, to avoid relying on divergence alone.
Conclusion:
The Kurutoga Histogram is a versatile and visually intuitive tool for measuring price divergence from a key equilibrium point, helping traders to assess the strength of trends and identify potential reversal points. Its use across multiple timeframes provides deeper insights, making it a valuable addition to any trading strategy that emphasizes momentum and trend following.
Relative Strength Index Custom [BRTLab]RSI Custom — Strategy-Oriented RSI with Multi-Timeframe Precision
The Relative Strength Index Custom is designed with a focus on developing robust trading strategies. This powerful indicator leverages the logic of calculating RSI on higher timeframes (HTFs) while allowing traders to execute trades on lower timeframes (LTFs). Its unique ability to extract accurate RSI data from higher timeframes without waiting for those candles to close provides a real-time advantage, eliminating the "look-ahead" bias that often
distorts backtest results.
Key Features
Multi-Timeframe RSI for Strategy Development
This indicator stands out by allowing you to calculate RSI on higher timeframes, even while operating on lower timeframe charts. This means you can, for example, calculate RSI on the 1-hour or daily chart and execute trades on a 1-minute chart without needing to wait for the higher timeframe candle to close. This feature is crucial for strategy-building as it eliminates backtesting issues where data from the future is inadvertently used, providing more reliable backtest results.
Example: On a 15-minute chart, you can use the 1-hour RSI to open positions based on higher timeframe momentum, but you get this signal in real-time, improving timing and accuracy.
Accurate Data Extraction from Higher Timeframes
The indicator's custom logic ensures that accurate RSI data is retrieved from higher timeframes, providing an edge by delivering timely information for lower timeframe decisions. This prevents delayed signals often encountered when waiting for higher timeframe candles to close, which is crucial for high-frequency and intraday traders looking for precise entries based on multi-timeframe data.
Customizable RSI Settings for Strategy Tuning
The script offers full customization of the RSI, including length and source price (close, open, high, or low), allowing traders to tailor the RSI to fit specific trading strategies. These settings are housed in the "RSI Settings" section, enabling precise adjustments that align with your overall strategy.
No Future-Looking in Backtests
Traditional backtests often suffer from "future-looking" bias, where calculations unintentionally use data from candles that haven’t yet closed. This indicator is specifically designed to prevent such issues by calculating RSI values in real-time. This is particularly important when creating and testing strategies, as it ensures that the conditions under which trades would have been made are accurately represented in historical tests.
RSI-Based Moving Average for Additional Filtering
The built-in moving average (MA) based on RSI values helps filter out noise, making it easier to identify genuine trend shifts. This is particularly useful in strategies where moving average crossovers act as additional confirmation for trade entries and exits.
Overbought and Oversold Zone Detection
Visual gradient fills on the RSI chart help traders identify overbought and oversold zones (above 70 and below 30, respectively). These zones are crucial for timing reversal trades or confirming momentum-based strategies.
How This Indicator Enhances Your Strategy
Increased Accuracy for Intraday Strategies
For traders who operate on lower timeframes, using higher timeframe RSI data gives a broader perspective of market momentum while still maintaining precision for short-term trade entries. The real-time data extraction means you don't need to wait for HTF candles to close, which can dramatically improve your entry timing.
Strategic Edge in Backtesting
One of the greatest challenges in backtesting strategies is avoiding future-looking bias. This indicator is built to overcome this by using real-time multi-timeframe data, ensuring the accuracy and reliability of historical strategy testing, which provides confidence in your strategies when applied to live markets.
Advanced Filtering for Trend Strategies
By combining the RSI values with a customizable moving average (MA) and visualizing key momentum zones with overbought/oversold fills, the indicator allows for more refined trade filters. This ensures that signals generated by your strategy are based on solid momentum data and not short-term price fluctuations.
Martingale with MACD+KDJ opening conditionsStrategy Overview:
This strategy is based on a Martingale trading approach, incorporating MACD and KDJ indicators. It features pyramiding, trailing stops, and dynamic profit-taking mechanisms, suitable for both long and short trades. The strategy increases position size progressively using a Multiplier, a key feature of Martingale systems.
Key Concepts:
Martingale Strategy: A trading system where positions are doubled or increased after a loss to recover previous losses with a single successful trade. In this script, the position size is incremented using a Multiplier for each addition.
Pyramiding: Allows adding to existing trades when market conditions are favorable, enhancing profitability during trends.
Settings:
Basic Inputs:
Initial Order: Defines the starting size of the position.
Default: 150.0
MACD Settings: Customize the fast, slow, and signal smoothing lengths.
Default: Fast Length: 9, Slow Length: 26, Signal Smoothing: 9
KDJ Settings: Customize the length and smoothing parameters for KDJ.
Default: Length: 14, Smooth K: 3, Smooth D: 3
Max Additions: Sets the number of additional positions (pyramiding).
Default: 5 (Min: 1, Max: 10)
Position Sizing: Percent to add to positions on favorable conditions.
Default: 1.0%
Martingale Multiplier:
Add Multiplier: This value controls the scaling of additional positions according to the Martingale principle. After each loss, a new position is added, and its size is increased by the Multiplier factor. For example, with a multiplier of 2, each new addition will be twice as large as the previous one, accelerating recovery if the price moves favorably.
Default: 1.0 (no multiplication)
Can be adjusted up to 10x to aggressively increase position size after losses.
Trade Execution:
Long Trades:
Entry Condition: A long position is opened when the MACD line crosses over the signal line, and the KDJ’s %K crosses above %D.
Additions (Martingale): After the initial long position, new positions are added if the price drops by the defined percentage, and each new addition is increased using the Multiplier. This continues up to the set Max Additions.
Short Trades:
Entry Condition: A short position is opened when the MACD line crosses under the signal line, and the KDJ’s %K crosses below %D.
Additions (Martingale): After the initial short position, new positions are added if the price rises by the defined percentage, and each new addition is increased using the Multiplier.
Exit Conditions:
Take Profit: Exits are triggered when the price reaches the take-profit threshold.
Stop Loss: If the price moves unfavorably, the position will be closed at the set stop-loss level.
Trailing Stop: Adjusts dynamically as the price moves in favor of the trade to lock in profits.
On-Chart Visuals:
Long Signals: Blue triangles below the bars indicate long entries, and green triangles mark additional long positions.
Short Signals: Red triangles above the bars indicate short entries, and orange triangles mark additional short positions.
Information Table:
The strategy displays a table with key metrics:
Open Price: The entry price of the trade.
Average Price: The average price of the current position.
Additions: The number of additional positions taken.
Next Add Price: The price level for the next position.
Take Profit: The price at which profits will be taken.
Stop Loss: The stop-loss level to minimize risk.
Usage Instructions:
Adjust the parameters to your trading style using the input settings.
The Multiplier amplifies your position size after each addition, so use it cautiously, especially in volatile markets.
Monitor the signals and table on the chart for entry/exit decisions and trade management.
CUSTOM SESSION PublicThis Pine Script code creates a custom indicator that allows users to visualize different trading sessions (New York, London, Tokyo, Sydney) on a chart and customize various features such as line style, color, label text, and more. Here are the key user-end features:
Session Visualization:
Users can choose to display session ranges for New York, London, Tokyo, and Sydney trading sessions.
Each session can be highlighted with customizable colors for the label, background, and border.
Line styles for session outlines (solid, dashed, dotted) are adjustable.
Custom Session Time:
Users can input custom time ranges for each session and control the display of the range on the chart.
Label Customization:
The label for each session (e.g., “New York”, “London”) can be customized with specific text and color.
Users can toggle the visibility of these labels.
Range Highlighting:
Each session can display the high and low price ranges, with an option to control the transparency of the highlighted area.
Users can choose to outline the range with customizable styles.
Timezone Adjustment:
Users can adjust the timezone to their preference or use the exchange’s default timezone for accurate session mapping.
Daily and Weekly High/Low Lines:
The indicator plots the previous day's and previous week's high and low points.
These lines are customizable with different colors and styles.
Users can enable or disable shorthand text for these labels (e.g., “Prev DH” for Previous Day High).
Global Customization Options:
Users can enable global coloring to apply one color across all elements.
Global text shorthand is available to abbreviate labels throughout the chart.
Overall, the script provides extensive customization options for traders to visually manage multiple sessions and key price levels on their charts.
Kijun Sen MedianKey Features:
Kijun-Sen Calculation: The traditional Kijun-Sen is calculated as the average of the highest high and the lowest low over a specified period. This script introduces a variation by using the median price of the user-defined source (kj_src2) over the selected length (med_len), creating a median-based Kijun-Sen.
Trend Indication:
A positive trend is indicated when the source price is above the Kijun-Sen.
A neutral trend is indicated when the source price is equal to the Kijun-Sen.
A negative trend is indicated when the source price is below the Kijun-Sen.
User Inputs:
Plot Kijun-Sen: Toggle to enable or disable the display of the Kijun-Sen line.
Kijun-Sen Length (len): Sets the period for calculating the Kijun-Sen.
Median Length (med_len): Defines the period over which the median price is calculated.
Kijun Source (kj_src): The source price for evaluating conditions above, equal, or below the Kijun-Sen.
Median Source (kj_src2): The source price used in calculating the median price for the Kijun-Sen.
This indicator is designed to help traders identify trend changes and potential reversal points based on a modified Kijun-Sen line. The color-coded line provides an immediate visual cue for the current market condition, making it easier to interpret trends and potential trading signals.
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.
Larry Williams Valuation Index [tradeviZion]Larry Williams Valuation Index
Welcome to the Larry Williams Valuation Index by tradeviZion! This script is an interpretation of Larry Williams' famous WillVal (Valuation) Index, originally developed in 1990 to help traders determine whether a market or asset is overvalued or undervalued. We've extended it to support multiple securities and offer alerts for different valuation levels, helping you make more informed trading decisions.
What is the Valuation Index?
The Valuation Index measures how a security's current price compares to its historical price action. It helps identify whether the security is overvalued (priced too high), undervalued (priced too low), or in a normal range.
This version supports multiple securities and uses valuation parameters to help you assess the relative valuation of three securities simultaneously. It can help you determine the best times to enter (buy) or exit (sell) the market.
Key Features
Multi-Security Analysis: Analyze up to three securities simultaneously to get a broader view of market conditions.
Valuation Levels: Automatically calculate overvaluation and undervaluation levels or set manual levels for consistent analysis.
Custom Alerts: Create custom alerts when securities move between overvalued, undervalued, or normal ranges.
Customizable Table Display: Display a table with valuation values and their status on the chart.
Getting Started
Step 1: Adding the Script to Your Chart
First, add the Larry Williams Valuation Index script to your chart on TradingView. The script is designed to work with any timeframe, but for best results, use weekly or daily timeframes for a longer-term perspective.
Step 2: Configuring Securities
The script allows you to analyze up to three different securities :
Security 1 (Default: DXY)
Security 2 (Default: GC1!)
Security 3 (Default: ZB1!)
You can enable or disable each security individually.
Custom Timeframe Option: You have the option to select a custom timeframe for analysis. This allows you to see whether the security is overvalued or undervalued in lower or higher timeframes. Note that this feature is experimental and has not been extensively tested. Larry Williams originally used the weekly timeframe to determine if a stock was overvalued or undervalued. By default, the indicator compares the current price with the security based on the selected timeframe, except if you choose to use a custom timeframe.
Pro Tip : New users can start with the default securities to understand the concept before using other assets.
Step 3: Valuation Index Settings
Short EMA Length : This is the short-term average used for calculations. A lower value makes it more responsive to recent price changes.
Long EMA Length : This is the long-term average, used to smooth the valuation over time.
Valuation Length (Default: 156) : Represents approximately three years of daily bars (as recommended by Larry Williams).
How is the Valuation Index Calculated?
The valuation calculation is done using a method called WVI (WillVal Index), which compares the current price of a security to the price of another correlated security. Here’s a step-by-step explanation:
1. Data Collection: The script takes the closing price of the security you are analyzing and the closing price of the correlated security.
2. Ratio Calculation : The ratio of the two prices is calculated:
Price Ratio = (Price of your security) / (Price of correlated security) * 100.
This ratio helps determine how expensive or cheap your security is compared to the correlated one.
3. Exponential Moving Averages (EMAs) : The price ratio is used to calculate short-term and long-term EMAs (Exponential Moving Averages). EMAs are used to create smooth lines that represent the average price of a security over a specific period of time, with more weight given to recent data. By calculating both short-term and long-term EMAs, we can identify the trend direction and how the security is performing compared to its historical averages.
4. Valuation Index Calculation:
The Valuation Index is calculated as the difference between the short-term EMA and the long-term EMA. This difference helps to determine if the security is currently overvalued or undervalued:
A positive value indicates that the price is above its longer-term trend, suggesting potential overvaluation.
A negative value indicates that the price is below its longer-term trend, suggesting potential undervaluation.
5. Normalization:
To make the valuation easier to interpret, the calculated valuation index is then normalized using the highest and lowest values over the selected valuation length (e.g., 156 bars).
This normalization process converts the index into a percentage between 0 and 100, where higher values indicate overvaluation and lower values indicate undervaluation.
Step 4: Understanding Valuation Levels
The valuation levels indicate whether a security is currently undervalued, overvalued, or in a normal range.
Manual Levels : You can manually set the overvaluation and undervaluation thresholds (default is 85 for overvalued and 15 for undervalued).
Auto Levels : The script can automatically calculate these levels based on recent price action, allowing you to adapt to changing market conditions.
Auto Levels Calculation Explained:
The Auto Levels are calculated by taking the average of the valuation indices for all three securities (e.g., index1, index2, and index3).
The script then looks at the highest and lowest values of this average over a selected number of recent bars (e.g., 50 bars).
The overvaluation level is determined by taking the highest value and multiplying it by a multiplier (e.g., 5). Similarly, the undervaluation level is calculated using the lowest value and the multiplier.
These dynamic levels adjust according to recent price action, providing an adaptive approach to identifying overvalued and undervalued conditions.
Step 5: How to Use the Script to Make Trading Decisions
For new users, here's a step-by-step trading strategy you can use with the Valuation Index:
1. Identify Undervalued Opportunities
When two or more securities are in the undervalued range (below 15 for manual or below automatically calculated undervalue levels), wait for at least two of these securities to turn from undervalued to normal .
This transition indicates a potential buy opportunity .
2. Buying Signal
When at least two securities transition from undervalued to normal, you can consider buying the asset.
This indicates that the market may be recovering from undervalued conditions and could be moving into a growth phase.
3. Selling Signal
Exit when the price high closes below the EMA 21 (21-day exponential moving average).
Alternatively, if the valuation index reaches overvalued levels (above 85 manually or auto-calculated), wait for it to drop back to normal . This can be another point to exit the trade .
You can also use any other sell condition based on your r isk management strategy .
Alerts for Valuation Levels
The script includes alerts to notify you of changing market conditions:
To activate these alerts, follow these steps, referring to the provided screenshot with detailed steps:
1. Enable Alerts : Click on the settings gear icon on the script title in your chart. In the settings menu, scroll to the section labeled Alerts Settings .
Enable Alerts by checking the Enable Alerts box.
Set the Required Securities for Alert (default is 2 securities).
Choose the Alert Frequency : Selecting Once Per Bar Close will trigger alerts only at the close of each bar, ensuring you receive confirmed signals rather than potentially noisy intermediate signals.
2. Select Alert Type : Choose the type of alert you want to activate, such as Alert on Overvalued, Alert on Undervalued, Alert on Over to Normal , or Alert on Under to Normal .
3. Save Settings : Click OK to save your alert settings.
4. Add Alert on Indicator : Click the "..." (More button) next to the indicator name on the chart and select " Add alert on tradeviZion - WillVal ".
5. Create Alert : In the Create Alert window:
Set Condition to tradeviZion - WillVal .
Ensure Any alert() function call is selected.
Set the Alert Name and select your Expiration preferences.
6. Set Notification Preferences : Go to the Notifications tab and select how you want to receive notifications, such as via app notification, toast notification, email , or sound alert . Adjust these preferences to best suit your needs.
7. Click Create : Finally, click Create to activate the alert.
These alerts will help you stay informed about key market conditions and take action accordingly, ensuring you do not miss critical trading opportunities.
Understanding the Table Display
The script includes an interactive table on the chart to show the valuation status of each security:
Security : The name of the security being analyzed.
Value : The current valuation index value.
Status : Indicates whether the security is overvalued, undervalued , or in a normal range.
Color: Displays a color code for easy identification of status:
Red for overvalued.
Green for undervalued.
Other colors represent normal valuation levels.
Empowering Messages : Motivational messages are displayed to encourage disciplined trading. These messages will change periodically, helping keep a positive trading mindset.
Acknowledgment
This tool builds upon the foundational work of Larry Williams, who developed the WillVal (Valuation) Index concept. It also incorporates enhancements to extend multi-security analysis, valuation normalization, and advanced alerting features, providing a more versatile and powerful indicator. The Larry Williams Valuation Index [ tradeviZion ] helps traders make informed decisions by assessing overvalued and undervalued conditions for multiple securities simultaneously.
Note : Always practice proper risk management and thoroughly test the indicator to ensure it aligns with your trading strategy. Past performance is not indicative of future results.
Trade smarter with TradeVizion—unlock your trading potential today!
BRT MACD CustomBRT MACD Custom — Adaptive and Flexible MACD for Multi-Timeframe Analysis
The BRT MACD Custom is an advanced version of the traditional MACD indicator, offering additional flexibility and adaptability for multi-timeframe trading. This custom script allows traders to adjust the calculation parameters for MACD to suit their specific trading strategy, timeframe, and market conditions.
Key Features
Multi-Timeframe Support
Unlike the standard MACD, this indicator lets you choose a specific timeframe (different from the chart timeframe) for calculating MACD values. This feature provides more flexibility in analyzing market trends on multiple timeframes without changing the main chart.
Example: You can analyze MACD on a 15-minute timeframe even when your chart is set to 1-minute, giving you broader market insights.
Customizable EMA and Signal Settings
Users can adjust the fast and slow EMA lengths as well as the signal smoothing to better align with their preferred trading strategies. The script allows switching between the two popular types of moving averages — SMA or EMA — for both the MACD and the signal line.
Volatility-Based Adaptive EMA
The script includes an adaptive mechanism for EMA calculation. When the selected timeframe closes, the indicator dynamically adjusts the calculation, ensuring the MACD values respond quickly to market volatility. This makes the indicator more reactive compared to static MACD implementations.
Shift Options for MACD, Signal, and Histogram
The indicator allows shifting the MACD, signal line, and histogram values by one or more bars. This can be useful for backtesting and simulating strategies where you anticipate future price movements.
Signal Alerts for Long and Short Trades
The script generates visual signals when certain conditions are met, indicating potential long or short trade opportunities. These signals are based on MACD and histogram crossovers:
Long Signal: Triggered when MACD is above the signal line and both are rising.
Short Signal: Triggered when MACD is below the signal line and both are falling.
Custom Plotting
The MACD line, signal line, and histogram are plotted on the chart for easy visualization. The histogram changes colors to reflect positive or negative momentum:
Green shades when MACD is above the signal line.
Red shades when MACD is below the signal line.
Applications in Trading
The BRT MACD Custom is ideal for traders who need flexibility in their technical analysis. Its multi-timeframe capabilities and customizable moving averages make it suitable for day trading, swing trading, and long-term investing across a variety of markets.
Scalping: Use the 1-minute or 5-minute timeframe to identify short-term trends while calculating MACD on a higher timeframe such as 15 or 30 minutes.
Swing Trading: Apply the indicator on 1-hour or 4-hour charts to detect mid-term trends.
Long-Term Investing: Analyze daily or weekly charts with longer EMA periods to confirm market direction before making large investments.
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.
Consecutive Candle Detector Consecutive Candle Detector , can be used to highlight impulsive moves . 3 or more candles with the same colour in the same direction .
Set an alert notification to let you know price has moved in an impulsive way and is forming a pattern to sell or buy