NSDT Lattice WebThis script creates a "web" by connecting different points of candles. All configurable by the trader.
There are 4 basic parts to a candle:
Open, High, Low, and Close
With this script, you can connect any point of one candle in the past to any point of another current candle.
For example:
High to High, High to Low, High to Open, High to close
Low to High, Low to Low, Low to Open, Low to Close
Open to High, Open to Low, Open to Open, Open to Close
Close to High, Close to Low, Close to Open, Close to Close
The script will change the line colors based on whether the current plot is higher or lower than the previous plot.
Try out different connection points to see what works for you. Connecting High to High and Low to Low, might easily show you when the market is making higher highs or lower lows, indicating a potential movement.
Run it on replay at a higher speed and see how it may potentially help identify area of congestion or trends.
스크립트에서 "high low"에 대해 찾기
Bar metrics / quantifytools— Overview
Rather than eyeball evaluating bullishness/bearishness in any given bar, bar metrics allow a quantified approach using three basic fundamental data points: relative close, relative volatility and relative volume. These data points are visualized in a discreet data dashboard form, next to all real-time bars. Each value also has a dot in front, representing color coded extremes in the values.
Relative close represents position of bar's close relative to high and low, high of bar being 100% and low of bar being 0%. Relative close indicates strength of bulls/bears in a given bar, the higher the better for bulls, the lower the better for bears. Relative volatility (bar range, high - low) and relative volume are presented in a form of a multiplier, relative to their respective moving averages (SMA 20). A value of 1x indicates volume/volatility being on par with moving average, 2x indicates volume/volatility being twice as much as moving average and so on. Relative volume and volatility can be used for measuring general market participant interest, the "weight of the bar" as it were.
— Features
Users can gauge past bar metrics using lookback via input menu. Past bars, especially recent ones, are helpful for giving context for current bar metrics. Lookback bars are highlighted on the chart using a yellow box and metrics presented on the data dashboard with lookback symbols:
To inspect bar metric data and its implications, users can highlight bars with specified bracket values for each metric:
When bar highlighter is toggled on and desired bar metric values set, alert for the specified combination can be toggled on via alert menu. Note that bar highlighter must be enabled in order for alerts to function.
— Visuals
Bar metric dots are gradient colored the following way:
Relative volatility & volume
0x -> 1x / Neutral (white) -> Light (yellow)
1x -> 1.7x / Light (yellow) -> Medium (orange)
1.7x -> 2.4x / Medium (orange) -> Heavy (red)
Relative close
0% -> 25% / Heavy bearish (red) -> Light bearish (dark red)
25% -> 45% / Light bearish (dark red) -> Neutral (white)
45% - 55% / Neutral (white)
55% -> 75% / Neutral (white) -> Light bullish (dark green)
75% -> 100% / Light bullish (dark green) -> Heavy bullish (green)
All colors can be adjusted via input menu. Label size, label distance from bar (offset) and text format (regular/stealth) can be adjusted via input menu as well:
— Practical guide
As interpretation of bar metrics is highly contextual, it is especially important to use other means in conjunction with the metrics. Levels, oscillators, moving averages, whatever you have found useful for your process. In short, relative close indicates directional bias and relative volume/volatility indicates "weight" of directional bias.
General interpretation
High relative close, low relative volume/volatility = mildly bullish, bias up/consolidation
High relative close, medium relative volume/volatility = bullish, bias up
High relative close, high relative volume/volatility = exuberantly bullish, bias up/down depending on context
Medium relative close, low relative volume/volatility = noise, no bias
Medium relative close, medium to high relative volume/volatility = indecision, further evidence needed to evaluate bias
Low relative close, low relative volume/volatility = mildly bearish, bias down/consolidation
Low relative close, medium relative volume/volatility = bearish, bias down
Low relative close, high relative volume/volatility = exuberantly bearish, bias down/up depending on context
Nuances & considerations
As to relative close, it's important to note that each bar is a trading range when viewed on a lower timeframe, ES 1W vs. ES 4H:
When relative close is high, bulls were able to push price to range high by the time of close. When relative close is low, bears were able to push price to range low by the time of close. In other words, bulls/bears were able to gain the upper hand over a given trading range, hinting strength for the side that made the final push. When relative close is around middle range (40-60%), it can be said neither side is clearly dominating the range, hinting neutral/indecision bias from a relative close perspective.
As to relative volume/volatility, low values (less than ~0.7x) imply bar has low market participant interest and therefore is likely insignificant, as it is "lacking weight". Values close to or above 1x imply meaningful market participant interest, whereas values well above 1x (greater than ~1.3x) imply exuberance. This exuberance can manifest as initiation (beginning of a trend) or as exhaustion (end of a trend):
Vision Essentials - RSIVision Essentials - RSI is the first indicator from our essentials pack we have planned. It's our twist on the highly popular RSI (Relative Strength Index) Oscillator.
What makes this indicator different?
Based on community feedback we provided users with a visual + adjustable oversold and overbought range to avoid having to redraw boxes during session. Adjusting the settings will update the box positioning on the chart to match.
We utilize custom inputs to allow users to select HA based open, high, low, and close as well as the usual open, high, low, close, hl2, hlc3, and ohlc4 inputs (more coming soon)
The indicator will track the values of the recent high & low points of the RSI based on the distance setting. These values are displayed as text floating at the end of the pane, as well as plotted lines for a visual of the past and current high/low points
The user has complete customization of the color schemes used by: The oversold box, the overbought box, the RSI lower color, the RSI higher color, the recent low color, the recent high color, and the text color. The user can also control the distance that is utilized for finding the recent High & Low points.
How do I use this indicator?
To start using this indicator simply apply it to your chart. We use pre-defined values matching the most common RSI configuration however, you're encouraged to view the settings to fully understand how to adjust the various settings as well as learn how the indicator changes under each individual setting.
RSI Source - This is the input source the RSI calculation is based on. Close is the most common, and default which utilizes the closing price of candles
RSI Length - This setting provides the indicator the length (distance) you want the RSI outlook to be based on. The most common is a 14-day timeframe, but keep in mind that the value of 14 on a 15min chart isn't the same as the value of 14 on a 1day chart. The simple way to view this setting is to consider how many candles back you want the calculation to be based on
RSI Oversold - This setting is considered the "low" level of the RSI. 30 is the most common setting. The lower the RSI, the more momentum that is considered to be in place
RSI Overbought - This setting is considered the "high" level of the RSI. 70 is the most common setting. The higher the RSI, the more momentum that is considered to be in place
High/Low Distance - This setting defines the number of candles back that the indicator will look to determine the recent high/low values
Visual Style - Gradient provides you with a gradient fill between 2 RSI lines. The first is the root RSI based on your RSI settings, and the second is a doubled value which creates the fill gap. Gradient + Highlight is the same as Gradient, but enables coloring on the root RSI edge of the gradient. Highlight Only provides you with a single line based on your RSI settings
Highlight Color - This setting controls the color of your root RSI plot when using one of the highlight based Visual Styles
RSI Lower - This setting controls the color used by the indicator when the RSI value is on the lower end of the spectrum
RSI Higher - This setting controls the color used by the indicator when the RSI value is on the higher end of the spectrum
Recent Low Color - This setting controls the color used by the indicator for plotting the recent low line
Recent High Color - This setting controls the color used by the indicator for plotting the recent high line
Text Color - This setting controls the text color used for the recent high low values at the end of the pane
coates moving averages (cma)This indicator uses three moving averages:
2 period low simple ma
2 period high simple ma
9 period least squares ma
The trend is determined by the angle of the moving averages, current close relative the the 9 least squares ma (lsm) and the current close relative to the prior two periods high and low.
When there are consecutive closes inside the prior two candles high and low then a range is signaled:
In ranges the buy zone is between the lowest low and the lowest close of the current range. The sell zone is between the highest high and the highest close. The zones are adjusted as long as the new close is within the prior two candles range:
When price closes above the 2 high ma and the 9 lsm then a bull trend is signaled if all moving averages are angled upward (as seen at #4 in the chart above and #1 the chart below ). If the 9 lsm and / or the 2 low ma continue to angle downward, following a close above the 2 high ma and 9 lsm, then a prolonged range or reversal is expected (#2 in the chart below):
During a bull trend the buy zone is between the 2 low ma and the 9 lsm. The profit target is the 2 high ma:
During dip buying opportunities price should resist closing below the 9 lsm. If there is one close below the 9 lsm then it is a canary in the coalmine that tells us to proceed with caution. This will often signal a range, based on the conditions outlined above. To avoid a prolonged range, or reversal, price needs to immediately react in the direction of the prevailing trend:
If the moving averages are angled down and the most recent close is below the 2 low ma and 9 lsm then trend is fully bearish:
During a bear trend the short zone is between the 2 high ma and 9 lsm. The profit target is the 2 low ma:
When the 2 high ma angles down and the 2 low ma angles up while price closes inside both mas then it indicates a cma squeeze:
Volatility is expected in the direction of the breakout following the squeeze. In this situation traps / shakeouts are common. If there is a wick outside the cma, with a close inside, then it indicates a trap / shakeout. If there is a close outside the 2 high / low ma then it signals a breakout.
A trend is considered balanced when the 9 lsm is roughly equidistant from the 2 low and 2 high mas. If the 9 lsm crosses the 2 high or 2 low ma then it signals exhaustion / imbalance.
For a stop loss I use the prior three periods low, for bull trends, and the prior three periods high for bear trends. I would expect other reliable stops, such as the parabolic sar or bill williams fractal, to be effective as well. The default moving averages should be very effective on all timeframes and assets classes, however this indicator was developed for bitcoin with a focus on higher timeframes such as the 4h, daily and weekly.
As with any other technical indicator there will be bad signals. Proceed with caution and never risk more than you are willing to lose.
MAPS - HiLo DivergenceThe High/Low indicator utilizes the measuring of local highs and lows as well as local peaks and troughs to identify possible divergence in the price action.
Purple oscillator = Higher Timeframe's price measurement
Purple high triangle = A local high on the higher timeframe has been made
Purple low triangle = A local low on the higher timeframe has been made
Red high triangle on the purple oscillator = A local high on the higher timeframe has been made and is deemed a bearish divergent high
Green low triangle on the purple oscillator = A local low on the higher timeframe has been made and is deemed a bullish divergent low
Orange oscillator = Current Timeframe's price measurement
Orange high triangle = A local high on the current timeframe has been made
Orange low triangle = A local low on the current timeframe has been made
Red high triangle on the orange oscillator = A local high on the current timeframe has been made and is deemed a bearish divergent high
Green low triangle on the orange oscillator = A local low on the current timeframe has been made and is deemed a bullish divergent low
20 Pips & Dip™ Indicator20 Pips & Dipp script based on a few different indicators which together provides powerful help for all level of traders, especially beginners. Also, script have toggles to switch on/off: Renko Reversal, EMA, HHLL, Support/Resistance, Daily Open modules.
1st Module – Renko Reversal Alerts Indicator. The Indicator point out a spot where the revers are happens. Any changes in Price that do not reach a minimum amount are usually filtered. This helps to keep attention on larger, significant moves, and helps not to avoid the minute fluctuations in the market.
How it’s works?
- ENTER a trade JUST AFTER 1 Renko brick is printed. BUY triangle (green buy text with green triangle) is generated if a bearish Renko Brick is followed by a bullish brick. In other words, a buy signal happens when a white block is drawn after a black one. The buy happens then at the closing price that may be higher than the top of the last brick. It can go two bricks up minus a tick or pip.
- EXIT that trade, and open a new reverse position, just after 1 Renko brick is printed in the opposite direction. SELL triangle (red sell text with red triangle) is generated if a bullish brick is followed by a bearish brick. In other words, a sell signal happens when a black block is drawn, after a white block. The same situation as with a buy signal happens on sell signals. There is an uncertainty on the close price that may go as far as one tick above the next potential bearish block.
How to create custom ALERTS? Right click on a sell or buy triangle > Add Alert > 20 Pips & Dipp > Choose between Long or Short opportunity. In options field choose ONCE PER BAR. All other options you can choose according to your personal needs. If you want alert for another option (i.e. Short opportunity) just add one more.
Just to know! To understand how those module work better to switch to Renko chart. But Renko Chart with Renko brick size & Timeframe less than 1 day available only for PRO+ accounts and better. Also, we need to say that TradingView platform do not provide TICK data as we know. So, it may confuse you. Be careful!
2nd Module – Moving Average Exponential. The exponential moving average (EMA) is a weighted moving average (WMA) that gives more weighting, or importance, to recent price data than the simple moving average (SMA) does. The EMA responds more quickly to recent price changes than the SMA. The formula for calculating the EMA just involves using a multiplier and starting with the SMA. Like all moving averages, this technical indicator is used to produce buy and sell signals based on crossovers and divergences from the historical average. By default, our EMA have 50 period. The 50 moving average is the standard swing-trading moving average and very popular. Most traders use it to ride trends because it’s the ideal compromise between too short and too long term. Some people call it medium-term.
How to use it? EMAs are commonly used in conjunction with other indicators to confirm significant market moves and to gauge their validity. For traders who trade intraday and fast-moving markets, the EMA is more applicable. Quite often, traders use EMAs to determine a trading bias. For example, if an EMA on a daily chart shows a strong upward trend, an intraday trader’s strategy may be to trade only from the long side on an intraday chart.
Limitations of EMA! An EMA relies wholly on historical data. Many people believe that markets are efficient - that is, that current market prices already reflect all available information. If markets are indeed efficient, using historical data should tell us nothing about the future direction of asset prices.
3rd Module - Pivot Points (High/Low). Also known as Bar Count Reversals, are used to anticipate potential price reversals. Pivot Point Highs are determined by the number of bars with lower highs on either side of a Pivot Point High. Pivot Point Lows are determined by the number of bars with higher lows on either side of a Pivot Point Low. Default period is 10.
How this indicator works? The longer the trend (the higher the period selected) before and after the Pivot Point, the more significant the Pivot Point. Pivot Points can be used to help determine where to draw trendlines in order to visualize price patterns.
Calculation! Pivot Point Highs are determined by the number of bars with lower highs on either side of a Pivot Point High. Pivot Point Lows are determined by the number of bars with higher lows on either side of a Pivot Point Low.
4th Module - Higher High Lower Low indicator. Higher high and higher lows and Lower lows and lower highs are trends in a chart. Stocks in general never go up or down in linear fashion, every rise is followed by correction and then again it may either go up or down, same is true for downtrend every fall is followed by a correction in the upward direction and then new downtrend or uptrend is followed. After every rise, the stock took breather corrected to some extent and then new uptrend began, when you see the correction every low is higher than the previous lows and every next peak is higher than it’s previous peak. This is higher highs and higher lows trend.
How it’s work? This script finds pivot highs and pivot lows then calculates Higher Highs, Higher Lows & Lower Lows, Lower Highs. And it calculates support/resistance by using HH-HL-LL-LH points. Generally, HH and HL shows up-trend, LL and LH shows down-trend. If price breaks resistance levels it means the trend is up or if price breaks support level it means the trend is down, so the script can change bar colour blue or black by default. if there is up-trend then bar colour is blue, or if down-trend then bar colour is black. Support and resistance levels change dynamically.
Trick! If you use smaller numbers for Left Hand/Right Hand sides then it will be more sensitive!
5th Module - Daily Open Price. The opening price is the price at which a security first trades upon the opening of an exchange on a trading day; for example, the New York Stock Exchange (NYSE) opens at precisely 9:30 a.m. Eastern time. The price of the first trade for any listed stock is its daily opening price. The opening price is an important marker for that day's trading activity, particularly for those interested in measuring short-term results such as day traders.
Important! If daily open price was higher than current price, crosses will be red. And if daily open price lower than current price crosses will be green. Colours change dynamically.
You need to know it! An opening price is not identical to the previous day's closing price. There are several day-trading strategies based on the opening price of a market or security. Research “Gap Fade and Fill” or “Fade”.
Author – Christian Kopachelli . Huge thanks and credits to peoples which ideas, formulas, calculations, code snippets and code parts were used: Robert Nance, CryptoJoncis , FritzHaber , vacalo69 , Molle de Jong, Baris Yakut, LonesomeTheBlue , ChrisMoody , Robert N. ~~~ THANK you all! You are awesome!
DISCLAIMER! RISK WARNING!
PAST PERFORMANCE IS NOT NECESSARILY INDICATIVE OF FUTURE RESULTS. TRADERS SHOULD NOT BASE THEIR DECISION ON INVESTING IN ANY TRADING PROGRAM SOLELY ON THE PAST PERFORMANCE PRESENTED, ADDITIONALLY, IN MAKING AN INVESTMENT DECISION, TRADERS MUST ALSO RELY ON THEIR OWN EXAMINATION OF THE PERSON // OR ENTITY MAKING THE TRADING DECISIONS.
Rsi TrendLines with Breakouts [KoTa]### RSI TrendLines with Breakouts Indicator: Detailed User Guide
The "RSI TrendLines with Breakouts " indicator is a custom Pine Script tool designed for TradingView. It builds on the standard Relative Strength Index (RSI) by adding dynamic trendlines based on RSI pivots (highs and lows) across multiple user-defined periods. These trendlines act as support and resistance levels on the RSI chart, and the indicator detects breakouts when the RSI crosses these lines, generating potential buy (long) or sell (short) signals. It also includes overbought/oversold thresholds and optional breakout labels. Below, I'll provide a detailed explanation in English, covering how to use it, its purpose, advantages and disadvantages, example strategies, and ways to enhance strategies with other indicators.
How to Use the Indicator
- The indicator uses `max_lines_count=500` to handle a large number of lines without performance issues, but on very long charts, you may need to zoom in for clarity.
1. **Customizing Settings**:
The indicator has several input groups for flexibility. Access them via the gear icon next to the indicator's name on the chart.
- **RSI Settings**:
- RSI Length: Default 14. This is the period for calculating the RSI. Shorter lengths (e.g., 7-10) make it more sensitive to recent price changes; longer (e.g., 20+) smooth it out for trends.
- RSI Source: Default is close price. You can change to open, high, low, or other sources like volume-weighted for different assets.
- Overbought Level: Default 70. RSI above this suggests potential overbuying.
- Oversold Level: Default 30. RSI below this suggests potential overselling.
- **Trend Periods**:
- You can enable/disable up to 5 periods (defaults: Period 1=3, Period 2=5, Period 3=10, Period 4=20, Period 5=50). Only enabled periods will draw trendlines.
- Each period detects pivots (highs/lows) in RSI using `ta.pivothigh` and `ta.pivotlow`. Shorter periods (e.g., 3-10) capture short-term trends; longer ones (20-50) show medium-to-long-term momentum.
- Inline checkboxes allow you to toggle display for each (e.g., display_p3=true by default).
- **Color Settings**:
- Resistance/Support Color: Defaults to red for resistance (up-trendlines from RSI highs) and green for support (down-trendlines from RSI lows).
- Labels for breakouts use green for "B" (buy/long) and red for "S" (sell/short).
- **Breakout Settings**:
- Show Prev. Breakouts: If true, displays previous breakout labels (up to "Max Prev. Breakouts Label" +1, default 2+1=3).
- Show Breakouts: Separate toggles for each period (e.g., show_breakouts3). When enabled, dotted extension lines project the trendline forward, and crossovers/crossunders trigger labels like "B3" (breakout above resistance for Period 3) or "S3" (break below support).
- Note: Divergence detection is commented out in the code. If you want to enable it, uncomment the relevant sections (e.g., show_divergence input) and adjust the lookback (default 5 bars) for spotting bullish/bearish divergences between price and RSI.
2. **Interpreting the Visuals**:
- **RSI Plot**: A blue line showing the RSI value (0-100). Horizontal dashed lines at 70 (red, overbought), 30 (green, oversold), and 50 (gray, midline).
- **Trendlines**: Solid lines connecting recent RSI pivots. Green lines (support) connect lows; red lines (resistance) connect highs. Only the most recent line per direction is shown per period to avoid clutter.
- **Breakout Projections**: Dotted lines extend the current trendline forward. When RSI crosses above a red dotted resistance, a "B" label (e.g., "B1") appears above, indicating a potential bullish breakout. Crossing below a green dotted support shows an "S" label below, indicating bearish.
- **Labels**: Current breakouts are bright (green/red); previous ones fade to gray. Use these as signal alerts.
- **Alerts**: The code includes commented-out alert conditions (e.g., for breakouts or RSI crossing levels). Uncomment and set them up in TradingView's alert menu for notifications.
3. **Best Practices**:
- Use on RSI-compatible timeframes (e.g., 1H, 4H, daily) for stocks, forex, or crypto.
- Combine with price chart: Trendlines are on RSI, so check if RSI breakouts align with price action (e.g., breaking a price resistance).
- Test on historical data: Backtest signals using TradingView's replay feature.
- Avoid over-customization initially—start with defaults (Periods 3 and 5 enabled) to understand behavior.
What It Is Used For
This indicator is primarily used for **momentum-based trend analysis and breakout trading on the RSI oscillator**. Traditional RSI identifies overbought/oversold conditions, but this enhances it by drawing dynamic trendlines on RSI itself, treating RSI as a "price-like" chart for trend detection.
- **Key Purposes**:
- **Identifying Momentum Trends**: RSI trendlines show if momentum is strengthening (upward-sloping support) or weakening (downward-sloping resistance), even if price is ranging.
- **Spotting Breakouts**: Detects when RSI breaks its own support/resistance, signaling potential price reversals or continuations. For example, an RSI breakout above resistance in an oversold zone might indicate a bullish price reversal.
- **Multi-Period Analysis**: By using multiple pivot periods, it acts like a multi-timeframe tool within RSI, helping confirm short-term signals with longer-term trends.
- **Signal Generation**: Breakout labels provide entry/exit points, especially in trending markets. It's useful for swing trading, scalping, or confirming trends in larger strategies.
- **Divergence (Optional)**: If enabled, it highlights mismatches between price highs/lows and RSI, which can predict reversals (e.g., bullish divergence: price lower low, RSI higher low).
Overall, it's ideal for traders who rely on oscillators but want more visual structure, like trendline traders applying price concepts to RSI.
Advantages and Disadvantages
**Advantages**:
- **Visual Clarity**: Trendlines make RSI easier to interpret than raw numbers, helping spot support/resistance in momentum without manual drawing.
- **Multi-Period Flexibility**: Multiple periods allow analyzing short- and long-term momentum simultaneously, reducing noise from single-period RSI.
- **Breakout Signals**: Automated detection of breakouts provides timely alerts, with labels and projections for proactive trading. This can improve entry timing in volatile markets.
- **Customization**: Extensive inputs (periods, colors, breakouts) make it adaptable to different assets/timeframes. The stateful management of lines/labels prevents chart clutter.
- **Complementary to Price Action**: Enhances standard RSI by adding trend context, useful for confirming divergences or overbought/oversold trades.
- **Efficiency**: Uses efficient arrays and line management, supporting up to 500 lines for long charts without lagging TradingView.
**Disadvantages**:
- **Lagging Nature**: Based on historical pivots, signals may lag in fast-moving markets, leading to late entries. Shorter periods help but increase whipsaws.
- **False Signals**: In ranging or sideways markets, RSI trendlines can produce frequent false breakouts. It performs better in trending conditions but may underperform without filters.
- **Over-Reliance on RSI**: Ignores volume, fundamentals, or price structure—breakouts might not translate to price moves if momentum decouples from price.
- **Complexity for Beginners**: Multiple periods and settings can overwhelm new users; misconfiguration (e.g., too many periods) leads to noisy charts.
- **No Built-in Risk Management**: Signals lack stop-loss/take-profit logic; users must add these manually.
- **Divergence Limitations**: The basic (commented) divergence detection is simplistic and may miss hidden divergences or require tuning.
In summary, it's powerful for momentum traders but should be used with confirmation tools to mitigate false positives.
Example Strategies
Here are one LONG (buy) and one SHORT (sell) strategy example using the indicator. These are basic; always backtest and use risk management (e.g., 1-2% risk per trade, stop-loss at recent lows/highs).
**LONG Strategy Example: Oversold RSI Support Breakout**
- **Setup**: Use on a daily chart for stocks or crypto. Enable Periods 3 and 5 (short- and medium-term). Set oversold level to 30.
- **Entry**: Wait for RSI to be in oversold (<30). Look for a "B" breakout label (e.g., "B3" or "B5") when RSI crosses above a red resistance trendline projection. Confirm with price forming a higher low or candlestick reversal (e.g., hammer).
- **Stop-Loss**: Place below the recent price low or the RSI support level equivalent in price terms (e.g., 5-10% below entry).
- **Take-Profit**: Target RSI reaching overbought (70) or a 2:1 risk-reward ratio. Exit on a bearish RSI crossunder midline (50).
- **Example Scenario**: In a downtrending stock, RSI hits 25 and forms a support trendline. On a "B5" breakout, enter long. This captures momentum reversals after overselling.
- **Rationale**: Breakout above RSI resistance in oversold signals fading selling pressure, potential for price uptrend.
**SHORT Strategy Example: Overbought RSI Resistance Breakout**
- **Setup**: Use on a 4H chart for forex pairs. Enable Periods 10 and 20. Set overbought level to 70.
- **Entry**: Wait for RSI in overbought (>70). Enter on an "S" breakout label (e.g., "S3" or "S4") when RSI crosses below a green support trendline projection. Confirm with price showing a lower high or bearish candlestick (e.g., shooting star).
- **Stop-Loss**: Above the recent price high or RSI resistance level (e.g., 5-10% above entry).
- **Take-Profit**: Target RSI hitting oversold (30) or a 2:1 risk-reward. Exit on bullish RSI crossover midline (50).
- **Example Scenario**: In an uptrending pair, RSI peaks at 75 with a resistance trendline. On "S4" breakout, enter short. This targets momentum exhaustion after overbuying.
- **Rationale**: Break below RSI support in overbought indicates weakening buying momentum, likely price downturn.
Enhancing Strategy Validity with Other Indicators
To increase the reliability of strategies based on this indicator, combine it with complementary tools for confirmation, filtering false signals, and adding context. This creates multi-indicator strategies that reduce whipsaws and improve win rates. Focus on indicators that address RSI's weaknesses (e.g., lagging, momentum-only). Below are examples of different indicators, how to integrate them, and sample strategies.
1. **Moving Averages (e.g., SMA/EMA)**:
- **How to Use**: Overlay 50/200-period EMAs on the price chart. Use RSI breakouts only in the direction of the trend (e.g., long only if price > 200 EMA).
- **Strategy Example**: Trend-Following Long – Enter on "B" RSI breakout if price is above 200 EMA and RSI > 50. This filters reversals in uptrends. Add MACD crossover for entry timing. Advantage: Aligns momentum with price trend, reducing counter-trend trades.
2. **Volume Indicators (e.g., Volume Oscillator or OBV)**:
- **How to Use**: Require increasing volume on RSI breakouts (e.g., OBV making higher highs on bullish breakouts).
- **Strategy Example**: Volume-Confirmed Short – On "S" breakout, check if volume is rising and OBV breaks its own trendline downward. Enter short only if confirmed. This validates breakouts with real market participation, avoiding low-volume traps.
3. **Other Oscillators (e.g., MACD or Stochastic)**:
- **How to Use**: Use for divergence confirmation or overbought/oversold alignment. For instance, require Stochastic (14,3,3) to also breakout from its levels.
- **Strategy Example**: Dual-Oscillator Reversal Long – Enable divergence in the indicator. Enter on bullish RSI divergence + "B" breakout if MACD histogram flips positive. Exit on MACD bearish crossover. This strengthens reversal signals by cross-verifying momentum.
4. **Price Action Tools (e.g., Support/Resistance or Candlestick Patterns)**:
- **How to Use**: Map RSI trendlines to price levels (e.g., if RSI resistance breaks, check if price breaks a key resistance).
- **Strategy Example**: Price-Aligned Breakout Short – On "S" RSI breakout in overbought, confirm with price breaking below a drawn support line or forming a bearish engulfing candle. Use Fibonacci retracements for targets. This ensures momentum translates to price movement.
5. **Volatility Indicators (e.g., Bollinger Bands or ATR)**:
- **How to Use**: Avoid trades during low volatility (e.g., Bollinger Band squeeze) to filter ranging markets. Use ATR for dynamic stops.
- **Strategy Example**: Volatility-Filtered Long – Enter "B" breakout only if Bollinger Bands are expanding (increasing volatility) and RSI is oversold. Set stop-loss at 1.5x ATR below entry. This targets high-momentum breakouts while skipping choppy periods.
**General Tips for Building Enhanced Strategies**:
- **Layering**: Start with RSI breakout as the primary signal, add 1-2 confirmations (e.g., EMA trend + volume).
- **Backtesting**: Use TradingView's strategy tester to quantify win rates with/without additions.
- **Risk Filters**: Incorporate overall market sentiment (e.g., via VIX) or avoid trading near news events.
- **Timeframe Alignment**: Use higher timeframes for trend (e.g., daily EMA) and lower for entries (e.g., 1H RSI breakout).
- **Avoid Overloading**: Too many indicators cause paralysis; aim for synergy (e.g., trend + momentum + volume).
This indicator is a versatile tool, but success depends on context and discipline. If you need code modifications or specific backtests, provide more details!
MZ.ARM | Market Structure IdentifierThis indicator reveals the true market structure, improving over the usual method that uses Williams Highs and Lows as pivots, which are only approximations. ⚡️
📈 How it works:
It precisely confirms Local Highs and Local Lows by rules:
A Local High gets confirmed only when a later candle closes below its low.
A Local Low gets confirmed only when a later candle closes above its high. 📍
Enforces strict alternation: a Low always follows a confirmed High and vice versa. No sequences like High, High, Low, Low allowed. 🔄
Identifies bullish market structure when price forms Higher Highs and Higher Lows (uptrend) 🐂, and bearish structure when price forms Lower Lows and Lower Highs (downtrend) 🐻.
Defines intermediate Highs and Lows as Ranging (neutral), which can precede trend continuation or reversal. 🔄
⚔️ Bullish/Bearish Breaks (early signals):
A Bullish Break happens when the current candle’s close exceeds the previous confirmed Local High 🔥.
A Bearish Break happens when the current close drops below the most recent confirmed Local Low ❄️.
Uses candle Close price (instead of High/Low) to reduce false signals from spikes 🎯.
Opening Candle & Previous Day High and Low LevelsOpening Candle & Previous Day High/Low
This indicator automatically plots important reference levels that many traders use as key decision points:
Opening Candle High/Low
• Draws horizontal rays from the day’s opening candle (default 5-minute, adjustable).
• Choose between regular trading hours (09:30–16:00) or extended hours (pre/post-market).
• Fully customizable colors, styles, and widths.
Previous Day High/Low
• Marks the prior day’s high and low for easy reference.
• Works in both RTH-only or 24-hour session modes.
• Customizable styling for clarity on any chart.
Alerts
• Alerts can be triggered when price touches/crosses a level or comes near it.
• “Near” mode supports absolute points, percent of price, or ATR multiples.
• Users can monitor one specific line (Open High, Open Low, Prev High, Prev Low) or all levels together.
• Option to use intra-bar wick detection (immediate) or close-only confirmation.
Labels
• Optional price labels at the last bar, clearly identifying each active level.
-- How to Use It
TLDR: This indicator helps you track the opening range and the previous days highs/lows with alerts and automatically drawn & customizable lines. This is useful for intraday setups and swing strategies alike.
Day Trading:
• Opening range high/low helps spot early breakouts, breakdowns, and false moves. Good for positioning for Long or Short trades as well as SL areas.
• Prior day’s high/low often act as support/resistance zones where momentum stalls or accelerates.
• Alerts let you focus on scanning while the script tracks levels for you.
Large-Cap Swing Trading:
• Previous day’s high/low highlight areas institutions often defend or break through.
• Opening range levels provide short-term confirmation zones for swing entries.
• Monitoring how price reacts to these levels across multiple days can signal trend continuation or reversal on large-cap names.
Live Market - Performance MonitorLive Market — Performance Monitor
Study material (no code) — step-by-step training guide for learners
________________________________________
1) What this tool is — short overview
This indicator is a live market performance monitor designed for learning. It scans price, volume and volatility, detects order blocks and trendline events, applies filters (volume & ATR), generates trade signals (BUY/SELL), creates simple TP/SL trade management, and renders a compact dashboard summarizing market state, risk and performance metrics.
Use it to learn how multi-factor signals are constructed, how Greeks-style sensitivity is replaced by volatility/ATR reasoning, and how a live dashboard helps monitor trade quality.
________________________________________
2) Quick start — how a learner uses it (step-by-step)
1. Add the indicator to a chart (any ticker / timeframe).
2. Open inputs and review the main groups: Order Block, Trendline, Signal Filters, Display.
3. Start with defaults (OB periods ≈ 7, ATR multiplier 0.5, volume threshold 1.2) and observe the dashboard on the last bar.
4. Walk the chart back in time (use the last-bar update behavior) and watch how signals, order blocks, trendlines, and the performance counters change.
5. Run the hands-on labs below to build intuition.
________________________________________
3) Main configurable inputs (what you can tweak)
• Order Block Relevant Periods (default ~7): number of consecutive candles used to define an order block.
• Min. Percent Move for Valid OB (threshold): minimum percent move required for a valid order block.
• Number of OB Channels: how many past order block lines to keep visible.
• Trendline Period (tl_period): pivot lookback for detecting highs/lows used to draw trendlines.
• Use Wicks for Trendlines: whether pivot uses wicks or body.
• Extension Bars: how far trendlines are projected forward.
• Use Volume Filter + Volume Threshold Multiplier (e.g., 1.2): requires volume to be greater than multiplier × average volume.
• Use ATR Filter + ATR Multiplier: require bar range > ATR × multiplier to filter noise.
• Show Targets / Table settings / Colors for visualization.
________________________________________
4) Core building blocks — what the script computes (plain language)
Price & trend:
• Spot / LTP: current close price.
• EMA 9 / 21 / 50: fast, medium, slow moving averages to define short/medium trend.
o trend_bullish: EMA9 > EMA21 > EMA50
o trend_bearish: EMA9 < EMA21 < EMA50
o trend_neutral: otherwise
Volatility & noise:
• ATR (14): average true range used for dynamic target and filter sizing.
• dynamic_zone = ATR × atr_multiplier: minimum bar range required for meaningful move.
• Annualized volatility: stdev of price changes × sqrt(252) × 100 — used to classify volatility (HIGH/MEDIUM/LOW).
Momentum & oscillators:
• RSI 14: overbought/oversold indicator (thresholds 70/30).
• MACD: EMA(12)-EMA(26) and a 9-period signal line; histogram used for momentum direction and strength.
• Momentum (ta.mom 10): raw momentum over 10 bars.
Mean reversion / band context:
• Bollinger Bands (20, 2σ): upper, mid, lower.
o price_position measures where price sits inside the band range as 0–100.
Volume metrics:
• avg_volume = SMA(volume, 20) and volume_spike = volume > avg_volume × volume_threshold
o volume_ratio = volume / avg_volume
Support & Resistance:
• support_level = lowest low over 20 bars
• resistance_level = highest high over 20 bars
• current_position = percent of price between support & resistance (0–100)
________________________________________
5) Order Block detection — concept & logic
What it tries to find: a bar (the base) followed by N candles in the opposite direction (a classical order block setup), with a minimum % move to qualify. The script records the high/low of the base candle, averages them, and plots those levels as OB channels.
How learners should think about it (conceptual):
1. An order block is a signature area where institutions (theory) left liquidity — often seen as a large bar followed by a sequence of directional candles.
2. This indicator uses a configurable number of subsequent candles to confirm that the pattern exists.
3. When found, it stores and displays the base candle’s high/low area so students can see how price later reacts to those zones.
Implementation note for learners: the tool keeps a limited history of OB lines (ob_channels). When new OBs exceed the count, the oldest lines are removed — good practice to avoid clutter.
________________________________________
6) Trendline detection — idea & interpretation
• The script finds pivot highs and lows using a symmetric lookback (tl_period and half that as right/left).
• It then computes a trendline slope from successive pivots and projects the line forward (extension_bars).
• Break detection: Resistance break = close crosses above the projected resistance line; Support break = close crosses below projected support.
Learning tip: trendlines here are computed from pivot points and time. Watch how changing tl_period (bigger = smoother, fewer pivots) alters the trendlines and break signals.
________________________________________
7) Signal generation & filters — step-by-step
1. Primary triggers:
o Bullish trigger: order block bullish OR resistance trendline break.
o Bearish trigger: bearish order block OR support trendline break.
2. Filters applied (both must pass unless disabled):
o Volume filter: volume must be > avg_volume × volume_threshold.
o ATR filter: bar range (high-low) must exceed ATR × atr_multiplier.
o Not in an existing trade: new trades only start if trade_active is false.
3. Trend confirmation:
o The primary trigger is only confirmed if trend is bullish/neutral for buys or bearish/neutral for sells (EMA alignment).
4. Result:
o When confirmed, a long or short trade is activated with TP/SL calculated from ATR multiples.
________________________________________
8) Trade management — what the tool does after a signal
• Entry management: the script marks a trade as trade_active and sets long_trade or short_trade flags.
• TP & SL rules:
o Long: TP = high + 2×ATR ; SL = low − 1×ATR
o Short: TP = low − 2×ATR ; SL = high + 1×ATR
• Monitoring & exit:
o A trade closes when price reaches TP or SL.
o When TP/SL hit, the indicator updates win_count and total_pnl using a very simple calculation (difference between TP/SL and previous close).
o Visual lines/labels are drawn for TP and updated as the trade runs.
Important learner notes:
• The script does not store a true entry price (it uses close in its P&L math), so PnL is an approximation — treat this as a learning proxy, not a position accounting system.
• There’s no sizing, slippage, or fee accounted — students must manually factor these when translating to real trades.
• This indicator is not a backtesting strategy; strategy.* functions would be needed for rigorous backtest results.
________________________________________
9) Signal strength & helper utilities
• Signal strength is a composite score (0–100) made up of four signals worth 25 points each:
1. RSI extreme (overbought/oversold) → 25
2. Volume spike → 25
3. MACD histogram magnitude increasing → 25
4. Trend existence (bull or bear) → 25
• Progress bars (text glyphs) are used to visually show RSI and signal strength on the table.
Learning point: composite scoring is a way to combine orthogonal signals — study how changing weights changes outcomes.
________________________________________
10) Dashboard — how to read each section (walkthrough)
The dashboard is split into sections; here's how to interpret them:
1. Market Overview
o LTP / Change%: immediate price & daily % change.
2. RSI & MACD
o RSI value plus progress bar (overbought 70 / oversold 30).
o MACD histogram sign indicates bullish/bearish momentum.
3. Volume Analysis
o Volume ratio (current / average) and whether there’s a spike.
4. Order Block Status
o Buy OB / Sell OB: the average base price of detected order blocks or “No Signal.”
5. Signal Status
o 🔼 BUY or 🔽 SELL if confirmed, or ⚪ WAIT.
o No-trade vs Active indicator summarizing market readiness.
6. Trend Analysis
o Trend direction (from EMAs), market sentiment score (composite), volatility level and band/position metrics.
7. Performance
o Win Rate = wins / signals (percentage)
o Total PnL = cumulative PnL (approximate)
o Bull / Bear Volume = accumulated volumes attributable to signals
8. Support & Resistance
o 20-bar highest/lowest — use as nearby reference points.
9. Risk & R:R
o Risk Level from ATR/price as a percent.
o R:R Ratio computed from TP/SL if a trade is active.
10. Signal Strength & Active Trade Status
• Numeric strength + progress bar and whether a trade is currently active with TP/SL display.
________________________________________
11) Alerts — what will notify you
The indicator includes pre-built alert triggers for:
• Bullish confirmed signal
• Bearish confirmed signal
• TP hit (long/short)
• SL hit (long/short)
• No-trade zone
• High signal strength (score > 75%)
Training use: enable alerts during a replay session to be notified when the indicator would have signalled.
________________________________________
12) Labs — hands-on exercises for learners (step-by-step)
Lab A — Order Block recognition
1. Pick a 15–30 minute timeframe on a liquid ticker.
2. Use default OB periods (7). Mark each time the dashboard shows a Buy/Sell OB.
3. Manually inspect the chart at the base candle and the following sequence — draw the OB zone by hand and watch later price reactions to it.
4. Repeat with OB periods 5 and 10; note stability vs noise.
Lab B — Trendline break confirmation
1. Increase trendline period (e.g., 20), watch trendlines form from pivots.
2. When a resistance break is flagged, compare with MACD & volume: was momentum aligned?
3. Note false breaks vs confirmed moves — change extension_bars to see projection effects.
Lab C — Filter sensitivity
1. Toggle Use Volume Filter off, and record the number and quality of signals in a 2-day window.
2. Re-enable volume filter and change threshold from 1.2 → 1.6; note how many low-quality signals are filtered out.
Lab D — Trade management simulation
1. For each signalled trade, record the time, close entry approximation, TP, SL, and eventual hit/miss.
2. Compute actual PnL if you had entered at the open of the next bar to compare with the script’s PnL math.
3. Tabulate win rate and average R:R.
Lab E — Performance review & improvement
1. Build a spreadsheet of signals over 30–90 periods with columns: Date, Signal type, Entry price (real), TP, SL, Exit, PnL, Notes.
2. Analyze which filters or indicators contributed most to winners vs losers and adjust weights.
________________________________________
13) Common pitfalls, assumptions & implementation notes (things to watch)
• P&L simplification: total_pnl uses close as a proxy entry price. Real entry/exit prices and slippage are not recorded — so PnL is approximate.
• No position sizing or money management: the script doesn’t compute position size from equity or risk percent.
• Signal confirmation logic: composite "signal_strength" is a simple 4×25 point scheme — explore different weights or additional signals.
• Order block detection nuance: the script defines the base candle and checks the subsequent sequence. Be sure to verify whether the intended candle direction (base being bullish vs bearish) aligns with academic/your trading definition — read the code carefully and test.
• Trendline slope over time: slope is computed using timestamps; small differences may make lines sensitive on very short timeframes — using bar_index differences is usually more stable.
• Not a true backtester: to evaluate performance statistically you must transform the logic into a strategy script that places hypothetical orders and records exact entry/exit prices.
________________________________________
14) Suggested improvements for advanced learners
• Record true entry price & timestamp for accurate PnL.
• Add position sizing: risk % per trade using SL distance and account size.
• Convert to strategy. (Pine Strategy)* to run formal backtests with equity curves, drawdowns, and metrics (Sharpe, Sortino).
• Log trades to an external spreadsheet (via alerts + webhook) for offline analysis.
• Add statistics: average win/loss, expectancy, max drawdown.
• Add additional filters: news time blackout, market session filters, multi-timeframe confirmation.
• Improve OB detection: combine wick/body, volume spike at base bar, and liquidity sweep detection.
________________________________________
15) Glossary — quick definitions
• ATR (Average True Range): measure of typical range; used to size targets and stops.
• EMA (Exponential Moving Average): trend smoothing giving more weight to recent prices.
• RSI (Relative Strength Index): momentum oscillator; >70 overbought, <30 oversold.
• MACD: momentum oscillator using difference of two EMAs.
• Bollinger Bands: volatility bands around SMA.
• Order Block: a base candle area with subsequent confirmation candles; a zone of institutional interest (learning model).
• Pivot High/Low: local turning point defined by candles on both sides.
• Signal Strength: combined score from multiple indicators.
• Win Rate: proportion of signals that hit TP vs total signals.
• R:R (Risk:Reward): ratio of potential reward (TP distance) to risk (entry to SL).
________________________________________
16) Limitations & assumptions (be explicit)
• This is an indicator for learning — not a trading robot or broker connection.
• No slippage, fees, commissions or tie-in to real orders are considered.
• The logic is heuristic (rule-of-thumb), not a guarantee of performance.
• Results are sensitive to timeframe, market liquidity, and parameter choices.
________________________________________
17) Practical classroom / study plan (4 sessions)
• Session 1 — Foundations: Understand EMAs, ATR, RSI, MACD, Bollinger Bands. Run the indicator and watch how these numbers change on a single day.
• Session 2 — Zones & Filters: Study order blocks and trendlines. Test volume & ATR filters and note changes in false signals.
• Session 3 — Simulated trading: Manually track 20 signals, compute real PnL and compare to the dashboard.
• Session 4 — Improvement plan: Propose changes (e.g., better PnL accounting, alternative OB rule) and test their impact.
________________________________________
18) Quick reference checklist for each signal
1. Was an order block or trendline break detected? (primary trigger)
2. Did volume meet threshold? (filter)
3. Did ATR filter (bar size) show a real move? (filter)
4. Was trend aligned (EMA 9/21/50)? (confirmation)
5. Signal confirmed → mark entry approximation, TP, SL.
6. Monitor dashboard (Signal Strength, Volatility, No-trade zone, R:R).
7. After exit, log real entry/exit, compute actual PnL, update spreadsheet.
________________________________________
19) Educational caveat & final note
This tool is built for training and analysis: it helps you see how common technical building blocks combine into trade ideas, but it is not a trading recommendation. Use it to develop judgment, to test hypotheses, and to design robust systems with proper backtesting and risk control before risking capital.
________________________________________
20) Disclaimer (must include)
Training & Educational Only — This material and the indicator are provided for educational purposes only. Nothing here is investment advice or a solicitation to buy or sell financial instruments. Past simulated or historical performance does not predict future results. Always perform full backtesting and risk management, and consider seeking advice from a qualified financial professional before trading with real capital.
________________________________________
Yelober - Market Internal direction+ Key levelsYelober – Market Internals + Key Levels is a focused intraday trading tool that helps you spot high-probability price direction by anchoring decisions to structure that matters: yesterday’s RTH High/Low, today’s pre-market High/Low, and a fast Value Area/POC from the prior session. Paired with a compact market internals dashboard (NYSE/NASDAQ UVOL vs. DVOL ratios, VOLD slopes, TICK/TICKQ momentum, and optional VIX trend), it gives you a real-time read on breadth so you can choose which direction to trade, when to enter (breaks, retests, or fades at PMH/PML/VAH/VAL/POC), and how to plan exits as internals confirm or deteriorate. On top of these intraday decision benefits, it also allows traders—in a very subtle but powerful way—to keep an eye on the VIX and immediately recognize significant spikes or sharp decreases that should be factored in before entering a trade, or used as a quick signal to modify an existing position. In short: clear levels for the chart, live internals for the context, and a smarter, rules-based path to execution.
# Yelober – Market Internals + Key Levels
*A TradingView indicator for session key levels + real‑time market internals (NYSE/NASDAQ TICK, UVOL/DVOL/VOLD, and VIX).*
**Script name in Pine:** `Yelober - Market Internal direction+ Key levels` (Pine v6)
---
## 1) What this indicator does
**Purpose:** Help intraday traders quickly find high‑probability reaction zones and read market internals momentum without switching charts. It overlays yesterday/today’s **automatic price levels** on your active chart and shows a **market breadth table** that summarizes NYSE/NASDAQ buying pressure and TICK direction, with an optional VIX trend read.
### Key features at a glance
* **Automatic Price Levels (overlay on chart)**
* Yesterday’s High/Low of Day (**yHoD**, **yLoD**)
* Extended Hours High/Low (**yEHH**, **yEHL**) across yesterday AH + today pre‑market
* Today’s Pre‑Market High/Low (**PMH**, **PML**)
* Yesterday’s **Value Area High/Low** (**VAH/VAL**) and **Point of Control (POC)** computed from a volume profile of yesterday’s **regular session**
* Smart de‑duplication:
* Shows **only the higher** of (yEHH vs PMH) and **only the lower** of (yEHL vs PML) to avoid redundant bands
* **Market Breadth Table (on‑chart table)**
* **NYSE ratio** = UVOL/DVOL (signed) with **VOLD slope** from session open
* **NASDAQ ratio** = UVOLQ/DVOLQ (signed) with **VOLDQ slope** from session open
* **TICK** and **TICKQ**: live cumulative ratio and short‑term slope
* **VIX** (optional): current value + slope over a configurable lookback/timeframe
* Color‑coded trends with sensible thresholds and optional normalization
---
## 2) How to use it (trader workflow)
1. **Mark your reaction zones**
* Watch **yHoD/yLoD**, **PMH/PML**, and **VAH/VAL/POC** for first touches, break/retest, and failure tests.
* Expect increased responsiveness when multiple levels cluster (e.g., PMH ≈ VAH ≈ daily pivot).
2. **Read the breadth panel for context**
* **NYSE/NASDAQ ratio** (>1 = more up‑volume than down‑volume; <−1 = down‑dominant). Strong green across both favors long setups; red favors short setups.
* **VOLD slopes** (NYSE & NASDAQ): positive and accelerating → broadening participation; negative → persistent pressure.
* **TICK/TICKQ**: cumulative ratio and **slope arrows** (↗ / ↘ / →). Use the slope to gauge **near‑term thrust or fade**.
* **VIX slope**: rising VIX (red) often coincides with risk‑off; falling VIX (green) with risk‑on.
3. **Confluence = higher confidence**
* Example: Price reclaims **PMH** while **NYSE/NASDAQ ratios** print green and **TICK slopes** point ↗ — consider break‑and‑go; if VIX slope is ↘, that adds risk‑on confidence.
* Example: Price rejects **VAH** while **VOLD slopes** roll negative and VIX ↗ — consider fade/reversal.
4. **Risk management**
* Place stops just beyond key levels tested; if breadth flips, tighten or exit.
> **Timeframes:** Works best on 1–15m charts for intraday. Value Area is computed from **yesterday’s RTH**; choose a smaller calculation timeframe (e.g., 5–15m) for stable profiles.
---
## 3) Inputs & settings (what each option controls)
### Global Style
* **Enable all automatic price levels**: master toggle for yHoD/yLoD, yEHH/yEHL, PMH/PML, VAH/VAL/POC.
* **Line style/width**: applies to all drawn levels.
* **Label size/style** and **label color linking**: use the same color as the line or override with a global label color.
* **Maximum bars lookback**: how far the script scans to build yesterday metrics (performance‑sensitive).
### Value Area / Volume Profile
* **Enable Value Area calculations** *(on by default)*: computes yesterday’s **POC**, **VAH**, **VAL** from a simplified intraday volume profile built from yesterday’s **regular session bars**.
* **Max Volume Profile Points** *(default 50)*: lower values = faster; higher = more precise.
* **Value Area Calculation Timeframe** *(default 15)*: the security timeframe used when collecting yesterday’s highs/lows/volumes.
### Individual Level Toggles & Colors
* **yHoD / yLoD** (yesterday high/low)
* **yEHH / yEHL** (yesterday AH + today pre‑market extremes)
* **PMH / PML** (today pre‑market extremes)
* **VAH / VAL / POC** (yesterday RTH value area + point of control)
### Market Breadth Panel
* **Show NYSE / NASDAQ / VIX**: choose which series to display in the table.
* **Table Position / Size / Background Color**: UI placement and legibility.
* **Slope Averaging Periods** *(default 5)*: number of recent TICK/TICKQ ratio points used in slope calculation.
* **Candles for Rate** *(default 10)* & **Normalize Rate**: VIX slope calculation as % change between `now` and `n` candles ago; normalize divides by `n`.
* **VIX Timeframe**: optionally compute VIX on a higher TF (e.g., 15, 30, 60) for a smoother regime read.
* **Volume Normalization** (NYSE & NASDAQ): display VOLD slopes scaled to `tens/thousands/millions/10th millions` for readable magnitudes; color thresholds adapt to your choice.
---
## 4) Data sources & definitions
* **UVOL/VOLD (NYSE)** and **UVOLQ/DVOLQ/VOLDQ (NASDAQ)** via `request.security()`
* **Ratio** = `UVOL/DVOL` (signed; negative when down‑volume dominates)
* **VOLD slope** ≈ `(VOLD_now − VOLD_open) / bars_since_open`, then normalized per your setting
* **TICK/TICKQ**: cumulative sum of prints this session with **positives vs negatives ratio**, plus a simple linear regression **slope** of the last `N` ratio values
* **VIX**: value and slope across a user‑selected timeframe and lookback
* **Sessions (EST/EDT)**
* **Regular:** 09:30–16:00
* **Pre‑Market:** 04:00–09:30
* **After Hours:** 16:00–20:00
* **Extended‑hours extremes** combine **yesterday AH** + **today PM**
> **Note:** All session checks are done with TradingView’s `time(…,"America/New_York")` context. If your broker’s RTH differs (e.g., futures), adjust expectations accordingly.
---
## 5) How the algorithms work (plain English)
### A) Key Levels
* **Yesterday’s RTH High/Low**: scans yesterday’s bars within 09:30–16:00 and records the extremes + bar indices.
* **Extended Hours**: scans yesterday AH and today PM to get **yEHH/yEHL**. Script shows **either yEHH or PMH** (whichever is **higher**) and **either yEHL or PML** (whichever is **lower**) to avoid duplicate bands stacked together.
* **Value Area & POC (RTH only)**
* Build a coarse volume profile with `Max Volume Profile Points` buckets across the price range formed by yesterday’s RTH bars.
* Distribute each bar’s volume uniformly across the buckets it spans (fast approximation to keep Pine within execution limits).
* **POC** = bucket with max volume. **VA** expands from POC outward until **70%** of cumulative volume is enclosed → yields **VAH/VAL**.
### B) Market Breadth Table
* **NYSE/NASDAQ Ratio**: signed UVOL/DVOL with basic coloring.
* **VOLD Slopes**: from session open to current, normalized to human‑readable units; colors flip green/red based on thresholds that map to your normalization setting (e.g., ±2M for NYSE, ±3.5×10M for NASDAQ).
* **TICK/TICKQ Slope**: linear regression over the last `N` ratio points → **↗ / → / ↘** with the rounded slope value.
* **VIX Slope**: % change between now and `n` candles ago (optionally divided by `n`). Red when rising beyond threshold; green when falling.
---
## 6) Recommended presets
* **Stocks (liquid, intraday)**
* Value Area **ON**, `Max Volume Points` = **40–60**, **Timeframe** = **5–15**
* Breadth: show **NYSE & NASDAQ & VIX**, `Slope periods` = **5–8**, `Candles for rate` = **10–20**, **Normalize VIX** = **ON**
* **Index futures / very high‑volume symbols**
* If you see Pine timeouts, set `Max Volume Points` = **20–40** or temporarily **disable Value Area**.
* Keep breadth panel **ON** (it’s light). Consider **VIX timeframe = 15/30** for regime clarity.
---
## 7) Tips, edge cases & performance
* **Performance:** The volume profile is capped (`maxBarsToProcess ≤ 500` and bucketed) to keep it responsive. If you experience slowdowns, reduce `Max Volume Points`, `Maximum bars lookback`, or disable Value Area.
* **Redundant lines:** The script **intentionally suppresses** PMH/PML when yEHH/yEHL are more extreme, and vice‑versa.
* **Label visibility:** Use `Label style = none` if you only want clean lines and read values from the right‑end labels.
* **Futures/RTH differences:** Value Area is from **yesterday’s RTH** only; for 24h instruments the RTH period may not reflect overnight structure.
* **Session transitions:** PMH/PML tracking stops as soon as RTH starts; values persist as static levels for the session.
---
## 8) Known limitations
* Uses public TradingView symbols: `UVOL`, `VOLD`, `UVOLQ`, `DVOLQ`, `VOLDQ`, `TICK`, `TICKQ`, `VIX`. If your data plan or region limits any symbol, the corresponding table rows may show `na`.
* The VA/POC approximation assumes uniform distribution of each bar’s volume across its high–low. That’s fast but not a tick‑level profile.
* Works best on US equities with standard NY session; alternative sessions may need code changes.
---
## 9) Troubleshooting
* **“Script is too slow / timed out”** → Lower `Max Volume Points`, lower `Maximum bars lookback`, or toggle **OFF** `Enable Value Area calculations` for that instrument.
* **Missing breadth values** → Ensure the symbols above load on your account; try reloading chart or switching timeframes once.
* **Overlapping labels** → Set `Label style = none` or reduce label size.
---
## 10) Version / license / contribution
* **Version:** Initial public release (Pine v6).
* **Author:** © yelober
* **License:** Free for community use and enhancement. Please keep author credit.
* **Contributing:** Open PRs/ideas: presets, alert conditions, multi‑day VA composites, optional mid‑value (`(VAH+VAL)/2`), session filter for futures, and alertable state machine for breadth regime transitions.
---
## 11) Quick start (TL;DR)
1. Add the indicator and **keep default settings**.
2. Trade **reactions** at yHoD/yLoD/PMH/PML/VAH/VAL/POC.
3. Use the **breadth table**: look for **green ratios + ↗ slopes** (risk‑on) or **red ratios + ↘ slopes** (risk‑off). Check **VIX** slope for confirmation.
4. Manage risk around levels; when breadth flips against you, tighten or exit.
---
### Changelog (public)
* **v1.0:** First community release with automatic RTH levels, VA/POC approximation, breadth dashboard (NYSE/NASDAQ/TICK/TICKQ/VIX) with normalization and adaptive color thresholds.
Session Liquidity & Sweep DetectorThe indicator is an advanced trading tool designed to give traders a complete visual and analytical overview of major market sessions. By tracking the Asia, London, and New York sessions, this indicator highlights session highs/lows, liquidity sweeps, and advanced A++ patterns to help identify high-probability trade setups.
It combines session analysis, sweep detection, and pattern recognition into a single, customizable indicator. Traders can use it for spotting breakout points, reversal setups, and areas of stop hunts or liquidity grabs.
Key Features:
1. Session Liquidity Boxes:
Automatically draws boxes representing Asia, London, and NY trading sessions on the chart.
Each session box is color-coded and fully customizable (colors, transparency, border width).
Option to display only the most recent session box, reducing chart clutter.
Helps traders visually separate trading sessions and understand session structure.
2. High/Low Sweep Detection:
Detects when price sweeps the high or low of a completed session, indicating liquidity grabs or stop-hunting behavior.
Labels are added to the chart for clear visualization:
AHS: Asia High Swept
ALS: Asia Low Swept
LHS: London High Swept
LLS: London Low Swept
Horizontal lines are drawn at swept levels to track key support/resistance points.
Sweep detection occurs only within the same trading day, preventing false signals.
3. A++ Pattern Detection:
Detects advanced Long/Short A++ patterns based on session sweep behavior:
Long A++ Pattern: Both Asia and London lows are swept, but highs remain intact.
Short A++ Pattern: Both Asia and London highs are swept, but lows remain intact.
Patterns are plotted with customizable labels to highlight potential high-probability setups.
Helps traders identify early directional bias for the trading day.
4. Customizable Visual Settings:
Box colors, sweep line colors, and label colors are fully customizable.
Label sizes can be set to “auto”, “tiny”, “small”, “normal”, “large”, or “huge”.
Sweep line width and box border width are adjustable.
Clear visualization ensures traders can analyze sessions quickly and efficiently.
5. Multi-Session Tracking:
Tracks Asia, London, and New York sessions independently.
Keeps historical session data while dynamically updating the latest session in real-time.
Allows traders to see inter-session liquidity interactions, which are key for breakout and reversal strategies.
6. Optimized for Real-Time Trading:
Updates session highs/lows bar by bar during live trading.
Works on any timeframe, making it suitable for scalping, intraday, and swing trading.
Integrates seamlessly with other indicators like FU Candle Indicator, VWAP, Order Blocks, and more for advanced strategies.
Use Cases:
Liquidity Hunting: Spot where institutional traders may be triggering stop losses or grabbing liquidity.
Breakout Analysis: Identify when price breaks through session highs/lows and confirm trade direction.
Session Pattern Trading: Use A++ patterns to anticipate strong directional moves early in the trading day.
Multi-Session Strategies: Analyze relationships between Asia, London, and NY sessions to find high-probability entries.
Scalping & Day Trading: Visualize key levels for quick trade decisions.
Ideal Users:
Forex, crypto, and futures traders who want a session-based liquidity and sweep analysis.
Traders who use high-probability patterns and breakout strategies.
Scalpers, intraday traders, and swing traders looking for clear visual cues and actionable signals.
Anyone seeking a comprehensive session overview for smarter trading decisions.
This indicator essentially combines session boxes, liquidity sweep labels (AHS, ALS, LHS, LLS), horizontal lines for swept levels, and A++ pattern detection to give traders a full view of market structure, liquidity, and potential directional bias.
CyberFlow [Probabilities] | FractalystWhat's the indicator's purpose and functionality?
CyberFlow quantifies, per chosen higher-timeframe “Period 1/2/3”, what happens after price first taps the midpoint (Mid) of the previous period’s range. Specifically, it estimates P(High first | Mid tap) versus P(Low first | Mid tap): which side (previous High “PH” or previous Low “PL”) is typically reached first after that mid activation.
It extends a previously shared OrderFlow concept that used market structure; here it conditions on higher‑timeframe previous‑period PH/PL with the Mid as the explicit trigger.
Note: It's specifically designed to exports raw probabilistic series for algorithmic/system developers to integrate a probabilistic layer into strategies and to build/backtest ideas directly from those series.
What is “Mid activation”?
The Mid is the average of the previous period’s PH and PL. Activation occurs on the first bar in the current period whose high–low range includes the Mid. The first bar of a new period cannot activate Mid; activation can only start from the second bar of the period onward.
What counts as “first hit” after activation?
After a Mid activation, the script waits for a subsequent bar that touches either the previous High (PH) or previous Low (PL). The first side touched after the activation bar is recorded as that period’s first hit. Once decided, the other side is ignored for first‑hit statistics.
Which periods does it use?
You can select three custom reference timeframes (Period 1/2/3) in the UI (defaults: D/W/M). All logic—PH/PL/Mid, activation, first‑hit stats—runs independently per selected period.
Do the display controls change the calculation?
No. The “Show” selector only controls visuals:
Period 1/2/3: show only that period’s plots/barcolors.
OFF: shows all periods. Statistics and exported series are unaffected by this selector.
What do the bar/line colors mean?
Activation (first Mid tap): yellow bar.
Delivered to previous High after activation: blue
Delivered to previous Low after activation: red
Plots stop showing PH/PL once delivery happens (for that side) within the period.
What do the status symbols in the table mean?
■ Inactive — Mid not tapped this period.
▶ Activated — Mid tapped; awaiting delivery to PH or PL.
● Delivered — PH or PL was hit first after the Mid tap.
How are probabilities computed?
For each period, the script counts samples where the Mid was tapped and one side was hit first. It reports:
P(High first | Mid tap) and P(Low first | Mid tap).
Two‑sided p‑value vs 50% (H0: p = 0.5). These appear in the stats table with detailed tooltips.
What is “Bias” in exports?
Bias is a ternary signal derived from P(High first | Mid tap):
Bias = 1 if > 0.5
Bias = -1 if < 0.5
Bias = 0 if exactly 0.5 or no sample Source can be per period or “Merged” (simple average of available period probabilities).
Note: the UI uses a simple average; no weighted option is exposed.
What is “Entry” in exports?
Entry = 1 on bars where the selected period’s Mid activates (first tap), else 0. “Merged” emits 1 if any of the three periods activates on the bar.
What is “Exit” in exports?
Exit is the previous period’s Mid price (PH/PL average) for the selected period. “Merged” is the average of the three previous‑period Mid prices.
How do I integrate this into strategies? How to use the indicator?
CyberFlow is designed for algorithmic/system developers to add a probabilistic layer for entries and market‑regime detection.
What CyberFlow exports
- Bias (−1, 0, 1): from P(High first | Mid tap) vs 50% per your chosen source (Period 1/2/3 or Merged simple average).
- Entry (0/1): 1 only on the bar where the selected period’s Mid first activates (the “mid tap” bar).
- Exit (price): the previous period’s Mid price (average of previous High/Low) for the selected source.
- These appear in the Data Window as series named Bias, Entry, and Exit.
Connecting from your strategy (input.source)
- Add inputs in your strategy so users can select CyberFlow’s outputs:
- Bias source input: pick the indicator’s Bias.
- Entry source input: pick the indicator’s Entry.
- Exit source input: pick the indicator’s Exit.
In TradingView’s UI, users link these inputs to CyberFlow’s plots via the source picker.
Does this use request.security?
No. CyberFlow reconstructs your selected higher timeframes (Period 1/2/3) directly on the chart without request.security().
It detects new period boundaries via timeframe.change(tf), rolls the last period’s extremes into Previous High/Low (PH/PL), computes their Mid, then waits for a “Mid activation” (a bar after the first bar of the period whose range crosses the Mid).
From activation onward, it records which side (PH or PL) is reached first to build conditional probabilities per period.
Because levels and events are derived locally from the live bar stream, there are no cross-timeframe fetch artifacts or repaint nuances from request.security().
The exported series (Bias −1/0/1, Entry 0/1, Exit price) are produced natively and can be wired into strategies via TradingView’s input.source() for robust, low-latency integration.
What markets and assets does the indicator Extension work best on?
CyberFlow is market- and timeframe‑agnostic: it computes conditional probabilities (which side of the prior range is reached first after a mid tap) directly from price, so it can be applied to crypto, FX, indices, equities, futures, and commodities across intraday to higher timeframes. In practice, robustness depends on liquidity and sample size: higher timeframes usually yield more stable estimates (fewer activations, lower noise), while lower timeframes give more activations but can be noisier (spreads/fees matter more).
Because the study itself provides probabilities—not PnL—assess profitability in your context by integrating the exported series (Bias −1/0/1, Entry 0/1, Exit price) into your strategy via TradingView’s input.source(), then backtest with your fills, costs, and risk model to measure performance efficiency on your specific markets and settings.
What makes this script unique?
Custom higher-timeframes (beyond D/W/M)
You can pick any three reference periods (Period 1/2/3), not just Daily/Weekly/Monthly. The script rebuilds these periods directly on the chart and analyzes each independently.
True conditional probability (why it matters)
It measures P(High first | Mid tap) vs P(Low first | Mid tap) — i.e., “after the previous period’s midpoint is first tapped, which side is typically reached first?”
Conditioning on the mid‑tap event isolates the path that follows a specific trigger. Unconditioned counts (e.g., “how often PH/PL is hit”) mix pre‑ and post‑activation behavior and can be misleading. This conditional framing turns vague hit‑rates into decision‑grade odds tied to a clear setup.
Statistical confidence in‑context (p‑value in tooltips)
Tooltips show a Wilson 95% confidence interval and a two‑sided p‑value versus 50/50. This helps you judge whether an observed edge is likely signal or noise at your chosen periods.
Exports built for algorithmic integration
Three clean outputs in the Data Window for strategies:
Bias (−1/0/1) from the conditional probability versus 50%.
Entry (0/1) on the activation bar (first mid tap).
Exit (price) as the previous period’s Mid.
Hook these into your backtests via TradingView’s input.source(), then evaluate profitability with your own fills, costs, and risk model. This turns the probabilities into measurable performance you can optimize.
Disclaimer
This tool provides statistical estimates only and is not financial advice. Historical probabilities are not guarantees of future results. Always backtest with your own costs, fills, and risk model before using in live trading.
Pivot and Wick Boxes with Break Signals█ OVERVIEW
This Pine Script® indicator draws support and resistance levels based on high and low pivot points and the wicks of pivot candles. When the price breaks these levels, breakout signals are generated, with an optional volume filter for greater precision. The indicator is fully customizable, allowing users to adjust box styles, pivot length, and signal settings.
█ CONCEPTS
The indicator relies on several key elements to identify and visualize important price levels and trading signals:
Pivot Identification
High and low pivots are detected using the ta.pivothigh and ta.pivotlow functions with a configurable pivot length. Boxes are drawn based on the pivot level and the wick of the pivot candle (top for high pivots, bottom for low pivots).
List of Features
1 — High and Low Pivot Boxes: The indicator draws boxes based on high pivot candles (red) and low pivot candles (green) and their wicks, with options to customize colors, border styles, and background gradient. Boxes are limited to 500 bars back, meaning support and resistance levels older than 500 candles are not displayed to maintain chart clarity.
2 — Breakout Signals: When the price closes above the upper edge of a high pivot box, a breakout signal is generated (green triangle below the bar). When the price closes below the lower edge of a low pivot box, a breakout signal is generated (red triangle above the bar).
Signals can be filtered using volume, requiring the volume at the breakout to exceed the average volume multiplied by a configurable multiplier.
3 — Box Management: The indicator limits the number of displayed boxes (default is 15 for high pivots and 15 for low pivots), removing the oldest boxes when the limit is reached. Boxes older than 500 bars are automatically removed.
Volume Filtering
An optional volume filter allows users to require breakout signals to be confirmed by volume exceeding the moving average of volume (calculated over a selected period, default is 20 days).
█ OTHER SECTIONS
FEATURES
• Show High/Low Pivot Boxes: Enables or disables the display of boxes for high and low pivots.
• Pivot Length: Specifies the number of bars back and forward for detecting pivots (default is 5).
• Max Boxes: Sets the maximum number of boxes for high and low pivots (default is 15).
• Volume Filter: Enables a volume filter for breakout signals, with a configurable multiplier and average period.
• Box Style: Allows customization of border color, background gradient, border width, and border style (solid, dashed, dotted).
HOW TO USE
1 — Add the indicator to your TradingView chart by selecting “Pivot and Wick Boxes with Break Signals” from the indicators list.
2 — Configure the settings in the indicator’s dialog window, adjusting pivot length, maximum number of boxes, colors, and style.
3 — Enable the volume filter if you want signals to be confirmed by high volume.
4 — Monitor breakout signals (green triangles below bars for upward breakouts, red triangles above bars for downward breakouts) on the chart.
LIMITATIONS
• New pivots are detected with a delay equal to the set pivot length. A lower pivot length value results in faster pivot detection but produces pivots with less significance as support or resistance levels compared to those generated with a longer value.
• Breakout signals may produce false signals in volatile market conditions, especially without the volume filter.
• Boxes are limited to 500 bars back, which may exclude older pivots on long-term charts.
PrismNorm (Anchored)# PrismNorm (Anchored)
Overview
PrismNorm plots anchored, span-normalized price averages (VWAP, TWAP, TrueWAP) alongside a half-price line, with all series scaled by a blended volatility measure. This frames price swings across anchor periods of varying lengths in units of recent volatility.
How It Works
On each new anchor span (session, week, month, etc.), the script:
• Resets an anchor line to the first bar’s open.
• Computes raw VWAP, TWAP, TrueWAP and a half-price delta (close–anchor)/2 cumulatively over the span.
• Calculates a deviation metric (Std Dev, MAD, ATR-scaled, or Percent of anchor price) for the current span.
• Blends the current span’s deviation with up to N prior spans (for non-Percent modes).
• Divides each net price series by the blended deviation to yield normalized outputs.
Inputs
Settings / Description
• Anchor Period / Span for resetting the anchor line (Week, Month, etc.)
• Deviation Measure / Volatility method for normalization: Std Dev, MAD, ATR (scaled), or Percent
• Normalization Interval / Number of past spans (current+1 … current+10) to include in blended deviation
• Percent Deviation (%) / Band width % when Percent mode is selected (applied to anchor price)
• Scale MAD to σ / Scale MAD by √(π/2) so it aligns with σ under Normal distribution
Display
• Show Normalized VWAP
• Show Normalized TWAP
• Show Normalized TrueWAP
• Show Normalized Price (½×)
Tips & Use Cases
• Use shorter anchor spans (Session, Week) for intraday normalization.
• Use longer spans (Quarter, Year) to compare price action across macro periods.
References:
1. TrueWAP Description
2. SD, MAD, ATR (scaled) Deviation Measure Methodology
## 1. TrueWAP: Volatility-Weighted Price Averaging
What Is TrueWAP?
TrueWAP plugs actual price fluctuations into your average. Instead of only tracking time (TWAP) or volume (VWAP), it weights each bar’s TrueMid (TrueRange midpoint) by its TrueRange—so when the market moves more, that bar counts more.
In short, it’s a *TrueRange-weighted TrueMid average* anchored at your start date.
TrueWAP (Anchored) Overview
• On the first bar, it uses the simple high-low midpoint for price and the bar’s high-low range for weighting.
• From the next bar onward, it computes TrueMid (TrueRange midpoint).
• Each TrueMid is weighted by its TrueRange and cumulatively summed from the anchor point.
Pseudocode
// TWAP Example for Comparison
current_days = BarsSince("start_of_period")
OHLC = (Open + High + Low + Close) / 4
TWAP = MA(OHLC, current_days)
// VWAP Example for Comparison
current_days = BarsSince("start_of_period")
HLC3 = (High + Low + Close) / 3
VWAP = Sum(HLC3 * Volume, current_days) / Sum(Volume, current_days)
// TrueWAP (Anchored)
current_days = BarsSince("start_of_period") // Count of bars since the period began
first_bar = (current_days == 0) // Boolean flag if current bar is 1st of period
hilo_mid = (High + Low) / 2
max_val = max(Close , High)
min_val = min(Close , Low)
true_mid = (max_val + min_val) / 2
// Use hilo_mid and (High - Low) for the first bar; otherwise, use true_mid and True Range
mid_val = IF(first_bar, hilo_mid, true_mid)
range_val = IF(first_bar, (High - Low), TrueRange)
TrueWAP = Sum(mid_val * range_val, current_days) / Sum(range_val, current_days)
Recap: Interpretation
• The first bar uses the simple high-low midpoint and range.
• Subsequent bars use TrueMid and TrueRange based on prior close.
• This ensures the average reflects only the observed volatility and price since the anchor.
A Note on True Range
TrueRange captures the full extent of bar-to-bar volatility as the maximum of:
• High – Low
• |High – Previous Close|
• |Low – Previous Close|
## 2. SD, MAD, ATR (scaled) Deviation Measure Methodology: Segmented Weighted-Average Volatility
### Introduction
Conventional standard deviation calculations aggregate data over an expanding window and rely on a single mean, producing one summary statistic. This can obscure segmented, sequential datasets—such as MTD, QTD, and YTD—where additional granularity and time-sensitive insights matter.
This methodology isolates standard deviation within defined time frames and then proportionally allocates them based on custom lookback criteria. The result is a dynamic, multi-period normalization benchmark that captures both emerging volatility and historical stability.
Note: While this example uses SD, the same fixed-point approach applies to MAD and ATR (scaled).
### 2.1 Standard Deviation (Rolling Window)
pseudocode
// -- STANDARD DEVIATION (ROLLING) Calculation --
window_size = 20
rolling_SD = STDDEV(Close, window_size)
• Ideal for immediate trading insights.
• Reflects pure, short-term price dynamics.
• Captures volatility using the most recent 20 bars.
### 2.2 Blended SD: Current + 3 Past Periods
This method fuses current month data with the last three complete months.
pseudocode
// -- MULTI-PERIOD STANDARD DEVIATION (PROXY) with Three Past Periods --
current_days = BarsSince("start_of_month")
current_SD = STDDEV(Close, current_days)
prev1_days = TradingDaysLastMonth
prev1_SD = STDDEV_LastMonth(Close)
prev2_days = TradingDaysTwoMonthsAgo
prev2_SD = STDDEV_TwoMonthsAgo(Close)
prev3_days = TradingDaysThreeMonthsAgo
prev3_SD = STDDEV_ThreeMonthsAgo(Close)
// Blending with Proportional Weights
Weighted_SD = (current_SD * current_days +
prev1_SD * prev1_days +
prev2_SD * prev2_days +
prev3_SD * prev3_days) /
(current_days + prev1_days + prev2_days + prev3_days)
• Merges evolving volatility with the stability of three prior months.
• Weights each period by its trading days.
• Yields a robust normalization benchmark.
### 2.3 Blended SD: Current + 1 Past Period
This variant tempers emerging volatility by blending the current month with last month only.
pseudocode
// -- MULTI-PERIOD STANDARD DEVIATION (PROXY) with One Past Period --
current_days = BarsSince("start_of_month")
current_SD = STDDEV(Close, current_days)
prev1_days = TradingDaysLastMonth
prev1_SD = STDDEV_LastMonth(Close)
// Proportional Blend
Weighted_SD = (current_SD * current_days +
prev1_SD * prev1_days) /
(current_days + prev1_days)
• Anchors current volatility to last month’s baseline.
• Softens spikes by blending with historical data.
Conclusion
Segmented weighted-average volatility transforms global benchmarking by integrating immediate market dynamics with historical context. This fixed-point approach—applicable to SD, MAD, and ATR (scaled)—delivers time-sensitive analysis.
Reversal Point Dynamics⇋ Reversal Point Dynamics (RPD)
This is not an indicator; it is a complete system for deconstructing the mechanics of a market reversal. Reversal Point Dynamics (RPD) moves far beyond simplistic pattern recognition, venturing into a deep analysis of the underlying forces that cause trends to exhaust, pause, and turn. It is engineered from the ground up to identify high-probability reversal points by quantifying the confluence of market dynamics in real-time.
Where other tools provide a static signal, RPD delivers a dynamic probability. It understands that a true market turning point is not a single event, but a cascade of failing momentum, structural breakdown, and a shift in market order. RPD's core engine meticulously analyzes each of these dynamic components—the market's underlying state, its velocity and acceleration, its degree of chaos (entropy), and its structural framework. These forces are synthesized into a single, unified Probability Score, offering you an unprecedented, transparent view into the conviction behind every potential reversal.
This is not a "black box" system. It is an open-architecture engine designed to empower the discerning trader. Featuring real-time signal projection, an integrated Fibonacci R2R Target Engine, and a comprehensive dashboard that acts as your Dynamics Control Center , RPD gives you a complete, holistic view of the market's state.
The Theoretical Core: Deconstructing Market Dynamics
RPD's analytical power is born from the intelligent synthesis of multiple, distinct theoretical models. Each pillar of the engine analyzes a different facet of market behavior. The convergence of these analyses—the "Singularity" event referenced in the dashboard—is what generates the final, high-conviction probability score.
1. Pillar One: Quantum State Analysis (QSA)
This is the foundational analysis of the market's current state within its recent context. Instead of treating price as a random walk, QSA quantizes it into a finite number of discrete "states."
Formulaic Concept: The engine establishes a price range using the highest high and lowest low over the Adaptive Analysis Period. This range is then divided into a user-defined number of Analysis Levels. The current price is mapped to one of these states (e.g., in a 9-level system, State 0 is the absolute low, and State 8 is the absolute high).
Analytical Edge: This acts as a powerful foundational filter. The engine will only begin searching for reversal signals when the market has reached a statistically stretched, extreme state (e.g., State 0 or 8). The Edge Sensitivity input allows you to control exactly how close to this extreme edge the price must be, ensuring you are trading from points of maximum potential exhaustion.
2. Pillar Two: Price State Roc (PSR) - The Dynamics of Momentum
This pillar analyzes the kinetic forces of the market: its velocity and acceleration. It understands that it’s not just where the price is, but how it got there that matters.
Formulaic Concept: The psr function calculates two derivatives of price.
Velocity: (price - price ). This measures the speed and direction of the current move.
Acceleration: (velocity - velocity ). This measures the rate of change in that speed. A negative acceleration (deceleration) during a strong rally is a critical pre-reversal warning, indicating momentum is fading even as price may be pushing higher.
Analytical Edge: The engine specifically hunts for exhaustion patterns where momentum is clearly decelerating as price reaches an extreme state. This is the mechanical signature of a weakening trend.
3. Pillar Three: Market Entropy Analysis - The Dynamics of Order & Chaos
This is RPD's chaos filter, a concept borrowed from information theory. Entropy measures the degree of randomness or disorder in the market's price action.
Formulaic Concept: The calculateEntropy function analyzes recent price changes. A market moving directionally and smoothly has low entropy (high order). A market chopping back and forth without direction has high entropy (high chaos). The value is normalized between 0 and 1.
Analytical Edge: The most reliable trades occur in low-entropy, ordered environments. RPD uses the Entropy Threshold to disqualify signals that attempt to form in chaotic, unpredictable conditions, providing a powerful shield against whipsaw markets.
4. Pillar Four: The Synthesis Engine & Probability Calculation
This is where all the dynamic forces converge. The final probability score is a weighted calculation that heavily rewards confluence.
Formulaic Concept: The calculateProbability function intelligently assembles the final score:
A Base Score is established from trend strength and entropy.
An Entropy Score adds points for low entropy (order) and subtracts for high entropy (chaos).
A significant Divergence Bonus is awarded for a classic momentum divergence.
RSI & Volume Bonuses are added if momentum oscillators are in extreme territory or a volume spike confirms institutional interest.
MTF & Adaptive Bonuses add further weight for alignment with higher timeframe structure.
Analytical Edge: A signal backed by multiple dynamic forces (e.g., extreme state + decelerating momentum + low entropy + volume spike) will receive an exponentially higher probability score. This is the very essence of analyzing reversal point dynamics.
The Command Center: Mastering the Inputs
Every input is a precise lever of control, allowing you to fine-tune the RPD engine to your exact trading style, market, and timeframe.
🧠 Core Algorithm
Predictive Mode (Early Detection):
What It Is: Enables the engine to search for potential reversals on the current, unclosed bar.
How It Works: Analyzes intra-bar acceleration and state to identify developing exhaustion. These signals are marked with a ' ? ' and are tentative.
How To Use It: Enable for scalping or very aggressive day trading to get the earliest possible indication. Disable for swing trading or a more conservative approach that waits for full bar confirmation.
Live Signal Mode (Current Bar):
What It Is: A highly aggressive mode that plots tentative signals with a ' ! ' on the live bar based on projected price and momentum. These signals repaint intra-bar.
How It Works: Uses a linear regression projection of the close to anticipate a reversal.
How To Use It: For advanced users who use intra-bar dynamics for execution and understand the nature of repainting signals.
Adaptive Analysis Period:
What It Is: The main lookback period for the QSA, PSR, and Entropy calculations. This is the engine's "memory."
How It Works: A shorter period makes the engine highly sensitive to local price swings. A longer period makes it focus only on major, significant market structure.
How To Use It: Scalping (1-5m): 15-25. Day Trading (15m-1H): 25-40. Swing Trading (4H+): 40-60.
Fractal Strength (Bars):
What It Is: Defines the strength of the pivot detection used for confirming reversal events.
How It Works: A value of '2' requires a candle's high/low to be more extreme than the two bars to its left and right.
How To Use It: '2' is a robust standard. Increase to '3' for an even stricter definition of a structural pivot, which will result in fewer signals.
MTF Multiplier:
What It Is: Integrates pivot data from a higher timeframe for confluence.
How It Works: A multiplier of '4' on a 15-minute chart will pull pivot data from the 1-hour chart (15 * 4 = 60m).
How To Use It: Set to a multiple that corresponds to your preferred higher timeframe for contextual analysis.
🎯 Signal Settings
Min Probability %:
What It Is: Your master quality filter. A signal is only plotted if its score exceeds this threshold.
How It Works: Directly filters the output of the final probability calculation.
How To Use It: High-Quality (80-95): For A+ setups only. Balanced (65-75): For day trading. Aggressive (50-60): For scalping.
Min Signal Distance (Bars):
What It Is: A noise filter that prevents signals from clustering in choppy conditions.
How It Works: Enforces a "cooldown" period of N bars after a signal.
How To Use It: Increase in ranging markets to focus on major swings. Decrease on lower timeframes.
Entropy Threshold:
What It Is: Your "chaos shield." Sets the maximum allowable market randomness for a signal.
How It Works: If calculated entropy is above this value, the signal is invalidated.
How To Use It: Lower values (0.1-0.5): Extremely strict. Higher values (0.7-1.0): More lenient. 0.85 is a good balance.
Adaptive Entropy & Aggressive Mode:
What It Is: Toggles for dynamically adjusting the engine's core parameters.
How It Works: Adaptive Entropy can slightly lower the required probability in strong trends. Aggressive Mode uses more lenient settings across the board.
How To Use It: Keep Adaptive on. Use Aggressive Mode sparingly, primarily for scalping highly volatile assets.
📊 State Analysis
Analysis Levels:
What It Is: The number of discrete "states" for the QSA.
How It Works: More levels create a finer-grained analysis of price location.
How To Use It: 6-7 levels are ideal. Increasing to 9 can provide more precision on very volatile assets.
Edge Sensitivity:
What It Is: Defines how close to the absolute top/bottom of the range price must be.
How It Works: '0' means price must be in the absolute highest/lowest state. '3' allows a signal within the top/bottom 3 states.
How To Use It: '3' provides a good balance. Lower it to '1' or '0' if you only want to trade extreme exhaustion.
The Dashboard: Your Dynamics Control Center
The dashboard provides a transparent, real-time view into the engine's brain. Use it to understand the context behind every signal and to gauge the current market environment at a glance.
🎯 UNIFIED PROB SCORE
TOTAL SCORE: The highest probability score (either Peak or Valley) the engine is currently calculating. This is your main at-a-glance conviction metric. The "Singularity" header refers to the event where market dynamics align—the event RPD is built to detect.
Quality: A human-readable interpretation of the Total Score. "EXCEPTIONAL" (🌟) is a rare, A+ confluence event. "STRONG" (💪) is a high-quality, tradable setup.
📊 ORDER FLOW & COMPONENT ANALYSIS
Volume Spike: Shows if the current volume is significantly higher than average (YES/NO). A 'YES' adds major confirmation.
Peak/Valley Conf: This breaks down the probability score into its directional components, showing you the separate confidence levels for a potential top (Peak) versus a bottom (Valley).
🌌 MARKET STRUCTURE
HTF Trend: Shows the direction of the underlying trend based on a Supertrend calculation.
Entropy: The current market chaos reading. "🔥 LOW" is an ideal, ordered state for trading. "😴 HIGH" is a warning of choppy, unpredictable conditions.
🔮 FIB & R2R ZONE (Large Dashboard)
This section gives you the status of the Fibonacci Target Engine. It shows if an Active Channel (entry zone) or Stop Zone (invalidation zone) is active and displays the precise price levels for the static entry, target, and stop calculated at the time of the signal.
🛡️ FILTERS & PREDICTIVES (Large Dashboard)
This panel provides a status check on all the bonus filters. It shows the current RSI Status, whether a Divergence is present, and if a Live Pending signal is forming.
The Visual Interface: A Symphony of Data
Every visual element is designed for instant, intuitive interpretation of market dynamics.
Signal Markers: These are the primary outputs of the engine.
▼/▲ b: A fully confirmed signal that has passed all filters.
? b: A tentative signal generated in Predictive Mode, indicating developing dynamics.
◈ b: This diamond icon replaces the standard triangle when the signal is confirmed by a strong momentum divergence, highlighting it as a superior setup where dynamics are misaligned with price.
Harmonic Wave: The flowing, colored wave around the price.
What It Represents: The market's "flow dynamic" and volatility.
How to Interpret It: Expanding waves show increasing volatility. The color is tied to the "Quantum Color" in your theme, representing the underlying energy field of the market.
Entropy Particles: The small dots appearing above/below price.
What They Represent: A direct visualization of the "order dynamic."
How to Interpret Them: Their presence signifies a low-entropy, ordered state ideal for trading. Their color indicates the direction of momentum (PSR velocity). Their absence means the market is too chaotic (high entropy).
The Fibonacci Target Engine: The dynamic R2R system appearing post-signal.
Static Fib Levels: Colored horizontal lines representing the market's "structural dynamic."
The Green "Active Channel" Box: Your zone of consideration. An area to manage a potential entry.
Development Philosophy
Reversal Point Dynamics was engineered to answer a fundamental question: can we objectively measure the forces behind a market turn? It is a synthesis of concepts from market microstructure, statistics, and information theory. The objective was never to create a "perfect" system, but to build a robust decision-support tool that provides a measurable, statistical edge by focusing on the principle of confluence.
By demanding that multiple, independent market dynamics align simultaneously, RPD filters out the vast majority of market noise. It is designed for the trader who thinks in terms of probability and risk management, not in terms of certainties. It is a tool to help you discount the obvious and bet on the unexpected alignment of market forces.
"Markets are constantly in a state of uncertainty and flux and money is made by discounting the obvious and betting on the unexpected."
— George Soros
Trade with insight. Trade with anticipation.
— Dskyz, for DAFE Trading Systems
RTH Candles Overlay--Overview
Unlock a new way to analyze Regular Trading Hours (RTH) with this powerful indicator! Designed for traders who focus on the 09:30–16:00 market session (default EST), it redefines hourly price action by aligning candlesticks with the RTH start at 09:30, rather than the standard XX:00. It also plots hourly high/low lines and projection zones to pinpoint potential support, resistance, and price targets. Plus, it displays compact hourly candlesticks on the right side of your chart for quick, at-a-glance analysis.
--Key Features
Shifted RTH Candles: Unlike standard hourly candles starting at XX:00, this indicator aligns candles with the RTH open at 09:30 (e.g., 09:30–10:30, 10:30–11:30). This captures true market momentum from the opening bell, offering a more accurate view of price action.
Session High/Low Lines: Marks the high and low prices for each session with clear, labeled lines (e.g., “0930-1030 High”) to highlight key levels.
Projection Zones: Draws shaded boxes above and below each session’s range (default: 0.25 and 0.5 Projection levels) to show potential price targets or reversal zones.
Shifted Candlesticks: Displays each shifted Hour as a candlestick (open, high, low, close) on the right side of the chart, with bullish candles in green and bearish in gray for easy comparison.
Vertical Markers: Dotted vertical lines mark the start of each period (e.g., 09:30) for clear time segmentation.
Historical Analysis: View up to 5 days of past sessions to spot trends and recurring levels.
Fully Customizable: Adjust session times, timezone, colors, and projection levels to fit your trading style.
--How It Works
RTH-Aligned Candles: The indicator divides the trading day into up to seven sessions (default: hourly from 09:30 to 16:00 EST). Each session starts at times like 09:30, 10:30, etc., aligning with the RTH open instead of standard hourly intervals. This shift ensures you see price action as it unfolds during key market hours.
High/Low Lines: Horizontal lines mark the highest and lowest prices for each session, with customizable labels for easy reference.
Fibonacci Zones: Shaded boxes extend above (0.25 to 0.5 times the session’s range) and below (–0.25 to –0.5) each session’s high/low, highlighting potential price targets or areas where price may reverse.
Candles: Each shifted hour is summarized as a candlestick on the right side of the chart, showing open, high, low, and close prices. Bullish candles are green, bearish are gray, and you can adjust their size and spacing.
Vertical Lines: Dotted lines at the start of each session (e.g., 09:30) help you visualize session boundaries.
Historical Data: Analyze up to 5 days of past sessions to identify patterns or key levels.
--Settings
Timezone: Set your market’s timezone (default: EST, -4 hours).
Session Times: Customize up to seven sessions (default: hourly from 09:30 to 16:00).
Max Days to Plot: Show up to 5 days of historical sessions (default: 1 day).
Candle Styles: Toggle session candles, adjust width, spacing, and offset. Customize bullish (green) and bearish (gray) colors.
High/Low Lines: Enable/disable high/low lines, set color (default: gray), style (solid, dotted, dashed), and label size. Optionally show session open lines and labels.
Fibonacci Zones: Turn projection zones on/off, adjust levels (default: 0.25 and 0.5), and choose fill color (default: translucent gray).
Vertical Lines: Toggle session start lines and customize their color and style.
--Best Used For
Day Trading: Spot key levels and price targets during RTH sessions, aligned with the 09:30 market open.
RTH Analysis: Get a clearer picture of price action with candles that match the market’s true rhythm, starting at 09:30 instead of XX:00.
Fibonacci Trading: Use projection zones to identify potential support, resistance, or breakout levels.
Session Comparison: Compare price action across sessions using compact candlesticks and historical data.
--How to Use
1. Add the indicator to your TradingView chart (works best on 1-hour or lower timeframes).
2. Set the timezone and session times to match your market (default: 09:30–16:00 EST).
3. Enable/disable features like Fibonacci zones, high/low lines, or session candles in the settings.
4. Use the shaded zones to anticipate price targets or reversals based on Fibonacci levels.
5. Analyze session candles and historical data to spot trends or recurring levels.
--Why This Indicator?
The RTH Session Candles with projection Zones indicator is a game-changer for traders who want to focus on the market’s true rhythm. By aligning candles with the 09:30 RTH open, it captures price action as it happens, unlike standard hourly charts. Paired with projection zones and clear session markings, it’s a simple yet powerful tool to identify key levels and potential price moves. Perfect for day traders, swing traders, or anyone who wants a cleaner, more precise view of the market.
Previous Highs & Lows (Customizable)Previous Highs & Lows (Customizable)
This Pine Script indicator displays horizontal lines and labels for high, low, and midpoint levels across multiple timeframes. The indicator plots levels from the following periods:
Today's session high, low, and midpoint
Yesterday's high, low, and midpoint
Current week's high, low, and midpoint
Last week's high, low, and midpoint
Last month's high, low, and midpoint
Last quarter's high, low, and midpoint
Last year's high, low, and midpoint
Features
Individual Controls: Each timeframe has separate toggles for showing/hiding high/low levels and midpoint levels.
Custom Colors: Independent color selection for lines and labels for each timeframe group.
Display Options:
Adjustable line width (1-5 pixels)
Variable label text size (tiny, small, normal, large, huge)
Configurable label offset positioning
Organization: Settings are grouped by timeframe in a logical sequence from most recent (today) to least recent (last year).
Display Logic: Lines span the current trading day only. Labels are positioned to the right of the price action. The indicator automatically removes previous drawings to prevent chart clutter.
Inverse Fair Value Gap [Pro+]Introduction
Inverse Fair Value Gap° is a fully customizable charting tool built to track inversion fair value gap logic that occur after displacement events—specifically when Fair Value Gaps (FVGs) are closed through, and effectively flipping their original state. The tool is inspired by Inner Circle Trader (ICT) concepts, offering a clean visual interface to support traders studying price behaviour after liquidity sweeps, FVG closures, and highlighting mechanical swings targets.
This indicator does not draw zones or suggest direction. It operates entirely on confirmed price events and produces logic-bound visuals designed for traders who already understand IFVG-based reasoning and seek visual consistency across sessions, Timeframe on any instrument.
Key Terms and Definitions
Swing High / Swing Low: A swing high is a local price peak with lower highs on either side. A swing low is a local trough with higher lows on either side. These are used to detect where liquidity may rest and are required for confirming the initial raid condition in the IFVG model.
Liquidity Raid: This occurs when price trades through a prior swing high or low, effectively “sweeping” a level where orders may be clustered around. The raid is a required precursor to inversion logic in this model. The tool will not evaluate a potential Fair Value Gap or Inversion Fair Value Gap unless a swing high or low has been taken first.
Fair Value Gap (FVG): A Fair Value Gap is a price imbalance that occurs when a strong move leaves a gap between candles—specifically, when the high of one candle and the low of a later candle do not overlap. FVGs often emerge during displacement and are commonly studied as inefficiencies within a price leg.
Inversion Fair Value Gap: An inversion happens when price fully closes through an existing Fair Value Gap that raided liquidity, suggesting the original imbalance rebalanced, and looks to reverse its original role. For example, when a bearish FVG is closed above after raiding a swing low, it may present a shift in orderflow (bullish inversion). The tool recognizes IFVGs as “inverted” after a candle body candle closes through the gap post raid.
Displacement: A strong directional price move, typically with momentum, that leaves a Fair Value Gap behind. Displacement is important in inversion logic, as it creates the context and confidence in comparing and contrasting FVGs and Inversions for obvious flips in market behaviour.
IFVG Line: Once inversion occurs, the indicator draws a single horizontal array on the candle's close. It marks the start of model activation. This is not a prediction level or a support/resistance area, as it merely serves as a reference for when model logic is sequentially active.
Opposing Swing: The swing high or low opposite the one that was swept during the initial raid. This becomes the model’s first target for mechanical delivery and is automatically drawn once the IFVG line is plotted. When price reaches this swing, the model has reached its mechanical objective and could offer opportunities for further continuation to additional liquidity pools if orderflow continues to be present.
Invalidation: The Inversion Fair Value Gap is considered invalid in one of two scenarios, which the user can toggle individually: a body print back above/below the inversion in bearish/bullish conditions, or trading above/below the most recent swing high/low after the liquidity raid. The IFVG line will continue extending until the setup is invalidated by the chosen toggle, or when the Opposing Swing is reached.
Consequent Encroachment (CE): The midpoint (50%) of the FVG or IFVG. This line can be optionally displayed for users who use the midpoint of imbalances for reference of imbalance respect. It is not required by the model’s internal logic but may assist with discretionary interpretation.
Description
At its core, IFVG° follows a structured three-step logic sequence: a FVG is created, liquidity is taken, and the Fair Value Gap (FVG) inside of the leg of the raid is closed through, signally a potential orderflow shift. Once inversion is confirmed, an IFVG line is plotted at the close of the candle that caused the inversion, making it the structural anchor for the model.
The tool does not account for partial fills or candle wicks for FVGs or IFVGs. Only full-body closures through a qualifying FVG are recognized. When this occurs, a bullish or bearish inversion is plotted and the model becomes active. From there, the opposing swing (the unswept high or low from the displacement leg) is automatically drawn as the target for the model.
The model remains active until either the opposing swing is tagged (completion) or Invalidation Condition is triggered (close through IFVG, or price violating the liquidity raid swing). Upon invalidation, the IFVG line turns gray, signaling that the structure is no longer valid for ongoing tracking.
Key Features
The Bias allows traders to define whether to track bullish inversions (closing above bearish FVGs), bearish inversions (closing below bullish FVGs), or neutral to see both. This allows isolated directional focus as well as the ability to display all models.
The Liquidity Timeframe defines the Timeframe for swing highs and lows that are identified for the required liquidity raid. The Chart mode allows analysts to use the active chart Timeframe. Auto enables a pre-defined Timeframe Alignment, explained inside of the setting tooltip. Custom allows for user-defined Timeframe alignment, which is helpful when syncing with specific higher-Timeframe structures. Session allows the user to use session highs and lows for the liquidity raid. Observe the difference in the IFVG' model activations based on different Liquidity Timeframe configurations:
Chart:
Automatic:
Custom (4H):
Session:
The FVG Filter Timeframe requires the IFVG setup to trade into a FVG before qualifying the raid filter. For instance, setting this to 4H ensures that only setups that form within a 4-hour FVG. This gives analysts an additional filter to qualify the start of the mechanical model.
The Session Filter enables traders to define up to four specific Time blocks when the model is permitted to trigger. The Macros Only toggle filters setups further by limiting activation to the first and last 10 minutes of each hour, a filter inspired for intraday traders and scalpers.
The Invalidation Condition determines when a IFVG is considered no longer valid. The Close option will maintain the inversion as active until price prints a body past the IFVG. Swing will maintain the inversion as active until the most recent swing from the liquidity raid is traded through; in this case a warning icon will appear once price prints a candle body past the IFVG.
Model Style includes customizable controls for the IFVG line, the opposing swing marker, and invalidated states. Label appearance, line styles, and extension behaviour are fully user-controlled. Traders can also enable the Consequent Encroachment (CE) line, which marks the 50% midpoint of the FVG.
An Info Table is available to display the charts Timeframe, current model state, toggled bias, active Timeframes, asset, and Time filter. Its position is fully customizable and can be moved to match chart preferences.
How Traders Can Use the Indicator Effectively
IFVG° is not meant to identify trade signals, entries, or exits. It is best used as a visual tracker and confluence for structure-based delivery. The tool excels as a companion for:
Journaling and reviewing IFVG-based setups across Timeframes and sessions
Studying structural completion or invalidation behaviour
Tracking delayed deliveries and retracement-based logic
Traders using the tool should be familiar with FVG formations, inversion criterias, and the importance of orderflow once an opposing swing is reached.
Usage Guidance
Add the IFVG° to a TradingView chart. This is a fractal script and can be applied across any Timeframe or asset pairing.
Use the IFVG line to track inversion structure, monitor when inversions are created and negated, and reference the opposing swing to determine whether structural delivery has completed.
Use the IFVG in combination with your own discretion and narrative to assess when the model has flipped, held, or broken.
Terms and Conditions
Our charting tools are products provided for informational and educational purposes only and do not constitute financial, investment, or trading advice. Our charting tools are not designed to predict market movements or provide specific recommendations. Users should be aware that past performance is not indicative of future results and should not be relied upon for making financial decisions. By using our charting tools, the purchaser agrees that the seller and the creator are not responsible for any decisions made based on the information provided by these charting tools. The purchaser assumes full responsibility and liability for any actions taken and the consequences thereof, including any loss of money or investments that may occur as a result of using these products. Hence, by purchasing these charting tools, the customer accepts and acknowledges that the seller and the creator are not liable nor responsible for any unwanted outcome that arises from the development, the sale, or the use of these products. Finally, the purchaser indemnifies the seller from any and all liability. If the purchaser was invited through the Friends and Family Program, they acknowledge that the provided discount code only applies to the first initial purchase of any Toodegrees product. The purchaser is therefore responsible for cancelling – or requesting to cancel – their subscription in the event that they do not wish to continue using the product at full retail price. If the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable. We hold no reimbursement, refund, or chargeback policy. Once these Terms and Conditions are accepted by the Customer, before purchase, no reimbursements, refunds or chargebacks will be provided under any circumstances.
By continuing to use these charting tools, the user acknowledges and agrees to the Terms and Conditions outlined in this legal disclaimer.
Swing Highs and Lows Detector🔍 Swing Highs and Lows Detector
The Swing Highs and Lows Detector is a powerful tool for traders looking to identify meaningful structural shifts in price action, based on swing point logic and internal trend shifts.
📈 What It Does
This indicator automatically identifies and labels:
HH (Higher High) – Price broke above the previous swing high
LH (Lower High) – Price failed to break the previous high, signaling potential weakness
LL (Lower Low) – Price broke below the previous swing low
HL (Higher Low) – Price maintained a higher support level, indicating strength
The script distinguishes between bullish and bearish internal shifts and tracks the highest/lowest points between those shifts to determine the swing structure.
⚙️ How It Works
You can choose between two shift detection modes:
"Open": Compares closing price to the first open of the opposite streak
"High/Low": Uses the high of bearish or low of bullish candles
Once a shift is confirmed, the indicator scans the bars between shifts to find the most significant swing high or low
When a valid swing is detected, it’s labeled directly on the chart with color-coded markers
🛎️ Built-in Alerts
Set alerts for:
Higher High
Lower High
Lower Low
Higher Low
These alerts help you catch key structural shifts in real time — great for breakout traders, structure-based analysts, and smart money concepts (SMC) strategies.
✅ How to Use
Confirm Trend Strength or Reversals – Use HH/HL to confirm an uptrend, LL/LH to confirm a downtrend
Combine with Liquidity Sweeps or Zones – Ideal for SMC or Wyckoff-style setups
Entry/Exit Triggers – Use swing breaks to time entries or exits near key structural points
Teddy LiteOverview
"Teddy" overlays key price levels—Daily Open (DO), Average Daily Range (ADR), and ADR Extensions (ADE)—on intraday charts. Designed for traders, it provides a clear framework to align with market ranges, avoid choppy price action, and stay out of overbought/oversold conditions, enhancing decision-making in dynamic markets.
Originality and Usefulness
"Teddy" uniquely combines DO, ADR High/Low, and ADE High/Low with dynamic percentage labels, while offering a concise view of price boundaries for daily Highs and Lows.
What It Does
Plots DO, ADR High/Low, and ADE High/Low as levels on the chart.
Labels each level with percentage distances from the current price (e.g., "ADRH (2.34%)").
Customizes visuals for clarity (colors, line styles, label sizes).
How It Works
Data Sources: Retrieves daily open and historical high/low data to compute ranges.
Calculations:
Daily Open (DO): Marks the session’s opening price.
ADR: Estimates typical daily range from past data, centered on DO to set High/Low bounds.
ADE: Extends ADR by a fixed percentage for outer limits.
Visualization: Updates lines and labels live, with user-defined colors, styles, and sizes.
How It Helps Traders
"Teddy" guides traders to avoid chasing markets in extended conditions:
Respecting the range: ADR High/Low define range-friendly zones—price above DO nearing ADR High signals bullish momentum is peaking, while below DO near ADR Low supports bearish momentum peaking.
Avoiding Choppy Conditions: Price lingering near DO often indicates indecision; "Teddy" highlights this level, helping you define balanced market conditions that favor choppy conditions.
Steering Clear of Overbought/Oversold: ADE High/Low mark extended levels where reversals are extremely—price hitting ADE Highlights the trend strength on the day but warns price is extremely over extended.
This structured approach keeps trades aligned with the markets average range, so traders can avoid extremes favorable levels for choppiness.
How to Use It
Apply to an intraday chart (e.g., SPY 5m).
Customize via inputs:
"Appearance Settings": Colors, line styles (Solid, Dotted, Dashed), widths (1-6), label visibility, and sizes (Tiny to Huge).
Watch levels: Consider reducing risk as the market approaches our ADRH/L levels. Trades can also play breakouts/failed breakouts at ADR High/Low or at ADE High/Low. Additionally remaining patient while the auction remains in balance near Day Open is an option as well.
Underlying Concepts
Range Dynamics: ADR reflects average daily volatility, DO anchors context, and ADE flags extensions.
Price Action: Levels highlight Volatility/Range (ADR) versus consolidation (DO) or expansive exhaustion (ADE).
Limitations
Optimized for day traders during live sessions; less effective in low-volatility periods.
Requires sufficient historical data for accurate ADR/ADE.
Levels are contextual and where I expect reactive price action to occur.. They are not guaranteed signals.
Inner Circle Toolkit [TakingProphets]Inner Circle Toolkit — A Complete ICT Trading Companion
The Inner Circle Toolkit is a closed-source, all-in-one trading tool designed for traders following ICT (Inner Circle Trader) and Smart Money Concepts strategies. Every part of this script is built with purpose — not just a mashup of indicators, but a structured framework to help you follow price through the lens of institutional behavior and liquidity theory.
Let’s walk through what it does and how it can help you:
🕒 Session Liquidity Levels (Asia, London, New York, NY Lunch)
The indicator automatically marks the highs and lows of the major trading sessions:
-Asian Session
-London Session
-New York AM Session
-New York Lunch
These levels are important because price often returns to these points to grab liquidity before making a move. This gives traders clear areas to watch for potential sweeps, rejections, or reversals — without having to manually track session timings every day.
REQHs and REQLs — Equal Highs and Lows
This script detects Relatively Equal Highs and Lows (REQHs/REQLs), which are often used by institutions as stop-run targets.
It’s not just looking for copy-paste double tops or bottoms — it uses a tolerance-based algorithm that checks for clusters of similar highs or lows over a given time period. These are likely to hold stops and become magnets for price. When you see these on the chart, you’ll know where the “juice” is sitting.
Fair Value Gaps (FVG) — Multi-Timeframe
The script automatically plots Fair Value Gaps (FVGs) on both:
-Your current chart timeframe
-One or more higher timeframes (like H1 or H4)
These are three-candle gaps that form when price moves aggressively without filling in value. Price often comes back to these areas to rebalance. Seeing both local and higher-timeframe FVGs on your chart gives better context and helps with entries and exits.
The script is optimized so your chart doesn’t get messy — higher timeframe FVGs show up in a cleaner format with visual labels and lighter shading.
SMT Divergence — With Session Logic
This tool includes a real-time SMT divergence detector, based on the behavior of correlated markets like ES vs. NQ.
Here’s how it works:
If ES sweeps a liquidity level (like Asia Low), but NQ doesn’t, the script detects and marks that divergence.
This often signals institutional accumulation or distribution — a high-probability setup.
You won’t have to flip between charts or manually compare — the SMT logic runs automatically and only fires when it matters (at key session levels). It’s a smarter, more focused way to track intermarket divergences.
Daily Highs and Lows — Week-to-Week Structure
The indicator keeps track of the high and low for each day of the week — Monday through Friday — helping you understand how price is evolving across the week.
This helps build a weekly profile:
Did Monday set the high of the week?
Are we sweeping Tuesday’s low on Thursday?
These levels stay visible and labeled, helping you frame daily setups inside the bigger picture.
🕛 Midnight Open & 8:30 AM Open Levels
These two levels are core ICT concepts used to judge whether price is in premium or discount:
Midnight Open (00:00 EST): Used to determine daily bias
New York Open (08:30 EST): Often a launch point for key moves
Both are drawn automatically and extend throughout the day. This helps you align your trades with potential algorithmic bias, especially during NY session volatility.
⏰ 9:45 AM Vertical Marker — Macro Time Reminder
The script draws a subtle vertical line at 9:45 AM EST, which is the start of the NY AM macro session — one of the most likely times to see setups play out.
This is more than just a timer — it’s a visual cue that something important might be setting up soon, especially if you’re already watching SMT, FVGs, or liquidity zones from earlier.
How It All Connects — A Workflow, Not a Mashup
Every feature in this script is connected to the same goal: helping you trade with the Smart Money.
Here’s how the pieces work together:
Session levels → potential stop hunts
Equal highs/lows → targets
FVGs → entry points
SMT divergence → confirmation or warning
Daily highs/lows → Weekly structure frames bias
Open levels → premium vs. discount
Macro line → timing clue for execution
It’s built to help you flow with price action and trade the story, not just random signals.
Why It’s Closed Source — and Original
This script is closed-source because it contains:
A proprietary system for real-time SMT logic (with intermarket sweep detection)
Multi-timeframe FVG detection that auto-filters overlaps
Smart equal-high/low detection using range-based clustering
Optimized UI that shows a lot without overwhelming the chart
There are no moving averages, no public-domain indicators, and no mashup of standard tools. Everything here is purpose-built for traders who follow ICT strategies.
Let us know how we can improve!
Advanced Market Structure & Order Blocks (fadi)Advanced Market Structure & Order Blocks indicator provides a new approach to understanding price action using ICT (Inner Circle Trader) concepts related to candle blocks to analyze the market behavior and eliminate much of the noise created by the price action.
This indicator is not intended to provide trade signals, it is designed to provide the traders with to support their trading strategies and add clarity where possible.
There are currently three main elements to this indicator:
Market Structure
Order Blocks
Liquidity Voids
Market Structure
In trading, market structure is often identified by observing higher highs and higher lows. An uptrend is characterized by a series of higher highs, where each peak surpasses the previous one, and higher lows, where each trough is higher than the preceding one. Conversely, a downtrend is marked by lower highs and lower lows.
Other indicators usually determine these peaks by calculating the highest or lowest levels within a predefined number of candles. For example, identifying the highest price level within the last 15 candles and marking it as a higher high or a lower high. While this approach offers some structure to price action, it can be arbitrary and random due to price fluctuations and the lack of proper structure analysis beyond finding the highest peaks and valleys within candle ranges.
In his 2022 mentorship, episode 12, ICT introduced an alternative approach focusing on three-candle pivots called Short Term High and Low (STH/STL), which are then used to calculate the Intermediate Term High and Low (ITH/ITL), and in turn, the Long Term High and Low (LTH/LTL). ICT’s approach provides better structure than the traditional method mentioned above. However, it can be confusing and difficult to track. There are great indicators that track and label ICT’s levels, but traders still find it challenging to follow and understand.
The Advanced Market Structure indicator takes a unique approach by analyzing candle formations, using ICT concepts, to identify possible turning points that mimic a real trader’s analysis of price action as closely as possible. However, it should be expected that Market Makers may use market manipulation to induce traders to make failed trades, and no tooling can eliminate these situations.
Advanced Market Structure tracks true Peaks and Valleys as they form, confirms them, and marks the chart with corresponding labels using traditional labeling methods (HH/HL/LH/LL), as such labeling makes it easier for traders to follow and understand. The indicator also draws levels to help identify possible liquidity areas and trade targets.
The indicator uses different calculation methods for the different type of market structure length, however all calculations are based on the same ICT candle blocks concepts.
Market Structure Settings
Other than the display settings, there are four (4) settings, mainly under the Level Settings section.
Allow Nested Candles
This option is only available on the Short Market Structure due to the methods used in calculating highs and lows. When used, the indicator will attempt to detect smaller fluctuations in price by tracking smaller candle moves, if any.
Level Settings
Level Settings allows the trader to decide two main calculations:
1. A new pivot point will form when a candle’s is crossed by the following candle’s
2. For a liquidity sweep and marking a level as mitigated, a candle’s must cross that level
Order Blocks
ICT (Inner Circle Trader) defines an Order Block as the last down-closing candle, or series of candles, before a significant upward price move or the last up-closing candle, or series of candles, before a significant downward price move. These key price levels, marked by substantial buy or sell orders from institutional traders or "smart money," create a block or zone on the price chart. When the price revisits these levels, it often leads to a strong market reaction. Order Blocks can consist of one or multiple consecutive candles of the same color, signaling areas of significant buying or selling interest. ICT's approach to Order Blocks provides traders with a structured method to identify potential areas of support or resistance, where price movements are more likely to change direction. Although ICT has shared some criteria for identifying Order Blocks publicly, the full details are reserved for his upcoming books. This indicator leverages the publicly available information to provide traders with valuable insights into these crucial price levels.
The Advanced Market Structure indicator is designed to be highly flexible, allowing traders to define their own combination of rules for identifying Order Blocks, thus customizing it to fit their unique trading strategies.
Order Block Configuration
Can be nested
An Order Block is defined as the last down candle or candles before a strong move higher, and vice versa for bearish Order Blocks. However, larger-than-usual candles resulting from news events or price action may not qualify as Order Blocks and can mute any Order Block within their range.
The "Can be nested" flag ensures that each Order Block is treated as an independent entity, even if it appears within the body of another Order Block.
Forms at swing point
Order Blocks formed at swing points typically have higher probabilities but are less frequent, assuming the same rules are applied. Additionally, Order Blocks at swing points may become Breaker and Mitigation blocks if they fail, providing more trading opportunities.
Forms a simple pivot point
A simple pivot point corresponds to ICT Short Term High and Low (STH/STL). Order Blocks using simple pivot points can occur in the middle of a move, not just at swing points. These are useful for identifying IOFED setups and supporting blocks that can bolster the price move.
Causes Market Structure Shift
Order Blocks that result in a break above or below a short swing point can help narrow down target order blocks, but they are less frequent. An Order Block causing a break above or below a pivot point does not necessarily indicate a strong Order Block. For example, an Order Block formed at a Lower Low is more likely to fail in a downtrend.
A clean close above order block
When the first candle breaks above an Order Block and closes above its high, this indicates a stronger Order Block. On the other hand, if a candle merely wicks through the Order Block without a solid close above it, it suggests a weaker Order Block. This may indicate hesitation or an impending reversal, as the wick represents a temporary and unsustained price movement.
Has displacement more than X the body
While some traders may capitalize on the initial break above an Order Block's CISD level, others prefer to focus on the return to an Order Block after displacement. Displacement is determined by the body size of the Order Block, and an Order Block cannot be tested until this level has been achieved.
Has a Fair Value Gap
When an Order Block is combined with a Fair Value Gap (FVG), it signifies a strong Order Block. The Fair Value Gap indicates a strong price movement away from the Order Block.
Has a liquidity void
A Liquidity Void occurs when two consecutive candles of the same color do not overlap, creating a gap similar to a Fair Value Gap, but involving one or more middle candles. Liquidity Voids can be utilized in combination with, or as an alternative to, the displacement setting.
Maximum number of OBs
The maximum number of Order Blocks to display.
Mitigated at block’s
An Order Block is considered mitigated when price reaches one of the main Order Block levels.
Liquidity Void
Liquidity Void refers to areas on a price chart where there is one-sided trading activity. This phenomenon occurs when the price of an asset moves sharply in one direction, leaving gaps where two consecutive candles of the same color do not overlap. These gaps can comprise one or more middle candles and indicates a pronounced lack of trading within that price range. Liquidity Voids are important because they highlight areas of minimal resistance, where price is more likely to return to fill the void and balance the market.
Liquidity Void vs Fair Value Gap
While both concepts are related to gaps in price action, they are distinct. A Fair Value Gap is a specific three-candle pattern where the middle candle creates a gap between the first and third candles. In contrast, a Liquidity Void represents a broader area on the chart where there is little to no trading activity, often encompassing multiple candles and indicating a more pronounced imbalance between buy and sell orders.
A FVG can be part of a Liquidity Void, a Liquidity Void can exist without necessarily including an FVG. Both concepts highlight areas of minimal resistance and potential price movement, but they differ in their formation and implications.
Advanced Market Structure and Order Blocks indicator focus on liquidity voids since a liquidity void can substitute for a FVG and it is usually less addressed by other indicators.