指标

RSI Bullish Divergence (Oversold) BreakoutRSI BullDiv BO (Bullish Divergence Breakout)
This indicator identifies bullish RSI divergences and filters them using breakout confirmation to reduce false signals.
A bullish divergence occurs when price forms a lower low while RSI forms a higher low, indicating weakening bearish momentum. Instead of signaling immediately on divergence detection, the indicator waits for a breakout above the intervening swing high, helping confirm a potential trend reversal.
Features
Detects bullish RSI divergences automatically
Uses RSI momentum exhaustion principles
Breakout-based confirmation to improve signal quality
Configurable RSI length, oversold level, and pivot settings
Suitable for stocks, indices, futures, and cryptocurrencies
Signal Logic
Price forms a lower low.
RSI forms a higher low.
A bullish divergence is detected.
Buy signal is generated only after price breaks above the confirmation level.
Note Divergence indicates weakening downside momentum, not an immediate reversal. Signals are most effective when combined with trend analysis, support zones, volume confirmation, and risk management. 策略

指标

ICT Setup 05 [TradingFinder] Liquidity Sweep & OB Retest🔵 Introduction
Liquidity sweeps are one of those things traders see all the time, but they are easy to misread when viewed on their own. Price can run above a previous high or below a previous low, grab liquidity, and still continue in the same direction. What matters is what happens after the sweep. This indicator was built around that idea, using Liquidity Sweeps, CHoCH, Order Blocks, and OB Retests as parts of one complete setup instead of treating them as separate signals.
The setup starts from the New York Opening Range. Its high and low act as important liquidity references, and the indicator watches for price to sweep either Buy-Side Liquidity (BSL) or Sell-Side Liquidity (SSL).
After that sweep, it waits for a clear change in structure before considering the move valid. This helps separate a simple liquidity grab from a more meaningful shift in market direction.
Once a CHoCH is confirmed, the script identifies the relevant Demand or Supply Order Block and waits for price to come back into that area. The BUY or SELL signal does not appear just because an Order Block exists. Price first has to retest the zone and then show a directional reaction back out of it.
In practice, the full idea is simple :
Liquidity Sweep
CHoCH
Order Block
Retest
Reaction.
The indicator also marks Imbalance / Fair Value Gap (FVG) areas that appear after the structural shift. These zones are there to give more context to the move and make displacement easier to read, while the actual trading signal still comes from the Order Block retest and reaction. The result is a cleaner way to follow an ICT-style setup without having to manually connect every Liquidity Sweep, CHoCH, Order Block, Imbalance, and Retest on the chart.
🔵 How to Use
This indicator is designed to be read as a sequence, not as a collection of independent signals. The Liquidity Sweep, CHoCH, Order Block, Imbalance, and BUY/SELL marker are all showing different stages of the same setup. The main idea is to first see liquidity taken from one side of the New York Opening Range, then wait for price structure to shift, and only after that look for a reaction from the Order Block.
The indicator tracks the New York Opening Range from 08:00 to 09:30 New York time and then looks for setups during the 09:30 to 17:00 trading session. The Opening Range high acts as the Buy-Side Liquidity reference, while the Opening Range low acts as the Sell-Side Liquidity reference. A sweep by itself is not considered an entry. The setup only develops further if price confirms a structural change after that liquidity event.
🟣 Buy Setup
The bullish setup is the mirror image of the bearish sequence. It begins when price trades below the low of the New York Opening Range and takes Sell-Side Liquidity (SSL). The Opening Range low is treated as the liquidity reference, and when price moves below it, the SSL sweep is marked on the chart. Again, this sweep should not be read as a BUY signal by itself. It only tells the trader that liquidity below the range has been taken and that a potential bullish setup can now develop.
After the SSL sweep, the indicator starts looking for the opposite reaction in structure. It searches backward for a bullish candle body and uses the surrounding opening prices to define the bullish structural confirmation level. This level becomes the point price must reclaim before the liquidity sweep is treated as part of a valid bullish reversal sequence.
The bullish CHoCH is confirmed when price closes above that calculated structure level within the active life of the setup. Once this happens, the indicator marks the structural change on the chart. The important idea here is that the BUY setup does not assume that every move below the Opening Range low is a reversal. Price must first show that buyers have regained enough control to break the relevant structure.
After the bullish CHoCH, the indicator identifies and refines a Demand Order Block connected to the move. This becomes the main area to watch for the next stage of the setup. Instead of chasing price immediately after the structure break, the logic waits to see whether price returns to the Demand Order Block.
When price comes back into the Demand Order Block, the indicator records the retest. At this point, there is still no automatic BUY signal. A retest is only meaningful if price can actually respond from the zone.
The bullish confirmation requires price to print a bullish candle, close above the upper boundary of the Demand Order Block, and finish strongly enough within the candle's own range. This means the reaction needs to show that price has not simply touched the zone but has actually moved back out of it with bullish intent. As with the bearish side, Signal Mode controls how strict this confirmation needs to be.
The complete bullish sequence can therefore be read as :
SSL Sweep
Bullish CHoCH
Demand Order Block
OB Retest
Bullish Reaction
BUY
The Demand Order Block is invalidated if price closes below its lower boundary before the required reaction appears. The reaction also has a limited confirmation window after the first retest, so the script does not keep waiting indefinitely for a late bullish candle after price has already spent too much time around the zone.
A bullish Imbalance / FVG may also appear after the CHoCH when price creates sufficient displacement and leaves an inefficiency between candles. This can provide useful visual context for the strength of the bullish move, especially when the Imbalance and Demand Order Block are located close to each other. However, the Imbalance should be treated as additional context rather than a mandatory entry condition. The BUY signal itself is generated from the confirmed reaction after the Demand Order Block retest.
The easiest way to read the indicator is therefore to avoid starting from the BUY or SELL marker. Start from the liquidity event and follow the setup forward. When the Sweep, CHoCH, Order Block, Retest, and reaction all belong to the same sequence, the chart becomes much easier to understand and the final signal has clear structural context behind it.
🟣 Sell Setup
A bearish setup starts when price trades above the high of the New York Opening Range. This area is treated as Buy-Side Liquidity (BSL) because stops and breakout orders often accumulate above an established high. When price moves above this level, the indicator marks the BSL sweep on the chart. Importantly, the script is looking for the first side of the Opening Range to be taken. If both sides have already been swept, that event is not treated in the same way as the initial one-sided liquidity sweep.
The BSL sweep is only the beginning of the setup. Price moving above the Opening Range high does not automatically mean that a reversal is coming, and the indicator does not issue a SELL signal at this point. Instead, it starts looking for evidence that the bullish move has lost control and that bearish order flow is beginning to appear.
After the BSL sweep, the script searches backward through recent candles to locate the structural reference used for bearish confirmation. In the current logic, it looks for a bearish candle body and builds the confirmation level from the nearby opening prices around that structure. This level is then monitored as the point price must break to confirm the shift.
The next important event is the CHoCH. For the bearish setup, price must close below the calculated bearish structure level while the setup is still valid. When that happens, the indicator marks the CHoCH on the chart.
This is the point where the setup moves from a simple liquidity sweep into a confirmed bearish structural shift. If price does not confirm the break within the allowed life of the setup, the armed condition expires instead of remaining active indefinitely.
Once the bearish CHoCH is confirmed, the indicator identifies the relevant Supply Order Block associated with that move. The Order Block is refined before being displayed, so the highlighted zone represents the area the script considers most relevant for a potential bearish reaction rather than simply marking an entire candle without refinement.
From this point, the trader is no longer waiting for another structure break. The focus shifts to the Order Block Retest. The Supply Order Block remains active while price stays within its validity conditions. If price later returns into the block, the indicator records that first interaction as the retest.
A touch of the Order Block alone still does not produce a SELL signal. This distinction is important because price can enter an Order Block, remain inside it, or continue through it without producing a meaningful reaction. The script therefore waits for a bearish response after the retest.
For a bearish signal, price must produce a bearish candle and close back below the lower boundary of the Supply Order Block. The candle must also close sufficiently toward the lower portion of its own range. This additional close-location requirement is used to avoid treating weak or indecisive candles as confirmed bearish reactions. The exact strictness changes with the selected Signal Mode. When these conditions are satisfied, the indicator prints the SELL marker.
At that stage, the full bearish sequence has been completed :
BSL Sweep
Bearish CHoCH
Supply Order Block
OB Retest
Bearish Reaction
SELL
The Order Block can also become invalid before producing a signal. For a Supply Order Block, a close above the top of the zone invalidates it. The block also has a maximum lifetime of 1000 bars from its origin, so very old zones are not allowed to remain active indefinitely and generate late signals far away from the original setup.
The chart may also show a bearish Imbalance after the CHoCH. This happens when the move creates the required three-candle Fair Value Gap structure together with sufficient displacement. The Imbalance can help visually confirm that the structural shift was accompanied by aggressive price movement, but it is not required for the SELL marker itself. The actual signal is still based on the Supply Order Block retest and the bearish reaction from that zone.
🔵 Settings
Signal Mode : Controls how selective the setup is. More Signals uses wider confirmation windows and looser reaction requirements to capture more setups. Balanced provides a middle ground between signal frequency and confirmation quality. High Quality applies stricter confirmation conditions, shorter setup windows, stronger displacement requirements, and cancels an active setup when the opposite side of the Opening Range is swept.
Show Pattern : Shows or hides the structural elements of the setup, including the BSL/SSL liquidity levels and CHoCH markers. Turning it off keeps the underlying logic active while reducing visual information on the chart.
Show Signals : Shows or hides the BUY and SELL markers generated after a confirmed Order Block retest and reaction. The signal logic itself remains active even when the markers are hidden.
Order Block : Changes the colors used for bullish Demand Order Blocks and bearish Supply Order Blocks. These zones represent the refined areas monitored for a potential price retest and reaction.
Imbalance : Controls the colors of bullish and bearish Imbalance areas. These zones are displayed as additional context after the structural shift and do not directly control the BUY or SELL signal.
Show Opening Range : Displays the New York Opening Range high and low on the chart. These levels are calculated from the 08:00–09:30 New York session and are used as the main liquidity references for the setup.
Alert : Enables or disables automatic BUY and SELL alerts generated by the indicator. When enabled, the script can notify the trader when a confirmed bullish or bearish signal is completed.
🔵 Conclusion
The ICT Setup 05 Liquidity Sweep & OB Retest indicator is built to connect several ICT and Smart Money Concepts into one readable sequence. Instead of treating a Liquidity Sweep, CHoCH, Order Block, Imbalance, and Retest as separate events, it shows how they can develop together around the New York Opening Range and form a complete setup from liquidity grab to reaction.
Its main purpose is to make the structure behind BUY and SELL signals easier to read directly on the chart. By waiting for a Liquidity Sweep, structural confirmation, a refined Order Block, and then a valid retest and reaction, the indicator helps traders focus on context rather than isolated signals. Imbalance zones add another layer of visual information, while the final signal remains centered on the confirmed Order Block reaction.
指标

