Poor ReversalsPoor Reversals Indicator
This indicator finds Poor Reversals. Poor reversals are reversals in price with consecutive highs or lows that are close together. Look for the different types of highs and lows. Some say candle patterns don't matter, but they forget it's the orderflow that makes the pattern. Find poor, tweezer, and 1 tic rejections and study what happens next. We don't need to read the depth of market to see what the orderflow is saying. They are called poor because the auction didn't run its course. It didn't continue the direction until all activity in that direction was exhausted. Proper reversals create excess. Excess is a long tail/wick. A proper reversal leaves a long tailed excess unfilled.
The different highs and lows give clues to what kind of orderflow happened there. The difference between them is which high or low happened first. Price does often come back to these areas and clears them up with a proper reversal. We can see them on all timeframes. Knowing what they mean in the orderflow helps with reading charts.
The Poor Reversals are:
Poor
1 Tick Rejection
Tweezer
When looking at 2 bars that have very close high or lows, there are a few different types. They are each poor and can be further defined as each are price action clues.
If next low is higher, it's a poor low
If next low is lower, it's 1 tic rejection
If next low is equal, it's tweezer bottom
If next high is lower, it's a poor low
If next high is higher it's 1 tic rejection
If next high is equal it's tweezer bottom
Poor Highs and Lows:
The high or low comes first. The next bar does not go past it. Poor highs and lows are often created from price exhaustions. This means at poor highs buyers are trapped. At poor lows sellers are trapped. Price ran out of steam to continue in that direction. There wasn't enough activity and participation to continue the auction in that direction.
Poor lows are defined when 2 lows are very close, and the 1st bar is lower. The 2nd comes very close to a new low. It happens most when shorts, at the moment, "run out of steam". They were "too aggressive" and got themselves "short in the hole". When a poor low is made, price will bounce because shorts are buying to protect profits.
Poor highs are defined when 2 highs are very close. The 1st bar is higher. The 2nd comes very close to a new high. It happens most when longs, at the moment, "run out of steam". They were "too aggressive" and got themselves "long in the tooth". When a poor high is made, price will pullback because longs are selling to protect profits.
1 Tick Rejections:
The high or low comes last. The next bar goes just a little bit beyond it. A "1 tic rejection" happens when a new low is made and quickly rejects. The name is misleading. It doesn't have to be "1 tic". Different markets have different measurements. For ES, it's less than 8 tics. For NQ, it's about 5-20 points. It varies depending on relative market volatility.
1 Tick highs are defined when 2 highs are very close, and the 1st bar is lower. This happens when longs are aggressive and drive price up. Price makes a newer high and longs rapidly start taking profits. Their selling activity drives price lower. In the orderflow, longs likely closed at the same time new shorts sell. This competition to sell drives price lower. At the high, it says longs saw it wouldn't go higher and they took rapid exit.
1 Tick lows are defined when 2 lows are very close, and the 1st bar is lower. This happens when shorts are aggressive and drive price down. Price makes a newer low and shorts rapidly start taking profits. Their buying activity drives price higher. In the orderflow, shorts likely closed at the same time new longs buy. This competition to buy drives price higher. At the low, it says shorts saw it wouldn't go lower and they took rapid exit.
Tweezer Tops and Bottoms
The highs or lows of the bars are equal. Tweezers most often mean that an aggressive trader is influencing price. They drove price in one direction and then quickly reversed sentiment. Tweezers most often happens in stop hunts. An aggressive trader found where the stops were located and then entered an aggressive order to turn the market.
Tweezer Tops are defined when 2 highs are equal. The first bar sets the high. The second bar matches the high. This happens when there is an active seller entering. It could be simple profit taking from longs or new aggressive shorts. In bull trends, price will move up to find short stop. When the stops are found, the market reverses sharply lower.
Tweezer Bottoms are defined when 2 lows are equal. The first bar sets the low. The second bar matches the low. This happens when there is an active buyer entering. It could be simple profit taking from shorts or new aggressive longs. In bull trends, price will move up to find long stops. When the stops are found, the market reverses sharply higher.
Poor Reversals can be poor, 1 Tick Rejections, or Tweezers. They are all considered poor and upon further investigation we can see they are created from different conditions in the orderflow. They are not called Poor Reversals because they are weak. They are called poor because of the action that happened there. One side got caught in a bad position. Other sharks in the market smelled blood and ripped them apart.
This indicator is a work in process. While the concepts are great for real time trading, this indicator is not designed to be used in real time trading. It will repaint based on the bar close. The purpose of this indicator is to train our brains to see these nuances on candle charts. Some say candle patterns don't matter, but they forget it's the orderflow that makes the pattern. We must make split second decisions and knowing the context behind the orderflow reduces response time. These poor reversals don't have to retest, and the best ones won't come back. I use these concepts to find exits, where my trades might be wrong, confirmation I'm on the right side. It's amazing how these simple nuances can turn the markets. But sure enough, they do. Check them out in all time frames.
It's a fun indicator to play with. Some markets do require tweaks to the “Ticks” setting. Too big and charts will be noisy. Too low and not much will show up. A general rule of thumb is more volatile markets need higher tick values while less volatile need lower Tick values. Higher timeframes are also more reliable than lower time frames. I've included some customizable settings and I plan on adding more in the future. Enjoy!
ابحث في النصوص البرمجية عن "high low"
Larry Williams Strategies IndicatorThis indicator is a trend following indicator. It plots some of the trend following strategies described by Larry Williams in his book 'Long Term Secrets to Short Term Trading'. Below are types of trend following strategies you can trade using this indicator. These are notes taken directly from Larry Williams' book.
Short Term Low Strategy
Short Term Low - Any daily low with higher lows on each side of it.
Intermediate Term Low – Any short term low with higher short term lows on each side of it.
Long Term Low – Any intermediate term low with higher intermediate term lows on each side of it.
Conceptual pattern for best buying opportunity is when forming an intermediate term low higher than the last intermediate term low.
This setup can be used on all time frames. However since Larry Williams usually trades the daily chart, the daily chart is probably the best timeframe to trade using this strategy.
Entry point – High of the day that has a higher high on the right side of it.
(My interpretation: price crossing above the high of the previous day is the buy signal)
Target – Markets have a strong tendency to rally above the last intermediate term high by the same amount it moved from the last intermediate term high to the lowest point prior to advancing to new highs.
Trailing Stop – Set stop to most recent short term low, move up as new short term lows are formed. Can also use formation of next intermediate term high as an exit point.
A 'run' to the upside is over when price fails to move higher the next day and falls below the prior day's low.
Short Term High Strategy
Short Term High - Any daily high with lower highs on each side of it.
Intermediate Term High – Any short term high with lower short term highs on each side of it.
Long Term High – Any intermediate term high with lower intermediate term highs on each side of it.
Conceptual pattern for best selling opportunity is when forming an intermediate term high lower than the last intermediate term high.
This setup can be used on all time frames. However since Larry Williams usually trades the daily chart, the daily chart is probably the best timeframe to trade using this strategy.
Entry point – Low of the day that has a lower low on the right side of it.
(My interpretation: price crossing below the low of the previous day is the sell short signal)
Target – Markets have a strong tendency to fall below the last intermediate term low by the same amount it moved from the last intermediate term low to the highest point prior to declining to new lows.
Trailing Stop – Set stop to most recent short term high, move down as new short term highs are formed. Can also use formation of next intermediate term low as an exit point.
A 'run' to the downside is over when price fails to move lower the next day and rises above the prior day's high.
Trend Reversals
A trend change from down to up occurs when a short term high is exceeded on the upside, a trend change from up to down is identified by price going below the most recent low.
Can take these signals to make trades, but it is best to filter them with a confirmation or edge such as Trading Day of the Week, Trading Day of the Month, trendlines, etc. to cut down on false signals.
Three Bar High/Low System
Calculate a three bar moving average of the highs and a three bar moving average of the lows.
Strategy is to buy at the at the price of the three bar moving average of the lows - if the trend is positive according to the swing point trend identification technique - and take profits at the three bar moving average of the highs.
Selling is just the opposite. Sell short at the three bar moving average of the highs and take profits at the three bar moving average of the lows, using the trend identification technique above for confirmation.
This strategy can work on any timeframe, but was described as a daytrading system by Larry Williams.
[astropark] price levelsDear Followers,
today another awesome Analysis Tool, that you can use in your trading journey: Price Levels !
Are you a range trading player? a scalper? or maybe a day-trader or a swing-trader? This is for you then. Indeed it's for everyone.
This indicator works on every timeframe, market and pair.
It keeps track of recent important levels generated by price action:
Monday high, low and middle range level
Tuesday high and low
Wednesday high and low
Thursday high and low
Friday high and low
Weekly open, high and low
Monthly open, high and low
Yearly open, high and low
Previous weekly open, high and low
Previous monthly open, high and low
Previous yearly open, high and low
You can:
choose price levels to hide and show
change each level color / thickness / display style (solid or dotted)
choose to show or hide price labels and change their size
Why such indicator should be helpful? How can I use it to do profit?
In multiple ways! Let's talk about Monday Range :
when Monday range is formed, price acceptance below Monday low is a bearish signal, so will more likely want to short / sell
equally price acceptance above Monday high is a bullish signal, so will more likely want to long / buy
it can happen that Monday high is simply retested, with price not being able to stay above it: this is called a retest (in case of a simple wick) or a deviation (in case of price staying above the level just for some candles) and what usually happens is price falling back to Monday middle range level and even back to Monday low.
the opposite can happen of course: you will become bullish if Monday low is tested or a deviation appears below Monday low: price tends to bounce on such occasions back to Monday middle range or even Monday high
Tuesday is usually a marker day within a trading week:
if Monday was pretty bullish, Tuesday high may mark the weekly top, following some red days
if Monday was pretty bearish, Tuesday low may mark the weekly bottom, following some green days
Thursday is the day when big players start to take profits, as the trading week is going to end the next day, so in an all-green week Thursday may be a red one, while in an all-red week it may be a bullish day
Thursday is the day when big players start to take profits, as the trading week is going to end the next day:
in an all-green week, Thursday may be a red one and it's low tends to mark the weekly low
while in an all-red week, it tends to be a bullish day, so here you will refill your shorts for the next blooding day
Let's talk now about the Weekly, Monthly and Yearly price levels : here it is the interesting part for Swing Traders
Weekly open is usually a defining level: on retest, if price keeps staying below then more downside is expected, if price keeps staying above then more upside is expected (similarly to what we said about Monday high and low)
Monthly and Yearly open price levels are usually a "no-brainer" buy level in a bullish trend or equally a sell level in a bearish trend: in this scenarios, a deviation structure is even more powerful in term of price reaction and efficiency
We trade Weekly, Monthly and Yearly high and low price levels as explained for the Monday high and low, but with a swing traders perspective (so a medium-long term trade)
Previous Weekly/Monthly/Yearly price levels are usually very useful as targets in your trades
Here below some screenshots that resumes what said above.
Weekly Open as support (bullish) and Monday High deviation (bearish)
Tuesday High, Weekly Open failing as support: bearish
Monday Low deviation (bullish)
Price Acceptance above Monday High and Weekly Open (bullish)
Yearly Open retests as buy opportunities
Deviation below Monthly Open (bullish), Price Acceptance below Monthly and Yearly Open (bearish)
This is a premium indicator , so send me a private message in order to get access to this script.
Kawabunga Swing Failure Points Candles (SFP) by RRBKawabunga Swing Failure Points Candles (SFP) by RagingRocketBull 2019
Version 1.0
This indicator shows Swing Failure Points (SFP) and Swing Confirmation Points (SCP) as candles on a chart.
SFP/SCP candles are used by traders as signals for trend confirmation/possible reversal.
The signal is stronger on a higher volume/larger candle size.
A Swing Failure Point (SFP) candle is used to spot a reversal:
- up trend SFP is a failure to close above prev high after making a new higher high => implies reversal down
- down trend SFP is a failure to close below prev low after making a new lower low => implies reversal up
A Swing Confirmation Point (SCP) candle is just the opposite and is used to confirm the current trend:
- up trend SCP is a successful close above prev high after making a new higher high => confirms the trend and implies continuation up
- down trend SCP is a successful close below prev low after making a new lower low => confirms the trend and implies continuation down
Features:
- uses fractal pivots with optional filter
- show/hide SFP/SCP candles, pivots, zigzag, last min/max pivot bands
- dim lag zones/hide false signals introduced by lagging fractals or
- use unconfirmed pivots to eliminate fractal lag/false signals. 2 modes: fractals 1,1 and highest/lowest
- filter only SFP/SCP candles confirmed with volume/candle size
- SFP/SCP candles color highlighting, dim non-important bars
Usage:
- adjust fractal settings to get pivots that best match your data (lower values => more frequent pivots. 0,0 - each candle is a pivot)
- use one of the unconfirmed pivot modes to eliminate false signals or just ignore all signals in the gray lag zones
- optionally filter only SFP/SCP candles with large volume/candle size (volume % change relative to prev bar, abs candle body size value)
- up/down trend SCP (lime/fuchsia) => continuation up/down; up/down trend SFP (orange/aqua) => possible reversal down/up. lime/aqua => up; fuchsia/orange => down.
- when in doubt use show/hide pivots/unconfirmed pivots, min/max pivot bands to see which prev pivot and min/max value were used in comparisons to generate a signal on the following candle.
- disable offset to check on which bar the signal was generated
Notes:
Fractal Pivots:
- SFP/SCP candles depend on fractal pivots, you will get different signals with different pivot settings. Usually 4,4 or 2,2 settings are used to produce fractal pivots, but you can try custom values that fit your data best.
- fractal pivots are a mixed series of highs and lows in no particular order. Pivots must be filtered to produce a proper zigzag where ideally a high is followed by a low and another high in orderly fashion.
Fractal Lag/False Signals:
- only past fractal pivots can be processed on the current bar introducing a lag, therefore, pivots and min/max pivot bands are shown with offset=-rightBars to match their target bars. For unconfirmed pivots an offset=-1 is used with a lag of just 1 bar.
- new pivot is not a confirmed fractal and "does not exist yet" while the distance between it and the current bar is < rightBars => prev old fractal pivot in the same dir is used for comparisons => gives a false signal for that dir
- to show false signals enable lag zones. SFP/SCP candles in lag zones are false. New pivots will be eventually confirmed, but meanwhile you get a false signal because prev pivot in the same dir was used instead.
- to solve this problem you can either temporary hide false signals or completely eliminate them by using unconfirmed pivots of a smaller degree/lag.
- hiding false signals only works for history and should be used only temporary (left disabled). In realtime/replay mode it disables all signals altogether due to TradingView's bug (barcolor doesn't support negative offsets)
Unconfirmed Pivots:
- you have 2 methods to check for unconfirmed pivots: highest/lowest(rightBars) or fractals(1,1) with a min possible step. The first is essentially fractals(0,0) where each candle is a pivot. Both produce more frequent pivots (weaker signals).
- an unconfirmed pivot is used in comparisons to generate a valid signal only when it is a higher high (> max high) or a lower low (< min low) in the dir of a trend. Confirmed pivots of a higher degree are not affected. Zigzag is not affected.
- you can also manually disable the offset to check on which bar the pivot was confirmed. If the pivot just before an SCP/SFP suddenly jumps ahead of it - prev pivot was used, generating a false signal.
- last max high/min low bands can be used to check which value was used in candle comparison to generate a signal: min(pivot min_low, upivot min_low) and max(pivot max_high, upivot max_high) are used
- in the unconfirmed pivots mode the max high/min low pivot bands partially break because you can't have a variable offset to match the random pos of an unconfirmed pivot (anywhere in 0..rightBars from the current bar) to its target bar.
- in the unconfirmed pivots mode h (green) and l (red) pivots become H and L, and h (lime) and l (fuchsia) are used to show unconfirmed pivots of a smaller degree. Some of them will be confirmed later as H and L pivots of a higher degree.
Pivot Filter:
- pivot filter is used to produce a better looking zigzag. Essentially it keeps only higher highs/lower lows in the trend direction until it changes, skipping:
- after a new high: all subsequent lower highs until a new low
- after a new low: all subsequent higher lows until a new high
- you can't filter out all prev highs/lows to keep just the last min/max pivots of the current swing because they were already confirmed as pivots and you can't delete/change history
- alternatively you could just pick the first high following a low and the first low following a high in a sequence and ignore the rest of the pivots in the same dir, producing a crude looking zigzag where obvious max high/min lows are ignored.
- pivot filter affects SCP/SFP signals because it skips some pivots
- pivot filter is not applied to/not affected by the unconfirmed pivots
- zigzag is affected by pivot filter, but not by the unconfirmed pivots. You can't have both high/low on the same bar in a zigzag. High has priority over Low.
- keep same bar pivots option lets you choose which pivots to keep when there are both high/low pivots on the same bar (both kept by default)
SCP/SFP Filters:
- you can confirm/filter only SCP/SFP signals with volume % change/candle size larger than delta. Higher volume/larger candle means stronger signal.
- technically SCP/SFP is always the first matching candle, but it can be invalidated by the following signal in the opposite dir which in turn can be negated by the next signal.
- show first matching SCP/SFP = true - shows only the first signal candle (and any invalidations that follow) and hides further duplicate signals in the same dir, does not highlight the trend.
- show first matching SCP/SFP = false - produces a sequence of candles with duplicate signals, highlights the whole trend until its dir changes (new pivot).
Good Luck! Feel free to learn from/reuse the code to build your own indicators!
ATR Future Movement Range Projection
The "ATR Future Movement Range Projection" is a custom TradingView Pine Script indicator designed to forecast potential price ranges for a stock (or any asset) over short-term (1-month) and medium-term (3-month) horizons. It leverages the Average True Range (ATR) as a measure of volatility to estimate how far the price might move, while incorporating recent momentum bias based on the proportion of bullish (green) vs. bearish (red) candles. This creates asymmetric projections: in bullish periods, the upside range is larger than the downside, and vice versa.
The indicator is overlaid on the chart, plotting horizontal lines for the projected high and low prices for both timeframes. Additionally, it displays a small table in the top-right corner summarizing the projected prices and the percentage change required from the current close to reach them. This makes it useful for traders assessing potential targets, risk-reward ratios, or option strategies, as it combines volatility forecasting with directional sentiment.
Key features:
- **Volatility Basis**: Uses weekly ATR to derive a stable daily volatility estimate, avoiding noise from shorter timeframes.
- **Momentum Adjustment**: Analyzes recent candle colors to tilt projections toward the prevailing trend (e.g., more upside if more green candles).
- **Time Horizons**: Fixed at 1 month (21 trading days) and 3 months (63 trading days), assuming ~21 trading days per month (excluding weekends/holidays).
- **User Adjustable**: The ATR length/lookback (default 50) can be tweaked via inputs.
- **Visuals**: Green/lime lines for highs, red/orange for lows; a semi-transparent table for quick reference.
- **Limitations**: This is a probabilistic projection based on historical volatility and momentum—it doesn't predict direction with certainty and assumes volatility persists. It ignores external factors like news, earnings, or market regimes. Best used on daily charts for stocks/ETFs.
The indicator doesn't generate buy/sell signals but helps visualize "expected" ranges, similar to how implied volatility informs option pricing.
### How It Works Step-by-Step
The script executes on each bar update (typically daily timeframe) and follows this logic:
1. **Input Configuration**:
- ATR Length (Lookback): Default 50 bars. This controls both the ATR calculation period and the candle count window. You can adjust it in the indicator settings.
2. **Calculate Weekly ATR**:
- Fetches the ATR from the weekly timeframe using `request.security` with a length of 50 weeks.
- ATR measures average price range (high-low, adjusted for gaps), representing volatility.
3. **Derive Daily ATR**:
- Divides the weekly ATR by 5 (approximating 5 trading days per week) to get an equivalent daily volatility estimate.
- Example: If weekly ATR is $5, daily ATR ≈ $1.
4. **Define Projection Periods**:
- 1 Month: 21 trading days.
- 3 Months: 63 trading days (21 × 3).
- These are hardcoded but based on standard trading calendar assumptions.
5. **Compute Base Projections**:
- Base projection = Daily ATR × Days in period.
- This gives the total expected movement (range) without direction: e.g., for 3 months, $1 daily ATR × 63 = $63 total range.
6. **Analyze Candle Momentum (Win Rate)**:
- Counts green candles (close > open) and red candles (close < open) over the last 50 bars (ignores dojis where close == open).
- Total colored candles = green + red.
- Win rate = green / total colored (as a fraction, e.g., 0.7 for 70%). Defaults to 0.5 if no colored candles.
- This acts as a simple momentum proxy: higher win rate implies bullish bias.
7. **Adjust Projections Asymmetrically**:
- Upside projection = Base projection × Win rate.
- Downside projection = Base projection × (1 - Win rate).
- This skews the range: e.g., 70% win rate means 70% of the total range allocated to upside, 30% to downside.
8. **Calculate Projected Prices**:
- High = Current close + Upside projection.
- Low = Current close - Downside projection.
- Done separately for 1M and 3M.
9. **Plot Lines**:
- 3M High: Solid green line.
- 3M Low: Solid red line.
- 1M High: Dashed lime line.
- 1M Low: Dashed orange line.
- Lines extend horizontally from the current bar onward.
10. **Display Table**:
- A 3-column table (Projection, Price, % Change) in the top-right.
- Rows for 1M High/Low and 3M High/Low, color-coded.
- % Change = ((Projected price - Close) / Close) × 100.
- Updates dynamically with new data.
The entire process repeats on each new bar, so projections evolve as volatility and momentum change.
### Examples
Here are two hypothetical examples using the indicator on a daily chart. Assume it's applied to a stock like AAPL, but with made-up data for illustration. (In TradingView, you'd add the script to see real outputs.)
#### Example 1: Bullish Scenario (High Win Rate)
- Current Close: $150.
- Weekly ATR (50 periods): $10 → Daily ATR: $10 / 5 = $2.
- Last 50 Candles: 35 green, 15 red → Total colored: 50 → Win Rate: 35/50 = 0.7 (70%).
- Base Projections:
- 1M: $2 × 21 = $42.
- 3M: $2 × 63 = $126.
- Adjusted Projections:
- 1M Upside: $42 × 0.7 = $29.4 → High: $150 + $29.4 = $179.4 (+19.6%).
- 1M Downside: $42 × 0.3 = $12.6 → Low: $150 - $12.6 = $137.4 (-8.4%).
- 3M Upside: $126 × 0.7 = $88.2 → High: $150 + $88.2 = $238.2 (+58.8%).
- 3M Downside: $126 × 0.3 = $37.8 → Low: $150 - $37.8 = $112.2 (-25.2%).
- On the Chart: Green/lime lines skewed higher; table shows bullish % changes (e.g., +58.8% for 3M high).
- Interpretation: Suggests stronger potential upside due to recent bullish momentum; useful for call options or long positions.
#### Example 2: Bearish Scenario (Low Win Rate)
- Current Close: $50.
- Weekly ATR (50 periods): $3 → Daily ATR: $3 / 5 = $0.6.
- Last 50 Candles: 20 green, 30 red → Total colored: 50 → Win Rate: 20/50 = 0.4 (40%).
- Base Projections:
- 1M: $0.6 × 21 = $12.6.
- 3M: $0.6 × 63 = $37.8.
- Adjusted Projections:
- 1M Upside: $12.6 × 0.4 = $5.04 → High: $50 + $5.04 = $55.04 (+10.1%).
- 1M Downside: $12.6 × 0.6 = $7.56 → Low: $50 - $7.56 = $42.44 (-15.1%).
- 3M Upside: $37.8 × 0.4 = $15.12 → High: $50 + $15.12 = $65.12 (+30.2%).
- 3M Downside: $37.8 × 0.6 = $22.68 → Low: $50 - $22.68 = $27.32 (-45.4%).
- On the Chart: Red/orange lines skewed lower; table highlights larger downside % (e.g., -45.4% for 3M low).
- Interpretation: Indicates bearish risk; might prompt protective puts or short strategies.
#### Example 3: Neutral Scenario (Balanced Win Rate)
- Current Close: $100.
- Weekly ATR: $5 → Daily ATR: $1.
- Last 50 Candles: 25 green, 25 red → Win Rate: 0.5 (50%).
- Projections become symmetric:
- 1M: Base $21 → Upside/Downside $10.5 each → High $110.5 (+10.5%), Low $89.5 (-10.5%).
- 3M: Base $63 → Upside/Downside $31.5 each → High $131.5 (+31.5%), Low $68.5 (-31.5%).
- Interpretation: Pure volatility-based range, no directional bias—ideal for straddle options or range trading.
In real use, test on historical data: e.g., if past projections captured actual moves ~68% of the time (1 standard deviation for ATR), it validates the volatility assumption. Adjust the lookback for different assets (shorter for volatile cryptos, longer for stable blue-chips).
Chanlun FBFD pen czsc Channel Chan Theory
🏆 Chan Zhong Shuo Chan FBFD Pure Segment Version Indicator - Flagship Edition
Background
A decade of craftsmanship, a significant upgrade
This Chanlun indicator has undergone nearly 10 years of meticulous refinement and continuous optimization. Since its initial design in 2015, it has been validated through actual trading. Now newly upgraded and launched on TradingView, it offers more comprehensive functions and superior performance.
It truly implements all core theories from the original Chanlun text, including a complete system of K-line inclusion, fractal recognition, pen and segment analysis, center theory, pure pen and segment division (classification of the first and second cases in the original text), divergence and reversal, providing professional and comprehensive technical analysis tools for Chanlun enthusiasts in the industry.
Chinese Translation for User Indicator Interface:
● 顶背离: Top Divergence
● 底背离: Bottom Divergence
● 顶背驰: Top Divergence Including Trend Structure
● 底背驰: Bottom Divergence Including Trend Structure
📦 Parameter Settings
● Number of K-lines to calculate: Up to 5000, which is the maximum data available even for free TradingView users
● Pen detail parameters: Old/new pens, sub-high/low pens, high/low pens, strict pens can be adjusted and selected according to the target numbers
● Segment detail parameters: Adjustable
● MA and Bollinger Bands display parameters: Check to display, uncheck to hide as needed
● Center price and pen/segment price display: Check to display, uncheck to hide as needed
● MACD parameters: Can be adjusted as needed, including fast, slow, and signal line period settings
● MA parameters: Default parameters can be manually adjusted
● Pen divergence, segment divergence, pen-segment reversal display: Check to display, uncheck to hide as needed
● Pen-segment divergence and reversal alerts: Disabled by default, can be enabled by checking. Then in TradingView's alert interface, select the indicator in conditions, set "Any alert() function call", set notification type, and create the alert to receive notifications
🔥 Integration of other commonly used indicators and reasons:
✅ Moving Averages: Since Chanlun uses MA overlay analysis, this makes it more convenient for users to analyze trends from different perspectives, so it's essential to add
✅ Bollinger Bands: Bollinger Bands channel, combined with Chanlun, can also provide more perspectives for trend analysis and improve accuracy, so it's also added
✅ MACD: This is an indispensable indicator for analyzing trend strength in Chanlun theory, so it must be integrated for convenient analysis
✅ Chanlun ZSLX pen czsc Channel Chan Theory and Chanlun FBFD pen czsc Channel Chan Theory scripts share some underlying source code and must be integrated because:
The underlying K-line inclusion, MACD divergence and reversal, K-line objects, and pen parts in the original Chanlun text are the same, but the top-level segment and trend recursion division principles, display effects, and functions are significantly different. Additionally, TradingView community has source code quantity restrictions, making it impossible to fully integrate the two versions into one. Therefore, the kxian object returned by the Start_kxian function, the bi object returned by the Start_bi function, the source code for drawing K-line centers in showKxianzsfunc, and the MACD divergence and reversal judgment code in this script will have integrated parts with the same source code.
🎯 Technical Principles
🔥 1. Comprehensive coverage of original Chanlun functions
✅ Multi-level center combination - pen centers, K-line centers, segment centers
● Chanlun K-line centers: The lowest level Chanlun centers
● Chanlun pen centers: Pen center division intervals from the original text, taking the lowest point of the overlapping part as the high point and the highest point of the overlapping part as the low point
● Chanlun segment centers: Segment center division intervals from the original text, taking the lowest point of the segment overlapping part as the high point and the highest point of the segment overlapping part as the low point
✅ Divergence and reversal warning - divergence and reversal algorithm
● Principle: Adopts MACD strength statistics from the original Chanlun text, distinguishes between divergence/reversal in pen structures and segment structures, marks specific values on the graph, differentiates MACD strength between pens and segments. This will be further upgraded with more complex statistics in the future, but currently serves as a reference for the current cycle. Specific analysis still requires multi-cycle strength analysis.
✅ Original two-level pure segmentation - exclusive algorithm
● Principle: Strictly follows segment division from the original text, distinguishing between the first and second cases, as well as special fractal inclusion processing for the second case, and segment rules. Some segments may not end at the highest or lowest points.
✅ Real-time K-line inclusion processing - intelligent recognition of inclusion relationships
● In rising K-lines, take the higher high and higher low values (take the higher among highs)
● In falling K-lines, take the lower high and lower low values (take the lower among lows)
✅ Accurate fractal marking - automatic recognition of top and bottom fractals
● By setting the old/new pen parameter to 2, the high and low points of each top and bottom fractal will be drawn
● Top fractal: Among three K-lines, the middle K-line has a higher high and a higher low than both sides
● Bottom fractal: Among three K-lines, the middle K-line has a lower low and a lower high than both sides
✅ Multi-dimensional pen and segment analysis - complete system of pens and segments
● Old pens: Traditional strict pen definition in Chanlun, consistent with the original text
● New pens: Traditional new pen definition in Chanlun, meeting the relaxed pen conditions in the original text
● Fractal pens: Pens formed by top and bottom fractals, with sensitive price response (many peers mark fractal pens of this cycle as sub-level)
● Segments: This version adopts a recursive approach, treating some pens as segments in certain places. Most places are the same as pure segmentation, but with different line-drawing principles
✅ Multi-level center combination - K-line centers, pen centers, segment centers
● K-line centers: The smallest level Chanlun centers
● Pen centers: Adopt pen center division intervals from the original text, taking the lowest point of the overlapping part as the high point and the highest point of the overlapping part as the low point
● Segment centers: Adopt segment center division intervals from the original text, taking the lowest point of the segment overlapping part as the high point and the highest point of the segment overlapping part as the low point
⚙️ Indicator Features
⚙️ 1. Diversified pen and segment algorithm engine
🎨 Three pen algorithms: "Chanlun old pen", "Chanlun new pen", "top-bottom fractal pen", with more custom pen types to be added later
🔧 Common parameter adjustments: Equal high/low points, highest/lowest point pens, sub-high/low pens, fractal interval judgment, and other refined controls
📊 Dual segment division: Original pure segmentation + large-level segmentation
🎯 Multiple personalized parameter adjustments: Many other different parameters to meet different Chanlun enthusiasts' understanding needs and trading styles
🌟 2. Multi-level intelligent combination system
📈 Synchronous calculation and display: K-line centers, pens, pen centers, segments, large-level segments, segment center linkage analysis
🏗️ Exclusive pure segmentation algorithm: Accurately identifies first and second case segment divisions
🎪 Multi-level center system: Complete coverage of three center levels
📊 Panoramic market analysis: Provides comprehensive market dynamic insights
🎨 3. Professional visual customization
🌈 Custom color schemes - perfectly matching personal chart styles
💰 Price label display - marking of key price levels for pens, segments, and centers
📐 Professional auxiliary tools - practical functions such as moving averages and Bollinger Bands
🎁 MACD - supporting indicator in the sub-chart
⏰ 4. Perfect K-line replay support
🔄 Historical data review - perfectly supports TradingView replay function
📚 Market research tool - enhances historical trend analysis capabilities
🧠 Decision-making ability enhancement - deepens market insight and judgment level
📦 Product Versions
🥇 Version 1: Professional Segmentation Edition
Suitable for: Traditional Chanlun enthusiasts pursuing classic segmentation algorithms
Core functions:
🔸 Multiple pen algorithms: Fractal pens, new pens, old pens, sub-high/low pens, highest/lowest pens
🔸 Pen and segment detail adjustments: Massive parameters supporting various pen division schemes
🔸 Complete center system: K-line centers, pen centers, segment centers
🔸 Intelligent warning system: Divergence and reversal prompts and alarm functions
🔸 Recursive large levels: Current level and large-level segmentation analysis
**📊
💡 Peer comparison: The "professional version" functions of other platforms are just basic configurations here
🎊 Experience now and start your professional Chanlun analysis journey!
Pre-sales note: The Chan Zhong Shuo Chan theory is relatively complex. The software tries its best to implement the functions described in the original text, but there may still be some flaws that cannot be handled perfectly. These will be gradually improved in the future. Customers who are concerned about this can try it for a few days first, purchase it if they find it suitable, or treat it as a test if not. We welcome everyone to feedback problems and bugs, and the shopkeeper will update, modify, and optimize in the future when available.
1. K-line inclusion from the original text
2. Pen and segment multi-level divergence and reversal prompts
3. More than three types of pens that can be adjusted
4. Including pen and segment area strength statistics + center high and low price display
5. Three-level center (K-line center, pen center, segment center) detailed analysis
6. Multiple moving averages display
7. Commonly used superimposed Bollinger Bands
8. Original text segment division rules with 2-level segments
9. Some alarm functions designed, including divergence and reversal, with more to be added in the future
10. A total of dozens of optional parameter settings
11. Free trial
🏆 缠中说禅FBFD 纯分段版指标 - 旗舰版
背景
十年匠心,重磅升级
这套缠中说禅指标历经近10年的精心打磨与持续优化,从2015年初版设计至今,已经过实战验证。现全新升级登陆TradingView,功能更加完善,性能更加卓越。
真正实现了缠论原文中的所有核心理论,包括K线包含、分型识别、笔段分析、中枢理论、 纯分笔分段(原文第一种和第二种情况分类)、背离背驰等完整体系,为缠论爱好者提供业界专业、全面的技术分析工具。
📦参数设置
- 计算K线数量:最多计算5000根,免费tradingview用户也只能这么多数据
- 笔细节参数:新旧笔、次高低点笔、最高低点笔、严格笔 可以调整可按标的数字选
● - 线段细节参数: 调整
- 显示均线和布林线参数:根据需要设置打钩就是显示,取消打钩就是隐藏
- 显示中枢价格和笔段价格:根据需要设置打钩就是显示,取消打钩就是隐藏
- macd参数:可以根据自己需要调整参数 快 慢 信号线周期设置
- 均线参数:默认参数可以自己手动调整
- 显示笔背离、段背离、笔段背驰:根据需要设置打钩就是显示,取消打钩就是隐藏
- 笔段背离背驰报警:默认关闭可以设置打钩开启,然后在tradingview的警报界面,条件里选择指标,设置:任何alert()函数调用,再设置通知类型,然后创建报警就可以收到报警
🔥整合其他常用指标和原因:
✅均线:因为缠论里是有使用均线叠加分析,这种更方便用户从不同视角分析走势,所以必须增加
✅布林线:布林线通道,结合缠论,也可以更多的视角分析走势,提高准确度,所以也增加了
✅macd:这个是缠论分析理论里必不可少的分析走势力度的指标,所以也必须整合进来方便分析
✅Chanlun ZSLX pen czsc Channel Chan Theory这个脚本和Chanlun FBFD pen czsc Channel Chan Theory这个脚本有些底层的源码是一样的必须整合原因:
因为缠论原文底层的K线包含、macd背离背驰、K线对象和笔部分都是一样的,但是顶层的线段和走势递归两种划分原理和显示效果和功能是有很大区别,并且tradingview社区的源码量有限制,导致也无法两个版本划线完全整合成一个,所以,这个脚本里的Start_kxian函数返回的kxian对象、 Start_bi函数返回的bi 对象 、showKxianzsfunc画K线中枢部分的源码、macd背离背驰判断部分代码,会有一样的整合部分源码
🎯 技术原理
🔥 1. 全方位缠论原文功能覆盖
● ✅ 多级中枢联立 - 笔中枢、K线中枢、线段中枢
○ - 缠论K线中枢:最低级别的缠论中枢
- 缠论笔中枢:原文的笔中枢划分区间,高点取重叠部分的最低点,低点取重叠部分最高点
- 缠论线段中枢:原文的线段中枢划分区间,高点取线段重叠部分的最低点,低点取线段重叠部分最高点
● ✅ 背离背驰预警 - 背离背驰算法
○ - 原理:采用缠论原文的macd力度统计,区分笔结构的背离背驰和段结构的背离背驰,并且在图形上标上具体数值,区分笔和段的macd力度,后期这个还要继续升级更复杂的统计,仅做本周期的参考,具体也是要多周期力度分析
● ✅ 原文两级别纯分段 - 独家算法
- 原理:严格按原文的线段划分,区分第一种情况和第二种情况,以及特殊的第二种情况分型包含处理,线段规则,有的地方可能不是结束在最高最低点
● ✅ 实时K线包含处理 - 智能识别包含关系
○ - 上涨K线中取高点高值、低点高值,高高取高
- 下跌K线中取高点低值、低点低值,低低取低
● ✅ 精准分型标记 - 顶底分型自动识别
○ - 通过新旧笔参数设置2,会画出每个顶底分型高低点
○ - 顶分型:三根k线中,中间K线高点高于两侧K线,低点也高于两侧
- 底分型:三根k线中,中间K线低点低于两侧K线,高点也低于两侧
● ✅ 多维笔段分析 - 笔、线段完整体系
○ - 老笔:传统缠论严格笔定义,符合原文
- 新笔:传统缠论新笔定义,符合原文宽松笔条件
- 分型笔:顶底分型就成笔,价格反应比较敏锐(同行很多人把本周期分型笔标成次级别)
○ - 线段:这个版本采用递归思路,有的地方一笔处理成段,大部分地方跟纯分段一样,但是划线原理不同
● ✅ 多级中枢联立 - K线中枢、笔中枢、线段中枢
○ - K线中枢:最小级别的缠论中枢
- 笔中枢:采用原文的笔中枢划分区间,高点取重叠部分的最低点,低点取重叠部分最高点
- 线段中枢:采用原文的线段中枢划分区间,高点取线段重叠部分的最低点,低点取线段重叠部分最高点
⚙️ 指标特点
⚙️ 1. 多样化笔段算法引擎
● 🎨 三种笔算法: "缠论旧笔"、"缠论新笔"、"顶底分型笔",以及后面会增加更多自定义类型笔选择
● 🔧 常见参数调节: 等高低点、最高低点笔、次高低笔、分型区间判断等精细化控制
● 📊 双重段划分: 原文纯分段 +大级别分段
● 🎯 超多个性化参数调整: 还有很多其他不同参数,满足不同缠友的理解需求与交易风格
🌟 2. 多级别智能联立系统
● 📈 同步计算显示: K线中枢、笔、笔中枢、线段、大级别线段、线段中枢联动分析
● 🏗️ 独家纯分段算法: 精确识别第一种、第二种情况线段划分
● 🎪 多级中枢体系: 三重中枢级别完整覆盖
● 📊 全景市场分析: 提供全面的市场动态洞察
🎨 3. 专业视觉定制
● 🌈 自定义配色方案 - 完美匹配个人图表风格
● 💰 价格标识显示 - 笔、段、中枢关键价位标注
● 📐 专业辅助工具 - 均线、布林线等实用功能
● 🎁 MACD - 配套附图指标
⏰ 4. 完美K线回放支持
● 🔄 历史数据回顾 - 完美支持TradingView回放功能
● 📚 市场研究利器 - 提升历史走势分析能力
● 🧠 决策能力增强 - 深化市场洞察与判断水平
📦 产品版本
🥇 版本一:专业分段版
适合:传统缠论爱好者,追求经典分段算法
核心功能:
● 🔸 多种笔算法: 分型笔、新笔、旧笔、次高低点笔、最高低点
● 🔸 笔段细节调整: 海量参数支持各种笔划分方案
● 🔸 完整中枢体系: K线中枢、笔中枢、段中枢
● 🔸 智能预警系统: 背离背驰提示及报警功能
● 🔸 递归大级别: 本级别、大级别分段分析
**📊
💡 同行对比: 其他平台的"专业版"功能,在我们这里只是基础配置
🎊 立即体验,开启专业缠论分析之旅!
售前说明:缠中说禅理论,相对比较复杂,软件尽量实现原文的功能,但是也难免有些瑕疵地方,无法处理到位,这边后期会陆续完善,介意的客户可以先试用几天,觉得合适再买,不合适就当测试下,欢迎大家反馈问题和bug,掌柜有空会后期更新修改和优化
1.原文的K线包含
2.笔段多级别背离背驰提示
3.超过三种笔可以调整
4.包含笔段面积力度统计+中枢高低点价格显示
5.三级别中枢(K线中枢 笔中枢 段中枢)精细分析
6.多个均线显示
7.常用叠加布林
8.原文线段划分规则,并且做2级别段
9.设计了一些报警功能,背离背驰等,后期还会陆续完善
10.总共几十个可选参数设置
11.免费试用
Chanlun ZSLX pen czsc Channel Chan Theory🏆 Chanzhongshuochan (CZSC) ZSLX Recursive Version Indicator - Flagship Edition
Background
A Decade of Craftsmanship, a Major Upgrade
This Chanzhongshuochan (Chan Theory) indicator has undergone nearly 10 years of meticulous refinement and continuous optimization. Since its initial design in 2015, it has been validated through real trading practice. Now, it makes its debut on TradingView with a brand-new upgrade, featuring more comprehensive functions and superior performance.
It truly implements all core theories from the original Chan Theory texts, including a complete system covering candlestick containment processing, fractal identification, pen-segment analysis, pivot zone theory, trading signal (buy/sell point) positioning, and divergence analysis. It serves as a professional and all-encompassing technical analysis tool for Chan Theory enthusiasts in the industry.
🎯 Chinese Translation for User Indicator Interface:
● 顶背离: Top Divergence
● 底背离: Bottom Divergence
● 顶背驰: Top Divergence Including Trend Structure
● 底背驰: Bottom Divergence Including Trend Structure
● 趋势: Trend
● 盘整: Consolidation
● 扩张: Expansion
● 大级别盘整: Higher-Timeframe Consolidation
● 一买: First Buy Signal
● 二买: Second Buy Signal
● 类二买:Quasi-Second Buy Signal
● 三买: Third Buy Signal
● 一卖: First Sell Signal
● 二卖: Second Sell Signal
● 类二卖:Quasi-Second Sell Signal
● 三卖: Third Sell Signal
📦 Parameter Settings
● Number of Candlesticks for Calculation: Up to 5,000 candlesticks. Even free TradingView users are limited to this data volume.
● Pen Detail Parameters: Adjustable options include "Old Pen", "New Pen", "Pen Based on Secondary High/Low", "Pen Based on Absolute High/Low", and "Strict Pen". Select via numerical options corresponding to each type.
● MA (Moving Average) and Bollinger Bands Display Parameters: Check the box to enable display; uncheck to hide (configure as needed).
● Pivot Zone Price & Pen-Segment Price Display: Check the box to enable display; uncheck to hide (configure as needed).
● MACD Parameters: Adjustable according to personal needs (set the periods for fast EMA, slow EMA, and signal line).
● MA Parameters: Default values can be manually adjusted.
● Pen Divergence, Segment Divergence, & Pen-Segment Divergence Display: Check the box to enable display; uncheck to hide (configure as needed).
● Pen-Segment Divergence Alert: Disabled by default. Enable by checking the box. To set up alerts:
a. Go to TradingView’s "Alerts" interface.
b. Under "Condition", select this indicator.
c. Choose "Any alert() function call".
d. Set the notification type, then create the alert to receive notifications.
🔥 Integration of Other Common Indicators & Rationale
● ✅ Moving Average (MA): Chan Theory inherently uses MA overlay for analysis. Adding MA here allows users to analyze price trends from multiple perspectives, making it an essential inclusion.
● ✅ Bollinger Bands: Combining Bollinger Bands (a price channel tool) with Chan Theory provides additional perspectives for trend analysis and improves accuracy, hence its integration.
● ✅ MACD: A 不可或缺 (indispensable) indicator for analyzing trend strength in Chan Theory. It is integrated to facilitate seamless analysis.
● ✅ Rationale for Integrating Shared Core Code between Two Scripts:
The scripts Chanlun ZSLX pen czsc Channel Chan Theory and Chanlun FBFD pen czsc Channel Chan Theory share some underlying code. Here’s why integration is necessary:
○ The core logics of the original Chan Theory — including candlestick containment processing, MACD divergence analysis, candlestick objects, and pen-related calculations — are identical in both scripts.
○ However, significant differences exist in the top-level logics for segment division, trend recursion, display effects, and functions.
○ Additionally, TradingView imposes limits on script code size, making it impossible to fully integrate the two versions’ line-drawing features into one.
○ Therefore, this indicator reuses shared code components, including:
■ The Start_kxian() function (returns candlestick objects),
■ The Start_bi() function (returns pen objects),
■ The showKxianzsfunc() function (draws candlestick-based pivot zones),
■ MACD divergence judgment code.
🎯 Technical Principles
🔥 1. Comprehensive Coverage of Original Chan Theory Functions
● ✅ Real-Time Candlestick Containment Processing – Intelligent Recognition of Containment Relationships
○ In uptrends: Select the higher high and higher low values (prioritize higher extremes).
○ In downtrends: Select the lower high and lower low values (prioritize lower extremes).
● ✅ Accurate Fractal Marking – Automatic Identification of Top/Bottom Fractals
○ When the "Old/New Pen" parameter is set to 2, the high/low points of each top/bottom fractal are plotted.
○ Top Fractal: Among three consecutive candlesticks, the middle candlestick has a higher high and a higher low than the adjacent two.
○ Bottom Fractal: Among three consecutive candlesticks, the middle candlestick has a lower low and a lower high than the adjacent two.
● ✅ Multi-Dimensional Pen-Segment Analysis – Complete System for Pens & Segments
○ Pens:
■ Old Pen: Strictly follows the traditional Chan Theory definition of "pen".
■ New Pen: Adheres to the more flexible "new pen" definition from the original Chan Theory.
■ Fractal Pen: Forms a pen directly from top/bottom fractals (responds to price changes; many peers misclassify this as a "sub-timeframe pen").
○ Segments: This version adopts a recursive logic. While some single pens are treated as segments (differing from pure segment division), most segment-drawing results align with standard methods — the core difference lies in the line-drawing logic.
● ✅ Multi-Level Pivot Zone Integration – Candlestick-, Pen-, & Segment-Based Pivot Zones
○ Candlestick Pivot Zone: The smallest-level pivot zone in Chan Theory.
○ Pen Pivot Zone: Follows the original Chan Theory for division — the zone’s high is the lowest high of overlapping pens; the zone’s low is the highest low of overlapping pens.
○ Segment Pivot Zone: Follows the original Chan Theory for division — the zone’s high is the lowest high of overlapping segments; the zone’s low is the highest low of overlapping segments.
● ✅ Intelligent Trading Signals – Accurate Positioning of Three Types of Buy/Sell Points
○ Type 1 Buy/Sell Signal
■ Principle: Based on Chan Theory’s "trend divergence" — momentum weakens when a trend structure forms.
■ Analysis Method: Identify bottom divergence (for buys) or top divergence (for sells) in the final pivot zone of a trend structure.
■ Application: For reference only. Comprehensive analysis requires combining momentum decay across multiple timeframes.
○ Type 2 Buy/Sell Signal
■ Principle: The first pullback low (for buys) or rebound high (for sells) after a Type 1 signal concludes.
■ Analysis Method: After a Type 1 structure forms, prices may occasionally break previous lows/highs.
■ Application: For reference only. Comprehensive analysis requires combining momentum decay across multiple timeframes.
○ Type 3 Buy/Sell Signal
■ Principle: A standard Type 3 buy signal occurs when prices break above the first pivot zone after a Type 1 buy, then pull back to test the zone. For ease of monitoring, all "breakout + pullback" patterns are marked as Type 3 signals here.
■ Identification Method: Beginners are advised to trade standard Type 3 structures (post-Type 1 signals), though such structures are relatively rare.
■ Application: For reference only. Comprehensive analysis requires combining momentum decay across multiple timeframes.
● ✅ Divergence Alert – Exclusive Divergence Algorithm
○ Principle: Uses MACD momentum statistics from the original Chan Theory to distinguish between "pen-structure divergence" and "segment-structure divergence". Specific values are labeled on the chart to differentiate MACD momentum for pens vs. segments. More complex statistical features will be added in future updates. For reference on the current timeframe only — multi-timeframe momentum analysis is still required.
● ✅ Trend Structure Recursion – Exclusive Trend Recursion Function
○ Principle: This is a "same-timeframe decomposition" version of trend types. Trends end as close to absolute highs/lows as possible. Some single pens may be treated as segments, resulting in more natural-looking trend structures.
⚙️ Indicator Features
🌟 1. Diverse Pen-Segment Algorithm Engines
● 🎨 Three Pen Algorithms: "Traditional Old Pen", "New Pen", "Top/Bottom Fractal Pen".
● 🔧 Extensive Parameter Adjustments: Fine-grained control over "secondary high/low pens", "fractal range judgment", etc.
● 📊 Dual Recursive Division: Recursion starting from pens + higher-timeframe recursion.
● 🎯 Customizable Parameters: Adapts to different Chan Theory interpretations and trading styles.
🌟 2. Multi-Level Intelligent Integration System
● 📈 Synchronized Calculation & Display: Linked analysis of pens, segments, and advanced recursive segments.
● 🏗️ Exclusive Recursion Algorithm: Accurate identification of advanced recursive segments.
● 🎪 Multi-Level Pivot Zone System: Full coverage of three pivot zone levels (candlestick, pen, segment).
● 📊 Holistic Market Analysis: Provides comprehensive insights into real-time market dynamics.
🎨 3. Professional Visual Customization
● 🌈 Custom Color Schemes: Perfectly matches personal chart styles.
● 💰 Price Label Display: Marks key prices for pens, segments, and pivot zones.
● 📐 Professional Auxiliary Tools: Practical features like MA and Bollinger Bands.
● 🎁 Included MACD: A supporting indicator for the sub-chart.
⏰ 4. Seamless Candlestick Replay Support
● 🔄 Historical Data Review: Fully compatible with TradingView’s replay function.
● 📚 Powerful Market Research Tool: Enhances the ability to analyze historical price trends.
● 🧠 Improved Decision-Making: Deepens market insights and judgment.
📦 Feature & Interface Showcase by Product Version
Advanced Recursive Version ⭐ Exclusive Algorithm
Suitable for: Advanced Chan Theory users seeking precise trend analysis.
Exclusive Features:
● 🚀 Rare Algorithm: A pure recursive version (most competitors only reach segment-level analysis, which is their limit).
● 🎯 Optimized High/Low Points: Trend endpoints are accurately positioned at absolute highs/lows.
● 🏆 Natural Trend Structures: More natural and rational distribution of high/low points.
● 💎 Complete Chan Theory Elements: Covers all core components of Chan Theory.
● ⚡ Rich Pen Details: Extremely detailed processing of pen structures.
User Feedback: The preferred version among many senior Chan Theory users, with excellent real-trading performance.
Screenshot:
---
🎊 Experience Now & Start Your Professional Chan Theory Analysis Journey!
Pre-Purchase Notes
Chanzhongshuochan (Chan Theory) is relatively complex. While this software strives to implement all functions from the original texts, minor imperfections or unaddressed details may exist — these will be gradually improved in future updates.
● Users with concerns are advised to test the indicator for a few days first. Purchase only if it meets your needs; otherwise, treat the test as a trial.
● Feedback on issues or bugs is welcome. The developer will update, modify, and optimize the indicator in their spare time.
Key Function Screenshots
1. Multi-Level Recursion
2. Candlestick Containment Processing
3. Area Statistics + Pivot Zone High/Low Price Display
4. Multi-Level Consolidation Divergence
5. Overlaid Practical Moving Averages
6. Fractal Pens
7. Candlestick-Based Pivot Zones
8. Dozens of Adjustable Parameters
9. Optional Alert Functions (More to be Added in Future Updates)
10. Trend Structure Markers
🏆 缠中说禅ZSLX 递归版指标 - 旗舰版
背景
十年匠心,重磅升级
这套缠中说禅指标历经近10年的精心打磨与持续优化,从2015年初版设计至今,已经过实战验证。现全新升级登陆TradingView,功能更加完善,性能更加卓越。
真正实现了缠论原文中的所有核心理论,包括K线包含、分型识别、笔段分析、中枢理论、买卖点定位、背离背驰等完整体系,为缠论爱好者提供业界专业、全面的技术分析工具。
📦参数设置
- 计算K线数量:最多计算5000根,免费tradingview用户也只能这么多数据
- 笔细节参数:新旧笔、次高低点笔、最高低点笔、严格笔 可以调整可按标的数字选
- 显示均线和布林线参数:根据需要设置打钩就是显示,取消打钩就是隐藏
- 显示中枢价格和笔段价格:根据需要设置打钩就是显示,取消打钩就是隐藏
- macd参数:可以根据自己需要调整参数 快 慢 信号线周期设置
- 均线参数:默认参数可以自己手动调整
- 显示笔背离、段背离、笔段背驰:根据需要设置打钩就是显示,取消打钩就是隐藏
- 笔段背离背驰报警:默认关闭可以设置打钩开启,然后在tradingview的警报界面,条件里选择指标,设置:任何alert()函数调用,再设置通知类型,然后创建报警就可以收到报警
🔥整合其他常用指标和原因:
✅均线:因为缠论里是有使用均线叠加分析,这种更方便用户从不同视角分析走势,所以必须增加
✅布林线:布林线通道,结合缠论,也可以更多的视角分析走势,提高准确度,所以也增加了
✅macd:这个是缠论分析理论里必不可少的分析走势力度的指标,所以也必须整合进来方便分析
✅Chanlun ZSLX pen czsc Channel Chan Theory这个脚本和Chanlun FBFD pen czsc Channel Chan Theory这个脚本有些底层的源码是一样的必须整合原因:
因为缠论原文底层的K线包含、macd背离背驰、K线对象和笔部分都是一样的,但是顶层的线段和走势递归两种划分原理和显示效果和功能是有很大区别,并且tradingview社区的源码量有限制,导致也无法两个版本划线完全整合成一个,所以,这个脚本里的Start_kxian函数返回的kxian对象、 Start_bi函数返回的bi 对象 、showKxianzsfunc画K线中枢部分的源码、macd背离背驰判断部分代码,会有一样的整合部分源码
🎯 技术原理
🔥 1. 全方位缠论原文功能覆盖
● ✅ 实时K线包含处理 - 智能识别包含关系
○ - 上涨K线中取高点高值、低点高值,高高取高
- 下跌K线中取高点低值、低点低值,低低取低
● ✅ 精准分型标记 - 顶底分型自动识别
○ - 通过新旧笔参数设置2,会画出每个顶底分型高低点
○ - 顶分型:三根k线中,中间K线高点高于两侧K线,低点也高于两侧
- 底分型:三根k线中,中间K线低点低于两侧K线,高点也低于两侧
● ✅ 多维笔段分析 - 笔、线段完整体系
○ - 老笔:传统缠论严格笔定义,符合原文
- 新笔:传统缠论新笔定义,符合原文宽松笔条件
- 分型笔:顶底分型就成笔,价格反应比较敏锐(同行很多人把本周期分型笔标成次级别)
○ - 线段:这个版本采用递归思路,有的地方一笔处理成段,大部分地方跟纯分段一样,但是划线原理不同
● ✅ 多级中枢联立 - K线中枢、笔中枢、线段中枢
○ - K线中枢:最小级别的缠论中枢
- 笔中枢:采用原文的笔中枢划分区间,高点取重叠部分的最低点,低点取重叠部分最高点
- 线段中枢:采用原文的线段中枢划分区间,高点取线段重叠部分的最低点,低点取线段重叠部分最高点
● ✅ 智能买卖点 - 三类买卖点精准定位
○ 1类买卖点
- 原理:基于缠论趋势背驰原理,形成趋势结构时候,力度减弱
- 分析方法:通过判断趋势结构中最后中枢形成底背驰
- 应用:只是参考,具体分析需要多周期力度衰减结合判断
2类买卖点
- 原理:基于1类买卖点结束后,第一个回调低点
- 分析方法:在形成一类结构后,有时候也会破低点
- 应用:只是参考,具体分析需要多周期力度衰减结合判断
3类买卖点
- 原理:标准的三买是在1买形成后,突破第一个中枢的第一个回踩,这边为了方便看盘,统一突破回踩就标三买
- 识别方法:新手建议选择一类买点后的标准三买结构操作,但是可能这种结构比较少
- 应用:只是参考,具体分析需要多周期力度衰减结合判断
● ✅ 背离背驰预警 - 独家背离背驰算法
○ - 原理:采用缠论原文的macd力度统计,区分笔结构的背离背驰和段结构的背离背驰,并且在图形上标上具体数值,区分笔和段的macd力度,后期这个还要继续升级更复杂的统计,仅做本周期的参考,具体也是要多周期力度分析
● ✅ 走势结构递归 - 独家走势递归功能
- 原理:走势类型版本,这个是同级别分解版本,走势尽量结束在最高最低点,有的地方可能一笔成段,· 走势更为自然
⚙️ 指标特点
🌟1. 多样化笔段算法引擎
○ 🎨 三大笔算法: "传统旧笔"、"新笔"、"顶底分型笔"
○ 🔧 海量参数调节: 次高低笔、分型区间判断等精细化控制
○ 📊 双重递归划分: 笔开始递归 + 大级别递归
○ 🎯 个性化参数调整: 满足不同缠友的理解需求与交易风格
🌟 2. 多级别智能联立系统
○ 📈 同步计算显示: 笔、线段、递归高级段联动分析
○ 🏗️ 独家递归算法: 高级递归段精准识别
○ 🎪 多级中枢体系: 三重中枢级别完整覆盖
○ 📊 全景市场分析: 提供全面的市场动态洞察
🎨 3. 专业视觉定制
○ 🌈 自定义配色方案 - 完美匹配个人图表风格
○ 💰 价格标识显示 - 笔、段、中枢关键价位标注
○ 📐 专业辅助工具 - 均线、布林线等实用功能
○ 🎁 附带MACD - 配套附图指标
⏰ 4. 完美K线回放支持
○ 🔄 历史数据回顾 - 完美支持TradingView回放功能
○ 📚 市场研究利器 - 提升历史走势分析能力
○ 🧠 决策能力增强 - 深化市场洞察与判断水平
📦 产品版本功能界面展示
高级递归版 ⭐ 独家算法
适合:高阶缠友,追求极致走势分析
独家特色:
● 🚀 全网罕见算法: 纯递归版本,其他家最多只能设计到分段级别就是极限了
● 🎯 优化高低点: 走势结束点精准定位最高最低点
● 🏆 自然走势结构: 高低点分布更加自然合理
● 💎 完整缠论元素: 涵盖所有缠论核心要素
● ⚡ 超丰富笔细节: 笔的处理细节极其丰富
🌟 客户反馈: 众多资深缠友首选版本,实战效果卓越
快照
---
🎊 立即体验,开启专业缠论分析之旅!
售前说明:缠中说禅理论,相对比较复杂,软件尽量实现原文的功能,但是也难免有些瑕疵地方,无法处理到位,这边后期会陆续完善,介意的客户可以先试用几天,觉得合适再买,不合适就当测试下,欢迎大家反馈问题和bug,掌柜有空会后期更新修改和优化
1.多级别递归
2.K线包含
3.面积统计+中枢高低点价格显示
4.多级别盘整背离背驰
5.叠加实用均线
6.分型笔
7。k线中枢
8.几十个可选参数调整
9,可选的一些报警功能,后期陆续完善,更丰富
10.走势结构标志
SMC ToolBox [WinWorld]👋 INTRODUCTION
SMC ToolBox indicator is not just a simple indicator, but rather a collection of SMC-related algorithms, that our teams has found to make the most profound impact on determination process of the most high-quality liquidity zones and points of interests ( further – POIs ), hence the name of the indicator – Tool Box (and it also sounds cool :) .
From candle patterns to complex orderflow detection algorithm, ToolBox indicator will help any trader with search for useful tools, solving the needs from confirming position entry levels to trend-following and mean reversion opportunities.
❓ WHY DID WE BUILD THIS?
This indicator was initially built for our team's internal use for the sole purpose of gathering all actively used non-structure-related algorithms* in one place, so we could have only the tools that are truly needed at hand at any point of time. After we showed this tool to our trading partners, they were surprised about how light, fast and useful ToolBox was and they advised us on sharing this with our community and, after giving it a proper thought, we decided to follow their advice.
Funnily enough , after researching TradingView's open-source script library, we haven't found even one instance of even remotely alike indicators, so it fair to say that we are one of the first people to release this kind of SMC-related indicator bundles on the market and we strongly that TradingView's community will find this tool of use.
🤷♂️ WHY SHOULD YOU CARE AT ALL?
Frankly speaking, we are not the first people to build our own algorithms of such popular indicators like Equal Highs and Lows (EQHL), Previous Day High Low (PDHL), Orderflow (OF) and etc., but we are definitely one of the first teams to implement these indicators with the help of algorithms, that are actually used by the most professional traders on YouTube and other social media trading influencers. Simply taking trades from our SCOBs, OFs, EQHLs and etc. won't print you millions overnight, but what these algos will do is help you with being aware of is potentially laying ahead of you with a very clean probability.
Why does it matter? It simple: better market awareness gives you an edge over other trades, which use old algorithms, which are clearly outdated, so beating such traders in the long run is just a game of time for you, so good algorithms do matter. Each indicator inside ToolBox is there to help you develop this market awareness and forge your edge bit by bit.
Now let's talk about what is inside the ToolBox.
🔍 OVERVIEW
At the moment of publishing ToolBox contains 8 indicators, so say "Hello" to:
Price Border Bands (further – PBB) ;
Ordeflow (further – OF) ;
Equal Highs & Lows (further – EQHL) ;
Previous Day High & Low ( further – PDHL) ;
Single Candle Order Block (further – SCOB) ;
Institutional Funding Candle (further – IFC) ;
Engulfing Candle (further – EC) ;
Inside Bars (further – IB) .
Some of them you may know, some of them you may not, so let's review each of them one by one.
📍 INDICATOR: Price Border Bands (PBB)
Price Border Bands indicator is a simple yet useful algorithm, based on Triangular Moving Average (TMA), which helps determine extreme price spikes, which on average act as meaningful mean reversion opportunities. It also is a good an effective "verifier" of POIs and zones of interest (further – ZOI) .
We advise on using this indicator this way:
Look for price going beyond upper or lower band of PBB;
Look for price reaching POI or ZOI;
Start searching for your entry point.
The most common sign of potential price reversal, which PBB searches for, is intense price spike, which signals about "liquidity clearing" or, in simple terms, manipulation .
Manipulation of the price inside the POI or price being "stopped" by POI is a screaming sign of the potentional following reversal. See the example of such situation on the screenshot below:
Additionally we need to talk about trend filter inside PBB, which colours the bars on the chart under certain conditions. If bars on the chart are being coloured in gray – this is your sign to stop trading on this asset? because there is risk to catch an uncomfortably big price spike, which might turn the '+' of your position's PnL in to '-'. See the example of PBB highlighting bar's of risky price zone in gray colour on the screenshot below:
In order to continue trading you need to wait for bars to stop being coloured in gray OR confirm the fact that price made Change of Character (ChoCh) in reverse to the previous direction of price, which was marked as risky by PBB.
And last but not least: if you see POI being reach by price inside the bands of PBB, then consider this POI weak and avoid trading it. See the example of weak POI inside PBB bands on the screenshot below:
📍 INDICATOR: Orderflow (OF)
Orderflow indicator is an algorithm, which detects Sell-to-Buy (furthert – STB) or Buy-to-Sell (further – BTS) manipulations, using the algorithm of impulse & correction price movement detection, taken from one of our previously built indicators – Impulse Correction SCOB Mapper (ICSM) .
Let's explain the terms from above:
Impulse – series of bars, each bar of which consecutively updated previous bar's high and then last candle broke previous bar's low ;
Correction – series of bars, each bar of which consecutively updated previous bar's low and then last candle broke previous bar's high ;
STB – a type of price manipulation, which can be described as a correction of price inside global upward movemnt;
BTS – a type of price manipulation, which can be describd as a impulse of price inside global downward movement.
Unlike traditional order blocks, which are often narrower and more selective, Orderflow zones cover a wider price range and present a higher probability of mitigation. This makes them more reliable for entries in ovaerage in comparison to classic orderblocks.
Let's review examples of bullish and bearish orderflows on the screenshots below:
Bullish orderflows (STBs) (blue boxes with "OF" text inside)
Bearish orderflows (BTSs) (orange boxes with "OF" text inside)
The usage of ZOIs, detected by OF algorithm, is pretty straightforward: take trades against the ordeflow block, that price has reached. Even though we don't recommend relying on Orderflow blocks as sole producers of signals, you can use them as such in way, that can be described like this:
Place stop-loss (SL) beyond the furthest border of OF block (bottom of the bullish OF or top of the bearish OF), that price has reached;
Aim for >2:1 RR ratio and place your take-profit (TP) accordingly.
You can see the example setups of OF blocks as signal producers on the screenshots below:
Examples of LONG trades, taken from price reaching bullish OF block.
Examples of SHORT trades, taken from price reaching bearish OF block.
Summarising, Orderflow can be described as a tool that helps determine the STB and BTS price manipulations, which are great price ZOIs and can be used both as confirmation tools for your exisiting signals and sole signal producers, in which case such they needed to be handled extra mindfully and preferrably bonded with other tools for additional confirmation. We personally recommend using Ordeflow as confirmation tool, because ZOIs, detected by Orderflow, are usually the price ranges, around which traders tend to place their stop-losses, which only gives more strength to these zones for supporting the price and helps traders with "trading from support/resistance" strategies gain additional edge.
📍 INDICATOR: Equal Highs & Lows (EQHL)
EQHL indicator is an algorithm, which scans the extremums of impulse and correction movements, detected by our ICSM indicator , and marks ones which are roughly or equaly placed on the same price levels. Equal highs (further – EQH) and equal lows (further – EQL) are local liquidity pools, where stop orders and resting orders cluster; price often gravitates to these zones for liquidity “top-ups,” after which a reaction or continuation to the next liquidity source may occur. Basically, EQHL algorithm highlights clusters of equal extremes as navigational anchors for “collect → react → confirm” scenarios.
Talking about usage, we advise to not take swept or reached EQHLs as entries by themselves. Evaluate them alongside HTF structure, Inducement (IDM), orderblocks (OB), orderflow (OF), candle pattern context (e.g., IFC/EC) on the LTF and etc. Intended usage scenario of this algorithm is something like this:
Price reaches EQH/EQL;
Price hangs around the reached EQH/EQL;
Another tool (for example, OF or OB) signals about price reversals from the level of reached EQH/EQL;
Trader starts looking for an entry.
See the examples of EQHLs, which algorithms maps on the chart, on the screenshots below:
Equal Lows (EQLs)
Equal Highs (EQHs)
📍 INDICATOR: Previous Day High & Low (PDHL)
PDHL indicator is an algorithm, princples of work of which can be derived from its name: algorithm tracks previous day's high and low and displays it on the chart.
Previous day's high and low are fundamental POIs in any financial market, which are traded not only by SMC traders, but by many other traders, especially by traders, which consider these POIs are one of the most crucial, because they usually highly liquidity-rich and can signal about wondeful reversal opportunities.
We expect traders to use PDHL algorithm as confirmation tool when trading by mean reversion strategies. Usage of PDHL as signal source is advised against, but traders are free to experiment nevertheless.
PDHL algorithm shows two types of PDHLs on the chart: active PDHL (solid line) and swept PDHL (dashed line) . You can the examples of PDHLs, detected by our algorithm, on the screenshot below:
📍 INDICATOR: Single Candle Order Block (SCOB)
SCOB indicator is an algorithm, which marks a very specific POIS, which are based on of the most simple yet highly profound SMC and candle pattern principles and are usually a good alternative for classic orderblocks.
Principles of SCOB detection are very simple:
Price sweeps previous candle's extremum (high/low). So called "liquidity sweep" ;
Immediately after step 1 price forms a fair value gap (FVG).
You can see basic examples of bearish and bullish SCOBs on the screenshot below:
As a matter of fact, SCOB can be used both as a confirmation tool and source of signals. However! To be a source of signals, SCOB is most suitable to be used while trading on lower timeframe (LTF), while trading on a higher timeframe (HTF) on average requires to look at SCOB as a POI rather than as independent source of signals. That being said, we would like additionally to point out, that due to the nature of SCOB being an orderblock, this tool by its nature is best suitable as confirmation tool and we expect traders to use it as such, but either way this indicator is quite multifunctional and can be used by each trader for a more specific purposes.
SCOBs, which are detected by our algorithm, are painted on the chart either as coloured candles (SCOBs without inside bars) or coloured boxes (SCOBs with inside bars) . You can see examples of SCOBs, which were detected by our SCOB algorithm, on the screenshot below:
📍 INDICATOR: Institutional Funding Candle (IFC)
IFC is a candle, which is a more strict version of SCOB. Our algorithms detects an IFC, if SCOB satisfies these conditions:
SCOB candle has large shadow (more than 50% of candle's body);
SCOB candle has large range ( | high - low | is more than a certain value, which is base on ATR).
That's basically it! Being simple as that, IFC represents itself as a high-trust SCOB, which on average has larger chance of reversing price when IFC candle is reached by it and our practice shows that it is indeed the case. IFC candles are usually go hand in hand with large price and volume spikes, which are believed to be caused by large institutional players, who trading eager to catch retail trader's stop orders, which they usually place around POIs like IFC and SCOB.
We expect traders to use IFC as a tool for entry confirmation bias, especially when considering IFC from HTF.
You can see IFC, which our algoritms detects on the chart, on the screenshot below:
📍 INDICATOR: Engulfing Candle (EC)
An Engulfing Candle is a candle, which occurs when the current candle’s body engulfs the prior candle’s body, showing a short-term shift in demand/supply balance. In SMC context, it is most useful around POIs/liquidity as a contextual confirmation element. The indicator marks bullish and bearish EC without implying a “must reverse” outcome – it’s a focus cue, not a promise.
As with any other alike tool, this algorithm should not be used as sole source of signals, but rather as a confirmation tool. ECs near support/resistance zones or POIs are typically more impactufl than those inside choppy consolidations. Structural and LTF price impulse confirmation usually enhances existing position bias in a positive way.
You can see examples of engulfing candles on the screenshots below:
Bullish engulfing candles
Bearish engulfing candles
📍 INDICATOR: Inside Bars (IB)
Inside Bars are bars, which are contained inside the range of high and low prices of the bars preceding them. This algorithm was designed to showcase periods of potential price consolidation/volatylity compression and quite often precedes price movement towards closest liquidity POIs and ZOIs. When price finally breaks out of its previous range, it usually provides good opportunities for entering trades using breakout strategies (especially ones, that are based on SMC principles) .
You can see examples of IBs, which are detected by our algorithm on the chart, on the screenshot below:
That was a long list of features, now let's talk about settings now.
🔔 WHAT ABOUT ALERTS?
At the moment of publishing this indicator includes alerts for all algorithms, which are included inside, except for Inside Bars (IB) algorithm .
⚙️ SETTINGS
At the moment of publishing most of the settings in this indicator are about styling for indicator's visuals, because by design most of the included algorithms (excluding PBB) don't rely on inputs of any technical kind. Let's review them.
ToolBox | General Styling
Text Size – (Tiny, Small, Normal, Large) – defines text size of indicator's visuals, which use text-based visuals.
Price Border Bands | Main Settings
Show Price Border Bands – toggles on/off the display of PBB;
Half Length – defines amount of bars, used for calculation of the PBB's TMA;
Price Source – defines price source for PBB's TMA;
ATR Multiplier – affects the width of PBB's bands;
ATR Period – affects the amount of bars for ATR calculation.
Orderflow (OF) | Settings
Bullish OF – toggles on/off the display & colour of bullish OF;
Bearish OF – toggles on/off the display & colour of bearish OF;
Show border – toggles on/off the display of OF blocks' border.
Single Candle Order Block (SCOB) | Settings
Show SCOB – toggles on/off the display of SCOB;
Bullish – toggles on/off the colour of bullish SCOB;
Bearish – toggles on/off the colour of bearish SCOB.
Equal High/Lows (EQHL) | Settings
Show EQH/EQL – toggles on/off the display of PDH/PDL;
EQH – toggles on/off the colour of EQH;
EQL – toggles on/off the colour of EQL.
Institutional Funding Candle (IFC) | Settings
Show IFC – toggles on/off the display of IFC;
Bullish – toggles on/off the colour of bullish IFC;
Bearish – toggles on/off the colour of bearish IFC.
Previous Day High & Low (PDHL) | Settings
Show PDH/PDL – toggles on/off the display of PDH/PDL;
Show PDH/PDL – toggles on/off the display of the past history of swept PDH/PDL;
Show previous day divider – toggles on/off the display of dashed gray line, which separates new day from previous one;
Bullish – toggles on/off the colour of bullish IFC;
Bearish – toggles on/off the colour of bearish IFC.
Engulfing Candle (EC) | Settings
Show engulfing candles – toggles on/off the display of EC;
Bullish – toggles on/off the colour of bullish EC;
Bearish – toggles on/off the colour of bearish EC.
Inside Bars (IB) | Settings
Show inside bars – toggles on/off the display of IB;
Bullish – toggles on/off the colour of bullish IB;
Bearish – toggles on/off the colour of bearish IB.
Alerts | POI
Alert Frequency – (Once Per Bar, Once Per Bar Close) – defines alert frequency of the indicator's alert for all POIs;
* all other buttons from this group of settings toggle alerts on/off.
PBB;
OF;
SCOB;
EQH;
EQL;
IFC;
PDH;
PDL;
EC.
🏁 AFTERWORD
SMC ToolBox indicator is designed to be the ultimate swiss knife, which might bring you quantifiable results when trying to crack the market's secret of where the liquidity is placed. This indicator doesn't produce any particular signals not it gives any financial advice, but it helps you deepen understanding about potential existing liquidity zones and price points by employing principles of SMC algorithms, which are most commonly used by retail traders on a daily basis.
You can view this indicator as a Christmas candy box: you pick only the candles (indicators) you need and want. We expect any trader to use this indicator by exactly same way: you should take onlt the things you need to enhance your strategy, not worrying about what to do with other indicators, fi they don't suit you.
Lastly, we would like to share our team's recommendations (they are optional, of course) on how to use certain POIs from ToolBox:
Use PBB as a filter for validating POis. Pay close attention to the rule "don't trade POIs, which are located inside the bands of PBB" (described above in "INDICATOR: PBB") ;
Use Orderflow to find short-term and mid-term trading opportunitions for trend-following strategies, using OF blocks as resistance in bearish trend and support in bullish trend;
Use EQHL and PDHL indicators when trading by mean-reversion strategies on intraday timeframes. These indicators will be especially of use to forex, stock and crypto traders;
Use SCOB and IFC indicators when trading by mean-reversion strategy to find short-term reversal opportunities;
Use ECs and IBs as confirmation/denial tools for your entry ideas. We recommend avoiding trading If price is currently going inside HTF's IB range.
We have no doubts that SMC ToolBox indicator will be of use to any trader, who employs and desire to employ SMC principles in his strategy. We will be waiting for your feedback, meanwhile you can ask your questions in the comments :)
Sincerely,
WinWorld team.
ICT Multi-Session Hi/L/EQ
Indicator Overview: The "ICT Multi-Session Hi/L/EQ" indicator is a versatile tool designed for traders utilizing Inner Circle Trader (ICT) strategies, enabling the visualization of key price levels—High (H), Low (L), Equilibrium (EQ, the midpoint between high and low), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the session range—across up to 6 customizable market sessions on a single chart.
Core Functionality: It dynamically tracks and plots session-specific highs, lows, and EQ, updating in real-time as price action evolves, providing traders with immediate insights into potential support, resistance, and balance zones during defined periods like the Asian, London, or New York sessions. This multi-session capability allows for comprehensive market analysis without the need for multiple indicators.
Unique OTE Auto Detection: A standout feature is the automatic detection and directional calculation of OTE levels. When a session forms a new high, OTE levels are recalculated downward from the high to the low (bearish bias), highlighting potential short entry zones. Conversely, a new low triggers upward OTE levels from the low to the high (bullish bias), signaling long opportunities. This auto-detection adapts to market momentum without manual input, making it highly unique for ICT traders seeking efficient entry signals based on range retracements. No other indicator combines this session-based auto-directionality with OTE percentages tailored for ICT methodologies.
Left-Side Trimming Innovation: Another innovative aspect is the left-side trimming option, which allows users to limit the historical extension of lines to a user-defined number of bars (e.g., the last 8 bars), reducing chart clutter and focusing attention on recent price action. This feature is particularly unique as it addresses a common issue in multi-session indicators where full historical lines can overwhelm the chart, making it ideal for scalpers or day traders who prioritize clarity.
Without trimming the left side:
And when left side trimming is enabled:
Multi-Session Customization: Support for up to 6 independent sessions, each with individual time ranges (HHMM-HHMM format), timezones, and enable/disable toggles, offers unparalleled flexibility. Traders can configure sessions for specific market phases (e.g., Asia: 2000-0000 UTC) and customize colors, line styles (solid, dashed, dotted), and label properties separately, ensuring a personalized setup for global trading environments.
Auto-Deletion at Market Close: Levels can be automatically deleted at the session's calculated market close (17:00 NY timestamp), keeping the chart clean for the next session or day, a useful feature for avoiding accumulation of outdated levels.
Label and Visual Controls: Users can toggle labels on/off, adjust text color, background color, transparency, and size (tiny, small, normal, large), with options to stick labels to the right for better visibility. This level of customization ensures the indicator integrates seamlessly with any chart style.
No External Dependencies: All calculations are performed using built-in Pine Script functions on the chart's price data, making it self-contained and reliable without needing external libraries or data sources.
Professional and Compliant Design: Developed to comply with TradingView House Rules, this indicator is original in its combination of multi-session plotting, directional OTE auto-detection, and left-side trimming, providing traders with a robust tool for ICT-based analysis.
How It Works
Session Setup: Define session times and timezones in settings; the script tracks high/low from session start.
Level Calculation: High/low update on every bar; EQ is the midpoint. OTE levels recalculate directionally upon new extremes.
Drawing Mechanism: Lines extend with user-defined padding; trimming cuts left side for cleanliness.
Update Logic: OTE direction shifts based on new high/low detection, with levels refreshed accordingly.
Deletion: Auto-deletes at session end if enabled, resetting for new sessions.
Uniqueness and Innovation
Session OTE Auto Detection: Automatically adjusts OTE direction based on new highs/lows, a feature not commonly available in other indicators, enabling hands-free bias identification.
Left-Side Trimming: Unique clutter-reduction tool that trims historical lines, improving chart readability—a rare capability in session-based indicators.
Multi-Session Support: Handles 6 sessions independently, with per-session OTE, making it a one-stop tool for global market analysis.
Directional OTE: Adapts to market bias, offering dynamic entry zones tailored to ICT strategies.
Full Customization: Extensive controls for visuals and behavior, ensuring adaptability to individual trading styles.
User Guide: How to Use the "ICT Multi-Session Hi/L/EQ" Indicator
This guide provides a comprehensive, step-by-step explanation of how to use the "ICT Multi-Session Hi/L/EQ" indicator on TradingView. The indicator is designed to help Inner Circle Trader (ICT) enthusiasts plot key price levels—High (H), Low (L), Equilibrium (EQ, the midpoint), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the session range—across up to 6 customizable sessions. It also includes a Candle Open line for midnight or custom times. I'll break it down by settings groups, explaining each option, its purpose, how to tweak it, and tips for optimal use. All settings are accessible via the indicator's settings panel (cog icon next to the indicator name on your chart).
General Settings
These control global behaviors that apply to all sessions and levels. They allow you to customize the overall appearance and functionality of the indicator on your chart.
Line Padding (Bars Beyond Current): This integer input (default: 2, minimum: 0) extends the plotted lines beyond the current bar by the specified number of bars.
How to Use/Tweak: Increase this value (e.g., to 5) for longer forward projections of levels, useful for anticipating future price action. Decrease to 0 for no extension. It's ideal for traders who like to see levels projected ahead in volatile markets.
Tip: On lower timeframes (e.g., 5M), higher padding (4-6) helps visualize potential targets; on higher timeframes (1H), keep it low to avoid clutter.
Label Padding (Bars from Line End): An integer (default: 3, minimum: 0) that positions labels away from the end of the lines by the specified bars.
How to Use/Tweak: Adjust to move labels further right (higher value) or closer to the line end (lower value). This prevents label overlap with price action or other indicators.
Tip: If your chart has many labels, set to 5+ for better readability; use 1-2 for minimalistic setups.
Enable Left-Side Trimming: A boolean toggle (default: true) to trim lines from the left, limiting their historical extension.
How to Use/Tweak: Turn on to reduce chart clutter by showing only recent bars of the lines; turn off for full historical view. Pairs with "Left Trim Bars" for fine-tuning.
Tip: Enable for clean charts during live trading; disable for backtesting to see long-term patterns.
Left Trim Bars: An integer (default: 8, minimum: 1) specifying how many bars back from the current bar to trim lines when left trimming is enabled.
How to Use/Tweak: Set higher (e.g., 20) for more historical visibility while trimmed; lower (e.g., 4) for ultra-clean charts focusing on immediate action.
Tip: Use 8-12 for intraday trading on 15M charts; adjust based on timeframe to balance context and clarity.
Stick Labels to Right of Current Bar: A boolean toggle (default: true) to position labels at the right end of the lines.
How to Use/Tweak: Enable for labels to "stick" right, keeping them visible as the chart updates; disable for labels at the current bar position.
Tip: Keep enabled for real-time trading to avoid labels shifting left; disable for static analysis.
Delete Previous Session Lines/Labels on Market Close: A boolean toggle (default: true) to automatically delete session lines and labels at the calculated market close (17:00 NY time).
How to Use/Tweak: Enable to keep the chart clean by clearing old sessions; disable to retain historical levels for reference.
Tip: Enable for live trading to focus on active sessions; disable for educational reviews or backtesting.
Session 1 to 6 Settings
Each session has identical options, allowing independent configuration. I'll describe Session 1; replicate for others by changing the number (e.g., Session 2 uses "Session 2 Name", etc.).
Session Name: String input (default: "Asia" for Session 1) to label the session (e.g., "Asia" or "London").
How to Use/Tweak: Enter a descriptive name like "NY Open" for clarity in labels (e.g., "NY Open High").
Tip: Use short names to avoid long labels; this appears in all session labels for easy identification.
Session Time (HHMM-HHMM): Session input (default: "2000-0000" for Session 1) to define the start and end time.
How to Use/Tweak: Set the time range (e.g., "0930-1600" for NY session). Ensure start < end in 24-hour format.
Tip: Use for custom sessions like "London Kill Zone" (0800-1100); validate with the timezone setting.
Session Timezone: String selection (default: "America/New_York") from a list of options.
How to Use/Tweak: Choose the timezone matching your session (e.g., "Europe/London" for UK times).
Tip: Align with session name for accuracy; "Etc/UTC" for universal times.
Enable Session Drawings: Boolean toggle (default: true for Session 1, false for others) to activate the session's lines and labels.
How to Use/Tweak: Enable to show the session; disable to hide it without removing settings.
Tip: Enable one session at a time for focused analysis; use for multi-session overlays.
Enable EQ Line/Label: Boolean toggle (default: true) to show the EQ line and label.
How to Use/Tweak: Enable for midpoint plotting; disable to hide EQ while keeping high/low.
Tip: Useful for ICT fair value gaps; toggle off if focusing on extremes only.
Enable Labels: Boolean toggle (default: true) to show labels for high, low, EQ, and OTE levels.
How to Use/Tweak: Enable for annotated levels; disable for lines-only view.
Tip: Disable on crowded charts; customize label size for better readability.
Enable OTE Levels: Boolean toggle (default: false) to activate OTE levels (61.8%, 70%, 79%).
How to Use/Tweak: Enable for OTE plotting; disable to hide while keeping high/low/EQ.
Tip: Toggle on for entry zone identification; adjust colors for visual distinction.
Line Color: Color input (default varies by session, e.g., blue for Session 1) for lines.
How to Use/Tweak: Choose a color to differentiate sessions (e.g., green for bullish).
Tip: Use contrasting colors for multiple sessions; match your chart theme.
Line Style: String selection (default: "Dashed") from "Solid", "Dashed", "Dotted".
How to Use/Tweak: Select style for line appearance (e.g., dotted for OTE).
Tip: Use dashed for OTE to distinguish from solid high/low lines.
Label Text Color: Color input (default: white) for label text.
How to Use/Tweak: Set to contrast with background (e.g., black on white charts).
Tip: Use bright colors for visibility; match line color for cohesion.
Label Background Color: Color input (default: black) for label background.
How to Use/Tweak: Choose a semi-transparent background for readability.
Tip: Set to chart background color for subtle labels.
Label Transparency (0=opaque, 100=transparent): Integer input (default: 70) for label opacity.
How to Use/Tweak: Lower for solid labels (e.g., 0); higher for see-through (e.g., 90).
Tip: Use 50-80 for balance; 100 hides background entirely.
Label Text Size: String selection (default: "Small") from "Tiny", "Small", "Normal", "Large".
How to Use/Tweak: Choose size for label visibility (e.g., "Large" for emphasis).
Tip: "Small" for crowded charts; "Large" for main levels.
OTE 61.8% Color: Color input (default: purple) for 61.8% OTE line.
How to Use/Tweak: Customize to highlight the 61.8% level (e.g., gold for key entry).
Tip: Use distinct colors for each OTE level to differentiate (e.g., purple, orange, teal).
OTE 70% Color: Color input (default: orange) for 70% OTE line.
How to Use/Tweak: Set to a secondary color for mid-range OTE.
Tip: Coordinate with overall theme; use faded shades for less prominence.
OTE 79% Color: Color input (default: teal) for 79% OTE line.
How to Use/Tweak: Choose for the deepest OTE level (e.g., red for aggressive entries).
Tip: Make it stand out if 79% is your preferred entry zone.
Candle Open Settings
This section adds a custom open line (e.g., midnight open) with similar customization.
Use Time 1: Boolean toggle (default: true) to enable the first time setting.
How to Use/Tweak: Enable for the open line; disable to hide.
Tip: Use for midnight open in ICT setups; toggle off if not needed.
Name: String input (default: "Midnight Open") for the open line label.
How to Use/Tweak: Change to "Daily Open" or similar for context.
Tip: Keep short for clean labels.
Start Time: String input (default: "0000") for open range start.
How to Use/Tweak: Set in HHMM format (e.g., "0000" for midnight).
Tip: Ensure valid (0000-2359); pair with end time for narrow ranges.
End Time: String input (default: "0001") for open range end.
How to Use/Tweak: Set slightly after start (e.g., "0001") for precise open capture.
Tip: Use for quick ranges; start < end always.
Color: Color input (default: teal) for the open line.
How to Use/Tweak: Customize to distinguish from session lines.
Tip: Use gray for subtle open lines.
Timezone: String selection (default: "America/New_York") for the open line.
How to Use/Tweak: Choose matching your chart or session.
Tip: "Etc/UTC" for universal opens.
Enable Line/Label: Boolean toggle (default: true) for the open line/label.
How to Use/Tweak: Enable to show; disable to hide.
Tip: Use for daily opens in ICT; toggle off for session-only focus.
Enable Label: Boolean toggle (default: true) for the open label.
How to Use/Tweak: Enable for named label; disable for line-only.
Tip: Disable if labels clutter the chart.
Auto Delete at 18:00 NY: Boolean toggle (default: true) to delete at 18:00 NY.
How to Use/Tweak: Enable for cleanup; disable to retain.
Tip: Align with new day start; useful for resetting.
Stick Label to Right: Boolean toggle (default: true) for label positioning.
How to Use/Tweak: Enable for right-side labels; disable for current bar.
Tip: Keep enabled for visibility as chart updates.
Enable Left-Side Trimming: Boolean toggle (default: true) for open line trimming.
How to Use/Tweak: Enable to trim historical open line; disable for full view.
Tip: Similar to session trimming; use for clean charts.
Left Trim Bars: Integer input (default: 8) for open line trim bars.
How to Use/Tweak: Set the number of bars back to show when trimming.
Tip: Lower for more focus; higher for context.
Line Padding (Bars Beyond Current): Integer input (default: 2) for open line extension.
How to Use/Tweak: Increase for forward projection; decrease for no extension.
Tip: Match general padding for consistency.
Label Padding (Bars from Line End): Integer input (default: 3) for open label position.
How to Use/Tweak: Adjust to move label away from line end.
Tip: Higher for spaced labels; lower for compactness.
Line Style: String selection (default: "Solid") for open line style.
How to Use/Tweak: Choose "Dashed" or "Dotted" for distinction.
Tip: Use dotted for subtle opens.
Label Text Color: Color input (default: white) for open label text.
How to Use/Tweak: Set to contrast with background.
Tip: Black for light charts.
Label Background Color: Color input (default: black) for open label background.
How to Use/Tweak: Customize for visibility.
Tip: Semi-transparent for blend.
Label Transparency: Integer input (default: 70) for open label opacity.
How to Use/Tweak: 0 for opaque; 100 for transparent.
Tip: 50-80 for balance.
Label Text Size: String selection (default: "Small") for open label size.
How to Use/Tweak: "Large" for emphasis; "Tiny" for minimalism.
Tip: "Normal" for standard use.
Markov Chain [3D] | FractalystWhat exactly is a Markov Chain?
This indicator uses a Markov Chain model to analyze, quantify, and visualize the transitions between market regimes (Bull, Bear, Neutral) on your chart. It dynamically detects these regimes in real-time, calculates transition probabilities, and displays them as animated 3D spheres and arrows, giving traders intuitive insight into current and future market conditions.
How does a Markov Chain work, and how should I read this spheres-and-arrows diagram?
Think of three weather modes: Sunny, Rainy, Cloudy.
Each sphere is one mode. The loop on a sphere means “stay the same next step” (e.g., Sunny again tomorrow).
The arrows leaving a sphere show where things usually go next if they change (e.g., Sunny moving to Cloudy).
Some paths matter more than others. A more prominent loop means the current mode tends to persist. A more prominent outgoing arrow means a change to that destination is the usual next step.
Direction isn’t symmetric: moving Sunny→Cloudy can behave differently than Cloudy→Sunny.
Now relabel the spheres to markets: Bull, Bear, Neutral.
Spheres: market regimes (uptrend, downtrend, range).
Self‑loop: tendency for the current regime to continue on the next bar.
Arrows: the most common next regime if a switch happens.
How to read: Start at the sphere that matches current bar state. If the loop stands out, expect continuation. If one outgoing path stands out, that switch is the typical next step. Opposite directions can differ (Bear→Neutral doesn’t have to match Neutral→Bear).
What states and transitions are shown?
The three market states visualized are:
Bullish (Bull): Upward or strong-market regime.
Bearish (Bear): Downward or weak-market regime.
Neutral: Sideways or range-bound regime.
Bidirectional animated arrows and probability labels show how likely the market is to move from one regime to another (e.g., Bull → Bear or Neutral → Bull).
How does the regime detection system work?
You can use either built-in price returns (based on adaptive Z-score normalization) or supply three custom indicators (such as volume, oscillators, etc.).
Values are statistically normalized (Z-scored) over a configurable lookback period.
The normalized outputs are classified into Bull, Bear, or Neutral zones.
If using three indicators, their regime signals are averaged and smoothed for robustness.
How are transition probabilities calculated?
On every confirmed bar, the algorithm tracks the sequence of detected market states, then builds a rolling window of transitions.
The code maintains a transition count matrix for all regime pairs (e.g., Bull → Bear).
Transition probabilities are extracted for each possible state change using Laplace smoothing for numerical stability, and frequently updated in real-time.
What is unique about the visualization?
3D animated spheres represent each regime and change visually when active.
Animated, bidirectional arrows reveal transition probabilities and allow you to see both dominant and less likely regime flows.
Particles (moving dots) animate along the arrows, enhancing the perception of regime flow direction and speed.
All elements dynamically update with each new price bar, providing a live market map in an intuitive, engaging format.
Can I use custom indicators for regime classification?
Yes! Enable the "Custom Indicators" switch and select any three chart series as inputs. These will be normalized and combined (each with equal weight), broadening the regime classification beyond just price-based movement.
What does the “Lookback Period” control?
Lookback Period (default: 100) sets how much historical data builds the probability matrix. Shorter periods adapt faster to regime changes but may be noisier. Longer periods are more stable but slower to adapt.
How is this different from a Hidden Markov Model (HMM)?
It sets the window for both regime detection and probability calculations. Lower values make the system more reactive, but potentially noisier. Higher values smooth estimates and make the system more robust.
How is this Markov Chain different from a Hidden Markov Model (HMM)?
Markov Chain (as here): All market regimes (Bull, Bear, Neutral) are directly observable on the chart. The transition matrix is built from actual detected regimes, keeping the model simple and interpretable.
Hidden Markov Model: The actual regimes are unobservable ("hidden") and must be inferred from market output or indicator "emissions" using statistical learning algorithms. HMMs are more complex, can capture more subtle structure, but are harder to visualize and require additional machine learning steps for training.
A standard Markov Chain models transitions between observable states using a simple transition matrix, while a Hidden Markov Model assumes the true states are hidden (latent) and must be inferred from observable “emissions” like price or volume data. In practical terms, a Markov Chain is transparent and easier to implement and interpret; an HMM is more expressive but requires statistical inference to estimate hidden states from data.
Markov Chain: states are observable; you directly count or estimate transition probabilities between visible states. This makes it simpler, faster, and easier to validate and tune.
HMM: states are hidden; you only observe emissions generated by those latent states. Learning involves machine learning/statistical algorithms (commonly Baum–Welch/EM for training and Viterbi for decoding) to infer both the transition dynamics and the most likely hidden state sequence from data.
How does the indicator avoid “repainting” or look-ahead bias?
All regime changes and matrix updates happen only on confirmed (closed) bars, so no future data is leaked, ensuring reliable real-time operation.
Are there practical tuning tips?
Tune the Lookback Period for your asset/timeframe: shorter for fast markets, longer for stability.
Use custom indicators if your asset has unique regime drivers.
Watch for rapid changes in transition probabilities as early warning of a possible regime shift.
Who is this indicator for?
Quants and quantitative researchers exploring probabilistic market modeling, especially those interested in regime-switching dynamics and Markov models.
Programmers and system developers who need a probabilistic regime filter for systematic and algorithmic backtesting:
The Markov Chain indicator is ideally suited for programmatic integration via its bias output (1 = Bull, 0 = Neutral, -1 = Bear).
Although the visualization is engaging, the core output is designed for automated, rules-based workflows—not for discretionary/manual trading decisions.
Developers can connect the indicator’s output directly to their Pine Script logic (using input.source()), allowing rapid and robust backtesting of regime-based strategies.
It acts as a plug-and-play regime filter: simply plug the bias output into your entry/exit logic, and you have a scientifically robust, probabilistically-derived signal for filtering, timing, position sizing, or risk regimes.
The MC's output is intentionally "trinary" (1/0/-1), focusing on clear regime states for unambiguous decision-making in code. If you require nuanced, multi-probability or soft-label state vectors, consider expanding the indicator or stacking it with a probability-weighted logic layer in your scripting.
Because it avoids subjectivity, this approach is optimal for systematic quants, algo developers building backtested, repeatable strategies based on probabilistic regime analysis.
What's the mathematical foundation behind this?
The mathematical foundation behind this Markov Chain indicator—and probabilistic regime detection in finance—draws from two principal models: the (standard) Markov Chain and the Hidden Markov Model (HMM).
How to use this indicator programmatically?
The Markov Chain indicator automatically exports a bias value (+1 for Bullish, -1 for Bearish, 0 for Neutral) as a plot visible in the Data Window. This allows you to integrate its regime signal into your own scripts and strategies for backtesting, automation, or live trading.
Step-by-Step Integration with Pine Script (input.source)
Add the Markov Chain indicator to your chart.
This must be done first, since your custom script will "pull" the bias signal from the indicator's plot.
In your strategy, create an input using input.source()
Example:
//@version=5
strategy("MC Bias Strategy Example")
mcBias = input.source(close, "MC Bias Source")
After saving, go to your script’s settings. For the “MC Bias Source” input, select the plot/output of the Markov Chain indicator (typically its bias plot).
Use the bias in your trading logic
Example (long only on Bull, flat otherwise):
if mcBias == 1
strategy.entry("Long", strategy.long)
else
strategy.close("Long")
For more advanced workflows, combine mcBias with additional filters or trailing stops.
How does this work behind-the-scenes?
TradingView’s input.source() lets you use any plot from another indicator as a real-time, “live” data feed in your own script (source).
The selected bias signal is available to your Pine code as a variable, enabling logical decisions based on regime (trend-following, mean-reversion, etc.).
This enables powerful strategy modularity : decouple regime detection from entry/exit logic, allowing fast experimentation without rewriting core signal code.
Integrating 45+ Indicators with Your Markov Chain — How & Why
The Enhanced Custom Indicators Export script exports a massive suite of over 45 technical indicators—ranging from classic momentum (RSI, MACD, Stochastic, etc.) to trend, volume, volatility, and oscillator tools—all pre-calculated, centered/scaled, and available as plots.
// Enhanced Custom Indicators Export - 45 Technical Indicators
// Comprehensive technical analysis suite for advanced market regime detection
//@version=6
indicator('Enhanced Custom Indicators Export | Fractalyst', shorttitle='Enhanced CI Export', overlay=false, scale=scale.right, max_labels_count=500, max_lines_count=500)
// |----- Input Parameters -----| //
momentum_group = "Momentum Indicators"
trend_group = "Trend Indicators"
volume_group = "Volume Indicators"
volatility_group = "Volatility Indicators"
oscillator_group = "Oscillator Indicators"
display_group = "Display Settings"
// Common lengths
length_14 = input.int(14, "Standard Length (14)", minval=1, maxval=100, group=momentum_group)
length_20 = input.int(20, "Medium Length (20)", minval=1, maxval=200, group=trend_group)
length_50 = input.int(50, "Long Length (50)", minval=1, maxval=200, group=trend_group)
// Display options
show_table = input.bool(true, "Show Values Table", group=display_group)
table_size = input.string("Small", "Table Size", options= , group=display_group)
// |----- MOMENTUM INDICATORS (15 indicators) -----| //
// 1. RSI (Relative Strength Index)
rsi_14 = ta.rsi(close, length_14)
rsi_centered = rsi_14 - 50
// 2. Stochastic Oscillator
stoch_k = ta.stoch(close, high, low, length_14)
stoch_d = ta.sma(stoch_k, 3)
stoch_centered = stoch_k - 50
// 3. Williams %R
williams_r = ta.stoch(close, high, low, length_14) - 100
// 4. MACD (Moving Average Convergence Divergence)
= ta.macd(close, 12, 26, 9)
// 5. Momentum (Rate of Change)
momentum = ta.mom(close, length_14)
momentum_pct = (momentum / close ) * 100
// 6. Rate of Change (ROC)
roc = ta.roc(close, length_14)
// 7. Commodity Channel Index (CCI)
cci = ta.cci(close, length_20)
// 8. Money Flow Index (MFI)
mfi = ta.mfi(close, length_14)
mfi_centered = mfi - 50
// 9. Awesome Oscillator (AO)
ao = ta.sma(hl2, 5) - ta.sma(hl2, 34)
// 10. Accelerator Oscillator (AC)
ac = ao - ta.sma(ao, 5)
// 11. Chande Momentum Oscillator (CMO)
cmo = ta.cmo(close, length_14)
// 12. Detrended Price Oscillator (DPO)
dpo = close - ta.sma(close, length_20)
// 13. Price Oscillator (PPO)
ppo = ta.sma(close, 12) - ta.sma(close, 26)
ppo_pct = (ppo / ta.sma(close, 26)) * 100
// 14. TRIX
trix_ema1 = ta.ema(close, length_14)
trix_ema2 = ta.ema(trix_ema1, length_14)
trix_ema3 = ta.ema(trix_ema2, length_14)
trix = ta.roc(trix_ema3, 1) * 10000
// 15. Klinger Oscillator
klinger = ta.ema(volume * (high + low + close) / 3, 34) - ta.ema(volume * (high + low + close) / 3, 55)
// 16. Fisher Transform
fisher_hl2 = 0.5 * (hl2 - ta.lowest(hl2, 10)) / (ta.highest(hl2, 10) - ta.lowest(hl2, 10)) - 0.25
fisher = 0.5 * math.log((1 + fisher_hl2) / (1 - fisher_hl2))
// 17. Stochastic RSI
stoch_rsi = ta.stoch(rsi_14, rsi_14, rsi_14, length_14)
stoch_rsi_centered = stoch_rsi - 50
// 18. Relative Vigor Index (RVI)
rvi_num = ta.swma(close - open)
rvi_den = ta.swma(high - low)
rvi = rvi_den != 0 ? rvi_num / rvi_den : 0
// 19. Balance of Power (BOP)
bop = (close - open) / (high - low)
// |----- TREND INDICATORS (10 indicators) -----| //
// 20. Simple Moving Average Momentum
sma_20 = ta.sma(close, length_20)
sma_momentum = ((close - sma_20) / sma_20) * 100
// 21. Exponential Moving Average Momentum
ema_20 = ta.ema(close, length_20)
ema_momentum = ((close - ema_20) / ema_20) * 100
// 22. Parabolic SAR
sar = ta.sar(0.02, 0.02, 0.2)
sar_trend = close > sar ? 1 : -1
// 23. Linear Regression Slope
lr_slope = ta.linreg(close, length_20, 0) - ta.linreg(close, length_20, 1)
// 24. Moving Average Convergence (MAC)
mac = ta.sma(close, 10) - ta.sma(close, 30)
// 25. Trend Intensity Index (TII)
tii_sum = 0.0
for i = 1 to length_20
tii_sum += close > close ? 1 : 0
tii = (tii_sum / length_20) * 100
// 26. Ichimoku Cloud Components
ichimoku_tenkan = (ta.highest(high, 9) + ta.lowest(low, 9)) / 2
ichimoku_kijun = (ta.highest(high, 26) + ta.lowest(low, 26)) / 2
ichimoku_signal = ichimoku_tenkan > ichimoku_kijun ? 1 : -1
// 27. MESA Adaptive Moving Average (MAMA)
mama_alpha = 2.0 / (length_20 + 1)
mama = ta.ema(close, length_20)
mama_momentum = ((close - mama) / mama) * 100
// 28. Zero Lag Exponential Moving Average (ZLEMA)
zlema_lag = math.round((length_20 - 1) / 2)
zlema_data = close + (close - close )
zlema = ta.ema(zlema_data, length_20)
zlema_momentum = ((close - zlema) / zlema) * 100
// |----- VOLUME INDICATORS (6 indicators) -----| //
// 29. On-Balance Volume (OBV)
obv = ta.obv
// 30. Volume Rate of Change (VROC)
vroc = ta.roc(volume, length_14)
// 31. Price Volume Trend (PVT)
pvt = ta.pvt
// 32. Negative Volume Index (NVI)
nvi = 0.0
nvi := volume < volume ? nvi + ((close - close ) / close ) * nvi : nvi
// 33. Positive Volume Index (PVI)
pvi = 0.0
pvi := volume > volume ? pvi + ((close - close ) / close ) * pvi : pvi
// 34. Volume Oscillator
vol_osc = ta.sma(volume, 5) - ta.sma(volume, 10)
// 35. Ease of Movement (EOM)
eom_distance = high - low
eom_box_height = volume / 1000000
eom = eom_box_height != 0 ? eom_distance / eom_box_height : 0
eom_sma = ta.sma(eom, length_14)
// 36. Force Index
force_index = volume * (close - close )
force_index_sma = ta.sma(force_index, length_14)
// |----- VOLATILITY INDICATORS (10 indicators) -----| //
// 37. Average True Range (ATR)
atr = ta.atr(length_14)
atr_pct = (atr / close) * 100
// 38. Bollinger Bands Position
bb_basis = ta.sma(close, length_20)
bb_dev = 2.0 * ta.stdev(close, length_20)
bb_upper = bb_basis + bb_dev
bb_lower = bb_basis - bb_dev
bb_position = bb_dev != 0 ? (close - bb_basis) / bb_dev : 0
bb_width = bb_dev != 0 ? (bb_upper - bb_lower) / bb_basis * 100 : 0
// 39. Keltner Channels Position
kc_basis = ta.ema(close, length_20)
kc_range = ta.ema(ta.tr, length_20)
kc_upper = kc_basis + (2.0 * kc_range)
kc_lower = kc_basis - (2.0 * kc_range)
kc_position = kc_range != 0 ? (close - kc_basis) / kc_range : 0
// 40. Donchian Channels Position
dc_upper = ta.highest(high, length_20)
dc_lower = ta.lowest(low, length_20)
dc_basis = (dc_upper + dc_lower) / 2
dc_position = (dc_upper - dc_lower) != 0 ? (close - dc_basis) / (dc_upper - dc_lower) : 0
// 41. Standard Deviation
std_dev = ta.stdev(close, length_20)
std_dev_pct = (std_dev / close) * 100
// 42. Relative Volatility Index (RVI)
rvi_up = ta.stdev(close > close ? close : 0, length_14)
rvi_down = ta.stdev(close < close ? close : 0, length_14)
rvi_total = rvi_up + rvi_down
rvi_volatility = rvi_total != 0 ? (rvi_up / rvi_total) * 100 : 50
// 43. Historical Volatility
hv_returns = math.log(close / close )
hv = ta.stdev(hv_returns, length_20) * math.sqrt(252) * 100
// 44. Garman-Klass Volatility
gk_vol = math.log(high/low) * math.log(high/low) - (2*math.log(2)-1) * math.log(close/open) * math.log(close/open)
gk_volatility = math.sqrt(ta.sma(gk_vol, length_20)) * 100
// 45. Parkinson Volatility
park_vol = math.log(high/low) * math.log(high/low)
parkinson = math.sqrt(ta.sma(park_vol, length_20) / (4 * math.log(2))) * 100
// 46. Rogers-Satchell Volatility
rs_vol = math.log(high/close) * math.log(high/open) + math.log(low/close) * math.log(low/open)
rogers_satchell = math.sqrt(ta.sma(rs_vol, length_20)) * 100
// |----- OSCILLATOR INDICATORS (5 indicators) -----| //
// 47. Elder Ray Index
elder_bull = high - ta.ema(close, 13)
elder_bear = low - ta.ema(close, 13)
elder_power = elder_bull + elder_bear
// 48. Schaff Trend Cycle (STC)
stc_macd = ta.ema(close, 23) - ta.ema(close, 50)
stc_k = ta.stoch(stc_macd, stc_macd, stc_macd, 10)
stc_d = ta.ema(stc_k, 3)
stc = ta.stoch(stc_d, stc_d, stc_d, 10)
// 49. Coppock Curve
coppock_roc1 = ta.roc(close, 14)
coppock_roc2 = ta.roc(close, 11)
coppock = ta.wma(coppock_roc1 + coppock_roc2, 10)
// 50. Know Sure Thing (KST)
kst_roc1 = ta.roc(close, 10)
kst_roc2 = ta.roc(close, 15)
kst_roc3 = ta.roc(close, 20)
kst_roc4 = ta.roc(close, 30)
kst = ta.sma(kst_roc1, 10) + 2*ta.sma(kst_roc2, 10) + 3*ta.sma(kst_roc3, 10) + 4*ta.sma(kst_roc4, 15)
// 51. Percentage Price Oscillator (PPO)
ppo_line = ((ta.ema(close, 12) - ta.ema(close, 26)) / ta.ema(close, 26)) * 100
ppo_signal = ta.ema(ppo_line, 9)
ppo_histogram = ppo_line - ppo_signal
// |----- PLOT MAIN INDICATORS -----| //
// Plot key momentum indicators
plot(rsi_centered, title="01_RSI_Centered", color=color.purple, linewidth=1)
plot(stoch_centered, title="02_Stoch_Centered", color=color.blue, linewidth=1)
plot(williams_r, title="03_Williams_R", color=color.red, linewidth=1)
plot(macd_histogram, title="04_MACD_Histogram", color=color.orange, linewidth=1)
plot(cci, title="05_CCI", color=color.green, linewidth=1)
// Plot trend indicators
plot(sma_momentum, title="06_SMA_Momentum", color=color.navy, linewidth=1)
plot(ema_momentum, title="07_EMA_Momentum", color=color.maroon, linewidth=1)
plot(sar_trend, title="08_SAR_Trend", color=color.teal, linewidth=1)
plot(lr_slope, title="09_LR_Slope", color=color.lime, linewidth=1)
plot(mac, title="10_MAC", color=color.fuchsia, linewidth=1)
// Plot volatility indicators
plot(atr_pct, title="11_ATR_Pct", color=color.yellow, linewidth=1)
plot(bb_position, title="12_BB_Position", color=color.aqua, linewidth=1)
plot(kc_position, title="13_KC_Position", color=color.olive, linewidth=1)
plot(std_dev_pct, title="14_StdDev_Pct", color=color.silver, linewidth=1)
plot(bb_width, title="15_BB_Width", color=color.gray, linewidth=1)
// Plot volume indicators
plot(vroc, title="16_VROC", color=color.blue, linewidth=1)
plot(eom_sma, title="17_EOM", color=color.red, linewidth=1)
plot(vol_osc, title="18_Vol_Osc", color=color.green, linewidth=1)
plot(force_index_sma, title="19_Force_Index", color=color.orange, linewidth=1)
plot(obv, title="20_OBV", color=color.purple, linewidth=1)
// Plot additional oscillators
plot(ao, title="21_Awesome_Osc", color=color.navy, linewidth=1)
plot(cmo, title="22_CMO", color=color.maroon, linewidth=1)
plot(dpo, title="23_DPO", color=color.teal, linewidth=1)
plot(trix, title="24_TRIX", color=color.lime, linewidth=1)
plot(fisher, title="25_Fisher", color=color.fuchsia, linewidth=1)
// Plot more momentum indicators
plot(mfi_centered, title="26_MFI_Centered", color=color.yellow, linewidth=1)
plot(ac, title="27_AC", color=color.aqua, linewidth=1)
plot(ppo_pct, title="28_PPO_Pct", color=color.olive, linewidth=1)
plot(stoch_rsi_centered, title="29_StochRSI_Centered", color=color.silver, linewidth=1)
plot(klinger, title="30_Klinger", color=color.gray, linewidth=1)
// Plot trend continuation
plot(tii, title="31_TII", color=color.blue, linewidth=1)
plot(ichimoku_signal, title="32_Ichimoku_Signal", color=color.red, linewidth=1)
plot(mama_momentum, title="33_MAMA_Momentum", color=color.green, linewidth=1)
plot(zlema_momentum, title="34_ZLEMA_Momentum", color=color.orange, linewidth=1)
plot(bop, title="35_BOP", color=color.purple, linewidth=1)
// Plot volume continuation
plot(nvi, title="36_NVI", color=color.navy, linewidth=1)
plot(pvi, title="37_PVI", color=color.maroon, linewidth=1)
plot(momentum_pct, title="38_Momentum_Pct", color=color.teal, linewidth=1)
plot(roc, title="39_ROC", color=color.lime, linewidth=1)
plot(rvi, title="40_RVI", color=color.fuchsia, linewidth=1)
// Plot volatility continuation
plot(dc_position, title="41_DC_Position", color=color.yellow, linewidth=1)
plot(rvi_volatility, title="42_RVI_Volatility", color=color.aqua, linewidth=1)
plot(hv, title="43_Historical_Vol", color=color.olive, linewidth=1)
plot(gk_volatility, title="44_GK_Volatility", color=color.silver, linewidth=1)
plot(parkinson, title="45_Parkinson_Vol", color=color.gray, linewidth=1)
// Plot final oscillators
plot(rogers_satchell, title="46_RS_Volatility", color=color.blue, linewidth=1)
plot(elder_power, title="47_Elder_Power", color=color.red, linewidth=1)
plot(stc, title="48_STC", color=color.green, linewidth=1)
plot(coppock, title="49_Coppock", color=color.orange, linewidth=1)
plot(kst, title="50_KST", color=color.purple, linewidth=1)
// Plot final indicators
plot(ppo_histogram, title="51_PPO_Histogram", color=color.navy, linewidth=1)
plot(pvt, title="52_PVT", color=color.maroon, linewidth=1)
// |----- Reference Lines -----| //
hline(0, "Zero Line", color=color.gray, linestyle=hline.style_dashed, linewidth=1)
hline(50, "Midline", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
hline(-50, "Lower Midline", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
hline(25, "Upper Threshold", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
hline(-25, "Lower Threshold", color=color.gray, linestyle=hline.style_dotted, linewidth=1)
// |----- Enhanced Information Table -----| //
if show_table and barstate.islast
table_position = position.top_right
table_text_size = table_size == "Tiny" ? size.tiny : table_size == "Small" ? size.small : size.normal
var table info_table = table.new(table_position, 3, 18, bgcolor=color.new(color.white, 85), border_width=1, border_color=color.gray)
// Headers
table.cell(info_table, 0, 0, 'Category', text_color=color.black, text_size=table_text_size, bgcolor=color.new(color.blue, 70))
table.cell(info_table, 1, 0, 'Indicator', text_color=color.black, text_size=table_text_size, bgcolor=color.new(color.blue, 70))
table.cell(info_table, 2, 0, 'Value', text_color=color.black, text_size=table_text_size, bgcolor=color.new(color.blue, 70))
// Key Momentum Indicators
table.cell(info_table, 0, 1, 'MOMENTUM', text_color=color.purple, text_size=table_text_size, bgcolor=color.new(color.purple, 90))
table.cell(info_table, 1, 1, 'RSI Centered', text_color=color.purple, text_size=table_text_size)
table.cell(info_table, 2, 1, str.tostring(rsi_centered, '0.00'), text_color=color.purple, text_size=table_text_size)
table.cell(info_table, 0, 2, '', text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 1, 2, 'Stoch Centered', text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 2, 2, str.tostring(stoch_centered, '0.00'), text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 0, 3, '', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 1, 3, 'Williams %R', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 2, 3, str.tostring(williams_r, '0.00'), text_color=color.red, text_size=table_text_size)
table.cell(info_table, 0, 4, '', text_color=color.orange, text_size=table_text_size)
table.cell(info_table, 1, 4, 'MACD Histogram', text_color=color.orange, text_size=table_text_size)
table.cell(info_table, 2, 4, str.tostring(macd_histogram, '0.000'), text_color=color.orange, text_size=table_text_size)
table.cell(info_table, 0, 5, '', text_color=color.green, text_size=table_text_size)
table.cell(info_table, 1, 5, 'CCI', text_color=color.green, text_size=table_text_size)
table.cell(info_table, 2, 5, str.tostring(cci, '0.00'), text_color=color.green, text_size=table_text_size)
// Key Trend Indicators
table.cell(info_table, 0, 6, 'TREND', text_color=color.navy, text_size=table_text_size, bgcolor=color.new(color.navy, 90))
table.cell(info_table, 1, 6, 'SMA Momentum %', text_color=color.navy, text_size=table_text_size)
table.cell(info_table, 2, 6, str.tostring(sma_momentum, '0.00'), text_color=color.navy, text_size=table_text_size)
table.cell(info_table, 0, 7, '', text_color=color.maroon, text_size=table_text_size)
table.cell(info_table, 1, 7, 'EMA Momentum %', text_color=color.maroon, text_size=table_text_size)
table.cell(info_table, 2, 7, str.tostring(ema_momentum, '0.00'), text_color=color.maroon, text_size=table_text_size)
table.cell(info_table, 0, 8, '', text_color=color.teal, text_size=table_text_size)
table.cell(info_table, 1, 8, 'SAR Trend', text_color=color.teal, text_size=table_text_size)
table.cell(info_table, 2, 8, str.tostring(sar_trend, '0'), text_color=color.teal, text_size=table_text_size)
table.cell(info_table, 0, 9, '', text_color=color.lime, text_size=table_text_size)
table.cell(info_table, 1, 9, 'Linear Regression', text_color=color.lime, text_size=table_text_size)
table.cell(info_table, 2, 9, str.tostring(lr_slope, '0.000'), text_color=color.lime, text_size=table_text_size)
// Key Volatility Indicators
table.cell(info_table, 0, 10, 'VOLATILITY', text_color=color.yellow, text_size=table_text_size, bgcolor=color.new(color.yellow, 90))
table.cell(info_table, 1, 10, 'ATR %', text_color=color.yellow, text_size=table_text_size)
table.cell(info_table, 2, 10, str.tostring(atr_pct, '0.00'), text_color=color.yellow, text_size=table_text_size)
table.cell(info_table, 0, 11, '', text_color=color.aqua, text_size=table_text_size)
table.cell(info_table, 1, 11, 'BB Position', text_color=color.aqua, text_size=table_text_size)
table.cell(info_table, 2, 11, str.tostring(bb_position, '0.00'), text_color=color.aqua, text_size=table_text_size)
table.cell(info_table, 0, 12, '', text_color=color.olive, text_size=table_text_size)
table.cell(info_table, 1, 12, 'KC Position', text_color=color.olive, text_size=table_text_size)
table.cell(info_table, 2, 12, str.tostring(kc_position, '0.00'), text_color=color.olive, text_size=table_text_size)
// Key Volume Indicators
table.cell(info_table, 0, 13, 'VOLUME', text_color=color.blue, text_size=table_text_size, bgcolor=color.new(color.blue, 90))
table.cell(info_table, 1, 13, 'Volume ROC', text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 2, 13, str.tostring(vroc, '0.00'), text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 0, 14, '', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 1, 14, 'EOM', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 2, 14, str.tostring(eom_sma, '0.000'), text_color=color.red, text_size=table_text_size)
// Key Oscillators
table.cell(info_table, 0, 15, 'OSCILLATORS', text_color=color.purple, text_size=table_text_size, bgcolor=color.new(color.purple, 90))
table.cell(info_table, 1, 15, 'Awesome Osc', text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 2, 15, str.tostring(ao, '0.000'), text_color=color.blue, text_size=table_text_size)
table.cell(info_table, 0, 16, '', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 1, 16, 'Fisher Transform', text_color=color.red, text_size=table_text_size)
table.cell(info_table, 2, 16, str.tostring(fisher, '0.000'), text_color=color.red, text_size=table_text_size)
// Summary Statistics
table.cell(info_table, 0, 17, 'SUMMARY', text_color=color.black, text_size=table_text_size, bgcolor=color.new(color.gray, 70))
table.cell(info_table, 1, 17, 'Total Indicators: 52', text_color=color.black, text_size=table_text_size)
regime_color = rsi_centered > 10 ? color.green : rsi_centered < -10 ? color.red : color.gray
regime_text = rsi_centered > 10 ? "BULLISH" : rsi_centered < -10 ? "BEARISH" : "NEUTRAL"
table.cell(info_table, 2, 17, regime_text, text_color=regime_color, text_size=table_text_size)
This makes it the perfect “indicator backbone” for quantitative and systematic traders who want to prototype, combine, and test new regime detection models—especially in combination with the Markov Chain indicator.
How to use this script with the Markov Chain for research and backtesting:
Add the Enhanced Indicator Export to your chart.
Every calculated indicator is available as an individual data stream.
Connect the indicator(s) you want as custom input(s) to the Markov Chain’s “Custom Indicators” option.
In the Markov Chain indicator’s settings, turn ON the custom indicator mode.
For each of the three custom indicator inputs, select the exported plot from the Enhanced Export script—the menu lists all 45+ signals by name.
This creates a powerful, modular regime-detection engine where you can mix-and-match momentum, trend, volume, or custom combinations for advanced filtering.
Backtest regime logic directly.
Once you’ve connected your chosen indicators, the Markov Chain script performs regime detection (Bull/Neutral/Bear) based on your selected features—not just price returns.
The regime detection is robust, automatically normalized (using Z-score), and outputs bias (1, -1, 0) for plug-and-play integration.
Export the regime bias for programmatic use.
As described above, use input.source() in your Pine Script strategy or system and link the bias output.
You can now filter signals, control trade direction/size, or design pairs-trading that respect true, indicator-driven market regimes.
With this framework, you’re not limited to static or simplistic regime filters. You can rigorously define, test, and refine what “market regime” means for your strategies—using the technical features that matter most to you.
Optimize your signal generation by backtesting across a universe of meaningful indicator blends.
Enhance risk management with objective, real-time regime boundaries.
Accelerate your research: iterate quickly, swap indicator components, and see results with minimal code changes.
Automate multi-asset or pairs-trading by integrating regime context directly into strategy logic.
Add both scripts to your chart, connect your preferred features, and start investigating your best regime-based trades—entirely within the TradingView ecosystem.
References & Further Reading
Ang, A., & Bekaert, G. (2002). “Regime Switches in Interest Rates.” Journal of Business & Economic Statistics, 20(2), 163–182.
Hamilton, J. D. (1989). “A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle.” Econometrica, 57(2), 357–384.
Markov, A. A. (1906). "Extension of the Limit Theorems of Probability Theory to a Sum of Variables Connected in a Chain." The Notes of the Imperial Academy of Sciences of St. Petersburg.
Guidolin, M., & Timmermann, A. (2007). “Asset Allocation under Multivariate Regime Switching.” Journal of Economic Dynamics and Control, 31(11), 3503–3544.
Murphy, J. J. (1999). Technical Analysis of the Financial Markets. New York Institute of Finance.
Brock, W., Lakonishok, J., & LeBaron, B. (1992). “Simple Technical Trading Rules and the Stochastic Properties of Stock Returns.” Journal of Finance, 47(5), 1731–1764.
Zucchini, W., MacDonald, I. L., & Langrock, R. (2017). Hidden Markov Models for Time Series: An Introduction Using R (2nd ed.). Chapman and Hall/CRC.
On Quantitative Finance and Markov Models:
Lo, A. W., & Hasanhodzic, J. (2009). The Heretics of Finance: Conversations with Leading Practitioners of Technical Analysis. Bloomberg Press.
Patterson, S. (2016). The Man Who Solved the Market: How Jim Simons Launched the Quant Revolution. Penguin Press.
TradingView Pine Script Documentation: www.tradingview.com
TradingView Blog: “Use an Input From Another Indicator With Your Strategy” www.tradingview.com
GeeksforGeeks: “What is the Difference Between Markov Chains and Hidden Markov Models?” www.geeksforgeeks.org
What makes this indicator original and unique?
- On‑chart, real‑time Markov. The chain is drawn directly on your chart. You see the current regime, its tendency to stay (self‑loop), and the usual next step (arrows) as bars confirm.
- Source‑agnostic by design. The engine runs on any series you select via input.source() — price, your own oscillator, a composite score, anything you compute in the script.
- Automatic normalization + regime mapping. Different inputs live on different scales. The script standardizes your chosen source and maps it into clear regimes (e.g., Bull / Bear / Neutral) without you micromanaging thresholds each time.
- Rolling, bar‑by‑bar learning. Transition tendencies are computed from a rolling window of confirmed bars. What you see is exactly what the market did in that window.
- Fast experimentation. Switch the source, adjust the window, and the Markov view updates instantly. It’s a rapid way to test ideas and feel regime persistence/switch behavior.
Integrate your own signals (using input.source())
- In settings, choose the Source . This is powered by input.source() .
- Feed it price, an indicator you compute inside the script, or a custom composite series.
- The script will automatically normalize that series and process it through the Markov engine, mapping it to regimes and updating the on‑chart spheres/arrows in real time.
Credits:
Deep gratitude to @RicardoSantos for both the foundational Markov chain processing engine and inspiring open-source contributions, which made advanced probabilistic market modeling accessible to the TradingView community.
Special thanks to @Alien_Algorithms for the innovative and visually stunning 3D sphere logic that powers the indicator’s animated, regime-based visualization.
Disclaimer
This tool summarizes recent behavior. It is not financial advice and not a guarantee of future results.
ICT Smart Money Trading Suite [SwissAlgo]ICT/Smart Money Trading Suite - Technical Analysis Indicator
----------------------------------------------------------
OVERVIEW
The ICT/Smart Money Trading Suite is a technical analysis indicator that implements concepts from Inner Circle Trader (ICT) methodology and Smart Money Concepts (SMC).
ICT methodology was developed by Michael J. Huddleston (ICT) and focuses on understanding Institutional market behavior.
Smart Money Concepts builds upon these ideas to analyze how large Financial Institutions and/or Market Makers seem to operate in the markets.
This indicator combines multiple analytical tools into a single package for market structure analysis, imbalance detection, and the observation of institutional order flow.
----------------------------------------------------------
CORE COMPONENTS
Market Structure Analysis:
- External Structure : Major swing highs and lows that define broader price movement (these are the most significant structural points that institutions reference for their positioning and typically require substantial volume and momentum to break)
- Internal Structure : Shorter-term pivots showing micro-trend developments within the External Structure (these internal pivot highs and lows often represent areas where retail traders may be positioned on the wrong side of the market as they frequently form just before major structural breaks or trend continuations, creating liquidity that institutions can utilize)
- Structural Breakout Detection : Identification of structure breaks and potential trend changes ( 'Change of Character' which occurs when the External Structure shifts from bullish to bearish bias or vice-versa indicating a potential major trend reversal, and 'Break of Structure' which happens when price decisively takes out previous significant highs in a bearish trend or previous significant lows in a bullish trend confirming trend continuation or acceleration)
- EMA Cloud : Dynamic support and resistance zones with trend context (additional reference point)
Imbalance Zone Detection:
Fair Value Gaps (FVGs):
Price inefficiencies that occur between candles when sudden price moves create gaps in price delivery
Typically formed when the low of a bullish candle is higher than the high of the candle two periods prior, or when the high of a bearish candle is lower than the low of the candle two periods prior
These gaps represent areas where price moved too quickly without adequate two-way auction process
Institutions may return to fill these inefficiencies at a later time for proper price discovery
The theory suggests that all price ranges should eventually be traded through to complete the auction process
Gaps are automatically removed from the chart when price fully retraces back through the inefficient area
Order Blocks (OBs):
Specific candles that occur immediately before significant market moves and represent institutional decision points
Identified as the last opposing candle before a strong directional move (final bearish candle before major bullish move or final bullish candle before major bearish move)
These candles contain the orders and liquidity that institutions used as a foundation for their market manipulation
Represent areas where large institutional players positioned themselves to move the market significantly
Price may return to these levels to collect additional liquidity or test institutional resolve
The candle's full range (high to low) is considered the active zone where institutional interest may remain
Vector Candle Recovery:
Zones created by high-activity candles that demonstrate unusually large range and volume characteristics
These candles are interpreted as manipulative price pushes designed to hunt liquidity and trigger stop losses
Often used by institutions to induce retail traders into poor positions before reversing direction
Recovery zones represent the full range of these vector candles where price may retrace
The concept assumes that extreme moves often get partially retraced as the market corrects from artificial price displacement
Zones are invalidated when a significant portion of the vector candle range is retraced (typically 50% or more)
Support & Resistance:
Key price zones based on historical price reactions and pivot clustering analysis
Calculated through algorithmic identification of areas where price has repeatedly found buyers (support) or sellers (resistance)
Strength is determined by the number of times price has reacted from these levels and the volume of activity at these zones
Represent psychological and algorithmic reference points where institutional systems are likely to place orders
Create areas of increased probability for price reactions due to concentration of pending orders and decision-making activity
Zones are color-coded based on current price position: green for support (price above), red for resistance (price below), yellow for neutral (price within)
Liquidity Analysis:
- Liquidity Pools : Areas above or below key levels where stop orders may cluster
- Kill Zones : Time-based periods associated with increased market activity
- Daily/Weekly/Monthly Price Levels : Key institutional reference points (price highs/lows)
Vector Candles/Price Manipulation:
Advanced algorithm identifying statistically significant candles using volume delta analysis, range statistics, and persistence scoring.
----------------------------------------------------------
VISUAL INTERPRETATION - DETAILED GUIDE
MARKET STRUCTURE
External Structure (Thick Lines):
- Green thick lines: Major support levels (external lows) that define bullish structure
- Red thick lines: Major resistance levels (external highs) that define bearish structure
- These lines represent significant swing points that institutions may reference
- Lines extend from the swing point and update as the structure evolves
Internal Structure (Thin Lines):
- Green thin lines: Minor support levels showing internal market structure
- Red thin lines: Minor resistance levels showing internal market structure
- More frequent updates than external structure, showing micro-trend changes
Structure Markers:
- Small triangles with "H": External pivot highs (major resistance points)
- Small triangles with "L": External pivot lows (major support points)
- Small dots: Internal pivot points (minor structure without text)
- Markers appear with a 20-bar delay to confirm pivot validity
HIGHS/LOWS LEVELS
Daily Levels (Green Dashed Lines):
- Horizontal dashed lines marking the previous day's high and low
- Updates at the start of each new trading day
- Gradient effect shows historical importance (newer = more opaque)
- Acts as institutional reference points for intraday trading
Weekly Levels (White Dashed Lines):
- Horizontal dashed lines marking the previous week's high and low
- Updates at the start of each new trading week
- Typically more significant than daily levels for swing trading
- Often respected by institutional algorithms
Monthly Levels (Orange Dashed Lines):
- Horizontal dashed lines marking the previous month's high and low
- Updates at the start of each new trading month
- Highest significance levels for long-term institutional positioning
- Major psychological and algorithmic reference points
VECTOR CANDLES
Candle Body Coloring System:
- Lime Green Bodies: Ultra-bullish vector candles (Z-score ≥ 3.0)
- Blue Bodies: Abnormal bullish vector candles (Z-score 2.0-2.99)
- Bright Red Bodies: Ultra-bearish vector candles (Z-score ≥ 3.0)
- Purple Bodies: Abnormal bearish vector candles (Z-score 2.0-2.99)
- Faded Green/Red: Normal market activity candles
Vector Identification Criteria:
- Statistical significance based on range and volume delta
- Persistence scoring (how much directional pressure remained)
- ATR-based absolute detection (candles >2x ATR automatically qualify)
- These candles often precede significant market moves or reversals
EMA CLOUD
Purple Cloud Visualization:
- Central line: 50-period EMA (blue line)
- Upper boundary: EMA + dynamic standard deviation band
- Lower boundary: EMA - dynamic standard deviation band
- Cloud fill: Purple semi-transparent area between boundaries
Interpretation:
- Price above cloud: Bullish bias context
- Price below cloud: Bearish bias context
- Price within cloud: Neutral/transitional zone
- Cloud thickness adapts to market volatility automatically
KILL ZONES
Background Highlighting:
- Yellow background tint during active kill zone periods
- London Session: 08:00-11:00 (UTC+1 time)
- NY Open: 13:00-16:00 (UTC+1 time)
- NY Close: 19:00-21:00 (UTC+1 time)
- Times automatically adjust to the chart timezone
Purpose:
- Highlights periods of typically increased institutional activity
- Times when liquidity hunting and manipulation often occur
- Periods when significant directional moves frequently begin
IMBALANCE ZONES - DETAILED BREAKDOWN
Fair Value Gaps (FVGs):
- Green boxes: Bullish FVGs (gap between bear candle high and bull candle low)
- Red boxes: Bearish FVGs (gap between bull candle high and bear candle low)
- Gray dotted lines: Midpoint of each gap (50% retracement level)
- Text label: "Fair Value Gap" in top-right corner
- Auto-removal: Boxes disappear when the price fills the gap
Order Blocks (OBs):
- Green boxes: Bullish order blocks (demand zones from the last bear candle before bullish vector)
- Red boxes: Bearish order blocks (supply zones from the last bull candle before the bearish vector)
- Gray dotted lines: Midpoint of each order block
- Text label: "OB" in top-right corner
- Invalidation: Boxes removed when price breaks below (bull OB) or above (bear OB)
Vector Candles Recovery Zones:
- Green boxes: Recovery zones after bullish vector candles
- Red boxes: Recovery zones after bearish vector candles
- Gray dotted lines: Midpoint of the vector candle range
- Text label: "Vector Recovery" on the right side
- These mark the full range of significant vector candles where retracements may occur
Support & Resistance Zones:
- Green boxes: Support zones (price currently above the zone)
- Red boxes: Resistance zones (price currently below the zone)
- Yellow boxes: Neutral zones (price within the zone)
- Text labels: "Support", "Resistance", or "Support/Resistance"
- Based on historical pivot clustering and strength analysis
Liquidity Pools:
- Green boxes: Bullish liquidity pools (below recent lows where buy stops cluster)
- Red boxes: Bearish liquidity pools (above recent highs where sell stops cluster)
- Gray dotted lines: Key liquidity level within the pool
- Text label: "Liquidity Pool" on the right side
- Zones where institutional players may hunt stop losses before reversing
----------------------------------------------------------
CALCULATION METHODOLOGY
Vector Candle Algorithm:
- Statistical Analysis using 48-bar lookback period
- Z-score thresholds: 2.0 (abnormal), 3.0 (ultra)
- ATR-based significance filtering
- Volume Delta Integration with lower timeframe analysis
- Persistence scoring based on directional pressure sustainability
- Combined scoring system (delta + range)
- Absolute Vector Detection for candles exceeding 2x ATR
Market Structure Parameters:
- Swing Size: 20-period pivot detection
- Breakout Threshold: 3 consecutive breaks for structure confirmation
- EMA Length: 50-period with dynamic cloud sizing
Fair Value Gap Detection:
- Auto Threshold: Dynamic gap sizing based on asset volatility
- Manual Threshold: User-defined minimum gap percentage
- Mitigation Logic: Automatic removal when price fills gaps
----------------------------------------------------------
TARGET USERS
This indicator is designed for traders who:
- Study Inner Circle Trader concepts
- Apply Smart Money Concepts in their analysis
- Focus on market structure and institutional behavior
- Seek confluence-based trading approaches
- Use higher timeframe bias for decision making
Experience Level: Intermediate to Advanced
Requires understanding of market structure concepts and institutional trading theory.
Recommended Timeframes:
- Analysis: 4H, Daily for market structure context
- Execution: 1H, 15min for entry timing
- Lower timeframes: With higher timeframe alignment
----------------------------------------------------------
CUSTOMIZATION OPTIONS
Display Controls:
- Master toggle for all imbalance zones
- Individual controls for each concept type
- Market structure line visibility
- Kill zone highlighting
- EMA cloud display
Visual Settings:
- Automatic light/dark mode color adaptation
- Adjustable zone transparency levels
- Extension distance controls
- Descriptive text labels
Technical Parameters:
- Vector candle sensitivity thresholds
- Historical analysis lookback periods
- Maximum zone display limits
- Zone invalidation conditions
----------------------------------------------------------
EDUCATIONAL BACKGROUND
Inner Circle Trader (ICT): A trading methodology developed by Michael J. Huddleston that focuses on understanding how institutional traders and market makers operate. The approach emphasizes market structure, liquidity concepts, and timing based on institutional behavior patterns.
Smart Money Concepts (SMC): An evolution of ICT principles that analyzes how large financial institutions move markets. These concepts include order blocks, fair value gaps, liquidity hunting, and market structure shifts.
Both methodologies are based on the premise that understanding institutional trading behavior can provide insights into market direction and timing.
----------------------------------------------------------
IMPORTANT DISCLAIMERS
This indicator is provided for educational and analytical purposes only. It is not financial advice and does not guarantee trading results.
Trading involves substantial risk of loss. Past performance does not indicate future results. Users should thoroughly understand the underlying concepts before applying them to live trading.
The effectiveness of these analytical methods may vary across different market conditions, timeframes, and instruments. Proper risk management and additional analysis are essential.
This indicator is a tool for market analysis, not a complete trading system. Success requires understanding of market principles, risk management, and continuous learning.
Always test analytical approaches thoroughly using historical data and demo accounts before implementing with real capital.
10x HTF Candles Dynamic with LTF FVG and Key LevelsPurpose
The 10x HTF Candles Dynamic Pine Script is a versatile, all-in-one trading tool designed for TradingView to empower traders with actionable insights across multiple timeframes. It combines advanced price action analysis, Fair Value Gap (FVG) detection, market structure evaluation, and key level visualization into a single, highly customizable interface. Built for day traders, swing traders, and scalpers, this script enhances decision-making by providing a clear, multi-dimensional view of market dynamics, liquidity zones, and trend biases. Its purpose is to streamline technical analysis, reduce chart clutter, and deliver real-time, visually intuitive data to support precise trading strategies.
What the Script Does
How the Script Works:
The script leverages Pine Script v5’s advanced features to deliver a robust and efficient trading tool. Below is a step-by-step explanation of its functionality:
1. Initialization and Configuration:
- Initializes with @version=5, enabling dynamic requests, and sets limits for bars (500), lines, labels, boxes, and polylines to manage resources.
- Defines user inputs for candle settings, timeframe selection, FVG parameters, DWM levels, market structure table, and visual preferences.
- Dynamically calculates 10 higher timeframes based on the current chart timeframe (e.g., 1m chart → 5m, 15m, 60m, etc.) or allows custom timeframes.
2. Data Acquisition:
- Fetches OHLC data for up to 10 timeframes using request.security, storing it in optimized TfData objects (arrays for open, high, low, close).
- Loops through enabled timeframes to minimize redundant code, improving processing speed.
3. Candlestick Rendering:
- Draws HTF candlesticks at user-defined offsets, with customizable bullish/bearish colors, wick colors, and widths.
- Calculates bar types (Inside, Normal, Outside) and optionally labels them above candles for pattern analysis.
4. FVG Detection and Visualization:
- Scans for FVGs by comparing candle highs and lows across three bars (e.g., low of candle 1 > high of candle 3 for bullish FVG).
- Detects IFVGs based on user-selected methods (wick, close, or midpoint) and highlights them with distinct colors.
- Draws FVG boxes with configurable borders, midpoint lines, and labels, tracking mitigation status.
- Limits FVG display to a user-defined maximum (1–200) to maintain chart clarity.
5. Horizontal Levels and DWM Lines:
- Computes Highs, Lows, Midpoints, and Quarter Points for each timeframe, drawing lines with customizable styles and extensions.
- Plots DWM open, close, high, low, and control point lines, with optional alerts for high/low breaks.
- Supports session-based opening price lines (e.g., 09:30 Market Open) with similar customization.
6. Market Structure and Bias:
Calculates trend bias by comparing the current close to the midpoint of the timeframe’s range (highest high to lowest low).
Updates a market structure table with timeframe, bias, and premium/discount status, using color-coded cells for quick interpretation.
7. Countdown Timers:
- Converts timeframe strings to seconds and calculates the time remaining until the next candle using timenow.
- Renders countdown labels with timeframe names (e.g., “1h\n(00:45)”) at user-defined positions.
8. Optimization and Cleanup:
- Uses VisualElements UDTs to manage lines, wicks, and labels, reducing memory usage.
- Deletes outdated drawings when limits are exceeded, ensuring a clean and responsive chart.
- Employs loops and arrays to streamline repetitive tasks, enhancing performance.
How to Use the Script:
This script is user-friendly yet powerful, suitable for traders of all experience levels. Follow these steps to maximize its potential:
1. Add to TradingView:
- Copy the script into TradingView’s Pine Editor.
- Click “Add to Chart” to apply it to your active chart.
2. Customize Settings:
- Candle Settings: Adjust the number of candles (1–10), starting position, group spacing, bullish/bearish colors, wick colors, and candle width.
- Timeframe Settings: Enable/disable up to 10 timeframes, choosing dynamic (auto-selected) or custom timeframes (e.g., 3m, 60m, D).
- FVG Settings: Toggle FVG detection, set detection methods (wick/close/midpoint), adjust thresholds, and customize colors, borders, and midpoint lines.
- DWM Settings: Enable daily/weekly/monthly lines (open, close, high, low, midpoint), set colors, and configure alerts for high/low breaks.
- Market Structure Table: Show/hide columns for timeframe, trend bias, and premium/discount, and adjust table position (top-left, bottom-right, etc.).
- Countdown Timers: Enable timers, adjust offsets, and customize text/background colors.
- Label Settings: Configure price label precision, transparency, and offsets for clarity.
3.Interpret Visuals:
- Candlesticks: Analyze HTF candles to gauge trend direction and momentum across timeframes.
- FVGs: Look for unmitigated FVGs (colored boxes) as potential support/resistance zones or trade setups.
- Key Levels: Use Highs, Lows, Midpoints, and Quarter Points to identify breakout or reversal areas.
4. Market Structure Table: Check trend bias and premium/discount status to align trades with market conditions.
- DWM Lines: Monitor daily/weekly/monthly levels for institutional reference points.
- Countdown Timers: Time entries/exits based on upcoming candle formations.
5. Integrate with Strategy:
- Combine script insights with your trading plan (e.g., use FVGs for entries, key levels for stops/targets).
- Set alerts for high/low breaks or liquidity zone approaches to stay proactive.
- Export table data or screenshot visuals for documentation and analysis.
6. Optimize Performance:
Limit the number of candles, FVGs, and lines to match your device’s capabilities.
Regularly review settings to focus on the most relevant timeframes and features.
Why the Script is Original
The 10x HTF Candles Dynamic script stands out in the TradingView community due to its innovative design, comprehensive functionality, and trader-centric approach. Here’s what makes it unique:
1. Seamless Multi-Timeframe Integration:
- Unlike single-timeframe indicators, this script synthesizes data from up to 10 timeframes, offering a holistic view of market structure.
- Dynamic timeframe selection adapts to the chart’s timeframe, ensuring relevance across all trading styles.
2 . Advanced FVG and IFVG Detection:
- Provides granular control over FVG detection with three IFVG methods (wick, close, midpoint), a rarity in most scripts.
- Tracks mitigation status and highlights unmitigated FVGs, enabling traders to capitalize on high-probability setups.
- Visualizes FVGs with boxes, midpoint lines, and labels, enhancing clarity and usability.
3. Sophisticated Market Structure Analysis:
-The bias calculation, introduced in recent updates (2 days ago), uses a robust algorithm to assess trend direction based on range midpoints.
- The market structure table, with premium/discount zones (added 20 hours ago), offers a unique summary of market conditions, unmatched by standard indicators.
4. Comprehensive DWM and Session Support:
- Integrates daily, weekly, and monthly levels alongside session-based opening prices, catering to institutional and retail traders alike.
- Customizable alerts for high/low breaks add actionable functionality.
5. Visual Hierarchy and Clarity:
- Scales line widths and transparency by timeframe, prioritizing higher timeframes for strategic focus.
- Countdown timers provide real-time context, a feature rarely seen in multi-timeframe scripts.
6.Performance Optimization:
- Recent updates introduced loops and UDTs to reduce code redundancy and boost processing speed.
- Automated cleanup mechanisms prevent chart clutter, ensuring smooth operation even on low-resource devices.
7. High Customizability:
- Offers extensive settings for visuals, timeframes, FVGs, DWM lines, and alerts, accommodating diverse trading preferences.
- Balances complexity with accessibility, making it approachable for beginners and powerful for advanced users.
8.Continuous Evolution:
- Regular updates (e.g., bias filter table, premium/discount feature, code optimization) demonstrate ongoing commitment to improvement.
- Closed-source protection (noted 20 hours ago) ensures intellectual integrity while allowing free use, fostering trust in the TradingView community.
Conclusion
The 10x HTF Candles Dynamic Pine Script is a groundbreaking tool that redefines multi-timeframe analysis on TradingView. By combining candlestick visualization, FVG detection, market structure insights, DWM levels, and countdown timers, it provides traders with a comprehensive, real-time view of market dynamics. Its advanced optimization, customization options, and continuous updates make it a standout choice for traders seeking precision, clarity, and efficiency. Whether you’re scalping intraday moves or swing trading weekly trends, this script equips you with the tools to master the markets with confidence.
[GetSparx] Lacuna Pro⚡ Lacuna Pro – Institutional Liquidity Framework
This indicator is a premium Smart Money Concepts (SMC) trading toolkit designed to help traders identify high-probability entry and exit zones by visualizing real-time market inefficiencies. It combines Fair Value Gaps (FVGs), Break of Structure (BOS), Change of Character (CHoCH), and Supply & Demand Zones into a unified, configurable framework.
Unlike many public indicators that simply "overlay concepts", this indicator implements strict internal validation to filter out noise and provide only institutional-grade levels — making it a valuable execution layer for SMC-based strategies.
🧠 What the Script Does – and Why the Combination Matters
This is more than just a combination of known SMC tools — it's a complete workflow assistant:
-FVGs highlight where liquidity is likely resting due to institutional imbalance.
-BOS & CHoCH define structural context: whether the market is trending or shifting.
-Supply & Demand Zones show where institutions are likely to react.
-Each component works together to create a layered confluence system:
-FVG inside a Demand Zone after a Bullish CHoCH → High-probability Long Setup
-Bearish BOS into a Supply Zone + fresh Bearish FVG → High-probability Short Setup
📘 Core Concepts Explained
Fair Value Gap (FVG)
FVGs occur when price moves with strong momentum and leaves a gap between candles — suggesting inefficiency. Bullish FVGs lie below price; bearish ones above. Price often returns to these levels before continuing.
An FVG is detected when a three-candle sequence reveals a price imbalance:
- Bullish : Candle 2’s low is higher than Candle 1’s high
- Bearish : Candle 2’s high is lower than Candle 1’s low
These setups indicate a sudden burst of institutional momentum, often causing price to revisit the gap for rebalancing.
Break of Structure (BOS)
A BOS signals trend continuation when price breaks the previous swing high or low in the direction of the current trend.
The script uses a 3-bar pivot system to detect local swing highs and lows — a swing high forms when the highest candle is flanked by two lower highs on each side (and vice versa for swing lows).
A BOS is confirmed when price closes beyond the most recent swing point in alignment with the current trend direction.
Change of Character (CHoCH)
A CHoCH signals a potential trend reversal by breaking a structure level in the opposite direction of the prevailing trend.
It is detected when price breaks the most recent opposing swing and simultaneously flips the internal trend state.
CHoCH events always take precedence over BOS to avoid conflicting signals.
The internal trend engine ensures that these structural shifts are valid and not caused by random volatility.
Supply & Demand Zones
These zones mark institutional interest and are formed using precise price action rules — not arbitrary support/resistance.
A valid zone begins when a small-bodied base candle (such as a star or doji) appears at a local swing point. This candle must be followed by a strong impulse candle — either a bullish engulfing (for demand) or bearish breakout (for supply).
- Demand Zone : From the base candle's low to the impulse candle's high
- Supply Zone : From the base candle's high to the impulse candle's low
These zones represent likely institutional entries or exits, often acting as magnets or rejection areas. Once price decisively breaks through a zone, it is automatically removed — keeping the chart clean and relevant.
Zone Detection Logic – When a Zone Is Drawn or Skipped
Below are the precise rules used to determine whether a Supply or Demand Zone is valid and shown on the chart
A Supply or Demand Zone is only drawn if all of the following conditions are met:
-A small-bodied base candle forms at a local high or low (body size below threshold)
-The base candle is followed by a strong impulse candle (engulfing or breakout)
-The impulse direction matches the expected context (e.g., bearish impulse from swing high = Supply)
-The candle wicks do not invalidate the structure (e.g., no long opposing wick that retraces the move)
-The zone meets the minimum size threshold based on % or ATR filter
If any of these criteria are not satisfied, the zone is skipped to avoid false or weak levels.
This ensures only clean, institutional-grade Supply & Demand Zones are shown on the chart.
(e.g. small-bodied star + bullish engulfing at swing low = Demand Zone, or bearish breakout at swing high = Supply Zone).
🔍 Core Functionality & Original Features
1. 📉 Fair Value Gaps (FVGs) – Dynamic, Validated, and Clean
Unlike scripts that draw every gap, this script applies strict quality control to ensure only meaningful FVGs appear:
Minimum Threshold Filtering
Filters out small or noisy gaps by requiring each FVG to exceed a % or ATR-based size threshold. Prevents micro-gap clutter on lower timeframes.
Momentum Candle Verification
Requires a strong middle candle (candle 2) between two extremes. Large opposing wicks invalidate the setup.
Partial Fill Adjustment
When price partially fills a gap, the FVG box automatically shrinks to show only the remaining imbalance. If fully filled, the box is removed.
Multi-Timeframe Overlays
View institutional gaps from 15m, 1H, 4H, or Daily overlaid onto any chart for top-down analysis and entry refinement.
2. 🧱 Structural Shifts – BOS & CHoCH
Structural logic is built around pivot detection with real-time trend state awareness:
Pivot Logic (Customizable Strength)
Local highs/lows are detected using pivot length (default: 3 bars left/right). Breaks are only confirmed if they align with the internal trend state.
BOS = Continuation
Breaks a swing in trend direction (e.g., HL → HH → BOS at previous HH)
CHoCH = Reversal
Breaks a structure against trend (e.g., HH → HL → break of HL = Bearish CHoCH)
Conflict Resolution
If both BOS and CHoCH could trigger, CHoCH takes priority. This avoids false positives and ensures a single, clear structure signal per swing.
Styling & Visibility
All structure lines and labels are customizable — colors, line style (solid/dashed), and which signals to display (BOS/CHoCH/both).
3. 🧠 Supply & Demand Zones – Smart Detection & Maintenance
These zones are generated using strict price action logic, not arbitrary support/resistance lines:
-Formation Conditions
-Small-bodied "base candle" at a local high/low
-Followed by an impulse candle (bullish/bearish engulfing or breakout)
-Zone Bounds
- Demand : From base candle low to impulse high
- Supply : From base candle high to impulse low
Automatic Cleanup
Once price decisively pierces a zone, it’s automatically removed from the chart. This keeps the display relevant and clutter-free.
Multi-Timeframe Zones
Toggle zones from your current timeframe or overlay from 1H, 4H, and Daily — ideal for confluence stacking.
Zone Compression Filtering
Optional compression % ensures overlapping zones are combined logically to reduce redundancy.
🧩 How It Works Together – Practical Usage Flow
This indicator is designed to follow a structured workflow used by institutional-style traders:
Trend Structure
Identify trend using BOS and CHoCH on your timeframe.
Liquidity Zones
Look for supply/demand zones aligning with the structural bias.
Execution Areas
Wait for an unfilled FVG in confluence with the above conditions.
📸 Screenshot Captions
Screenshot 1: CHoCH + Demand Zone + Bullish FVG
📌 Reversal Setup with Confluence
A Bullish CHoCH confirms a structural shift. Price enters a Demand Zone and reacts from an unfilled Bullish FVG, creating a high-probability long opportunity.
Screenshot 2: Bearish BOS + FVG Fill
📌 Trend Continuation Confirmation
Price breaks a swing low, triggering a Bearish BOS. A Bearish FVG forms and price returns to fill it before continuing lower — validating the trend and the gap.
Screenshot 3: Multi-Timeframe Overlay (FVGs from 1H and 4H)
📌 Top-Down Liquidity Mapping
Overlaid 1H and 4H FVGs provide institutional-level insight on lower timeframes. Combined with structure signals, this supports precise entry alignment across timeframes.
As price partially fills a bullish gap, the FVG box auto-adjusts to show only the remaining imbalance. Fully filled zones are automatically removed, keeping the chart clean.
Screenshot 4: Supply Zone Rejection
📌 Institutional Supply in Action
Price enters a Supply Zone formed from a base candle + bearish impulse. A sharp rejection confirms active sell-side interest at this level. Zone opgevuld box verdwijnt
Screenshot 5: Bullish BOS + Internal Trend Logic
📌 Trend Continuation with Structure Awareness
A Higher Low forms, followed by a Higher High, triggering a Bullish BOS. The internal trend engine confirms direction and filters false reversals.
Screenshot 6: Zone Compression Logic
📌 Smart Zone Consolidation
Closely overlapping supply zones are merged using compression logic to prevent clutter. Only the strongest institutional levels remain visible.
⚙ Full Customization Panel
You can configure:
-FVG display per timeframe + color scheme
-BOS/CHoCH styling, label text, and detection toggles
-Zone settings: visibility, compression %, length
-Auto-cleanup behavior for FVGs and zones
🔐 Why Invite-Only?
This indicator contains original logic not available in public indicators, including:
-Momentum-candle verified FVGs
-Real-time partial fill trimming
-Auto-removal of invalidated structure/zones
-Conflict-aware BOS/CHoCH logic
-Multi-timeframe overlays with internal state tracking
-Proprietary compression-based zone filtering
This script is part of a private paid offering. It is not based on reused or repackaged educational code. The logic and structure management are exclusive to this implementation.
⚠ Disclaimer
This tool is for educational and analytical use only. It does not provide financial advice or trading signals. Always use proper risk management and do your own due diligence.
Enigma Sniper 369The "Enigma Sniper 369" is a custom-built Pine Script indicator designed for TradingView, tailored specifically for forex traders seeking high-probability entries during high-volatility market sessions.
Unlike generic trend-following or scalping tools, this indicator uniquely combines session-based "kill zones" (London and US sessions), momentum-based candle analysis, and an optional EMA trend filter to pinpoint liquidity grabs and reversal opportunities.
Its originality lies in its focus on liquidity hunting—identifying levels where stop losses are likely clustered (around swing highs/lows and wick midpoints)—and providing visual entry zones that are dynamically removed once price breaches them, reducing clutter and focusing on actionable signals.
The name "369" reflects the structured approach of three key components (session timing, candle logic, and trend filter) working in harmony to snipe precise entries.
What It Does
"Enigma Sniper 369" identifies potential buy and sell opportunities by drawing two types of horizontal lines on the chart during user-defined London and US
session kill zones:
Solid Lines: Mark the swing low (for buys) or swing high (for sells) of a trigger candle, indicating a potential entry point where stop losses might be clustered.
Dotted Lines: Mark the 50% level of the candle’s wick (lower wick for buys, upper wick for sells), serving as a secondary confirmation zone for entries or tighter stop-loss placement.
These lines are plotted only when specific candle conditions are met within the kill zones, and they are automatically deleted once the price crosses them, signaling that the liquidity at that level has likely been grabbed. The indicator also includes an optional EMA filter to ensure trades align with the broader trend, reducing false signals in choppy markets.
How It Works
The indicator’s logic is built on a multi-layered approach:
Kill Zone Timing: Trades are only considered during user-defined London and US session hours (e.g., London from 02:00 to 12:00 UTC, as seen in the screenshots). These sessions are known for high volatility and liquidity, making them ideal for capturing institutional moves.
Candle-Based Momentum Logic:
Buy Signal: A candle must close above its midpoint (indicating bullish momentum) and have a lower low than the previous candle (suggesting a potential liquidity grab below the previous swing low). This is expressed as close > (high + low) / 2 and low < low .
Sell Signal: A candle must close below its midpoint (bearish momentum) and have a higher high than the previous candle (indicating a potential liquidity grab above the previous swing high), expressed as close < (high + low) / 2 and high > high .
These conditions ensure the indicator targets candles that break recent structure to hunt stop losses while showing directional momentum.
Optional EMA Filter: A 50-period EMA (customizable) can be enabled to filter signals based on trend direction.
Buy signals are only generated if the EMA is trending upward (ema_value > ema_value ), and sell signals require a downward EMA trend (ema_value < ema_value ). This reduces noise by aligning entries with the broader market trend.
Liquidity Levels and Deletion Logic:
For a buy signal, a solid green line is drawn at the candle’s low, and a dotted green line at the 50% level of the lower wick (from the candle body’s bottom to the low).
For a sell signal, a solid red line is drawn at the candle’s high, and a dotted red line at the 50% level of the upper wick (from the body’s top to the high).
These lines extend to the right until the price crosses them, at which point they are deleted, indicating the liquidity at that level has been taken (e.g., stop losses triggered).
Alerts: The indicator includes alert conditions for buy and sell signals, notifying traders when a new setup is identified.
Underlying Concepts
The indicator is grounded in the concept of liquidity hunting, a strategy often employed by institutional traders. Markets frequently move to levels where stop losses are clustered—typically just beyond swing highs or lows—before reversing in the opposite direction. The "Enigma Sniper 369" targets these moves by identifying candles that break structure (e.g., a lower low or higher high) during high-volatility sessions, suggesting a potential sweep of stop losses. The 50% wick level acts as a secondary confirmation, as this midpoint often represents a zone where tighter stop losses are placed by retail traders. The optional EMA filter adds a trend-following element, ensuring entries are taken in the direction of the broader market momentum, which is particularly useful on lower timeframes like the 15-minute chart shown in the screenshots.
How to Use It
Here’s a step-by-step guide based on the provided usage example on the GBP/USD 15-minute chart:
Setup the Indicator: Add "Enigma Sniper 369" to your TradingView chart. Adjust the London and US session hours to match your timezone (e.g., London from 02:00 to 12:00 UTC, US from 13:00 to 22:00 UTC). Customize the EMA period (default 50) and line styles/colors if desired.
Identify Kill Zones: The indicator highlights the London session in light green and the US session in light purple, as seen in the screenshots. Focus on these periods for signals, as they are the most volatile and likely to produce liquidity grabs.
Wait for a Signal: Look for solid and dotted lines to appear during the kill zones:
Buy Setup: A solid green line at the swing low and a dotted green line at the 50% lower wick level indicate a potential buy. This suggests the market may have grabbed liquidity below the swing low and is now poised to move higher.
Sell Setup: A solid red line at the swing high and a dotted red line at the 50% upper wick level indicate a potential sell, suggesting liquidity was taken above the swing high.
Place Your Trade:
For a buy, set a buy limit order at the dotted green line (50% wick level), as this is a more conservative entry point. Place your stop loss just below the solid green line (swing low) to cover the full swing. For example, in the screenshots, the market retraces to the dotted line at 1.32980 after a liquidity grab below the swing low, triggering a buy limit order.
For a sell, set a sell limit order at the dotted red line, with a stop loss just above the solid red line.
Monitor Price Action: Once the price crosses a line, it is deleted, indicating the liquidity at that level has been taken. In the screenshots, after the buy limit is triggered, the market moves higher, confirming the setup. The caption notes, “The market returns and tags us in long with a buy limit,” highlighting this retracement strategy.
Additional Context: Use the indicator to identify liquidity levels that may be targeted later. For example, the screenshot notes, “If a new session is about to open I will wait for the grab liquidity to go long,” showing how the indicator can be used to anticipate future moves at session opens (e.g., London open at 1.32980).
Risk Management: Always set a stop loss below the swing low (for buys) or above the swing high (for sells) to protect against adverse moves. The 50% wick level helps tighten entries, improving the risk-reward ratio.
Practical Example
On the GBP/USD 15-minute chart, during the London session (02:00 UTC), the indicator identifies a buy setup with a solid green line at 1.32901 (swing low) and a dotted green line at 1.32980 (50% wick level). The market initially dips below the swing low, grabbing liquidity, then retraces to the dotted line, triggering a buy limit order. The price subsequently rises to 1.33404, yielding a profitable trade. The user notes, “The logic is in the last candle it provides new level to go long,” emphasizing the indicator’s ability to identify fresh levels after a liquidity sweep.
Customization Tips
Adjust the EMA period to suit your timeframe (e.g., a shorter period like 20 for faster signals on lower timeframes).
Modify the session hours to align with your broker’s timezone or specific market conditions.
Use the alert feature to get notified of new setups without constantly monitoring the chart.
Why It’s Useful for Traders
The "Enigma Sniper 369" stands out by combining session timing, momentum-based candle analysis, and liquidity hunting into a single tool. It provides clear, actionable levels for entries and stop losses, removes invalid signals dynamically, and aligns trades with high-probability market conditions. Whether you’re a scalper looking for quick moves during London open or a swing trader targeting session-based reversals, this indicator offers a structured, data-driven approach to trading.
3 Period EMA Cloud [deepakks444]3 Period EMA Cloud Indicator
The 3EMA Cloud Indicator uses three key EMAs to capture trends and display the market's direction through a color-coded cloud. The EMAs used in this indicator are:
High EMA: The EMA of the high prices over a specified period.
Low EMA: The EMA of the low prices over a specified period.
Additional EMA: An extra EMA, typically based on the close prices, that serves as an independent confirmation tool for trend direction.
Indicator Logic and Cloud Visualization:
The cloud is drawn between the high EMA and the low EMA, and its color changes based on the price's relationship to the high EMA, low EMA, and additional EMA.
Cloud Color:
Green Cloud: When the price is above both the high EMA and the low EMA, it signals a bullish trend, and the cloud turns green.
Additionally, if the close price is above the Additional EMA, this further confirms the bullish trend.
Red Cloud: When the price is below both the high EMA and the low EMA, it signals a bearish trend, and the cloud turns red.
Additionally, if the close price is below the Additional EMA, this further confirms the bearish trend.
How the Indicator Captures Trends:
Bullish Market:
Price above both high EMA and low EMA: This indicates that the market is in an uptrend, and the cloud will turn green.
Confirmation with Additional EMA: When the close price is above the Additional EMA, this reinforces the bullish market sentiment.
The green cloud is the visual confirmation of a bullish trend, guiding traders to consider long positions.
Bearish Market:
Price below both high EMA and low EMA: This indicates that the market is in a downtrend, and the cloud will turn red.
Confirmation with Additional EMA: When the close price is below the Additional EMA, this confirms the bearish trend.
The red cloud is the visual confirmation of a bearish trend, guiding traders to consider short positions.
Key Components:
High EMA: Calculates the EMA based on high prices, which helps to determine the upper boundary of the cloud.
Low EMA: Calculates the EMA based on low prices, which helps to determine the lower boundary of the cloud.
Additional EMA: An extra EMA (often of the close prices) that acts as an independent trend confirmation. This is used to validate the market direction and filter out potential false signals.
Use Cases for the 3EMA Cloud:
Trend Identification:
The cloud helps to visually identify the prevailing trend. A green cloud suggests a bullish trend, while a red cloud indicates a bearish trend.
Confirmation Tool:
The Additional EMA serves as an additional confirmation tool. A close price above the Additional EMA signals a strong bullish trend, while a close below it signals a strong bearish trend.
Market Reversals:
When the price moves from above both the high EMA and low EMA to below them (or vice versa), this could indicate a trend reversal. Pay attention to cloud color changes and the movement of the close price relative to the Additional EMA for potential reversal signals.
Entry and Exit Signals:
Long Entry (Buy Signal):
Price is above both the high EMA and low EMA, confirming a bullish trend.
Close price is above the Additional EMA, confirming the bullish trend.
Enter a long position when the cloud turns green and the confirmation by the Additional EMA is in place.
Short Entry (Sell Signal):
Price is below both the high EMA and low EMA, confirming a bearish trend.
Close price is below the Additional EMA, confirming the bearish trend.
Enter a short position when the cloud turns red and the confirmation by the Additional EMA is in place.
Exit Signal:
Exit Long Position when the price moves below both the high EMA and low EMA (signaling a potential trend reversal), or if the close price falls below the Additional EMA.
Exit Short Position when the price moves above both the high EMA and low EMA (signaling a potential trend reversal), or if the close price rises above the Additional EMA.
How This Indicator Improves Trend Following:
The 3EMA Cloud indicator enhances trend-following strategies by:
Visual Clarity: The color-coded cloud provides immediate visual feedback on whether the market is in a bullish or bearish phase.
Price Confirmation: The indicator uses the relationship of price to three EMAs (high, low, and additional) to confirm trend strength, which can help reduce false signals.
Flexibility: The Additional EMA adds flexibility by serving as an independent confirmation tool for trend direction, ensuring that you don’t enter trades based on weak or choppy market conditions.
This 3EMA Cloud indicator is designed to help traders follow and confirm trends with precision, improving their ability to identify strong market movements and avoid getting caught in sideways or choppy conditions. It provides a clear visual cue for potential buy and sell opportunities based on price relative to multiple EMAs, ensuring that trend-following strategies are robust and effective.
Disclaimer:
This script and its associated indicators are for educational purposes only. The information provided does not constitute financial advice or a recommendation to buy or sell any financial instruments. Users are advised to conduct their own research and consult with a professional financial advisor before making any trading decisions. Trading and investing involve risk, and users should be aware of the risks involved in financial markets.
Time Based StatisticsThis indicator is a complex time-based statistics tool for analyzing intraday trading patterns. Here's a comprehensive breakdown:
1. **Session Management**
- Tracks trading sessions from 18:00 to 16:59 next day (using New York time)
- Separates analysis by weekdays (Monday through Friday)
- Resets statistics at week's end
2. **High/Low Time Tracking**
- Records when daily highs and lows occur for each day
- Maintains historical arrays of high/low times for pattern analysis
- Tracks high/low patterns in three main time periods:
- Evening/Overnight (18:00-23:59)
- Early Morning (00:00-09:59)
- Market Hours (10:00-16:59)
3. **Probability Calculations**
The indicator calculates several probabilities:
a) **Hold Probability**
- Calculates likelihood current high/low will remain day's high/low
- Counts how many historical highs/lows occurred in remaining hours
- Returns percentage based on historical patterns
b) **Most Frequent Times**
- Identifies which times most frequently produce highs/lows
- Tracks both primary and secondary (next highest) probable times
- Maintains historical counts of highs/lows by hour
4. **Pattern Analysis**
- Filters historical times based on current time
- Helps predict potential future high/low times
- Adjusts analysis based on time of day
5. **Data Display**
Shows statistics in a table including:
- Days of data analyzed
- Current day's high/low times
- Most frequent times for today's highs/lows
- Probability of current high/low holding
- Historical patterns for current hour
6. **Historical Data Management**
- Stores daily high/low data at week's end
- Maintains separate arrays for each day of the week
- Uses this historical data for pattern analysis
The indicator helps traders by:
- Understanding when highs/lows typically occur
- Assessing probability of new highs/lows
- Identifying historically significant time periods
- Providing statistical basis for timing decisions
IBD Market School [tradeviZion]IBD Market School Indicator: User Guide and Settings Reference
A comprehensive guide to configuring and using the IBD Market School indicator for TradingView
Introduction
The IBD Market School indicator is an advanced market analysis tool that implements Investor's Business Daily's methodology for identifying optimal trading opportunities. By tracking key market indexes and analyzing price and volume patterns, it provides actionable buy and sell signals based on the CANSLIM investment system.
The indicator offers a comprehensive set of features:
Complete Signal System
10 primary buy signals (B1-B10)
Additional buy-side indicators (HH - Higher High, ED - Expired Days)
14 sell signals (S1-S14)
Index Rise 6% signal for Distribution/Stalling Day expiration
Market Health Tracking
Distribution Day detection and counting
Stalling Day identification and validation
Automatic 25-day signal expiration
6% price rise monitoring for signal clearing
Market Condition Analysis
Rally Day detection (major and minor)
Follow-Through Day confirmation
Dynamic market exposure management (0-100%)
Power Trend analysis with multiple states
Risk Management Features
Circuit Breaker system for major declines
Buy Switch system for exposure control
Customizable volume analysis (Nasdaq/S&P 500)
Distribution day clustering detection
Visual Analysis Tools
IBD-style candle display option
Power Trend state visualization
Signal line drawing system
Customizable tooltips and alerts
Proper configuration of the indicator's settings is essential as it affects:
Signal detection sensitivity and accuracy
Market exposure calculations and adjustments
Volume confirmation requirements
Visual display of market conditions and signals
Alert system behavior and notifications
This guide provides detailed explanations of each component and setting to help you optimize the indicator for your trading strategy while maintaining adherence to IBD's proven methodology.
📊 General Settings
This section controls the indicator's tooltip display, alert behavior, and candle visualization preferences.
The General Settings panel allows you to configure tooltip modes, alert types, and candle appearance.
Tooltip Display Mode
Select how detailed the tooltips should be when hovering over signals and indicators:
The three tooltip display modes: Simple (left), Detailed (center), and Market Analysis (right).
Simple Mode
Displays concise signal definitions
Shows basic entry and exit conditions
Focuses on essential trigger points
Perfect for experienced traders
Detailed Mode
Provides in-depth explanations of each buy/sell signal
Shows complete validation criteria and conditions
Includes volume requirements and percentage thresholds
Explains the context and significance of each signal
Market Analysis Mode
Focuses on broad market health metrics
Shows market exposure percentage and trend
Displays buy switch and power trend status
Tracks distribution days and signal buffers
Note: Choose the tooltip mode based on your needs:
- Simple: Provides quick, essential information on signals for fast decision-making
- Detailed: Breaks down conditions for each buy/sell signal, ideal for users wanting in-depth explanations
- Market Analysis: Focuses on broad market health, including exposure, buy switch, distribution days, and trends
Market Exposure Alert System
The indicator alerts you when market exposure levels change, helping you adjust your positions accordingly.
Alert Types
On Close (Recommended)
Triggers only after bar closes
More reliable signals as price action is confirmed
Real-Time
Triggers immediately when conditions are met
Note: Signals may change by bar close
Setting Up Alerts
Click the "..." (More) button on the indicator label "$tradeviZion - IBD Market School"
Select "Add alert on $tradeviZion - IBD Market School..."
In the Create Alert dialog:
Settings tab:
Verify the symbol and timeframe (e.g., NASDAQ:IXIC , 1D)
Condition: Select "$tradeviZion - IBD Market School"
Alert function: Choose "Any alert() function call"
Expiration: Set to "Open-ended alert"
Alert name will auto-populate
Switch to Notifications tab:
Enable "Notify in app" for push notifications in the mobile app
Enable "Show toast notification" for on-screen alerts
Enable "Play sound" and customize duration (e.g., Thin, 10 seconds)
Optional settings:
Send email (requires profile settings configuration)
Webhook URL for POST requests
Send plain text for alternative email format
Click Create to activate the alert
Alert Messages
Message format: "Market exposure change for : Market exposure from % to %"
Example: "Market exposure change for NASDAQ:IXIC : 📈 Market exposure reduced from 100% to 75%"
📈 Arrow indicates exposure increase
📉 Arrow indicates exposure decrease
Messages include previous and new exposure percentages
Note: These alerts specifically track changes in market exposure levels, helping you stay aligned with market conditions. They are essential for maintaining proper position sizing and risk management.
Chart Style Options
IBD-style Candles
Enable to match Investor's Business Daily chart style
For MarketSmith style setup, right-click on chart and go to Settings
Navigate to Symbol tab
Uncheck Body, Borders, and Wicks
Press Alt+R to restore chart view if zoom affects display
To revert to original style, right-click on chart and go to Settings
Navigate to Symbol tab
Check Body, Borders, and Wicks
Color Based on Previous Close
Colors bars based on close vs. previous close
When enabled, determines colors by comparing current close to previous close
Use blue color for closes above previous
Use pink color for closes below previous
📈 Market Exposure Table Settings
Configure how the market exposure information is displayed on your chart.
The Market Exposure Table Settings panel allows you to customize the appearance and layout of the market status display.
Layout Options
• Hide Table
Completely hides the market status display
• Basic (2 Columns)
Shows main indicators in two columns
Compact view without signal list
Ideal for minimalist chart view
• Detailed (2 Columns with Signals)
Displays main indicators plus signal panel
Shows Buy and Sell signals in separate columns
Provides comprehensive market overview
• Stacked (1 Column, Compact)
Vertical layout with single column
Most space-efficient option
Ideal for smaller chart windows
Color Settings
Background : Dark gray background for the table
Text : White text for general information
Buy Signal : Green highlighting for buy signals
Sell Signal : Red highlighting for sell signals
Additional Options
Show Trading Wisdom: Enable rotating trading messages
Displays empowering trading messages
Helps reinforce disciplined trading practices
Updates every 5 bars with new wisdom
Includes tooltips with comprehensive trading guidance
Customizable yellow text color for messages
💹 Buy Signals Settings
This section controls the visibility and behavior of buy signals and related indicators.
The Buy Signals Settings panel allows you to configure signal visibility, volatility calculations, and visual appearance of buy signals.
Signal Display Options
Buy Signals Display : Choose display mode
Show Selected Signals
Hide All
Compact Signals
Individual Signal Toggles
Primary Buy Signals (B1-B10)
Special Indicators (HH, ED)
Understanding Buy Signals
B1: Follow-Through Day (FTD)
Buy on the initial FTD with volume higher than the previous day. You may use an FTD from an index other than the NASDAQ:IXIC , but if you do, you must stay within that index for future Buy and Sell Signals.
B2: Additional Follow-Through
Buy on all additional follow-through days within 25 days from a rally day that closes above the low of the initial follow-through day.
B3: Low Above EMA21
Buy on an up or flat day when the intraday low is at or above the EMA21. Note: Once you have a B3 or B4, you can't have another until it is reset by an S5.
Special Buy Indicators
HH: Higher High (No FTD after Rally)
Triggers when current close exceeds highest point since last confirmed rally. Must not have a Follow-Through Day (FTD). Buy switch turns on when close exceeds last rally's high and turns off if close drops below that high.
ED: Expired Days
Tracks Distribution and Stalling days that have aged out. Days are tracked for a specific trading period and expired days are removed from the count.
Index Rise Settings
Index Rise 6% from DD & SD
Toggle to enable/disable monitoring of price rises above Distribution and Stalling Days. Default value of 6% (adjustable) for monitoring rises above these days.
Understanding Index Rise
This feature tracks significant market recoveries by monitoring when the index rises substantially above Distribution Days (DD) or Stalling Days (SD). When the index rises 6% or more above the closing price of any DD or SD, it indicates a strong market recovery. This is an important signal because it helps identify when the market has shown enough strength to potentially overcome previous distribution periods. When triggered, this signal reduces the distribution day count, effectively acknowledging that the previous distribution pattern may no longer be as relevant due to the market's strong recovery.
B1 Signal Configuration
Volatility Settings
B1 Auto Volatility: Calculates FTD price requirement based on 200-day volatility
B1 Manual Volatility: Fixed value (default 1.245) when auto is disabled
Visual Settings
Label Size: Small (options: Tiny, Small, Normal, Large)
Signal Color: Light green background for buy signals
Text Color: Customizable text color for signal labels
Important Notes
Signal visibility affects both chart display and calculations
Auto volatility is recommended for most users
Manual volatility should only be adjusted by experienced users
Visual settings apply to all enabled buy signals
Confirmation Rules
Price Requirements
Follow-Through Day (B1) thresholds based on 200-day volatility:
Below 0.4% volatility: 0.7% gain required
0.4% to 0.55% volatility: 0.85% gain required
0.55% to 1% volatility: 1% gain required
Above 1% volatility: 1.245% gain required
EMA Breaks (S5/S6): 0.2% threshold below 21 EMA
Downside Reversal (B9): 1.75% high-to-low spread required
Volume Requirements
Distribution Days: Volume > previous day, with -0.20% or more price decline
Stalling Days: Volume ≥ 95% of previous day
Follow-Through Days (B1/B2): Volume > previous day
Accumulation Days (B7): Volume > previous day, close in upper 25% range
Sell Signals Settings
This section controls the visibility and behavior of sell signals and market weakness indicators.
The Sell Signals Settings panel allows you to configure signal visibility and visual appearance of sell signals and market health indicators.
Signal Display Options
Sell Signals Display: Dropdown with options to control signal visibility:
Show Selected Signals
Hide All
Compact Signals
Individual Signal Toggles
Primary Sell Signals: S1-S14 and CB (Circuit Breaker)
Market Health Indicators:
Distribution Days (DD): Indicative of institutional selling. Occurs when:
Market closes down by at least 0.2%
Volume greater than or equal to prior day
Tracked for 25 trading days
Stalling Days (SD): Sign of heavy volume without upside progress. Occurs when:
Market at/near new highs
Closes with small gain (0% to 0.4%)
High volume in lower half of day's range
Understanding Sell Signals
S1: Follow-Through Day Undercut
Sell if the index closes below the low of the initial follow-through day.
S2: Failed Rally Attempt
Sell if the index undercuts the major low of the rally attempt. Market exposure is reduced to zero and the Buy Switch is turned off.
S2ml: Minor Low Undercut
Minor Low undercut of rally attempt. Market exposure is reduced by two. This does not turn off the Buy Switch.
S3: Full Distribution Minus One
Sell after the distribution count increases to one less than the full distribution count.
S4: Full Distribution
Sell after reaching the full distribution count.
S5: Break Below EMA21
Sell if the index closes 0.2% or more below the EMA21. Note: Once you have an S5, S6, or S7, you can't have another until it is reset by a B3.
S6: Overdue Break Below EMA21
Sell if the index closes down 0.2% or more below the EMA21 after 30 days have passed since the last B3 without triggering an S5.
S7: Trending Below EMA21
Sell after S5 on the 5th consecutive day that the high is below the EMA21 and a down day.
S8: Living Below EMA21
Sell after S5 on the 10th and every 5th consecutive day after that (15th, 20th, 25th, etc.) that the high is below the EMA21.
S9: Break Below 50-Day MA
Sell if the index closes below the 50-Day Moving Average. Triggers only if a B6 signal was previously printed.
S10: Bad Break
Sell if the close is down 2.25% or greater in the bottom 25% of the range. Close below the MA50 or intraday high below EMA21.
S11: Downside Reversal
Sell after a Downside Reversal Day, which occurs with:
New High within 13 weeks
Close in bottom quartile of range
Close Down for the day
Spread of 1.75% or greater
S12: Lower Low
Sell after closing below the last marked low as defined by MarketSmith.
S13: Distribution Cluster
Distribution and stalling days increase to four up to eight days within a rolling eight-day period.
S14: Break Below Higher High
Sell after closing below the last marked high that printed a B8 (Higher High).
CB: Circuit Breaker
Triggers when the index drops 10% from the highest high since the FTD (B1) and falls 5% or more below the 50-Day MA intraday.
Buy/Sell Undercut Lines
This section controls the visibility and appearance of important price level lines on your chart.
The Buy/Sell Undercut Lines panel allows you to configure which signal lines are displayed and their visual appearance.
Line Visibility
Buy Signal Lines :
B8 Line: First high above the last pivot high
HH Line: Close above the prior high since last confirmed rally without FTD
Sell Signal Lines :
S1 Line: Close below the initial follow-through day
S2 Line: Undercut of major low
S2ml Line: Minor low undercut
S12 Line: Close below last marked low
S14 Line: Close below last marked high
Line Appearance
Color Settings :
B8: Green (Buy signal)
HH: Green (Buy signal)
S1: Red (Sell signal)
S2: Red (Sell signal)
S2ml: Orange (Modified sell signal)
S12: Purple (Pivot low signal)
S14: Blue (Close below pivot)
Line Style : Dashed (options: solid, dotted, dashed)
Line Width : 1 (adjustable)
📈 Rally Signal Settings
The Rally Signal Settings panel allows you to configure Rally Day detection and visualization.
Rally Day:
Toggle to enable/disable Rally Day signals. These mark the beginning of potential market uptrends when the market closes higher than the previous day, following a significant decline.
Visual Settings:
Label Size: small (options: tiny, small, normal, large)
Background Color: Customizable background for Rally Day labels
Text Color: Customizable text color for Rally Day labels
Distribution Day Settings:
Use Manual FullDDcount: Option to manually set the minimum combined number of Distribution and Stalling Days
Count Value: Default is 6 days (adjustable when manual mode is enabled)
This setting determines how many Distribution/Stalling Days are required to trigger a new rally
Pivot Point Settings
The Pivot Point Settings panel allows you to configure the display of high/low points and percentage changes between pivots.
Display Options
Display H/L Points
Toggle to show or hide pivot levels (high and low points) on the chart
%Change
Toggle to display percentage changes between pivot points
Color Settings
Positive % Color : Blue (customizable) - Used for positive percentage changes
Negative % Color : Pink (customizable) - Used for negative percentage changes
Precision Settings
Decimal Places: Set the number of decimal places (default: 2) for:
Pivot point price levels
Percentage change calculations
⚡ Power Trend Settings
This section controls how Power Trend information is visualized on your chart.
The Power Trend Settings panel allows you to configure how trend states are displayed and customize their visual appearance.
Example of Power Trend visualization showing both boxes (green background) and trend lines. The boxes indicate trend state while lines show trend transitions.
Display Options
Show Power Trend Line : Display trend states as lines on the chart
Show Boxes : Display trend states as boxes
Show Background : Display trend states as background colors
Power Trend Color Settings
On : Light green - Full power trend active
Resume : Light green - Power trend resuming
Off : Gray - Power trend inactive
With Floor : Yellow - Under pressure with support
No Floor : Orange - Under pressure without support
Power Trend Line Settings
Line Width : Set line thickness (default: 1)
Line Offset : Adjust line position (default: 5)
Power Trend Box Settings
Text Align : Set text alignment (left, center, right)
Text Position : Set vertical position (top, middle, bottom)
Size : Set box size (tiny, small, normal, large)
Color : Customize box background color
Power Trend States
Full Power (On)
Represents strongest market condition with maximum exposure of +7
Base maximum exposure of 5 plus 2 buffer signals
Buffer allows maintaining high exposure during normal pullbacks
2 sell signals reduce count from 7 to 5 without affecting base
Indicates very healthy market that can absorb normal profit-taking
Resume State
Shows successful market recovery after pressure period
Requires 10+ days without S2 minor, S9, or S13 signals
Must reestablish all initial strength conditions
Maintains same benefits as Full Power (+7 max, +2 floor)
Shows as light green in visualization
Under Pressure With Floor
First warning stage triggered by S2 minor or S13 signals
Reduces maximum exposure to +5
Maintains minimal protection with +1 floor
Suggests defensive positioning while keeping core positions
Shows as yellow in visualization
Under Pressure No Floor
Severe warning stage triggered by S9 signal
Maintains +5 maximum exposure but removes floor protection
Indicates higher risk of continued market decline
Requires careful position management
Shows as orange in visualization
Power Trend Off
Triggered by EMA/MA crossdowns with declining price
Can also be activated by S2 or Circuit Breaker signals
Maximum exposure limited to +5 with no buffer signals
Suggests focus on capital preservation
Shows as gray in visualization
Power Trend System Rules
Each state enforces strict exposure limits with automatic floor and ceiling adjustments
Power Trend can activate Buy Switch when entering Full Power state
Restraint Rule limits exposure to +2 until significant progress or B4 signal when starting from zero exposure
State transitions immediately update exposure limits and Buy Switch status
Distribution Cluster (S13) can move Power Trend to Under Pressure With Floor state
System maintains exposure floors to prevent panic selling while allowing flexibility below floor levels
Weekly SMAs Settings
The Weekly SMAs Settings panel allows you to configure the weekly moving averages display and calculations.
SMA 1: 10 periods (enabled), Red
Length: 10
Optional EMA toggle
Width: 1
SMA 2: 20 periods, Pink
Length: 20
Optional EMA toggle
Width: 1
SMA 3: 30 periods, Green
Length: 30
Optional EMA toggle
Width: 1
SMA 4: 40 periods (enabled), White
Length: 40
Optional EMA toggle
Width: 1
SMAs Settings
The SMAs Settings panel allows you to configure the daily moving averages display and calculations.
MA 1: 10 periods, Optional EMA, Pink
Length: 10
Optional EMA toggle
Width: 1
MA 2: 21 periods (enabled), EMA, Green
Length: 21
EMA enabled
Width: 1
MA 3: 50 periods (enabled), SMA, Red
Length: 50
EMA disabled
Width: 1
MA 4: 200 periods (enabled), SMA, White
Length: 200
EMA disabled
Width: 1
Volume Settings (NASDAQ & S&P 500)
This section controls volume data sources for market analysis. Proper volume settings are crucial for confirming market signals and analyzing institutional participation.
The Volume Settings panel allows you to configure volume data sources and custom ticker options for accurate market analysis.
Important Volume Source Information
TradingView's default volume data differs from IBD's Yahoo Finance data source
Current default settings (IXIC and TVOL) provide the most accurate results compared to IBD signals
Volume differences between TradingView and IBD are expected due to different data sources
Custom ticker options are provided for future compatibility with Yahoo Finance volume data
Volume Configuration
Nasdaq Volume Settings
Default Source: NASDAQ:IXIC (Nasdaq Composite Index)
Custom Ticker Option: USI:TVOL.NQ
Enable custom source by checking "Use Custom Nasdaq Ticker?"
Note: Custom ticker must be price-based for accurate volume analysis
S&P 500 Volume Settings
Default Source: TVOL (S&P 500 Total Volume)
Custom Ticker Option: USI:TVOL.NY
Enable custom source by checking "Use Custom S&P 500 Ticker?"
Note: Custom ticker must be price-based for accurate volume analysis
Volume Analysis Impact
Used for Distribution Day confirmation
Required for Follow-Through Day validation
Helps identify institutional buying/selling
Critical for Stalling Day detection
Recommendations
Keep default settings for most accurate current results
Only use custom tickers if you have confirmed price-based volume sources
Be aware that volume-based signals might slightly differ from IBD due to data source differences
Future updates may add Yahoo Finance volume compatibility
Market Status Table
The Market Status Table provides a real-time visual overview of current market conditions and signal status. Users can customize the table's appearance through the Market Exposure Table Settings.
The Market Status Table can be displayed in three different layouts: Basic (left), Detailed (center), and Stacked (right).
Layout Options
Hide Table
Completely hides the market status display
Basic (2 Columns)
Shows main indicators in two columns
Compact view without signal list
Ideal for minimalist chart view
Detailed (2 Columns with Signals)
Displays main indicators plus signal panel
Shows Buy and Sell signals in separate columns
Provides comprehensive market overview
Stacked (1 Column, Compact)
Vertical layout with single column
Most space-efficient option
Ideal for smaller chart windows
Main Indicators
• Market Exposure
Displayed as colored dots: 🟠 🟢 🟢 🟢 🟢
Shows current exposure level (0-100%)
(⚪ ⚪ ⚪ ⚪ ⚪): 0% exposure
(🟠 ⚪ ⚪ ⚪ ⚪): 30% exposure
(🟠 🟡 ⚪ ⚪ ⚪): 55% exposure
(🟠 🟡 🟢 ⚪ ⚪): 75% exposure
(🟠 🟡 🟢 🟢 ⚪): 90% exposure
(🟠 🟡 🟢 🟢 🟢): 100% exposure
• Key Status Indicators
Buy Switch: Shows ON (forced) or OFF status
Power Trend: Displays current state with floor and maximum values
Restraint Rule: Indicates ON or OFF status
Count / Signals Buffer: Shows current count and available buffer (e.g., "7 / (+0)")
Dist. Days / Cluster: Displays distribution day count and cluster status (e.g., "1 / 0")
• Signal Panel (Available in Detailed layout)
Lists all active Buy and Sell signals
Highlighted signals indicate currently active conditions
Green highlighting shows confirmed signals
Provides quick reference for all available signals
Status Indicator Colors
🟢 indicates "ON" or positive conditions (e.g., Buy Switch ON, Power Trend Full Power)
🟡 indicates "Under Pressure" or caution (e.g., Power Trend Under Pressure With Floor)
🟠 indicates "Under Pressure No Floor" or increased caution
🔴 indicates "OFF" or negative conditions (e.g., Buy Switch OFF, Power Trend OFF)
• Signal Colors
Green background for buy signals
Red background for sell signals
Black text on signal backgrounds for better visibility
• Number Formats
Count / Buffer signals shown as "7 / (+2)"
Distribution Days / Cluster count shown as "1 / 0"
Exposure percentage shown with dots (e.g., "90%")
Trading Wisdom - Market Risk Management
"The key to successful trading is not just knowing when to enter, but managing your exposure based on market health. Always check two critical indicators before any trade:
1. Market Exposure Levels
100% (5 dots): Full positions in strong market
90% (4 dots): Slightly reduced positions
75% (3 dots): Moderate positions, more cautious
55% (2 dots): Half positions only
30% (1 dot): Small positions only
0% (0 dots): Stay in cash
2. Distribution Days Risk Levels
1-2 Days: Normal market behavior
3 Days: Caution - reduce new positions
4+ Days: High risk - defensive positioning
5-6 Days: Consider moving to cash
Remember: It's better to miss an opportunity than to catch a falling market. Let the Market Exposure Table be your guide to smart position sizing."
Pro Tip: Make checking these two indicators part of your daily routine. They're your first line of defense against major drawdowns.
Conclusion
The IBD Market School indicator brings William O'Neil's proven methodology to TradingView, providing a comprehensive system for market analysis and risk management. This tool automates the complex task of tracking market signals while maintaining strict adherence to IBD's time-tested principles.
Key Features
Follows IBD's core methodology for identifying market direction
Automates tracking of Distribution Days, Follow-Through Days, and market signals
Provides clear market exposure guidance through the Power Trend system
Helps maintain discipline through systematic Buy Switch control
Offers multiple layers of risk management
Best Practices
Always check Market Exposure and Distribution Day count before making trades
Let the Buy Switch guide your market participation
Follow Power Trend states for proper position sizing
Use the default volume settings for most accurate signal generation
Monitor all confirmation rules for proper signal validation
Remember: This indicator is designed to replicate IBD's methodology as closely as possible within TradingView's environment. While it automates signal detection and exposure management, successful trading still requires discipline, patience, and strict adherence to risk management principles.
"The goal is not to be right about the market - it's to make money by following the market's signals and managing risk."
FU Candle Indicator V3.2What the FU Candle Indicator does:
First we need to understand what FU candles are. There's bullish and bearish FU candles.
Bullish FU candles are candles that have a long wick that takes out the previous candles low, then turns around and closes above the high of the previous candle.
Bearish FU candles are candles that have a long wick that takes out the previous candles high, then turns around and closes below the low of the previous candle.
Then there's so called attempted FU candles (ATT FU)
The difference between normal FU candles and ATT FU candles is, that the ATT FU candle doesn't close above/below the high/low of the previous candle but only above the previous candle's body close.
Bullish ATT FU Candle:
Bearish ATT FU Candle:
Detection of Bullish FU Candles:
Bullish FU Candles are detected by measuring the distance between the low of the previous candle and the low of the current candle.
Then the distance between the previous candles high and the current candles close price are measured.
If current candle low < previous candle low and current candle close > previous candle high = Bullish FU Candle.
Detection of Bullish ATT FU Candles:
Bullish ATT FU Candles are detected by measuring the distance between the low of the previous candle and the low of the current candle.
Then the distance between the previous candles close or open price and the current candles close price are measured. If the previous candle closed bearish, the open price is used for comparison, if the previous candle closed bullish, the close price is used for comparison.
If current candle low < previous candle low and current candle close > previous candle open or close = Bullish ATT FU Candle.
Detection of Bearish FU Candles:
Bearish FU Candles are detected by measuring the distance between the high of the previous candle and the high of the current candle.
Then the distance between the previous candles low, AND the current candles close price are measured.
If current candle high > previous candle high, AND current candle close < previous candle low = Bearish FU Candle.
Detection of Bearish ATT FU Candles:
Bearish ATT FU Candles are detected by measuring the distance between the high of the previous candle and the high of the current candle.
Then the distance between the previous candles close or open price and the current candles close price are measured. If the previous candle closed bearish, the open price is used for comparison, if the previous candle closed bullish, the close price is used for comparison.
If current candle high > previous candle high and current candle close < previous candle open or close = Bearish ATT FU Candle.
What makes this script unique?
It shows and liquidity grab and a break of structure on a lower timeframe in one candle.
It allows to adjust the settings for the asset and timeframe you're using
The built in filters (Fractal Filter and EMA Filter) are both optional but allow to filter out certain candles and most importantly it leaves room for experimentation and optimisation to your trading style.
Input Settings and how to use them:
Bullish FU Candle Color --> This setting is to set the color for bullish FU candles.
Bearish FU Candle Color --> This setting is to set the color for bearish FU candles.
Chart --> This setting enables you to display FU's on different timeframes instead of only the current time. It's set to current timeframe by default.
Liq. Grab in Points --> This is the strength of the liquidity grab. By how many points has the current candle taken out the low/ high of the previous candle. It's set to 20 by default but it has to be adjusted to the timeframe and asset you're using.
Engulfing in Points --> This the strength of the engulfing of the previous candle. It measures the distance of the current close price to the open, close, high or low of the previous candle. It depends if the current candle is bullish or bearish and if the previous candle was bullish or bearish and if ATT FUs are enabled but this setting applies to all methods. It's set to 20 by default but you have to adjust it to the asset and timeframe you're using.
Min. Size in Points --> This setting is to filter out tiny candles. It measures the overall size of the FU candle from low to high. It's set to 20 by default but you have to adjust it to the asset and timeframe you are using.
Min. Body Size in Points --> This setting is to filter out FU candles that have a tiny body. It measures the size of the body from open to close. It's set to 20 by default but you have to adjust it to the asset and timeframe you are using.
Max. Body Size in Points --> This setting is to filter out FU candles that have a huge body. It measures the size of the body from open to close. It's set to 10000 by default but you have to adjust it to the asset and timeframe you are using.
Show ATT FU Candles --> ATT FU Candles are FU's where the body only engulfs the previous candles body but not the wick. This type of FU candles is just as valid as the strong FU's where the Body and the wick of the previous Candle is engulfed. The setting is enabled by default.
Rejection Filter --> This setting is used filter out FU candles where the opposite side rejection is stronger than the body direction of the FU. This filters out a lot of traps. It's disabled by default.
Fractal Filter --> FU's are only valid if they broke a fractal of the past x candles. This filters out some of the FU candles that are inside a range and therefore invalid. This is an optional filter and disabled by default.
EMA Filter --> FU's are only if they are above/ below the EMA. This is to filter out most of the FU candles that are inside ranges. The EMA period can be set too. This is an optional filter and enabled and EMA length set to 7 by default. You can enable it and/ or change the length of the EMA to fit your trading style.
Show Entry Lines --> The entry line setting has been changed in terms of styling. The upper and lower line has been removed. Now only the 50% retracement line of the candle body is displayed and the line type, color, strength and length can be set to keep charts as clean as possible.
Alert Timeframes --> You can select the timeframes for which you want to receive an alert if you set and alert for the FU Candle indicator. If you set an alert for the FU Candle Indicator it will send an alert for every FU candle on every selected timeframe.
TF1-TF8 --> This setting is to enable or disable alerts for timeframe 1 - timeframe 8. By default all alerts are disabled, I recommend only enabling the ones that you actually use.
Recommended use:
A bullish FU candle doesn't necessarily mean it's a long and vice versa a bearish FU candle doesn't necessarily mean it's a short. In fact, most FU candles are traps. Often times you'll see a bullish FU candle starting a bearish reversal.
Whenever you see an FU Candle check the following:
Did the FU candle take relevant liquidity?
Is the FU Candle in line with the overall bias or does it go against the bias?
Where did the FU react? Example: A bearish FU candle that reacts in a bullish FVG is a perfect long entry and vice versa.
A bullish FU candle that takes out a relevant swing high can often be a fake-out and price can immediately reverse as the next candle opens.
Timing is also very important. Usually the valid FU candles happen after a strong move to one direction during high volume times and right before or right after a new candle opens on a higher timeframe.
Examples of valid setups:
Nr. 1) Mitigation Setup
Overall bullish on the higher time frame, liquidity grab to the downside, shift in momentum, strong move to the upside left a FVG. later price comes back into the FVG and forms a FU candle --> perfect long trade targeting the opposite side of the range.
Entry either at close of the FU or at the 50% retracement.
Nr. 2) Trap Setup
Clear bullish trend respecting the trend line, bearish FU candle forms but it didn't take any relevant liquidity to the upside. Only internal range liquidity. Perfect long entry using a buy limit below the lower wick of the FU candle with the SL below the nearest low.
Nr. 3) Liquidity Grab Setup
Bearish trend, price comes up aggressively and takes out a high and forms an FU Candle. Market entry short at close of the FU candle or at the 50% retracement of the FU candle or by putting a limit order right above the wick of the candle that follows the FU candle, targeting the opposite side of the range.
Nr. 4) Fake Breakout Setup
Price takes out a significant HTF low, then makes at least 2 BOS on the LTF and forms an Order Block or leaves an FVG. Price forms a bearish U that fails to close below the FVG or Orderblock.
Market entry long at the close of the bearish FU targeting the opposite side of the range. Vice versa for shorts. In simple terms: Bullish FUs at the top of the range and bearish FUs at the bottom of the range are usually always traps.
Sometimes price takes out the high/low of a trap FU before reversing aggressively so you can also have a limit order below the low of the bearish FU or above the high of a bullish FU in this case. But you risk missing the trade.
Entry Methods:
Entry Type 1) Market Entry at the close of the FU candle. --> Never miss a trade, not the best RRR.
Entry Type 2 Limit Entry at the 50% retracement of the body of the FU candle. --> Miss some of the trades but better RRR.
Entry Type 3 Limit order below the wick of the candle that follows the FU candle. --> Miss quite a lot of trades but by far best RRR.
Why this is a closed source script:
The source code of this script is not open because I have spent several years of my life developing it and I use it in all my trading bots.
Also I'm open for feedback and will modify/ update the script for free if I get input that can make it better.
For questions, please reach out via DM or check out my youtube channel. I have several videos explaining in detail how I use these candles, which are valid and which aren't.
Top-Down Trend and Key Levels with Swing Points//by antaryaami0
Overview
The “Top-Down Trend and Key Levels with Swing Points” indicator is a comprehensive tool designed to enhance your technical analysis by integrating multiple trading concepts into a single, easy-to-use script. It combines higher timeframe trend analysis, key price levels, swing point detection, and ranging market identification to provide a holistic view of market conditions. This indicator is particularly useful for traders who employ multi-timeframe analysis, support and resistance levels, and price action strategies.
Key Features
1. Higher Timeframe Trend Background Shading:
• Purpose: Identifies the prevailing trend on a higher timeframe to align lower timeframe trading decisions with the broader market direction.
• How it Works: The indicator compares the current higher timeframe close with the previous one to determine if the trend is up, down, or ranging.
• Customization:
• Trend Timeframe: Set your preferred higher timeframe (e.g., Daily, Weekly).
• Up Trend Color & Down Trend Color: Customize the background colors for uptrends and downtrends.
• Ranging Market Color: A separate color to indicate when the market is moving sideways.
2. Key Price Levels:
• Previous Day High (PDH) and Low (PDL):
• Purpose: Identifies key support and resistance levels from the previous trading day.
• Visualization: Plots horizontal lines at PDH and PDL with labels.
• Customization: Option to show or hide these levels and customize their colors.
• Pre-Market High (PMH) and Low (PML):
• Purpose: Highlights the price range during the pre-market session, which can indicate potential breakout levels.
• Visualization: Plots horizontal lines at PMH and PML with labels.
• Customization: Option to show or hide these levels and customize their colors.
3. First 5-Minute Marker (F5H/F5L):
• Purpose: Marks the high or low of the first 5 minutes after the market opens, which is significant for intraday momentum.
• How it Works:
• If the first 5-minute high is above the Pre-Market High (PMH), an “F5H” label is placed at the first 5-minute high.
• If the first 5-minute high is below the PMH, an “F5L” label is placed at the first 5-minute low.
• Visualization: Labels are placed at the 9:35 AM candle (closing of the first 5 minutes), colored in purple by default.
• Customization: Option to show or hide the marker and adjust the marker color.
4. Swing Points Detection:
• Purpose: Identifies significant pivot points in price action to help recognize trends and reversals.
• How it Works: Uses left and right bars to detect pivot highs and lows, then determines if they are Higher Highs (HH), Lower Highs (LH), Higher Lows (HL), or Lower Lows (LL).
• Visualization: Plots small markers (circles) with labels (HH, LH, HL, LL) at the corresponding swing points.
• Customization: Adjust the number of left and right bars for pivot detection and the size of the markers.
5. Ranging Market Detection:
• Purpose: Identifies periods when the market is consolidating (moving sideways) within a defined price range.
• How it Works: Calculates the highest high and lowest low over a specified period and determines if the price range is within a set percentage threshold.
• Visualization: Draws a gray box around the price action during the ranging period and labels the high and low prices at the end of the range.
• Customization: Adjust the range detection period and threshold, as well as the box color.
6. Trend Coloring on Chart:
• Purpose: Provides a visual cue for the short-term trend based on a moving average.
• How it Works: Colors the candles green if the price is above the moving average and red if below.
• Customization: Set the moving average length and customize the uptrend and downtrend colors.
How to Use the Indicator
1. Adding the Indicator to Your Chart:
• Copy the Pine Script code provided and paste it into the Pine Script Editor on TradingView.
• Click “Add to Chart” to apply the indicator.
2. Configuring Inputs and Settings:
• Access Inputs:
• Click on the gear icon next to the indicator’s name on your chart to open the settings.
• Customize Key Levels:
• Show Pre-Market High/Low: Toggle on/off.
• Show Previous Day High/Low: Toggle on/off.
• Show First 5-Minute Marker: Toggle on/off.
• Set Trend Parameters:
• Trend Timeframe for Background: Choose the higher timeframe for trend analysis.
• Moving Average Length for Bar Color: Set the period for the moving average used in bar coloring.
• Adjust Ranging Market Detection:
• Range Detection Period: Specify the number of bars to consider for range detection.
• Range Threshold (%): Set the maximum percentage range for the market to be considered ranging.
• Customize Visuals:
• Colors: Adjust colors for trends, levels, markers, and ranging market boxes.
• Label Font Size: Choose the size of labels displayed on the chart.
• Level Line Width: Set the thickness of the lines for key levels.
3. Interpreting the Indicator:
• Background Shading:
• Green Shade: Higher timeframe is in an uptrend.
• Red Shade: Higher timeframe is in a downtrend.
• Gray Box: Market is ranging (sideways movement).
• Key Levels and Markers:
• PDH and PDL Lines: Represent resistance and support from the previous day.
• PMH and PML Lines: Indicate potential breakout levels based on pre-market activity.
• F5H/F5L Labels: Early indication of intraday momentum after market open.
• Swing Point Markers:
• HH (Higher High): Suggests bullish momentum.
• LH (Lower High): May indicate a potential bearish reversal.
• HL (Higher Low): Supports bullish continuation.
• LL (Lower Low): Indicates bearish momentum.
• Ranging Market Box:
• Gray Box Around Price Action: Highlights consolidation periods where breakouts may occur.
• Range High and Low Labels: Provide the upper and lower bounds of the consolidation zone.
4. Applying the Indicator to Your Trading Strategy:
• Trend Alignment:
• Use the higher timeframe trend shading to align your trades with the broader market direction.
• Key Levels Trading:
• Watch for price reactions at PDH, PDL, PMH, and PML for potential entry and exit points.
• Swing Points Analysis:
• Identify trend continuations or reversals by observing the sequence of HH, HL, LH, and LL.
• Ranging Market Strategies:
• During ranging periods, consider range-bound trading strategies or prepare for breakout trades when the price exits the range.
• Intraday Momentum:
• Use the F5H/F5L marker to gauge early market sentiment and potential intraday trends.
Practical Tips
• Adjust Settings to Your Trading Style:
• Tailor the indicator’s inputs to match your preferred timeframes and trading instruments.
• Combine with Other Indicators:
• Use in conjunction with volume indicators, oscillators, or other technical tools for additional confirmation.
• Backtesting:
• Apply the indicator to historical data to observe how it performs and refine your settings accordingly.
• Stay Updated on Market Conditions:
• Be aware of news events or economic releases that may impact market behavior and the effectiveness of technical levels.
Customization Options
• Time Zone Adjustment:
• The script uses “America/New_York” time zone by default. Adjust the timezone variable in the script if your chart operates in a different time zone.
var timezone = "Your/Timezone"
• Session Times:
• Modify the Regular Trading Session and Pre-Market Session times in the indicator settings to align with the trading hours of different markets or exchanges.
• Visual Preferences:
• Colors: Personalize the indicator’s colors to suit your visual preferences or to enhance visibility.
• Label Sizes: Adjust label sizes if you find them too intrusive or not prominent enough.
• Marker Sizes: Further reduce or enlarge the swing point markers by modifying the swing_marker_size variable.
Understanding the Indicator’s Logic
1. Higher Timeframe Trend Analysis:
• The indicator retrieves the closing prices of a higher timeframe using the request.security() function.
• It compares the current higher timeframe close with the previous one to determine the trend direction.
2. Key Level Calculation:
• Previous Day High/Low: Calculated by tracking the highest and lowest prices of the previous trading day.
• Pre-Market High/Low: Calculated by monitoring price action during the pre-market session.
3. First 5-Minute Marker Logic:
• At 9:35 AM (end of the first 5 minutes after market open), the indicator evaluates whether the first 5-minute high is above or below the PMH.
• It then places the appropriate label (F5H or F5L) on the chart.
4. Swing Points Detection:
• The script uses ta.pivothigh() and ta.pivotlow() functions to detect pivot points.
• It then determines the type of swing point based on comparisons with previous swings.
5. Ranging Market Detection:
• The indicator looks back over a specified number of bars to find the highest high and lowest low.
• It calculates the percentage difference between these two points.
• If the difference is below the set threshold, the market is considered to be ranging, and a box is drawn around the price action.
Limitations and Considerations
• Indicator Limitations:
• Maximum Boxes and Labels: Due to Pine Script limitations, there is a maximum number of boxes and labels that can be displayed simultaneously.
• Performance Impact: Adding multiple visual elements (boxes, labels, markers) can affect the performance of the script on lower-end devices or with large amounts of data.
• Market Conditions:
• False Signals: Like any technical tool, the indicator may produce false signals, especially during volatile or erratic market conditions.
• Not a Standalone Solution: This indicator should be used as part of a comprehensive trading strategy, including risk management and other forms of analysis.
Conclusion
The “Top-Down Trend and Key Levels with Swing Points” indicator is a versatile tool that integrates essential aspects of technical analysis into one script. By providing insights into higher timeframe trends, highlighting key price levels, detecting swing points, and identifying ranging markets, it equips traders with valuable information to make more informed trading decisions. Whether you are a day trader looking for intraday opportunities or a swing trader aiming to align with the broader trend, this indicator can enhance your chart analysis and trading strategy.
Disclaimer
Trading involves significant risk, and it’s important to understand that past performance is not indicative of future results. This indicator is a tool to assist in analysis and should not be solely relied upon for making trading decisions. Always conduct thorough research and consider seeking advice from financial professionals before engaging in trading activities.
New Rate - PROIndicator Description: New Rate - PRO
The New Rate - PRO is an advanced trading indicator designed to assist traders in identifying significant price levels and potential reversal points within a specified time frame. By highlighting key highs and lows, projecting trendlines, and providing visual cues, this indicator enhances your ability to make informed trading decisions. It offers extensive customization options, ensuring adaptability to various trading styles and market conditions.
---
Key Features:
Customizable Color Themes: Choose between Dark and Light color styles to match your chart preferences.
High and Low Line Detection: Automatically identifies and draws lines for significant high and low price levels within the defined analysis period.
Midline Projection: Optionally displays a midline representing the 50% range between the detected high and low, aiding in trend analysis.
Candle Coloring: Colors the first six candles within the analysis range with a specific color, while the remaining candles are displayed in a subdued gray for clarity.
Trading Session Highlight: Highlights the designated trading hours on the chart, providing a clear visual reference for active trading periods.
Touch Detection Arrows: Plots arrows on the chart when the price touches the detected high or low levels, indicating potential trading opportunities.
Extensive Customization Options: Allows users to adjust line colors, styles, widths, label texts, and more to suit individual trading preferences.
Timeframe and Range Configuration: Defines the specific timeframe and time range for analysis, ensuring precise detection of significant price levels.
How Does the Indicator Work?
Color Style Selection:
- Choose between "Dark" or "Light" themes to match your chart setup, adjusting the color palette for optimal visibility.
High and Low Line Detection:
- The indicator analyzes the first six candles within the specified time range to identify the highest and lowest price levels.
- Once detected, it draws horizontal lines extending 25 candles to the right, marking these significant levels on the chart.
Midline Projection:
- If enabled, the indicator calculates the midpoint between the detected high and low.
- It then draws a horizontal line at this midpoint, providing an additional reference for potential support or resistance.
Candle Coloring:
- The first six candles within the analysis period are colored based on user selection (default: yellow).
- Subsequent candles are displayed in a semi-transparent gray, allowing the key candles to stand out.
Trading Session Highlight:
- Highlights the active trading hours on the chart using a semi-transparent orange background.
- This visual aid helps traders focus on periods of increased market activity.
Touch Detection Arrows:
- When the price touches the previously detected high or low levels, the indicator plots an upward green arrow or a downward red arrow, respectively.
- These arrows signal potential entry points for buy or sell trades.
Customization of Labels and Lines:
- Users can customize the colors, styles (Solid, Dotted, Dashed), and widths of the high, low, and midline.
- Label texts and font sizes are also adjustable to enhance readability.
How to Use the Indicator?
Setup Color Themes:
- Select your preferred color theme ("Dark" or "Light") to ensure the indicator aligns with your chart's appearance.
Configure High and Low Lines:
- Adjust the line color, style, and width to clearly distinguish high and low levels on the chart.
- Enable or disable the midline based on your analysis needs.
Set Timeframe and Analysis Range:
- Define the chart's timeframe in minutes (e.g., 5 minutes) to tailor the indicator's sensitivity.
- Specify the start and end hours and minutes for the analysis period to focus on specific trading sessions.
Customize Candle Colors:
- Choose the color for the first six candles within the analysis range.
- The remaining candles will automatically be displayed in a default gray color.
Enable Trading Session Highlight:
- Activate the background highlight for the trading session to visually separate active trading hours from inactive periods.
Monitor Touch Detection Arrows:
- Watch for green upward arrows indicating potential buy signals when the price touches the high level.
- Look for red downward arrows signaling potential sell opportunities when the price reaches the low level.
Adjust Labels and Visual Elements:
- Modify label texts and font sizes to ensure clarity and avoid clutter on the chart.
- Fine-tune line styles and colors for better visual differentiation.
Plan Your Trades:
- Use the detected high and low levels as reference points for setting entry, stop-loss, and take-profit levels.
- Combine with other technical analysis tools to confirm trade signals and enhance decision-making.
---
What Makes This Indicator Original?
Dynamic High and Low Detection: Automatically identifies significant price levels within a defined time range, providing timely insights into market movements.
Midline Projection Feature: Offers an additional reference point by calculating and displaying the midpoint between high and low levels, aiding in trend analysis.
Customizable Visual Elements: Extensive customization options for colors, styles, and labels allow traders to tailor the indicator to their specific preferences and trading environments.
Touch Detection Arrows: Provides clear visual signals when the price interacts with key levels, facilitating quick decision-making for trade entries.
Trading Session Highlight: Enhances focus by visually distinguishing active trading periods, helping traders concentrate on high-probability trading times.
Trade Summary Visualization: (If applicable based on code) Offers a summary of recent trades, allowing traders to assess performance directly on the chart.
Additional Considerations
Testing and Optimization: Before deploying the indicator in live trading, test it on historical data and a demo account to fine-tune settings according to your trading strategy.
Complementary Analysis: Use the indicator alongside other technical analysis tools such as moving averages, trendlines, and oscillators to confirm trade signals.
Risk Management: Always set appropriate stop-loss and take-profit levels to manage risk effectively, regardless of the indicator's signals.
Stay Informed: Keep abreast of market news and economic events that may influence price movements and affect the indicator's performance.
Adjust for Different Assets: Customize the indicator's settings based on the asset's volatility and trading behavior to enhance accuracy and reliability.
---
Example Configuration
To help you get started, here is an example configuration:
Color Style: Dark
Line Color (High and Low): Red
Line Style (High and Low): Dotted
Line Width (High and Low): 2
Midline Color (50%): Blue
Show Midline: Yes
Label Text Color: Gray
Label Font Size: Medium
Candle Color (First 6 Candles): Yellow
Default Candle Color (Remaining Candles): Semi-transparent Gray
Timeframe Minutes: 5
Analysis Start Time: 08:35
Analysis End Time: 09:05
These settings are optimized for a 5-minute XAUUSD chart during the 8:35 to 09:05 trading session, highlighting key price levels and providing clear visual signals for potential trades.
Conclusion
The New Rate - PRO indicator is tool that combines dynamic price level detection with extensive customization and real-time visual cues. By automatically identifying significant highs and lows, projecting trendlines, and signaling potential trade opportunities, it enhances your ability to navigate the markets effectively. Its adaptability through customizable settings ensures that it can be tailored to various trading styles and market conditions, making it a valuable addition to any trader's toolkit.
HTF TriangleHTF Triangle by ZeroHeroTrading aims at detecting ascending and descending triangles using higher time frame data, without repainting nor misalignment issues.
It addresses user requests for combining Ascending Triangle and Descending Triangle into one indicator.
Ascending triangles are defined by an horizontal upper trend line and a rising lower trend line. It is a chart pattern used in technical analysis to predict the continuation of an uptrend.
Descending triangles are defined by a falling upper trend line and an horizontal lower trend line. It is a chart pattern used in technical analysis to predict the continuation of a downtrend.
This indicator can be useful if you, like me, believe that higher time frames can offer a broader perspective and provide clearer signals, smoothing out market noise and showing longer-term trends.
You can change the indicator settings as you see fit to tighten or loosen the detection, and achieve the best results for your use case.
Features
It draws the detected ascending and descending triangles on the chart.
It supports alerting when a detection occurs.
It allows for selecting ascending and/or descending triangle detection.
It allows for setting the higher time frame to run the detection on.
It allows for setting the minimum number of consecutive valid higher time frame bars to fit the pattern criteria.
It allows for setting a high/low factor detection criteria to apply on higher time frame bars high/low as a proportion of the distance between the reference bar high/low and open/close.
It allows for turning on an adjustment of the triangle using highest/lowest values within valid higher time frame bars.
Settings
Ascending checkbox: Turns on/off ascending triangle detection. Default is on.
Descending checkbox: Turns on/off descending triangle detection. Default is on.
Higher Time Frame dropdown: Selects higher time frame to run the detection on. It must be higher than, and a multiple of, the chart's timeframe. Default is 5 minutes.
Valid Bars Minimum field: Sets minimum number of consecutive valid higher time frame bars to fit the pattern criteria. Default is 3. Minimum is 1.
High/Low Factor checkbox: Turns on/off high/low factor detection criteria. Default is on.
High/Low Factor field: Sets high/low factor to apply on higher time frame bars high/low as a proportion of the distance between the reference bar high/low and open/close. Default is 0. Minimum is 0. Maximum is 1.
Adjust Triangle checkbox: Turns on/off triangle adjustment using highest/lowest values within valid higher time frame bars. Default is on.
Detection Algorithm Notes
The detection algorithm recursively selects a higher time frame bar as reference. Then it looks at the consecutive higher time frame bars (as per the requested number of minimum valid bars) as follows:
Ascending Triangle
Low must be higher than previous bar.
Open/close max value must be lower than (or equal to) reference bar high.
When high/low factor criteria is turned on, high must be higher than (or equal to) reference bar open/close max value plus high/low factor proportion of the distance between reference bar high and open/close max value.
Descending Triangle
High must be lower than previous bar.
Open/close min value must be higher than (or equal to) reference bar low.
When high/low factor criteria is turned on, low must be lower than (or equal to) reference bar open/close min value minus high/low factor proportion of the distance between reference bar low and open/close min value.
ziksfx Structure - LiteInspired by the 'mentfx Structure' indicator created by Anton (mentfx) on TradingView, I have developed my own unique version of the market structure indicator, enhancing it with features that resonate with my personal trading style and offer additional insights into market behaviour.
In the spirit of Anton's original concept, my indicator incorporates the fundamental idea of "sells before buys" for bullish ranges and "buys before sells" for bearish ranges. This methodological approach is designed to mirror the activities of large market participants who typically offload positions before accumulating again in a bullish context, and accumulate before offloading in a bearish context.
The "ranges" displayed on the chart represent historical and updated highs and lows, reflecting the structural delivery of price across any timeframe. This approach assumes that in a bullish range, the market is likely to sustain upward momentum until it reaches a new high or experiences a significant "sell before buy" scenario, and conversely in a bearish range.
Key Enhancements and Features:
Immediate Break of Structure (BOS) Recognition: This feature promptly updates the high/low to the candle that triggers a BOS, providing a more agile response compared to the original mentfx Structure's approach of waiting for a swing high/low to set the range. This adaptation allows me for quicker adaptation to the market's unfolding narrative.
Market Stage Visualization: By seamlessly integrating with the structure tracking, my indicator presents the current 'Market Stage,' offering a clear stage of the current market's phase, which is crucial for informed trading decisions. The core methodology for determining market stages is derived from the foundational concepts established by mentfx.
Moving Average Integration: The inclusion of a Moving Average (MA) within the indicator adds a layer of trend confirmation, reinforcing decisions based on market structure with established trend analysis techniques. You can use EMA or SMA.
Customizable Session Settings: Tailor the indicator to focus on specific market hours, enhancing its utility for session-based trading strategies and backtesting efficiency.
Triple M: The Triple-M feature is also included in this indicator, which provides a visual representation of the market's momentum and potential reverse.
ATR: Utilizes the Average True Range (ATR) to estimate stop loss levels, providing a data-driven method to manage risk in accordance with current market volatility.
Watermark: Displays the name of the ticker and the current timeframe directly on the chart for easy reference, ensuring clarity and orientation when analyzing multiple instruments or timeframes.
How It Works:
When a range is assigned as being bullish, it will continue updating the high until a new high is created after the bos (= the new high of the range) and will not update or change until a candle's body, open's or close's above it - which will re-update the high and update the low. The low will be updated based on the last time price had a candle (open or closure) below a previous candle low, and then will find the lowest low after the rule was met to assign a low (the idea here is to locate the last major "sell before buy" and showcase that range. And this will occur vice versa, where: when a range is assigned as bearish, it will continue updating the low until a true low is created (=low of the range) and will not update or change until a candle's body, open's or close's below it - which will reupdate the low and update the high. The high will be updated based on the last time price had a candle (open or closure) above a previous candle high, and then will find the highest high after the rule was met to assign a high (once again, the idea being to locate the last major "buy before sell" and showcase price as existing in that range.)
A high is considered as a high that has a lower high to its left and to its right. And a low is considered as a low that has a higher low to its left and to its right. These high and low are used to determine the final high or low of a Bullish or Bearish range (respectively).
Range Determination: The indicator assesses the market momentum and assigns a Bullish or Bearish state based on the most recent directional break.
High/Low Rules Adaptation: In a Bullish range, indicator updates the high if a candle's body, not just the wick, exceeds the current high. This subtle yet significant change allows for a more conservative and potentially more accurate portrayal of bullish sentiment.
Dynamic Updating: As the market evolves, the indicator recalibrates the high and low lines based on the latest price movements, ensuring that you always have the most current and relevant data.
The indicator is not merely a trend-following or scalping tool. It leverages a distinct interpretation of market behavior, focusing on the last major "sell before buy" in Bullish ranges and "buy before sell" in Bearish ranges. By doing so, it aims to pinpoint the true sentiment behind price movements, offering traders a more grounded basis for anticipating market trends.
Of course, a special acknowledgment is due to Anton for his foundational work and the insightful knowledge he's giving day-by-day. The principles of his structure tracking method and market approach have significantly influenced the creation of this indicator, which now carries those insights forward, adapted through the lens of my personal trading philosophy.
Trend Follower All-In-One [LevelUp]LevelUp is an all-in-one collection of the most popular trend following tools merged into one indicator. LevelUp automates many aspects of technical analysis to find and highlight chart patterns and signals based on the principles of William O'Neil, Stan Weinstein, Jesse Livermore and other well-known trend followers.
The 10-EMA, 21-EMA and 50-SMA are foundational in LevelUp. LevelUp uses the term moving average alignment to refer to patterns that meet your specific requirements as it relates to moving averages and their relationship to price and one another. For example, you can request the start of MA alignment begin when the low is > 21-EMA, the 21-EMA is > 50-SMA and the 50-SMA is trending up.
LevelUp includes indicators for intraday, daily and weekly timeframes.
Key Features:
Daily Timeframe:
▪ Configure moving average alignment and preferred price action.
▪ Custom RS Line:
▪ Symbol overlays showing new RS highs.
▪ Custom moving average with optional cloud.
▪ View 10-week SMA on daily chart.
▪ Set exit criteria based on moving averages and % below entry.
▪ Stats table to simplify calculating entry/exit points.
▪ Signals table to quickly view if stock is trending up.
▪ Power trend tools and analysis.
Daily & Weekly Timeframe:
▪ Flat base detection with custom configuration.
▪ Consolidation detection with custom configuration.
▪ Highlight lower lows and lower closes (pullbacks).
▪ Highlight 52-week highs.
Weekly Timeframe:
▪ Customizable tight closes.
▪ Customizable up weeks.
Intraday Timeframe:
▪ View daily 10-EMA, 21-EMA and 50-SMA.
▪ 1-day and 2-day AVWAP.
▪ 5-day moving average.
All Timeframes:
▪ Marked highs/lows with lines showing support/resistance.
▪ Custom moving averages.
Daily Chart Examples
The following charts show a range of examples on customization and features in LevelUp when viewing a daily chart.
Weekly Chart Examples
Weekly charts are helpful for identifying longer-term trends and patterns. Trend followers often limit the number of indicators and signals on a weekly timeframe, making for a cleaner chart with less noise.
Intraday Chart Examples
Daily 10-EMA, 21-EMA and 50-SMA on an intraday chart.
AVWAP and marked highs/lows.
RS Line ~ Relative Strength
The RS Line compares a stock's performance to the S&P 500 index. A rising RS Line means the stock is outperforming the overall market. Another important signal is when the RS Line reaches a new high before price. When this occurs, it indicates strong demand for the stock and may precede a significant price increase as buyers accumulate shares. Both signals are customizable within LevelUp providing multiple visual cues when the required conditions are met.
LevelUp also adds a few unique visuals as it relates to the typical RS Line. Included are options to show symbols on the RS line that represent RS Line new high and RS Line new high before price. This provides an at-a-glance view of the trend. Additionally, LevelUp allows for custom moving averages to be applied to the RS Line as well as an optional cloud to help identify support/resistance levels.
Power Trends
When a power trend is active, there is a stronger than usual uptrend underway. The concept of a power trend was created by Investor's Business Daily (IBD) based on extensive backtesting and historical analysis.
A power trend by definition uses a major index, such as the Nasdaq Composite (IXIC), as the data source for determining a power trend's state, either off or on. The LevelUp indicator builds upon this concept by allowing the current active chart symbol to be the data source for the power trend.
What Starts A Power Trend:
▪ Low is above the 21-day EMA for at least 10 days.
▪ 21-day EMA is above the 50-day SMA for at least five days.
▪ 50-day SMA is in an uptrend.
▪ Close up for the day.
What Ends A Power Trend:
▪ 21-day EMA crosses under 50-day SMA and the close is below prior day close.
▪ Close below the 50-day SMA and low is 10% below recent high.
Important Note: The power trend as created by IBD uses the daily 21-EMA and 50-SMA. Hence, the power trend is only shown when on the daily timeframe.
AVWAP - Anchored VWAP
The Anchored Volume Weighted Average Price (AVWAP) , created by Brian Shannon, is used to assess the average price at which an asset has traded since a specific time, event or milestone. This could be the beginning of a trading day, the release of important news, or any other event deemed significant. By anchoring the VWAP to a specific point in time, it helps market participants analyze how prices have evolved relative to that anchor.
If a stock is above a rising AVWAP, buyers are in control, while a declining AVWAP indicates sellers are in control. By analyzing AVWAP, traders can make informed decisions on timing entries, managing losses and profits, or deciding to stay on the sidelines during periods of market indecision.
Tight Weeks And Up Weeks
William O'Neil primarily focused on weekly charts. Two common patterns he looked for were tight weeks and up weeks.
Tight weeks occur when there are small variations in price from one week to the next. This indicates a lack of supply and accumulation by institutions. You can configure the minimum number of weeks and the maximum % change in price from week to week.
Up weeks are defined as multiple weeks where each close is higher than the previous week. This pattern is often a signal of institutional buying. At a minimum, O'Neil looked for three weeks of upward price action. You can configure the minimum number of up weeks required.
Flat Base
A flat based is relatively tight price action within a range. A flat base takes 5+ weeks (25+ days) to form. Although flat bases are often found after a more significant advance in price, this isn't always the case. With that in mind, LevelUp does not currently have requirements for a prior uptrend while scanning for flat bases.
In a flat base, price declines should be no more than 15% from intraday peak to trough. This is an important distinction, as with a consolidation (see below) the maximum depth is based on the high of first bar that started the base.
Default Requirements:
▪ Daily minimum length: 25 days.
▪ Weekly minimum length: 5 weeks.
▪ Depth maximum: 15% (daily or weekly).
Consolidation
A consolidation differs from a flat base in that the former can be much deeper and last longer. In addition, the fluctuations in price of a flat base are often tighter than a consolidation.
Unlike a flat base, the maximum depth is calculated from the high at the start of the consolidation. The minimum length and maximum depth can be customized for all flat base and consolidation patterns.
Default Requirements:
▪ Daily minimum length: 30 days.
▪ Weekly minimum length: 6 weeks.
▪ Depth maximum: 35% (daily or weekly).
Pullback In Price And Potential Bounce
A pullback occurs when the price declines after an initial advance. This is normal price action as prior support levels are tested. Pullbacks also act as a way to shakeout weak holders before the primary trend resumes.
With LevelUp you specify the type of pullback to track: lower lows, lower closes or both. You also set the minimum number of bars required. Different values can be set for daily and weekly charts. Once your requirements are met, LevelUp will highlight the bar after the pullback is complete. This is often a potential entry/add point.
52-Week Highs
A 52-week high refers to the highest closing price within the past 52 weeks. Trend followers often use the 52-week high as a signal to identify assets with upward momentum, considering it as an indication of a potential trend continuation. This approach assumes that assets that have reached a 52-week high are more likely to experience further price appreciation.
52-week highs can be shown on both weekly and daily charts. You can set the location where the 52-week high symbol is shown: above the bar, below the bar, at the top of the chart or at the bottom of the chart.
Marked Highs And Lows
Marked highs/lows, often referred to as pivot highs/lows, can be helpful to find areas of potential support and resistance. As defined by William O'Neil, on a daily chart, a marked high is the highest high going back nine bars and forward nine bars. The number of days forward/backward is referred to as the period. The same concept applies to finding marked lows.
One benefit of LevelUp marked highs/lows is that you can customize the high and low periods on all timeframes.
There is an additional option when viewing marked highs/lows to see where a breakout occurs. The highlight is shown if the current bar high is above the most recent pivot high.
Comparing Stock Performance
With two or more copies of LevelUp installed, you can configure different settings and compare and contrast how indicators and signals perform relative to one another.
This is a great way to come up with your own custom layout for each timeframe, tailored to your preferences and trading style.
Stats And The Signals Table
The stats and signal tables can be very helpful to see price information and patterns at a glance. For example, you can quickly determine potential stoploss placement based on the distance to/from a moving average. The signals tables show the status of several key trend indicators, including 52-week highs, RS Line new high and RS Line new high before price.
Managing Long Term Trends
Depending on your trading style, there are many ways to take advantage of long term trends. For example, the chart that follows show how an uptrend can be a profitable trade whether holding for the duration or taking shorter term trades along the way.