Adaptive Market Acceptance ProfileAdaptive Market Acceptance Profile
The Adaptive Market Acceptance Profile is a price-behavior framework designed to visualize where the market has demonstrated sustained acceptance across a configurable historical window.
Rather than measuring activity only through raw volume concentration, the profile studies how consistently price occupies, revisits, and retains individual price regions. The result is a spatial map separating stronger acceptance areas from transitional and lower-retention regions.
At the center of the framework is the Acceptance Core — the price region carrying the strongest combined acceptance evidence within the active profile.
The engine also tracks whether this core structure is migrating higher, migrating lower, or remaining relatively stable.
🔶 MARKET ACCEPTANCE
Markets do not interact with every price equally.
Some regions are visited briefly before price moves away. Other regions repeatedly attract price, retain closes, and remain involved in market activity across the observation window.
The indicator organizes these differences into an adaptive horizontal profile.
Instead of asking only:
“Where did activity occur?”
the framework asks:
“Where has price demonstrated sustained acceptance?”
This distinction allows the profile to describe the structure of price acceptance rather than functioning as a conventional volume-at-price display.
🔹 Acceptance Profile
The visible horizontal profile divides the observed price range into adaptive price regions.
Each region is evaluated using multiple components of price behavior, including:
Occupancy — how consistently price interacts with the region.
Retention — the degree to which price remains associated with the region rather than immediately moving away.
Revisits — repeated interaction with previously occupied price areas.
These components are combined into a relative acceptance measurement.
Longer and more prominent profile rows represent areas carrying stronger acceptance evidence within the current observation window.
The profile is therefore comparative: it describes how acceptance is distributed across the analyzed range rather than assigning a probability to an individual level.
🔹 Acceptance Core
The Acceptance Core identifies the strongest acceptance concentration detected by the engine.
It acts as the principal structural reference of the profile and is highlighted separately from surrounding regions.
The Acceptance Core should not automatically be interpreted as support, resistance, a price target, or an expected reversal point.
Instead, it answers a different question:
Where has the strongest sustained price acceptance developed within the observed structure?
Current price can move significantly away from the Acceptance Core while the historical acceptance structure remains valid.
🔹 Acceptance Migration
Acceptance is not necessarily stationary.
As new market information enters the observation window, the dominant acceptance structure can gradually relocate.
The engine therefore monitors the evolution of the Acceptance Core and classifies its migration as:
MIGRATING HIGHER — acceptance structure is progressively developing at higher prices.
MIGRATING LOWER — acceptance structure is progressively developing at lower prices.
STABLE — displacement of the dominant acceptance structure is limited.
Migration describes the movement of observed acceptance. It is not a directional forecast.
🔹 Retention Context
The indicator evaluates how effectively price remains associated with its accepted regions.
Retention is summarized into contextual states such as:
HIGH
MODERATE
LOW
Higher retention indicates that price has demonstrated stronger persistence around the active acceptance structure.
Lower retention indicates weaker persistence or a more transitional environment.
These classifications describe observed market behavior and should not be interpreted as trade signals.
🔹 Revisit Evidence
Repeated interaction can provide additional information about whether a price region remains structurally relevant.
The Revisits measurement summarizes this behavior relative to the current profile environment.
A region repeatedly involved in price interaction can accumulate different acceptance characteristics from a region visited only briefly.
Revisit evidence is evaluated together with occupancy and retention rather than being treated as an independent signal.
🔶 ADAPTIVE VISUAL FRAMEWORK
The profile uses a controlled visual hierarchy designed to keep the underlying chart readable.
Stronger acceptance regions receive greater visual emphasis, while weaker or low-relevance regions are progressively reduced.
A relevance gate also suppresses distant regions when their evidence is insufficient to justify prominent display.
Strong historical acceptance can remain visible when its evidence remains meaningful.
This prevents the profile from simply following current price while also limiting unnecessary historical clutter.
The Acceptance Core remains the primary visual reference.
🔶 MARKET STATE DASHBOARD
The compact dashboard summarizes the active profile through five components:
STATE — current acceptance condition.
RETENTION — persistence of price within the active structure.
REVISITS — relative repeated interaction.
MIGRATION — movement of the dominant acceptance structure.
ACCEPTANCE CORE — price of the strongest detected acceptance concentration.
The dashboard is intended to summarize the profile—not replace interpretation of the underlying chart.
🔶 METHODOLOGY
The engine follows the analytical sequence:
Price Distribution → Occupancy → Retention → Revisit Evidence → Relative Acceptance → Acceptance Core → Core Migration
The observed price range is divided into multiple regions.
Historical price interaction is then evaluated within those regions and converted into relative acceptance evidence.
The strongest qualifying concentration becomes the active Acceptance Core.
As the observation window evolves, changes in that dominant region are used to evaluate Acceptance Migration.
Because the framework is adaptive, its profile can change as older observations leave the calculation window and new market behavior enters it.
🔶 HOW TO INTERPRET THE PROFILE
The indicator is designed for contextual analysis rather than mechanical entries.
For example, traders can study whether:
price is operating inside or outside its strongest accepted region;
acceptance is becoming concentrated or fragmented;
the dominant acceptance structure is migrating;
current price has separated significantly from the established Acceptance Core;
or a previously important acceptance region continues to retain structural relevance.
These observations can then be combined with independent market-structure, volatility, trend, execution, and risk-management analysis.
🔶 SETTINGS
Lookback / Observation Window
Controls how much historical price behavior contributes to the active acceptance structure.
Profile Rows
Controls the vertical resolution used to divide the analyzed price range.
More rows provide greater spatial granularity, while fewer rows create a broader structural representation.
Profile Width
Controls the maximum horizontal footprint of the acceptance profile.
Relevance Filtering
Controls how aggressively weaker or distant acceptance regions are visually suppressed.
Visual settings allow the profile, Acceptance Core, text, and dashboard to remain readable across different chart themes.
🔶 CONFIRMATION & LIMITATIONS
Adaptive Market Acceptance Profile is derived from historical chart information.
It does not display exchange order-book liquidity and should not be interpreted as a Level II/order-flow representation.
Acceptance is an internally calculated behavioral measurement rather than a probability of future price movement.
The Acceptance Core does not guarantee support, resistance, reversal, continuation, or future return to that price.
Migration describes changes in historical acceptance structure; it does not predict market direction.
Results can vary with instrument, timeframe, observation length, volatility regime, and available market data.
The indicator does not provide automated buy or sell recommendations.
🔶 ORIGINALITY
Adaptive Market Acceptance Profile was independently developed as a behavioral price-acceptance framework.
Its central objective is to measure and visualize persistent acceptance across price regions, rather than reproduce a conventional volume profile or represent exchange-level order flow.
The combination of occupancy, retention, revisit evidence, adaptive relevance filtering, Acceptance Core identification, and Acceptance Migration creates the indicator's analytical framework.
The visual profile is used as a spatial representation of that framework rather than as a conventional volume-at-price histogram.
Release Notes — v1.2
Initial public release
Adaptive acceptance distribution across price regions.
Occupancy, retention, and revisit-based acceptance framework.
Acceptance Core identification.
Higher / Lower / Stable Acceptance Migration.
Adaptive relevance filtering for distant low-information regions.
Controlled profile hierarchy for reduced chart clutter.
Compact market-state dashboard.
Cross-market visual validation performed across equities, metals, cryptocurrency, and FX. 指标

Lorentzian Classifier AI - Prediction Accuracy [Dots3Red]🧭 LORENTZIAN CLASSIFIER AI - PREDICTION ACCURACY TRACKER
Lorentzian distance is a way of measuring how similar two market states are that doesn't let a single outlier feature dominate the comparison. This script uses it to find historical moments that genuinely resembled right now, has them vote on direction — and then keeps an honest, running record of whether those votes have actually been right.
✨ WHY THIS MATTERS
Most similarity-based classifiers measure "how alike" two moments are using plain squared differences — the market equivalent of a ruler. The problem: if one feature briefly spikes (a volatility burst, a momentum blow-off), a ruler-based measurement can wrongly flag two genuinely similar moments as very different, just because of that one temporary outlier.
Lorentzian distance compresses that effect. Two market states that matched closely overall still get recognized as similar, even when one feature happened to spike on one of them. The practical result is a comparison method that's less easily fooled by noise.
📊 Accuracy: 58% (n=214)
It's a scoreboard. Out of 214 predictions this classifier has made on this specific chart, 58% turned out correct. It updates continuously as more predictions resolve.
⚙️ HOW IT WORKS
📐 Four features — RSI, CCI, a directional strength measure (from DMI), and a momentum reading (ROC), each normalized to a comparable scale. Every bar's combination of these four values is treated as a "market state."
🔍 Lorentzian comparison — instead of squared Euclidean distance, similarity between the current state and every past state is measured using log-space differences: log(1 + |difference|) per feature, summed. This is the mechanism that reduces the influence of any single feature being temporarily far apart.
🗳️ K-nearest-neighbor vote — the most similar historical states (configurable count) vote on what happened next: did price rise or fall over the following bars? The vote split becomes the current lean, shown as a percentage.
🎯 Rolling, honest grading — every prediction is stored at the exact moment it's made and only graded once its outcome window has fully closed, using the vote as it stood at that time — never recalculated afterward with the benefit of hindsight. This is what makes the accuracy stat trustworthy rather than circular.
🔒 Non-repainting — predictions and their grading both happen strictly on confirmed bars.
🧭 HOW TO USE
1️⃣ Wait for the training sample to build. Early on a fresh chart, the dashboard shows "Training…" instead of a vote — the classifier needs a real base of past states before comparisons mean anything.
2️⃣ Check the Accuracy stat before weighting any single vote. A 65% accuracy over 200+ predictions is meaningfully different from 65% over 15 — the sample size tells you how much to trust the number itself.
3️⃣ Use Min Vote Confidence to filter noise. Labels only appear when the vote split is sufficiently lopsided (60%+ by default) — a near-coin-flip 52% lean isn't flagged, since that's not a meaningful signal either direction.
4️⃣ Treat the vote as a lean, not a forecast. It's an answer to "what happened after similar past moments," not a guarantee about this specific one.
5️⃣ Let the accuracy stat itself guide your confidence in the tool. If it's tracking meaningfully above 50% over a large sample, the method is finding something real on this chart. If it's hovering near 50%, that's honest information too — this particular market state may not carry much predictive signal here.
⏱️ WHICH TIMEFRAMES WORK BEST
This method needs a genuinely large history of past market states to compare against, which makes 15-minute through 4-hour the most effective range.
On very short timeframes (1-3 minute), the training sample grows quickly, but each individual state is closer to noise — indicator readings barely settle before the next bar arrives. On daily or higher timeframes, the states themselves are more meaningful, but building even a modest training sample takes considerably longer in real time. 15-minute to 4-hour balances the two: enough distinct market conditions cycle through regularly to build a genuine sample within a reasonable window, while each state still reflects settled, meaningful market behavior.
🛠️ SETTINGS
📐 Features — independent lengths for RSI, CCI, DMI, and ROC
📊 Lorentzian Engine
• Prediction Horizon — how many bars ahead each prediction looks, and the outcome used to grade it
• K Neighbors — how many similar past states vote on the current one
• Max / Min Training Samples — memory cap and the minimum before votes display
• Min Vote Confidence to Signal — how lopsided the vote must be before a label appears
🎨 Visualization — prediction labels, optional background tint by current lean, independent bullish/bearish colors
🖥️ Dashboard — show/hide, position — current vote split, training sample progress, accuracy with sample size, prediction horizon, and K neighbor count
📝 NOTES
The accuracy stat is specific to this chart, this timeframe, and these settings — it does not transfer to other instruments or configurations. A classifier that performs well on one chart may perform differently on another; the honest way to know is to let it run and check the accuracy stat for the specific setup you're using.
⚠️ DISCLAIMER
This is an analytical and visualization tool. It does not generate trade signals and does not constitute financial advice. Historical prediction accuracy does not guarantee future performance. 指标

Structure Break Volume Profile
Structure Break Volume Profile combines confirmed market structure breaks with a volume profile of the structure completed before a Change of Character (CHoCH).
The indicator detects confirmed swing highs and lows, classifies structural breaks as BOS or CHoCH, and analyzes the volume distribution of the previous completed market structure. It then identifies the structure’s most relevant volume areas, including:
Point of Control — POC
High Volume Nodes — HVN
Low Volume Nodes — LVN
Estimated Ask/Bid pressure
Bullish and bearish structure transitions
The main objective is to provide additional context after a structural reversal. Instead of evaluating CHoCH only as a price event, the indicator shows where volume was concentrated within the structure that existed before the break.
Market Structure Logic
The indicator uses confirmed pivot highs and pivot lows to determine market structure.
Structural breaks are classified as:
BOS — Break of Structure: A continuation break in the current structural direction.
CHoCH — Change of Character: A break against the previous structural direction, suggesting a potential transition or reversal.
The volume profile is generated only when a CHoCH occurs.
A BOS does not create a new profile and does not delete the active CHoCH profile.
Previous Structure Selection
When a bearish CHoCH occurs, the indicator analyzes the completed bullish structure.
It tracks:
The highest confirmed pivot of the bullish structure
The lowest confirmed pivot of the bullish structure
All eligible volume activity before the bearish CHoCH bar
When a bullish CHoCH occurs, the same process is applied to the completed bearish structure.
This allows the volume profile to represent the full price range of the structure that existed before the directional transition.
Volume Profile
The profile divides the completed structure’s price range into configurable rows and distributes historical volume across those price levels.
The default number of rows is 50.
Two visual architectures are available:
Ask/Bid
This is the default profile style.
Each volume row is divided into:
Green estimated buyer/Ask pressure
Red estimated seller/Bid pressure
The estimated pressure split is derived from the candle close location within its high-low range.
Total Volume
This mode displays each row as a unified total-volume histogram without separating estimated buyer and seller pressure.
The profile can be aligned to either side of the completed structure:
Left
Right
The default profile position is Left.
Point of Control — POC
The POC represents the price row with the highest total volume inside the completed structure.
The POC:
Is calculated from total row volume
Is projected toward the latest candles
Updates its right endpoint as new bars appear
Uses the configurable Bars to Right distance
Includes a label with its direction and numerical price
Can be used as a potential retest, reaction, acceptance, or rejection level
Bullish and bearish POC retest alert conditions are included.
High Volume Nodes — HVN
HVNs represent significant local volume peaks outside the POC row.
These areas may indicate:
Strong historical participation
Price acceptance
Consolidation zones
Potential support or resistance
Areas where price may slow down or rotate
HVNs are displayed as horizontal projected columns. Each column begins at its corresponding profile row and extends toward the latest candles.
HVN settings include:
Maximum HVN count
Minimum volume relative to POC
Minimum row spacing
Column color
Column transparency
Label visibility
Label size
Label offset
Each HVN label includes its rank and numerical price.
Low Volume Nodes — LVN
LVNs represent significant local volume troughs inside the completed structure.
These areas may indicate:
Low historical participation
Price rejection
Inefficient auction zones
Potential acceleration areas
Levels price may move through quickly
LVNs are displayed as horizontal projected columns with dotted borders.
Their color follows the CHoCH direction:
Bullish CHoCH: green LVN columns
Bearish CHoCH: red LVN columns
LVN settings include:
Show or hide LVN columns
Maximum LVN count
Maximum volume relative to POC
Minimum row spacing
Column transparency
Label visibility
Label size
Label offset
Each LVN label includes its rank and numerical price.
LVN columns are disabled by default to keep the chart clean.
Labels
All primary labels include numerical price values:
BOS price
CHoCH price
POC price
HVN price
LVN price
Independent size controls are available for:
BOS/CHoCH labels
POC labels
HVN labels
LVN labels
All label sizes default to Normal.
Important Settings
Fractal Length
Controls the pivot confirmation window.
The default input is 12. Because the internal pivot window is normalized to an odd value, an even input is automatically increased by one.
Larger values detect broader market structures but produce fewer and later signals. Smaller values react faster but detect more minor structures.
Break Confirmation
Two break modes are available:
Close beyond the level
Wick beyond the level
Close-based confirmation is enabled by default.
Bars to Right
Controls how far POC, HVN, and LVN elements extend beyond the latest candle.
The default value is 5.
Profile Source Bars
Controls the maximum historical storage used to calculate the latest CHoCH profile.
Increasing this value may help with very large structures but requires more processing.
Suggested Workflow
Identify the latest bullish or bearish CHoCH.
Observe the completed structure’s volume distribution.
Use the POC as the primary high-volume reference.
Use HVNs as potential acceptance or rotation areas.
Use LVNs as potential rejection or acceleration areas.
Compare the CHoCH direction with the profile’s estimated buyer and seller pressure.
Wait for price to revisit POC, HVN, or LVN areas.
Combine the reaction with trend, liquidity, momentum, volatility, or higher-timeframe context.
Watermark
An optional erdensedat watermark is displayed at the bottom center of the chart.
It is enabled by default and can be disabled from the Display settings.
Data and Calculation Notes
The indicator uses confirmed pivots, meaning structure detection occurs only after the required right-side bars are available. This reduces pivot repainting but introduces confirmation delay.
Standard Pine Script OHLCV data does not provide true exchange-level bid and ask execution data. Therefore, the Ask/Bid profile is an approximation based on candle structure and close location. It should not be interpreted as true footprint, order-flow delta, or exchange aggressor-side volume.
On symbols without reliable volume data, the script may use bar activity as a fallback so the profile can still be displayed.
For close-confirmed signals, users should consider creating alerts with Once Per Bar Close to avoid acting on an unfinished realtime candle.
Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, trading, or professional advice. Market structure, volume profiles, POC, HVN, LVN, and estimated Ask/Bid pressure do not guarantee future price behavior. Historical performance and past reactions are not indicative of future results. Always conduct your own research, use appropriate risk management, and consult a qualified financial professional before making trading or investment decisions. 指标

指标

Auto Trendlines [ITA]🟠 OVERVIEW
Auto Trendlines draws the current rising and falling trendlines from confirmed swing points, and counts how many times price has actually come back to each one.
A line through two points is not a trendline, it is a line. Every automatic trendline tool draws one the moment two pivots exist, and a lot of what ends up on the chart is exactly that - a line connecting two arbitrary highs that price has never once returned to.
What separates the two is how many times price came back to the line and turned away from it. A line with five touches is being respected by the market. A line with none is a drawing. So the count sits on the line itself rather than being left for you to work out by eye.
🟠 CONCEPTS
* Swing Point - A high or low with a set number of bars either side that did not exceed it. The line is built from confirmed swings only, so it does not move once drawn.
* Touch - Price reaching the line, not closing through it. Measured in ATR so the same setting behaves the same way on a five dollar stock and a seven hundred dollar index.
* Touch Spacing - A minimum number of bars between touches, so that one slow approach sitting on the line for several bars is counted once rather than several times.
* Break - A close beyond the line by more than the touch tolerance. The line stops extending, turns grey, and stays on the chart with the touch count it finished on, so you can see how respected it was before it gave way.
🟠 FEATURES
🔹 Rising and falling lines built from confirmed swing points, each with its own colour
🔹 A touch count carried on the line, so a respected line and an untested one are told apart at a glance rather than by memory
🔹 Optional fading of lines under a chosen touch count, which pushes untested lines into the background and leaves the tested ones standing out
🔹 Touch tolerance measured in ATR rather than points, so one setting works across symbols and timeframes
🔹 A minimum bar spacing between touches, so a single approach is not counted several times over
🔹 Breaks marked at the bar where the close crossed, with separate alerts for each direction
🔹 Broken lines stay on the chart, greyed, with their final count. A line that held five touches and then broke is worth seeing, and it can be switched off for only the two live lines
🔹 A line price has simply walked away from, without ever breaking it, is retired rather than drawn across years of chart
🟠 HOW TO USE
Swing Lookback is the setting that decides everything else. Raise it for fewer, larger and more significant lines. Lower it for more lines that react faster and mean less.
Read the touch count before you read the line. Two touches is the minimum any line has by construction, since it is drawn through two swings. It is the third and fourth that tell you the market is paying attention to it.
Set Fade Lines Under to 3 and the chart sorts itself. Lines nobody has tested recede, and the ones price keeps returning to are the ones you see.
Touch Tolerance controls how forgiving the count is. Too low and clean touches are missed because price turned a fraction early. Too high and everything nearby counts. Half an ATR is a reasonable starting point.
A break ends the line rather than flipping it. What price does after breaking a trendline it respected four times is a different question from what it does after breaking one it never touched, and the count is still on screen when it happens.
🟠 CONCLUSION
Drawing a line between two pivots is the part every tool does. Whether that line has ever mattered is a different question, and it is answerable with a number rather than an opinion. 指标

指标

Quantum STS Lite📊 WHAT IS QUANTUM STS LITE?
Quantum STS Lite is a session-based chart mapping tool built around session level fakeouts.
Price frequently sweeps beyond session highs and lows before reversing. Quantum STS Lite maps each session's range and draws reference levels at configurable offsets beyond the session high and low — giving you a visual plan for where to watch for entries.
Created to help traders pass prop firm challenges with default settings sized for MNQ1. Works on any futures instrument on funded or real accounts.
🚀 KEY FEATURES
Session Boxes
Five fully configurable sessions — Asia, London, NY Pre-Open, NY AM, and NY PM. Each session draws a clean background box with its own color, name, timezone, and start/end time. All times are entered in the session's local timezone. No conversion needed.
Session Entry Levels
When a session closes, reference levels are drawn for the next session — one short level anchored to the session high and one long level anchored to the session low, each with its own point offset. Configure your offsets to position the levels where you expect the fakeout to exhaust. All settings live inside the session group you're trading.
Session H/L Extensions
When a session closes, its high and low extend as dotted lines until the same session opens again. Color matches the session automatically. Toggle per session. Keeps the previous session's range visible as a reference without cluttering the chart.
Key Static Levels
Built-in reference levels — Previous Day High/Low, Previous Week High/Low, Previous Month High/Low, Day Open, Week Open, Month Open, and optional Round Numbers with a configurable interval. Each level has its own color picker and is independently toggleable.
Session Box Levels
Each session box can show its 25%, 50% (midline) and 75% levels, with individual colors and a shared line style and width. Midline on by default, quartiles off. Levels update live, freeze at session close, and follow the History setting. Optional labels and an Extend Levels toggle to project them past session close.
Opening Range
Marks the first N minutes after any enabled session's open, with break or retest signals, long and short direction toggles, multi-session support, box history, and alerts. Boxes are bound to session times and frozen at each session's end.
Trend Cloud
Adjustable fast/slow EMA cloud for trend context — blue bullish, pink bearish.
snapshot
Anchored VWAP
Optional single-line VWAP anchored to session, day, week, or month.
Alerts
Alerts for session starts, session closes, Opening Range breaks, VWAP crosses, and individual level touches. Level touch alerts persist for the full session duration — not just while the visual line is visible — so you get notified whenever price reaches a level regardless of when it happens.
指标

ATK/DEF Temporal Session Swing State EngineATK/DEF — Temporal Session Swing Structure is a quantitative market observation framework built around **Session + Factors + Structure**.
The system organizes market structure into three hierarchical levels:
* **MAJOR Structure** — 4-Hour
* **MINOR Structure** — 1-Hour
* **MICRO Structure** — 15-Minute
These three structural layers are evaluated across **Asia, London, and New York sessions**, allowing the dashboard to display how market conditions are distributed across different structural levels.
### Core Framework
**Session + Factor + Structure**
The system combines session context with multiple quantitative factors, including:
* Multi-timeframe price position
* Swing structure
* Volume relationships
* Liquidity ratios
* ATR expansion and contraction
* Swing frequency
* Swing alternation
* Swing efficiency
* Swing testing structure
* Swing acceptance
* Session high / low structure
* Session breakout states
The dashboard organizes these factors into a structured view rather than relying on a single timeframe or isolated market condition.
### Major / Minor / Micro Structure
The three structural levels provide a hierarchical representation of market movement:
**MICRO → MINOR → MAJOR**
Each layer represents a different structural scale, while the dashboard presents their relationships together with the current session environment.
This framework is designed to reduce isolated timeframe interpretation by combining multiple structural observations into a quantitative display.
### Session Structure
Asia, London, and New York are treated as independent market environments.
For each session, the system records and evaluates:
* Session High
* Session Low
* Session Open
* Session Close
* Session range
* Session breakout state
* Session structural conditions
Session information is displayed together with the Major, Minor, and Micro structural layers.
### Quantitative Dashboard
The dashboard integrates the calculated factors into several observation layers, including:
**Position → Swing Structure → Frequency → Efficiency → Testing → Acceptance → Volatility**
The framework focuses on how price interacts with defined session ranges and structural bol, while the dashboard provides the corresponding multi-timeframe context.
### Market Observation
This indicator is designed for **market observation, quantitative analysis, and defined decision making**.
**For market observation, quantitative analysis, and defined decision making only.**
指标

Strong Contrarian Zones | ProjectSyndicateStrong Contrarian Zones maps the one thing a reversal trader actually wants to see — where the crowd is exhausted and about to be flushed — and grades it before price turns. Every meaningful swing high and low is a place a crowd committed; the indicator measures how stretched, how climactic and how one-sided that commitment was, and only the genuinely exhausted ones become zones. A weak, ordinary pivot prints nothing. A stretched, high-conviction extreme prints a graded, double-shaded zone — teal for a buy-dip, magenta for a sell-rip — with the whole read-out sitting inside the box. Then it waits for the tell: a liquidity grab beyond the zone that fails and reclaims. That sweep-and-reclaim is the contrarian trigger — the moment the trapped side gets taken and price snaps back.
Most reversal and support/resistance tools draw a level and leave you to guess which one matters. This one grades the exhaustion, ranks the zone, tells you which side is trapped, and confirms the turn only when a failed break proves it.
GBPUSD
🎯 The Contrarian Conviction Engine — the core. Every zone is born from a swing pivot, but a pivot alone is not a signal. At the moment each pivot confirms, the engine scores it 0–10 across seven contrarian factors and only draws the zone if the score clears your Min Conviction: RSI extreme (oversold into a low, overbought into a high), momentum divergence versus the prior same-side pivot (price makes the new extreme, RSI refuses), rejection wick (the candle spikes and slams the door), volume climax (capitulation / blow-off over an adaptive baseline), mean-reversion stretch (how many standard deviations price is from its mean), order-flow pressure (intrabar absorption — buyers stepping in at the low, sellers at the high) and a Bollinger-band pierce (price traded outside the band and rejected). Quiet, middling pivots are filtered out. Only real exhaustion becomes a zone.
🧭 Buy-Dip & Sell-Rip Zones — where the levels come from. A qualifying swing low prints a ▲ BUY-DIP zone (teal); a qualifying swing high prints a ▼ SELL-RIP zone (magenta). Every zone is normalised to one clean ATR-based thickness centred on the swing, so the map reads consistently instead of a mess of fat and thin boxes. Overlapping zones are suppressed, the oldest recycle past your cap, and each box is anchored where the exhaustion formed and extends to the live bar — so you can see when the crowd got trapped.
⚡ Sweep & Reclaim — the trigger that confirms the turn. A raw zone is a setup, not an entry. The engine watches each zone for the classic contrarian sequence: price sweeps beyond the border (a liquidity grab that runs the obvious stops), then fails and reclaims — closing back through the zone within your window. That failed break at an already-exhausted level is the highest-odds contrarian entry on the chart. Each reclaim is scored 0–10 on grab depth, reclaim speed, rejection wick, volume surge, the zone's own conviction and reclaim displacement, and the zone's state flips to ⚡RECLAIM with that score printed inside it. Accept decisively through the level instead, and it is not a reversal — it is a break.
🌡️ Live Strength & Decay — the zone earns or loses its grade. Birth conviction seeds a live 0–10 strength that keeps updating: defended retests and reclaimed-and-held sweeps push it up, and if price ignores a zone for long enough its strength decays toward a floor — an untended level quietly stops shouting. Strength drives both the label tier and the depth of the shading, so the heavy zones are visibly darker and always win your eye.
🏷️ In-Zone Strength Labels — the signature read, inside the box. Every zone carries its full read-out inside the shaded area, never jutting out to the side: the side and grade on line one (▲ BUY-DIP / ▼ SELL-RIP, ★ stars, an X/10 score and a tier — ELITE / STRONG / PRIMED / WEAK / FORMING); the birth conviction and a firing-factor fingerprint on line two (RSI · DIV · WICK · VOL · STR · PRS · BB — exactly which contrarian factors built this zone); the retest and defended-sweep counts plus the live state on line three (SWEEPING / ⚡RECLAIM x.x / BROKEN); and the anchor price on line four. One glance tells you what the zone is, why it exists and where it stands right now.
XTI Oil
🔄 Breakers — nothing is wasted on a real break. When a zone is genuinely accepted through rather than reclaimed, it does not just vanish. Optionally it flips side in place — a broken buy-dip becomes a fresh sell-rip and vice-versa — so a failed reversal is recycled into a break-and-retest level pointing the other way. The trapped side has been taken; the zone now works for the new direction.
🧼 Clean-Chart Discipline — zones and nothing else. No moving-average spaghetti, no oscillator sub-pane, no dashboard, no stat table. Just graded contrarian zones, their in-zone labels and a dotted midline. A tight set of controls — max live zones, overlap suppression, a strong-only filter and idle decay — keeps only the levels that matter on screen. Everything else lives in the alerts.
🎨 Fully Themed & Configurable. Custom bullish and bearish tones; gradient double-shading with adjustable transparency, borders and midline; normalised or raw zone height by ATR or percent. Tune the whole conviction engine — RSI length and oversold/overbought references, mean-reversion length and stretch reference, Bollinger length and pierce reference, volume baseline and climax reference, rejection-wick and order-flow references, divergence reference — and reweight all seven factors independently. Tune the trigger — sweep depth, reclaim window and confirmation depth, decisive-break acceptance, breaker flip — and the live-strength weights, decay length and floor. Labels are fully controllable: size, placement (inside-right, inside-centre or classic outside), background and text colour. The on-chart reclaim triangle is off by default and one click away.
NVDA
🔒 Honest, Synthetic Core. This is a behavioural reversal-mapping tool, not a live order-book or positioning feed. It infers exhaustion from price, volume and momentum, so it runs on any market, but it does not read real order flow. Zones confirm a few bars after the swing (that is how pivots work), and a reclaim on the live bar can still change until the bar closes. A zone's price is fixed the moment its pivot confirms, but its relative strength and shading can re-rank as it is retested, decays while ignored, or is outshone by stronger new zones. It is a risk-awareness and attention tool for ranking where the crowd is trapped and flagging when a failed break confirms a turn — not a backtested edge and not a promise that price will react at any level.
🔔 Native Alerts. Bullish / Bearish Zone Proximity and their Strong variants fire as price closes in on a zone; Zone Touch / Retest, Zone Sweep (liquidity grab) and Zone Break (accepted) track the lifecycle; and Bullish Reclaim, Bearish Reclaim and Any Reclaim fire the moment a swept zone snaps back — the contrarian entry itself. Set the strength threshold once and let the chart stay silent until price is near real trapped size.
🎯 Why this is different. A raw support/resistance line is static and un-graded — you eyeball a touch and guess. A single oscillator screams oversold for a hundred bars in a trend and gets you run over. Strong Contrarian Zones fuses seven contrarian reads into one graded score, only marks the exhausted extremes, and refuses to call a reversal until a sweep-and-reclaim proves the trapped side is being taken — on any symbol, at any timeframe.
🚀 Apply to Gold (XAUUSD), Silver, Forex, Crypto, Indices and Futures on any timeframe. Because conviction is volatility-normalised and the trigger is structural, the read travels across symbols without re-tuning; volume-weighted markets sharpen the climax and order-flow factors where the tape carries clean volume.
💡 Cleanest setup: raise Min Conviction so only the genuinely exhausted extremes print; lean on the Divergence weight — a failed-break reclaim that also carried divergence is the strongest read on the chart; turn on Only Alert Strong Reclaims to fire on top-tier triggers only; widen overlap suppression and cap max zones for a de-cluttered map; and keep decay on so ignored levels fade instead of cluttering price.
🎯 How To Trade It — Two Approaches
Everything hinges on one read: is the crowd exhausted here, and has the failed break confirmed the flush yet?
⚡ 1) Trade the reclaim — the confirmed reversal
Use when a high-conviction zone is swept and reclaims.
Wait for the tell — a ▲ BUY-DIP zone swept below then reclaimed is a long trigger; a ▼ SELL-RIP zone swept above then reclaimed is a short trigger. The zone state flips to ⚡RECLAIM with a 0–10 score.
Read the grade — ELITE / STRONG reclaims with a high conviction score and a DIV or WICK fingerprint are the ones to take; let LIGHT ones go.
Trigger: enter on the reclaim close, in the direction of the snap-back, with structure agreeing.
Target: the mean / opposite side of the range, or the next zone beyond.
Stop: on the far side of the sweep extreme — beyond where the grab already failed.
BTC
🧱 2) Fade the zone — the exhaustion barrier
Use on the first tap of a strong, untested zone while price arrives tired.
A dense ELITE / STRONG zone can repel price on first contact — the classic reversal-from-a-level. The Proximity alert flags the run-in.
Trigger: fade the first touch back toward the mean, ideally when price arrives over-extended into an ELITE-grade zone with conviction factors firing.
Invalidation: acceptance through the zone. Once price closes decisively beyond it (a Zone Break, not a reclaim), the trapped side is being taken — stand aside or flip with the breaker.
✋ Stand down — the map says wait
FORMING / WEAK zones are minor exhaustion, not walls. Nothing to lean on.
Decayed (faded) zones have been ignored too long — they carry far less fuel.
A zone that is swept but has not reclaimed is still in play — SWEEPING, not confirmed. Wait for the close.
No strong zone near price, or price mid-range between zones — wait for contact with a ranked zone and let the alert bring you in.
Rule of thumb: ⚡ High-conviction zone swept and reclaimed → trade the snap-back, target the mean. 🧱 Dense untested zone + tired arrival on first touch → fade back to the mean until acceptance proves otherwise. ❄️ Forming, weak or decayed zones, or no zone near price → stand down until the exhaustion lines up. 指标

指标

Trend & Pullback %Trend & Pullback %
This indicator breaks price action into a simple sequence of legs — trend moves and pullbacks — and labels the percentage size of each one directly on the chart, so you can see at a glance how far the market ran before it corrected, and how far it corrected before resuming.
How it works
The script tracks consecutive candle direction to identify when a trend leg (green candles) is building and when it flips into a pullback leg (red candles).
When direction reverses, the leg that just ended is closed out and labeled with its % move — measured from where that leg started to its extreme (the high for a trend leg, the low for a pullback).
Each new leg always starts exactly where the previous one finished, so a pullback is measured from the prior trend's top, and the next trend leg is measured from that pullback's bottom — giving you a continuous, non-overlapping read of the swing structure.
A live label on the current bar shows the running % of whatever leg is still forming.
Separately, whenever N consecutive same-colored candles occur (default: 5, adjustable), a "Run" label shows the total % move across just that streak — useful for spotting momentum bursts independent of the broader swing.
Inputs
Consecutive candle count for run labels
Toggle leg labels, run labels, and the live running-% label
Minimum leg % filter (hides small/noisy legs)
Custom colors for trend vs. pullback legs
Notes
Works on any symbol and timeframe.
This is a visual/analytical tool for reading trend and pullback structure, not a buy/sell signal generator — use it alongside your own strategy and risk management. 指标

Fair Value Box John TITLE
Fair Value Box — Session Opening Range
DESCRIPTION
A precise, multi-timeframe Fair Value Box indicator that captures the exact opening minute's body range (open-close) at London and US market open, then extends it across the session as a visual reference.
KEY FEATURES
• Automatic session detection (London & US open times in exchange timezone)
• Captures the 1m opening candle's O/C range at exact session start — works identically on 1m, 5m, 15m, hourly, or any timeframe
• Fixed box range (no expansion during the session) — remains locked to the opening minute's body
• Two distinct box colors (teal for London, orange for US) with clean, semi-transparent fill
• Boxes grow right to track session progress; freeze at session close
USE CASES
• Identify institutional opening range behavior
• Track price acceptance/rejection of the session's first-minute range
• Reference level for scalping and intraday range trading
• Confluence with other key levels (previous day high/low, overnight moves)
TECHNICAL NOTES
Uses request.security_lower_tf() to reliably extract the 1m opening candle across all chart timeframes. Session times are timezone-aware and adjust automatically for daylight saving time.
SETTINGS
• Show Fair Value Box: Toggle on/off
• London Box Color: Customize London session box
• US Box Color: Customize US/Regular session box
• Session Timezone Inputs: Adjust for your broker's feed if needed
Perfect for traders who value precision opening range analysis on NAS100, indices, and forex during London and New York sessions. 指标

FT_TV_MRFT_TV_MR is a Pine Script® v6 library developed to provide reusable tools for evaluating the practical manual replicability of systematic trading strategies and for visualizing time-sensitive trade-management events.
Its core Manual Replicability engine analyzes completed strategy trades against a configurable operating-time window. It distinguishes entry and exit events, classifies different exit types and measures how frequently strategy actions occur inside or outside the time period in which a trader is available to manage the strategy.
The library also includes complementary visualization utilities for maximum trade-duration limits, scheduled entry/exit events and SMA-based trailing logic.
Manual Replicability Engine
The engine maintains a persistent MRState containing registered order IDs, event classifications, trade counters, time-window statistics and visualization state.
For each completed trade it can evaluate:
Whether the entry occurred inside the configured operating window.
Whether the exit occurred inside the configured operating window.
Whether both entry and exit were manageable within that window.
Whether an out-of-window exit was generated by a fixed or dynamic exit mechanism.
The distribution of strategy entries across the 24 hours of the day.
A synthetic Manual Replicability score designed to highlight strategies that require less intervention outside the trader's available hours.
Main exported functionality
new() — Creates and initializes a new MRState object used by the Manual Replicability engine.
add_id() — Registers additional strategy order IDs and classifies them by entry/exit role and exit type, allowing the replicability analysis to be extended beyond the default order identifiers.
reset() — Resets accumulated statistics and removes the associated Manual Replicability visual objects.
run() — Main Manual Replicability analyzer. It processes completed strategy trades, compares entry and exit timestamps with the configured operating window, updates statistics and optionally displays the complete analysis panel and hourly entry distribution.
role_entry() , role_exit() , exit_none() , exit_fixed() and exit_dynamic() — Helper constants used to classify registered order IDs and distinguish fixed from dynamic exit mechanisms.
Trade-Timing Visualization Utilities
Z_MaxDaysLimit_BarsLeft() — Calculates the estimated number of chart bars remaining before a configured maximum-duration closing time.
Z_MaxDaysLimit_BgColor() and Z_MaxDaysLimit_BgColorEx() — Generate progressively stronger background warnings as the maximum-duration closing event approaches.
Z_MaxDaysLimit_CountdownLabels() — Creates a bar-by-bar visual countdown toward the maximum-duration exit.
Z_Bias_BarsLeftToEvent() — Calculates the number of bars remaining until a specified day-of-week and time event.
Z_Bias_BgColor() and Z_Bias_BgColorEx() — Provide position-aware chart highlighting for upcoming long/short entry and exit timing events and selected gap conditions.
Z_SmaTrailPlot() — Calculates an SMA trailing reference together with a distance-sensitive display color and normalized distance measure, allowing the chart visualization to intensify as price approaches the trailing reference.
Purpose
FT_TV_MR is primarily designed as a shared trade-management and manual-replicability dependency for other strategies.
It helps distinguish strategy performance from operational feasibility by showing when entries and exits actually require trader availability, while also providing reusable visual tools for time-dependent exits and trailing mechanisms.
Usage, attribution and intellectual property
This Pine Script® library is published open-source in accordance with TradingView's requirements for public Pine libraries.
Under TradingView's Script Publishing Rules, functions or code from a public Pine library may be reused in open-source publications without prior permission from the author. When publishing work that reuses this library, the original author must be properly credited in accordance with TradingView's rules.
Reuse of this library's functions or source code in a public Protected or Invite-only publication requires explicit permission from us.
The source code is provided under the license specified in the script header. TradingView's Script Publishing Rules govern reuse within the TradingView platform. 脚本库

FT_TV_ELFT_TV_EL is a Pine Script® v6 library which provides a reusable framework for calculating configurable long and short entry levels in systematic trading strategies.
The library works with the OHLC and pre-calculated market-context structures, allowing entry prices to be derived consistently from current market data, previous Day/Session periods and broader volatility or price-structure references.
Entry Level Framework
The available entry-level calculations cover several categories, including:
Current and historical Day/Session Open, High, Low and Close references.
Rolling highest-high and lowest-low levels.
Moving-average and average-range based price levels.
ATR-based volatility extensions using multiple ATR lengths and multipliers.
Current-bar and historical-bar High/Low references.
Session-start High, Low and range-based extensions.
Percentage-based price offsets.
Day/Session range-based extensions.
Classic pivot-point support and resistance levels.
Current weekly High and Low.
Extrema calculated across the previous five Day/Session periods.
Main exported functionality
long_entry_level() — Calculates the selected long-side entry price. The function provides a large catalog of configurable entry-level formulas using OHLC structures, volatility, recent extrema, pivot calculations, percentage offsets, session references and other price-derived methods.
short_entry_level() — Calculates the corresponding short-side entry price using the same modular framework and a dedicated set of short-oriented level definitions.
plot_long_entry_level_info() — Displays an optional chart information panel for the selected long entry level, including the chosen definition, a human-readable explanation of its logic and the OHLC calculation mode being used.
plot_short_entry_level_info() — Provides the equivalent information panel for the selected short entry level.
Framework integration
The main entry-level functions use two shared data structures:
FT_OHLC — Provides the current and previous Day/Session OHLC periods.
PtnCtx — Provides pre-calculated contextual information including recent extrema, ranges, bodies and session-state references.
This architecture allows individual strategies to change their entry-price methodology without duplicating the underlying market-context calculations.
Purpose
FT_TV_EL is primarily designed as a shared entry-level dependency for other strategies. It separates entry-price generation from signal generation and trade-management logic, providing a consistent and reusable framework for testing and deploying different entry methodologies across multiple strategies.
Usage, attribution and intellectual property
This Pine Script® library is published open-source in accordance with TradingView's requirements for public Pine libraries.
Under TradingView's Script Publishing Rules, functions or code from a public Pine library may be reused in open-source publications without prior permission from the author. When publishing work that reuses this library, the original author must be properly credited in accordance with TradingView's rules.
Reuse of this library's functions or source code in a public Protected or Invite-only publication requires explicit permission from us.
The source code is provided under the license specified in the script header. TradingView's Script Publishing Rules govern reuse within the TradingView platform.
脚本库

FT_TV_CondFT_TV_Cond is a Pine Script® v6 library which provides reusable market-condition filters for systematic and algorithmic trading strategies.
The library operates on the structured OHLC and pre-calculated market context used by other strategies framework. It evaluates configurable conditions across the current Day/Session, previous completed periods and a broader five-period market context.
Available conditions cover a wide range of price-action concepts, including directional movement, OHLC relationships, breakouts, range and body expansion or contraction, recent extrema, crossovers, gaps, session development and multi-period market structure.
Main exported functionality
condition_day0() — Evaluates conditions primarily related to the current Day/Session and current chart bars. Available filters include intraday directional movement, current OHLC relationships, new highs/lows, breakouts, range/body comparisons, session-start relationships and other current-period price-action structures.
condition_day1() — Evaluates conditions centered on the previous completed Day/Session , comparing its Open, High, Low, Close, range and body with the current period and earlier historical periods.
condition_day2() — Extends the same condition framework to the OHLC period two Day/Sessions back , allowing strategies to incorporate additional historical market structure.
condition_W() — Evaluates broader five-period market conditions , including directional displacement, body-to-range relationships, position within recent extrema and other multi-period structures.
condition_day0_meaning() , condition_day1_meaning() , condition_day2_meaning() and condition_W_meaning() — Convert supported condition identifiers into human-readable explanations, making the selected trading logic easier to understand and inspect.
plot_condition_day0_info() , plot_condition_day1_info() , plot_condition_day2_info() and plot_condition_W_info() — Display optional information panels describing the selected condition, its practical meaning and whether OHLC calculations are based on calendar-day or custom-session data.
Framework integration
The condition evaluators are designed to work with the OHLC framework through two shared data structures:
FT_OHLC — Contains the current and previous Day/Session OHLC periods.
PtnCtx — Contains pre-calculated contextual values such as ranges, bodies, recent extrema and session-state information.
This architecture allows individual strategies to select and evaluate complex market filters without duplicating the underlying OHLC and contextual calculations.
Purpose
FT_TV_Cond is primarily intended as a shared condition-filtering dependency for other strategies. It separates reusable market-context conditions from the strategy's entry and trade-management logic, providing a consistent and modular filtering framework across multiple Pine Script® strategies.
Usage, attribution and intellectual property
This Pine Script® library is published open-source in accordance with TradingView's requirements for public Pine libraries.
Under TradingView's Script Publishing Rules, functions or code from a public Pine library may be reused in open-source publications without prior permission from the author. When publishing work that reuses this library, the original author must be properly credited in accordance with TradingView's rules.
Reuse of this library's functions or source code in a public Protected or Invite-only publication requires explicit permission from us.
The source code is provided under the license specified in the script header. TradingView's Script Publishing Rules govern reuse within the TradingView platform. 脚本库

FT_TV_OHLCFT_TV_OHLC is a Pine Script® v6 library which provides a reusable OHLC context, pattern-evaluation engine and entry-level framework for systematic trading strategies.
The library builds and maintains structured Open, High, Low and Close data for the current market period and the previous five completed periods. On intraday charts, these periods can represent either calendar days or custom trading sessions, allowing the same strategy logic to work with session-aware market data.
This OHLC history is combined with a pre-calculated market context containing candle ranges and bodies, recent extrema, multi-period measurements and session-start references. The resulting data is used by other libraries pattern and entry-level engines.
Main exported functionality
Z_FT_OHLC() — Builds and maintains the OHLC data structure used by the library. It supports both Day and custom Session aggregation modes, configurable session times and timezone-aware processing.
ZPattern_Mir_PreCalc() — Pre-calculates the common market context used by the pattern engine, including OHLC ranges and bodies, multi-period extrema, session bar state and session-start price references. This avoids repeatedly calculating the same data across individual pattern evaluations.
ZEntryLevel_Mir() — Generates long and short entry-price levels from a broad collection of configurable methods. Available calculations include OHLC-derived levels, ATR and range extensions, moving-average references, recent extrema, session-start levels, percentage offsets, weekly levels and other price-based structures. A reversal mode can also swap the resulting long and short levels.
ZPattern_Mir() — Main interface to the extended pattern catalog. It evaluates more than 480 directional market conditions based on current price action, Day/Session OHLC structures, multi-period relationships, breakouts, compression/expansion, candle characteristics and session context. Positive and negative pattern IDs select the corresponding directional variants of each condition.
ZPattern_MostUsed() — Provides a compact subset of frequently used OHLC and price-action conditions for strategies that do not require the complete pattern catalog.
Z_OHLC_PatternsPanel() — Provides an optional visual diagnostic panel for selected OHLC patterns, including their current verification state, descriptions and occurrence counters, with optional chart highlighting.
Purpose
FT_TV_OHLC is designed primarily as a shared analytical dependency for other strategies. It separates OHLC aggregation, market-context calculations, pattern evaluation and entry-level generation from the individual strategy logic, providing a consistent framework that can be reused across multiple Pine Script® strategies.
Usage, attribution and intellectual property
This Pine Script® library is published open-source in accordance with TradingView's requirements for public Pine libraries.
Under TradingView's Script Publishing Rules, functions or code from a public Pine library may be reused in open-source publications without prior permission from the author. When publishing work that reuses this library, the original author must be properly credited in accordance with TradingView's rules.
Reuse of this library's functions or source code in a public Protected or Invite-only publication requires explicit permission from us.
The source code is provided under the license specified in the script header. TradingView's Script Publishing Rules govern reuse within the TradingView platform. 脚本库

FT_TV_libFT_TV_lib is a Pine Script® v6 utility library which provides reusable components for systematic and algorithmic trading strategies.
The library centralizes a range of commonly required operations, including trading-session management, session-based OHLC calculations, strategy and position monitoring, trade-management utilities, futures rollover handling, technical calculations, alerts, and chart visualization tools.
Main exported functionality
Session and OHLC utilities — Functions for identifying session and day transitions and retrieving session-aware Open, High, Low and Close values, including previous sessions. Main functions include sessionstart() , isNewDay() , isLastBarOfDay() , openD() , highD() , lowD() , closeD() and their related session utilities.
Strategy and trade management — Utilities for detecting position state, counting daily entries, measuring bars since entry, limiting trade duration and calculating dynamic trailing-stop levels. Relevant functions include mp() , BarsSinceLastEntry() , entriestoday() , MaxTradeDuration() and TrailingStop() .
Intraday market analysis — Session-aware Body Factor calculations and related OHLC components for analyzing directional price movement inside configurable intraday periods through functions such as IntradayBodyFactor_v2() and the related IntradayBF_Open() , IntradayBF_High() , IntradayBF_Low() and IntradayBF_Close() .
Trade and order visualization — VisualTrades() and DrawEntryOrdersHistorySeries() provide reusable chart components for displaying entries, exits, stop-loss, trailing-stop, take-profit and pending order levels.
Futures rollover utilities — Functions for resolving active futures expiries and symbols and supporting rollover notifications, including active_expiry() , active_symbol() and check_and_build_alert() .
Technical-analysis utilities — Reusable implementations of commonly used calculations including Average, Average True Range, MACD, Rate of Change, Standard Deviation, Bollinger Bands, Momentum, Stochastic, CCI, RSI, ADX and Inside Bar detection.
Alerts and interface utilities — Additional exported functions support strategy trade alerts and reusable chart information displays, including AlertMessages() and Badge() .
Purpose
This library is primarily designed as a shared dependency for other Pine Script® strategies, allowing common trading, analytical and visualization components to remain consistent across multiple strategy implementations.
Usage, attribution and intellectual property
This Pine Script® library is published open-source in accordance with TradingView's requirements for public Pine libraries.
Under TradingView's Script Publishing Rules, functions or code from a public Pine library may be reused in open-source publications without prior permission from the author. When publishing work that reuses this library, the original author must be properly credited in accordance with TradingView's rules.
Reuse of this library's functions or source code in a public Protected or Invite-only publication requires explicit permission from us.
The source code is provided under the license specified in the script header. TradingView's Script Publishing Rules govern reuse within the TradingView platform.
脚本库

Hourly Volatility Heatmap [ZynAlgo]1. Overview
Most reversal tools look only at the candle. Hourly Volatility Heatmap starts with the clock: it keeps a rolling record of how each hour of the day behaves - how much range it produces, how often it prints the day's high or low, and whether it leans bullish or bearish - and turns that record into a 24-cell heat table. Signals are allowed only inside the hottest hours: a sweep of a recent swing high or low that gets rejected on the close, optionally confirmed by the hour's directional bias and an RSI divergence, prints a marker with the reason on hover.
2. How It Reads The Trading Day
A panel titled "HOURLY VOLATILITY HEATMAP" in the corner you choose, with an insight line "Vol peak: HH:00 | Reversal peak: HH:00".
A 6x4 grid of the 24 hours, each cell shaded from dark navy (cold) through amber (mid) to red (hot) by its Hot Hour score.
A "TOP 5" table with Rank, Time (in your timezone), Avg. Vol, Reversal % and Bull Bias.
Common mistake: a red cell means high activity and turning-point frequency, NOT a direction. Only the Bull Bias column is directional, and it gates the signal rather than forecasting.
3. How The Hot Hour Score Is Defined
Timezone (UTC Offset) - every bar is stamped with its hour in the zone you select.
Lookback Days - the rolling window of completed days (default 30); stats rebuild at the start of each new day.
Average range per hour - the high-to-low range of each bar, in points, averaged per hour across the window.
Reversal % - how often that hour held the day's high or low across the window.
Hot Hour score - average range and Reversal % are each scaled 0-100 against the best hour, then averaged. Hot Hours Filter (Top N by combined score) sets how many top-ranked hours may signal (default 5).
Bull Bias - the share of tracked hourly candles in that slot that closed above their open, used by Enable Directional Bias Filter.
Swing Length and RSI Length - define the structure sweep and the divergence check used in the signal rules.
4. Signal Rules
BUY (all required on a closed bar): the current hour is one of the Top N hot hours; the bar's low reaches or breaks the lowest low of the previous Swing Length bars and closes above its open (a rejected sweep); if the Directional Bias Filter is on, the hour's Bull Bias is at or above 50%; if the RSI Divergence Filter is on, RSI on this bar is higher than RSI was at the swept low; the cooldown has elapsed.
SELL is the mirror image on the high side.
The marker prints on the NEXT bar (its open is the entry reference); the stop reference is the extreme of the sweep bar. Hover the marker to read the exact reason, e.g. "Buy: 14:00 (UTC) is a Top 5 hot hour. (Bias Check: 58.3% Bullish) Price made a 5-bar low and rejected."
5. Trade Mode (Master Switch)
OFF (default) - chart shows markers and hover tooltips only; Stability Mode and Smart Signal Filter are bypassed; no SL/TP boxes, no Win Rate/PF tracking.
ON - each marker becomes a tracked position: a red-tinted risk box (entry to stop), a green-tinted reward box (entry to the final target: TP3 if enabled, else TP2, else TP1), a dotted entry line and a dotted stop line that steps to breakeven after TP1 and to TP1 after TP2. Small "TP1"/"TP2" tags mark those moments, a red "x" marks a clean stop-out, and Max Trade Duration (Bars) closes a stale position. The panel adds Trades (total tracked) and Win Rate / PF rows.
Stability Mode (no new signal while a trade is open) and Smart Signal Filter (force alternating Buy/Sell) then gate new entries; Max Stored Trade Records (history) caps the drawings kept.
6. Who It's For
Session-aware intraday traders who want the hour filter backed by the instrument's own numbers, not a fixed session template.
Liquidity-sweep and reversal traders - a run through a recent high or low that fails, filtered here by time, seasonal bias and momentum.
Traders on 24-hour markets: forex, gold, index CFDs and crypto all have hours that concentrate range and turning points.
Traders who prefer fewer, better-timed marks - the hot-hour gate, bias check and cooldown remove most sweeps that occur in dead hours.
The tool needs intraday bars to build its hourly statistics, so use it on hourly and lower timeframes. A marker is a well-timed candidate, not an order.
7. Notes
The Trades / Win Rate / Profit Factor figures come from an internal, non-executed simulation over the visible chart history - a study of the settings on past data, not a backtest, not a broker report, and not indicative of future results.
All signal logic processes fully closed bars only, never a still-forming bar, so signals do not repaint.
This indicator is a tool for study and education, not financial advice, and does not guarantee any trading outcome. Always apply your own analysis and risk management.
指标

指标
