Bitmex BTC Perpetual PremiumThis script tracks the premium of the Bitcoin Perpetual futures at Bimex exchange relative to 3 different reference prices.
The difference between this script and already published scripts is that it tracks the premium relative to 3 different reference prices. This tends to produce slightly different results.
This script is also open source, so you can verify the calculations, or use it as a basis for your own script.
The 3 plots uses the following reference prices:
Blue Area:
Bitmex Index price, ticker: BITMEX:XBT
Red line:
Bitmex Perpetual Premium, ticker XBTUSDPI
(This one is not used as reference, but simply plots the ticker*100)
Orange line:
The reference here is a price calculated by the tickers in trading view based on the Bitmex indices with weighing as follows:
Bitstamp:28,81%
Bittrex:5,5%
Coinbase: 38,07%
Gemini: 7,34%
Kraken: 20,28
Please note that Bitmex changes the bases of its indices regularly. Bitmex might also "rule out" on of these exchanges if there is a short term problem.
Cerca negli script per "track"
Noldo CFTC COT Forex IndicatorHello.
I decided to publish the COT Forex Indicator, which I created for convenience, as an open source.
The period DXY is determined by the differences between the two signals on the Pivot Reversal Strategy on the weekly chart.(1W)
Thus, relative period point search is automated.
When the new signal comes, after the closing, the number of bars between the previous bar before the new signal comes both directions.
This elapsed time is our period in which we will look back on relative changes.
If there is no signal, the period remains constant, thereby allowing us to notice excessive changes.
And in this period, COT data exchange and price changes are reflected in the terminal.
The automatic time-keeping of the period and the automatic generation of the relative differences of the terminals according to the period prevents a great loss of time.
Thus, we create one of the strong columns that enable us to make decisions.
The other column is the signals we obtained as a result of technical analysis.
The last column is the economic agenda and data tracking.
That's why I made my decision to share this:
Real life should not be distracted,
should not be drowned in the sea of technical analysis.
COT data is one of the most important and valuable tools that bring us signs of real life,
It should not be forgotten !
A lot of time is lost while doing these analyzes, and I wanted this to be much more practical and tidy!
And we can see if there are factors that will back up our incoming signals.
Usage
This script works only on DXY .
You must open DXY.
It only works on 1W graphics.
Because COT data is announced on Tuesday, it will cause repaint every Tuesday.
However, since it is a terminal, this factor is not strong enough to affect your decisions.
For use, you should open the bottom panel, go a little to the right in the history section and enlarge the panel you have opened.
The terminal will take its form in the presentation and provide analysis on the big screen.
COT data are pulled via Quandl.
General kind request:
Authors who know the technical broad expression of the security function or have an idea about its creation, please reach me.
Best regards.
NIFTY / BANKNIFTY ETF SIP NOTIFIERNIFTY / BANKNIFTY - ETF SIP NOTIFIER
STUDY concept -
- As a market investor, one cannot time the market.
- Specailly, working professionals and job holders don't have time for market tracking.
- The idea of the script is - When Nifty closes below 2% previous day high, market has corrected and it's available at a discount w.r.t. previous day
- One can then invest in NIFTY / BANKNIFTY via ETF option on same or next day.
- If you like this idea, Save this script and add alert condition of this script in NIFTY / BANKNIFTY chart.
- One can get notification on TradingView mobile app or via email when the criteria is met.
- Logic can be applied to investing in INDEXES , NIFTY, BANKNIFTY.
Logic may be improved later.
NOTE - Investing is a serious and risky business. Profit / Loss from this investing idea is sole responsibility of the investor. This script is for education and learning purpose.
Oil ETF VolumeDirexxion Daily has both 'bear' and 'bull' oil ETFs. This tracks the volume in both combined. It also tracks them individually: the bear ETF is the red line, and bull the green.
NOTE: the color of the volume bars is determined by whatever ticker you're currently looking at, and whether current close is gt/lt previous close. It is intended to be used while looking at the USOIL chart. The colors will be inverted if you're looking at the 'bear' ETF! as the higher closes will actually mean price is going down :D
Index Vs Futures for OKEX Quarterly Contracts 5.0*****Please note that all old versions of this script are depreciated and will report incorrect data!*****
This "indicator" is made to display the history of the price difference between OKEX's quarterly contracts and the market that it is supposed to be tracking. Contango differences are natural, but it's nice to visualize how they change over time.
This update to this script brings in further functionality when OKEX changed the index that the futures contracts are based off of to remove chinese exchanges from the mix. This script reflects that change and crosses-over when that change was made.
The new index removed chinese exchanges which are (currently) trading at a significant discount which will give bad data when using my old code.
SPYIX EMAVariation on idea at url below using SPYIX from BATS instead of VIX
from marketsci.wordpress.com
Aids in identifying changes in volatility direction.
EDIT: just noticed that URL is now password protected. The concept from the author is simple: use EMA and SMA smoothing of the VIX as two signal lines. When they cross you have a change in VIX direction. I simply coded that for SPYIX which is a slightly different (but theoretically similar) index vs VIX. SPYIX provides intraday updates without a subscription so this indicator can be used for intraday tracking.
KAMA Trend Flip with Snap & Follow - SightLing Labs🔭 OVERVIEW
KAMA Snap Follow is a customized adaptation of the Kaufman Adaptive Moving Average (KAMA) that overlays a trend-tracking line on the chart. It computes an adaptive smoothing constant from the efficiency ratio, then incorporates conditional enhancements: a "snap" mechanism to boost responsiveness on significant counter-trend bars surpassing an ATR-based threshold, and a temporary "follow" mode after trend flips to intensify adaptation for a user-defined number of bars. This allows the line to hug price more closely during early reversal phases before returning to standard smoothing for noise filtration. The line colors green for upward trends (rising KAMA), red for downward (falling KAMA), and gray for neutral, with optional alerts on trend changes. If the structure invalidates (e.g., via excessive lag or unconfirmed flips), no automatic cleanup occurs—users manage via settings tweaks and backtesting.
🔭 CONCEPTS
* Adaptive smoothing core: Builds on KAMA's efficiency ratio to dynamically adjust between fast and slow constants, gliding over minor volatility while aiming to react to directional shifts.
* Snap trigger: Detects potential reversals via large bar changes opposing the prior trend, exceeding a multiplier of ATR; this temporarily amplifies the smoothing constant (capped at 1.0) to pull KAMA toward price.
* Follow mode activation: Post-flip, engages a boosted adaptation phase for a fixed bar count, forcing tighter shadowing in the new direction to reduce lag on true turns, then reverts to absorber mode.
* Trend detection: Simple comparison of current vs. prior KAMA values defines up/down/neutral, with no embedded signals—purely for visual trend context.
* Risk-aware design: No guarantees; focuses on lag reduction in simulations (e.g., 38-54% trough lag cuts on synthetic volatile series), but real-market performance varies—backtest thoroughly.
🔭 FEATURES
* Custom KAMA calculation with manual efficiency ratio and smoothing powers for baseline adaptation.
* ATR-integrated snap for reversal sensitivity, with adjustable multiplier and boost.
* Post-flip follow mode with configurable period and boost to enhance new-trend hugging.
* Trend coloring and flip alerts: Green/red/gray line with conditions for up/down/neutral; alerts on changes.
* User controls:
Source (e.g., close).
Efficiency Ratio Length (pivot-like sensitivity).
Fast/Slow Powers (adaptation speed).
ATR Length (volatility measure).
Snap Multiplier/Boost (reversal threshold/amplification).
Follow Period/Boost (post-flip duration/intensity).
* Efficient execution: Lightweight, no heavy buffers—suitable for intraday charts via backtested tweaks.
🔭 HOW TO USE
* Tune sensitivity: Shorten Efficiency Ratio Length on lower timeframes for quicker reactions; lengthen on higher for smoother trends. Test ATR Length against asset volatility.
* Monitor flips: Use green/red shifts as trend context—combine with your strategy (e.g., crossovers, support/resistance) for potential entries; alerts notify changes.
* Leverage modes: Snap helps catch sharp turns; follow mode tightens tracking post-reversal—observe on historical data to gauge lag reduction (e.g., 30-57% miss cuts on 0.20 moves in tests).
* Apply MTF: Spot broader trends on 5m; refine on 30s/1m near flips. Backtest configurations to avoid over-optimization.
* Integrate confluence: Pair with volume, RSI, or your filters; never rely solely—markets evolve, so validate via simulations and live observation.
🔭 CONCLUSION
KAMA Snap Follow evolves standard KAMA by adding snap and follow mechanics to combat reversal lag while filtering bumps, offering a visual tool for trend analysis in volatile intraday setups. Developed to address traditional adaptive averages' delays without introducing excessive whipsaw (e.g., zero added in noisy flats per tests), it provides adjustable parameters for customization. No performance promises—results hinge on backtesting and market fit; use as a framework for scenario evaluation, not automated trading.
Example Configurations (derived from synthetic tests on SOFI-like intraday volatility; backtest and adjust):
- For 30s charts (high noise, rapid shifts): Efficiency Ratio Length=20, Fast Power=1, Slow Power=15, ATR Length=10, Snap Multiplier=1.2, Snap Boost=2.0, Follow Period=5, Follow Boost=2.5—yields ~40% lag reduction on turns, filtering 85% of <0.01 fluctuations.
- For 1m charts (moderate volatility): Efficiency Ratio Length=30, Fast Power=2, Slow Power=20, ATR Length=14, Snap Multiplier=1.5, Snap Boost=2.5, Follow Period=8, Follow Boost=3.0—achieves ~30% lower reversal misses (e.g., 0.08 vs. 0.12 on 0.20 swings), stable in 50-bar chops.
- For 5m charts (trendier flows): Efficiency Ratio Length=50, Fast Power=3, Slow Power=40, ATR Length=20, Snap Multiplier=1.8, Snap Boost=3.0, Follow Period=12, Follow Boost=3.5—boosts post-flip hug by 25%, ignoring 90% of ±0.05 noise across 100 bars.
Elliott Wave [BigBeluga]🔵 OVERVIEW
Elliott Wave automatically finds and draws an Elliott-style 5-wave impulse and a dashed projection for a potential -(a)→(b)→(c) correction. It detects six sequential reversal points from rolling highs/lows — 1, 2, 3, 4, 5, (a) — validates their relative placement, and then renders the wave with labels and horizontal reference lines. If price invalidates the structure by closing back through the Wave-5 level inside a 100-bar window, the pattern is cleared (optionally kept as “broken”) while key dotted levels remain for context.
🔵 CONCEPTS
Reversal harvesting from extremes : The script scans highest/lowest values over a user-set Length and stores swing points with their bar indices.
Six-point validation : A pattern requires six pivots (1…5 and (a)). Their vertical/temporal order must satisfy Elliott-style constraints before drawing.
Impulse + projection : After confirming 1→5, the tool plots a curved polyline through the pivots and a dashed forward path from (a) toward (b) (midpoint of 5 and (a)) and back to (c).
Risk line (invalidator) : The Wave-5 price is tracked; a close back through it within 100 bars marks the structure as broken.
Minimal persistence : When broken, the wave drawing is removed to avoid noise, while dotted horizontals for waves 5 and 4 remain as reference.
🔵 FEATURES
Automatic pivot collection from rolling highs/lows (user-controlled Length ).
Wave labeling : Points 1–5 are printed; the last collected swing is marked b
. Projected i
& i
are shown with a dashed polyline.
Breaker line & cleanup : If price closes above Wave-5 (opposite for bears) within 100 bars, the pattern is removed; only dotted levels of 5 and 4 stay.
Styling controls :
Length (pivot sensitivity)
Text Size for labels (tiny/small/normal/large)
Wave color input
Show Broken toggle to keep invalidated patterns visible
Lightweight memory : Keeps a compact buffer of recent pivots/draws to stay responsive.
🔵 HOW TO USE
Set sensitivity : Increase Length on noisy charts for cleaner pivots; decrease to catch earlier/shorter structures.
Wait for confirmation : Once 1→5 is printed and (a) appears, use the Wave-5 line as your invalidation. A close back through it within ~100 bars removes the active wave (unless Show Broken is on).
Plan with the dashed path : The (a)→(b)→(c) projection offers a scenario for potential corrective movement and risk placement.
Work MTF : Identify cleaner waves on higher TFs; refine execution on lower TFs near the breaker or during the move toward (b).
Seek confluence : Align with structure (S/R), volume/Delta, or your trend filter to avoid counter-context trades.
🔵 CONCLUSION
Elliott Wave systematizes discretionary wave analysis: it detects and labels the 5-wave impulse, projects a plausible (a)-(b)-(c) path, and self-cleans on invalidation. With clear labels, dotted reference levels, and a practical breaker rule, it gives traders an objective framework for scenario planning, invalidation, and timing.
Prev RTH FibsThis study captures the previous day’s Regular Trading Hours (RTH) range (default 09:30–16:00 America/New_York), then projects it onto the current session. It draws HIGH, LOW, and an optional 50% midpoint, plus a configurable set of inside fib-style percentages measured from the HIGH downward. Every level extends a short distance to the right of the current price and shows a clean numeric label (no box) on the right edge.
Key features
Prev-day RTH range tracked automatically; plotted each new session.
Inside levels (from HIGH ↓): 11%, 25%, 29.5%, 38.2%, 45%, 55%, 62% (OTE), 70.5%, 75%, 78.6%, 85% (toggle any on/off).
Clean right-side labels: numbers only, resizable (Tiny → Huge) with transparent background.
Line styling: HIGH/LOW and 50% are solid; inside levels can be Solid/Dashed/Dotted with independent color/width.
Smart right padding: lines/labels extend a few bars past the latest candle, so annotations stay beside price without violating TradingView’s “>500 bars in future” rule.
Works on any symbol/timeframe; RTH window and timezone are adjustable.
Inputs you control
Session: RTH session string and timezone.
Right-side padding (bars) and number size.
Visibility & style for HIGH, LOW, and 50%.
Which inside levels to show, plus their style/color/width.
HorizonSigma Pro [CHE]HorizonSigma Pro
Disclaimer
Not every timeframe will yield good results . Very short charts are dominated by microstructure noise, spreads, and slippage; signals can flip and the tradable edge shrinks after costs. Very high timeframes adapt more slowly, provide fewer samples, and can lag regime shifts. When you change timeframe, you also change the ratios between horizon, lookbacks, and correlation windows—what works on M5 won’t automatically hold on H1 or D1. Liquidity, session effects (overnight gaps, news bursts), and volatility do not scale linearly with time. Always validate per symbol and timeframe, then retune horizon, z-length, correlation window, and either the neutral band or the z-threshold. On fast charts, “components” mode adapts quicker; on slower charts, “super” reduces noise. Keep prior-shift and calibration enabled, monitor Hit Rate with its confidence interval and the Brier score, and execute only on confirmed (closed-bar) values.
For example, what do “UP 61%” and “DOWN 21%” mean?
“UP 61%” is the model’s estimated probability that the close will be higher after your selected horizon—directional probability, not a price target or profit guarantee. “DOWN 21%” still reports the probability of up; here it’s 21%, which implies 79% for down (a short bias). The label switches to “DOWN” because the probability falls below your short threshold. With a neutral-band policy, for example ±7%, signals are: Long above 57%, Short below 43%, Neutral in between. In z-score mode, fixed z-cutoffs drive the call instead of percentages. The arrow length on the chart is an ATR-scaled projection to visualize reach; treat it as guidance, not a promise.
Part 1 — Scientific description
Objective.
The indicator estimates the probability that price will be higher after a user-defined horizon (a chosen number of bars) and emits long, short, or neutral decisions under explicit thresholds. It combines multi‑feature, z‑normalized inputs, adaptive correlation‑based weighting, a prior‑shifted sigmoid mapping, optional rolling probability calibration, and repaint‑safe confirmation. It also visualizes an ATR‑scaled forward projection and prints a compact statistics panel.
Data and labeling.
For each bar, the target label is whether price increased over the past chosen horizon. Learning is deliberately backward‑looking to avoid look‑ahead: features are associated with outcomes that are only known after that horizon has elapsed.
Feature engineering.
The feature set includes momentum, RSI, stochastic %K, MACD histogram slope, a normalized EMA(20/50) trend spread, ATR as a share of price, Bollinger Band width, and volume normalized by its moving average. All features are standardized over rolling windows. A compressed “super‑feature” is available that aggregates core trend and momentum components while penalizing excessive width (volatility). Users can switch between a “components” mode (weighted sum of individual features) and a “super” mode (single compressed driver).
Weighting and learning.
Weights are the rolling correlations between features (evaluated one horizon ago) and realized directional outcomes, smoothed by an EMA and optionally clamped to a bounded range to stabilize outliers. This produces an adaptive, regime‑aware weighting without explicit machine‑learning libraries.
Scoring and probability mapping.
The raw score is either the weighted component sum or the weighted super‑feature. The score is standardized again and passed through a sigmoid whose steepness is user‑controlled. A “prior shift” moves the sigmoid’s midpoint to the current base rate of up moves, estimated over the evaluation window, so that probabilities remain well‑calibrated when markets drift bullish or bearish. Probabilities and standardized scores are EMA‑smoothed for stability.
Decision policy.
Two modes are supported:
- Neutral band: go long if the probability is above one half plus a user‑set band; go short if it is below one half minus that band; otherwise stay neutral.
- Z‑score thresholds: use symmetric positive/negative cutoffs on the standardized score to trigger long/short.
Repaint protection.
All values used for decisions can be locked to confirmed (closed) bars. Intrabar updates are available as a preview, but confirmed values drive evaluation and stats.
Calibration.
An optional rolling linear calibration maps past confirmed probabilities to realized outcomes over the evaluation window. The mapping is clipped to the unit interval and can be injected back into the decision logic if desired. This improves reliability (probabilities that “mean what they say”) without necessarily improving raw separability.
Evaluation metrics.
The table reports: hit rate on signaled bars; a Wilson confidence interval for that hit rate at a chosen confidence level; Brier score as a measure of probability accuracy; counts of long/short trades; average realized return by side; profit factor; net return; and exposure (signal density). All are computed on rolling windows consistent with the learning scheme.
Visualization.
On the chart, an arrowed projection shows the predicted direction from the current bar to the chosen horizon, with magnitude scaled by ATR (optionally scaled by the square‑root of the horizon). Labels display either the decision probability or the standardized score. Neutral states can display a configurable icon for immediate recognition.
Computational properties.
The design relies on rolling means, standard deviations, correlations, and EMAs. Per‑bar cost is constant with respect to history length, and memory is constant per tracked series. Graphical objects are updated in place to obey platform limits.
Assumptions and limitations.
The method is correlation‑based and will adapt after regime changes, not before them. Calibration improves probability reliability but not necessarily ranking power. Intrabar previews are non‑binding and should not be evaluated as historical performance.
Part 2 — Trader‑facing description
What it does.
This tool tells you how likely price is to be higher after your chosen number of bars and converts that into Long / Short / Neutral calls. It learns, in real time, which components—momentum, trend, volatility, breadth, and volume—matter now, adjusts their weights, and shows you a probability line plus a forward arrow scaled by volatility.
How to set it up.
1) Choose your horizon. Intraday scalps: 5–10 bars. Swings: 10–30 bars. The default of 14 bars is a balanced starting point.
2) Pick a feature mode.
- components: granular and fast to adapt when leadership rotates between signals.
- super: cleaner single driver; less noise, slightly slower to react.
3) Decide how signals are triggered.
- Neutral band (probability based): intuitive and easy to tune. Widen the band for fewer, higher‑quality trades; tighten to catch more moves.
- Z‑score thresholds: consistent numeric cutoffs that ignore base‑rate drift.
4) Keep reliability helpers on. Leave prior shift and calibration enabled to stabilize probabilities across bullish/bearish regimes.
5) Smoothing. A short EMA on the probability or score reduces whipsaws while preserving turns.
6) Overlay. The arrow shows the call and a volatility‑scaled reach for the next horizon. Treat it as guidance, not a promise.
Reading the stats table.
- Hit Rate with a confidence interval: your recent accuracy with an uncertainty range; trust the range, not only the point.
- Brier Score: lower is better; it checks whether a stated “70%” really behaves like 70% over time.
- Profit Factor, Net Return, Exposure: quick triage of tradability and signal density.
- Average Return by Side: sanity‑check that the long and short calls each pull their weight.
Typical adjustments.
- Too many trades? Increase the neutral band or raise the z‑threshold.
- Missing the move? Tighten the band, or switch to components mode to react faster.
- Choppy timeframe? Lengthen the z‑score and correlation windows; keep calibration on.
- Volatility regime change? Revisit the ATR multiplier and enable square‑root scaling of horizon.
Execution and risk.
- Size positions by volatility (ATR‑based sizing works well).
- Enter on confirmed values; use intrabar previews only as early signals.
- Combine with your market structure (levels, liquidity zones). This model is statistical, not clairvoyant.
What it is not.
Not a black‑box machine‑learning model. It is transparent, correlation‑weighted technical analysis with strong attention to probability reliability and repaint safety.
Suggested defaults (robust starting point).
- Horizon 14; components mode; weight EMA 10; correlation window 500; z‑length 200.
- Neutral band around seven percentage points, or z‑threshold around one‑third of a standard deviation.
- Prior shift ON, Calibration ON, Use calibrated for decisions OFF to start.
- ATR multiplier 1.0; square‑root horizon scaling ON; EMA smoothing 3.
- Confidence setting equivalent to about 95%.
Disclaimer
No indicator guarantees profits. HorizonSigma Pro is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Best regards
Chervolino
Smart Money Trades Pro [BOSWaves]Smart Money Trades Pro – Advanced Market Structure & Liquidity Visualizer
Overview
Smart Money Trades Pro is a comprehensive trading tool designed for traders seeking an in-depth understanding of market structure, liquidity dynamics, and institutional flow. The indicator systematically identifies key market turning points, including break of structure (BOS) and change of character (CHoCH) events, and overlays these with adaptive visualizations to highlight high-probability trade setups. By integrating ATR-based risk zones, progressive take-profit levels, and real-time trade analytics, Smart Money Trades Pro transforms complex price action into an interpretable framework suitable for multiple trading styles, including scalping, intraday, and swing trading.
Unlike traditional static indicators, Smart Money Trades Pro adapts continuously to market conditions. It evaluates swing highs and lows over a configurable lookback period, then determines structural breaks using customizable confirmation methods (candle body or wick). The resulting signals are augmented with dynamic entry, stop-loss, and target levels, allowing traders to analyze potential trade opportunities with both precision and context. The indicator’s design ensures that each visual element—trend-colored candles, signal markers, and risk/reward boxes—reflects real-time market conditions, offering an actionable interpretation of institutional activity.
How It Works
The indicator’s foundation is built upon market structure analysis. By calculating pivot highs and lows over a specified period, Smart Money Trades Pro identifies potential points of liquidity accumulation and exhaustion. When price breaks a pivot high or low, the indicator evaluates whether this constitutes a BOS or a CHoCH, signaling trend continuation or reversal. These events are marked on the chart with distinct visual cues, allowing traders to quickly discern shifts in market sentiment without manually analyzing historical price action.
Once a structural break is confirmed, the indicator automatically determines entry levels, stop-loss placements, and progressive take-profit zones (TP1, TP2, TP3). These calculations are based on ATR-derived volatility, ensuring that targets scale with current market conditions. Risk and reward zones are plotted as shaded boxes, providing a clear visual representation of potential profit relative to risk for each trade setup. This system allows traders to maintain discipline and consistency, with dynamic trade management baked directly into the visualization.
Trend direction is further reinforced by color-coded candles, which reflect the prevailing market bias. Bullish trends are represented by one color, bearish trends by another, and neutral conditions are displayed in muted tones. This continuous visual feedback simplifies the process of trend assessment and helps confirm the validity of trade setups alongside BOS and CHoCH markers.
Signals and Breakouts
Smart Money Trades Pro includes structured visual signals to indicate actionable price movements:
Bullish Break Signals – Triangular markers below the candle appear when a swing high is broken, suggesting potential long opportunities.
Bearish Break Signals – Triangular markers above the candle appear when a swing low is broken, indicating potential short setups.
Change of Character (CHoCH) – Special markers highlight trend reversals, showing where momentum shifts from bullish to bearish or vice versa.
These markers are strategically spaced to prevent overlap and remain clear during high-volatility periods. Traders can use them in combination with trend-colored candles, risk/reward zones, and ATR-based targets to assess the strength and reliability of each setup. The integrated table provides live trade information, including entry price, stop-loss level, take-profit levels, risk/reward ratio, and trade direction, ensuring that trade decisions are informed and data-driven.
Interpretation
Trend Analysis : The indicator’s trend coloring, combined with BOS and CHoCH detection, provides an immediate view of market direction. Rising structures indicate bullish momentum, while falling structures signal bearish momentum. CHoCH markers highlight potential trend reversals or significant liquidity sweeps.
Volatility and Risk Assessment : ATR-based calculations determine stop-loss distances and target levels, giving a quantitative measure of risk relative to market volatility. Wide ATR readings indicate periods of high price fluctuation, whereas narrow readings suggest consolidation and reduced risk exposure.
Market Structure Insights : By monitoring swing highs and lows alongside break confirmations, traders can identify where institutional players are likely active. Areas with multiple structural breaks or overlapping targets can indicate liquidity hotspots, potential reversal zones, or areas of market congestion.
Trade Management : The built-in trade zones allow traders to visualize entry, risk, and reward simultaneously. Progressive targets (TP1, TP2, TP3) reflect incremental profit-taking strategies, while dynamic stop-loss levels help preserve capital during adverse moves.
Strategy Integration
Smart Money Trades Pro supports a range of trading approaches:
Trend Following : Enter trades in the direction of confirmed BOS while using CHoCH markers and trend-colored candles to validate momentum.
Pullback Entries : Use failed breakout retests or minor reversals toward broken structure levels for lower-risk entries.
Mean Reversion : In consolidated zones with narrow ATR and repeated BOS/CHoCH activity, anticipate reversals or short-term corrective moves.
Multi-Timeframe Confirmation : Overlay signals on higher or lower timeframes to filter noise and improve trade accuracy.
Stop-loss levels should be placed just beyond the opposing structural point, while take-profit targets can be scaled using the ATR-based zones. Progressive targets allow for partial exits or scaling out of trades while maintaining exposure to larger moves.
Advanced Techniques
Traders seeking greater precision can combine Smart Money Trades Pro with volume, momentum, or volatility indicators to validate signals. Observing sequences of BOS and CHoCH markers across multiple timeframes provides insight into liquidity accumulation and depletion trends. Tracking the expansion or contraction of ATR-based zones helps anticipate shifts in volatility, enabling better timing for entries and exits.
Customizing the structure period and confirmation type allows the indicator to adapt to different asset classes and timeframes. Shorter periods increase sensitivity to smaller swings, while longer periods filter noise and emphasize higher-probability structural breaks. By integrating these features, the indicator offers a robust statistical framework for disciplined, data-driven trading decisions.
Inputs and Customization
Structure Detection Period : Defines the lookback window for pivot high and low calculation.
Break Confirmation : Choose whether to confirm breaks using candle body or wick.
Display CHoCH : Toggle visibility of change-of-character markers.
Color Trend Bars : Enable color-coding of candles based on market structure direction.
Show Info Table : Display trade dashboard showing entry, stop-loss, take-profits, risk/reward, and bias.
Table Position : Choose from top-left, top-right, bottom-left, or bottom-right placement.
Color Customization : Configure bullish, bearish, neutral, risk, reward, and text colors for enhanced visual clarity.
Why Use Smart Money Trades Pro
Smart Money Trades Pro transforms complex market behavior into an actionable visual framework. By combining market structure analysis, liquidity tracking, ATR-based risk/reward mapping, and a dynamic trade dashboard, it provides a multidimensional view of the market. Traders can focus on execution, interpret trends, and evaluate overextensions or reversals without relying on guesswork. The indicator is suitable for scalping, intraday, and swing strategies, offering a comprehensive system for understanding and trading alongside institutional participants.
Market Imbalance Tracker (Inefficient Candle + FVG)# 📊 Overview
This indicator combines two imbalance concepts:
• **Squared Up Points (SUP)** – midpoints of large, "inefficient" candles that often attract price back.
• **Fair Value Gaps (FVG)** – 3-candle gaps created by strong impulse moves that often get "filled."
Use them separately or together. Confluence between a SUP line and an FVG boundary/midpoint is high-value.
---
# ⚡ Quick Start (2 minutes)
1. **Add to chart** → keep defaults (Percentile method, 80th percentile, 100-bar lookback).
2. **Watch** for dashed SUP lines to print after large candles.
3. **Toggle Show FVG** → see green/red boxes where gaps exist.
4. **Turn on alerts** → New SUP created, SUP touched, New FVG.
5. **Trade the reaction** → look for confluence (SUP + FVG + S/R), then manage risk.
---
# 🛠 Features
## 🔹 Squared Up Points (SUP)
• **Purpose:** Midpoint of a large candle → potential support/resistance magnet.
• **Detection:** Choose *Percentile* (adaptive) or *ATR Multiple* (absolute).
• **Validation:** Only plots if the preceding candle does not touch the midpoint (with tolerance).
• **Lifecycle:** Line auto-extends into the future; it's removed when touched or aged out.
• **Visual:** Horizontal dashed line (color/width configurable; style fixed to dashed if not exposed).
## 🔹 Fair Value Gaps (FVG)
• **Purpose:** 3-candle gaps from an impulse; price often revisits to "fill."
• **Detection:** Requires a strong directional candle (Marubozu threshold) creating a gap.
• **Types:**
- **Bullish FVG (Green):** Gap below; expectation is downward fill.
- **Bearish FVG (Red):** Gap above; expectation is upward fill.
• **Close Rules (if implemented):**
- *Full Fill:* Gap closes when the opposite boundary is tagged.
- *Midpoint Fill:* Gap closes when its midpoint is tagged.
• **Visual:** Colored boxes; optional split-coloring to emphasize the midpoint.
> **Note:** If a listed FVG option isn't visible in Inputs, you're on a lighter build; use the available switches.
---
# ⚙️ Settings
## SUP Settings
• **Candle Size Method:** Percentile (top X% of recent ranges) or ATR Multiple.
• **Candle Size Percentile:** e.g., 80 → top 20% largest candles.
• **ATR Multiple & Period:** e.g., 1.5 × ATR(14).
• **Percentile Lookback:** Bars used to compute percentile.
• **Lookback Period:** How long SUP lines remain eligible before auto-cleanup.
• **Touch Tolerance (%):** Buffer based on the inefficient candle's range (0% = exact touch).
## Line Appearance
• **Line Color / Width:** Customizable.
• **Style:** Dashed (fixed unless you expose a style input).
## FVG Settings (if present in your build)
• **Show FVG:** On/Off.
• **Close Method:** Full Fill or Midpoint.
• **Marubozu Wick Tolerance:** Max wick % of the impulse bar.
• **Use Split Coloring:** Two-tone box halves around midpoint.
• **Colors:** Bullish/Bearish, and upper/lower halves (if split).
• **Max FVG Age:** Auto-remove older gaps.
---
# 📈 How to Use
## Trading Applications
• **SUP Lines:** Expect reaction on first touch; use as S/R or profit-taking magnets.
• **FVG Fills:** Price frequently tags the midpoint/boundary before continuing.
• **Confluence:** SUP at an FVG midpoint/boundary + higher-timeframe S/R = higher quality.
• **Bias:** Clusters of unfilled FVGs can hint at path of least resistance.
## Best Practices
• **Timeframe:** HTFs for swing levels, LTFs for execution.
• **Volume:** High volume at level = stronger signal.
• **Context:** Trade with broader trend or at least avoid counter-trend without confirmation.
• **Risk:** Always pre-define invalidation; structures fail in chop.
---
# 🔔 Alerts
• **New SUP Created** – When a qualifying inefficient candle prints a SUP midpoint.
• **SUP Touched/Invalidated** – When price touches within tolerance.
• **New FVG Detected** – When a valid gap forms per your rules.
> **Tip:** Set alerts *Once Per Bar Close* on HTFs; *Once* on LTFs to avoid noise.
---
# 🧑💻 Technical Notes
• **Percentile vs ATR:** Percentile adapts to volatility; ATR gives consistency for backtesting.
• **FVG Direction Logic:** Gap above price = bearish (expect up-fill); below = bullish (expect down-fill).
• **Performance:** Limits on lines/boxes and auto-aging keep things snappy.
---
# ⚠️ Limitations
• Imbalances are **context tools**, not signals by themselves.
• Works best with trend or clear impulses; expect noise in narrow ranges.
• Lower-timeframe gaps can be plentiful and lower quality.
---
# 📌 Version & Requirements
• **Pine Script v6**
• Heavy drawings may require **TradingView Pro** or higher (object limits).
---
*For best results, combine with your existing trading strategy and proper risk management.*
Long Elite Squeeze (LES) — H.H 22 Lindsay (AI)LES (Long Elite Squeeze)
LES (Long Elite Squeeze) is a trading framework designed to capture the highest-probability long setups. It’s not just another signal script — it’s a structured system built to filter noise, manage risk, and keep you aligned with real momentum.
🔹 Core Logic
Breakout Confirmation – Ensures moves have structure, not just random spikes.
Relative Volume (RVOL) – Confirms participation and fuel behind the move.
RSI Alignment – Avoids overextended traps and fakeouts.
Squeeze Momentum – The backbone of LES. Signals fire only after a defined squeeze pattern shift (6+ dark green bars followed by a light green bar).
🔹 Trade Management Built In
Automated Sell Signals – Trigger on either:
2 consecutive dark green bars on Squeeze Momentum
WaveTrend cross down
(only valid after a Buy signal — no random shorts)
HUD Entry Checklist – Live conditions shown on chart.
Status Tracker HUD – Flips between “Waiting for Entry” and “In Trade” for clear context.
🔹 Flexibility
3 switchable squeeze versions (V1, V2, V3) for different market conditions.
Customizable EMA & ATR settings (with color options).
Session-aware logic — filter signals to prime trading hours.
🔹 Blueprint & Credits
LES is a fusion of proven concepts, standing on the shoulders of respected creators:
-Squeeze Momentum – LazyBear
-WaveTrend Oscillator – LazyBear
-Relative Volume – LonesomeTheBlue
Breakout/structural logic – refined from classic frameworks
Their work laid the foundation — LES expands and integrates them into a complete trading system.
⚡ Why LES Stands Out
LES wasn’t coded overnight. It’s the result of countless hours of live testing, rebuilding, and refining. Every feature earned its place by proving value in real trading, not theory.
LES is more than an indicator. It’s a disciplined framework — crafted to turn chaos into structure, randomness into probability, and noise into clarity.
⚠️ Disclaimer: This is a trading framework, not financial advice. Performance depends on trader discipline, risk management, and market conditions.
Reverse RSI Signals [AlgoAlpha]🟠 OVERVIEW
This script introduces the Reverse RSI Signals system, an original approach that inverts traditional RSI values back into price levels and then overlays them directly on the chart as dynamic bands. Instead of showing RSI in a subwindow, the script calculates the exact price thresholds that correspond to common RSI levels (30/70/50) and displays them as upper, lower, and midline bands. These are further enhanced with an adaptive Supertrend filter and divergence detection, allowing traders to see overbought/oversold zones translated into actionable price ranges and trend signals. The script combines concepts of RSI inversion, volatility envelopes, and divergence tracking to provide a context-driven tool for spotting reversals and regime shifts.
🟠 CONCEPTS
The script relies on inverting RSI math: by solving for the price that would yield a given RSI level, it generates real chart levels tied to oscillator conditions. These RSI-derived price bands act like support/resistance, adapting each bar as RSI changes. On top of this, a Supertrend built around the RSI midline introduces directional bias, switching regimes when the midline is breached. Regular bullish and bearish divergences are detected by comparing RSI pivots against price pivots, highlighting early reversal conditions. This layered approach means the indicator is not just RSI on price but a hybrid of oscillator translation, volatility-tracking midline envelopes, and divergence analysis.
🟠 FEATURES
Inverted RSI bands: upper (70), lower (30), and midline (50), smoothed with EMA for noise reduction.
Supertrend overlay on the RSI midline to confirm regime direction (bullish or bearish).
Gradient-filled zones between outer and inner RSI bands to visualize proximity and exhaustion.
Non-repainting bullish and bearish divergence markers plotted directly on chart highs/lows.
🟠 USAGE
Apply the indicator to any chart and use the plotted RSI price bands as adaptive support/resistance. The midline defines equilibrium, while upper and lower bands represent classic RSI thresholds translated into real price action. In bullish regimes (green candles), long trades are stronger when price approaches or bounces from the lower band; in bearish regimes (red candles), shorts are favored near the upper band. Divergence markers (▲ for bullish, ▼ for bearish) flag potential reversal points early. Traders can combine the band proximity, divergence alerts, and Supertrend context to time entries, exits, or to refine ongoing trend trades. Adjust smoothing and Supertrend ATR settings to match the volatility of the instrument being analyzed.
Trojan Cycle: Dip & Profit Hunter📉 Crypto is changing. Your signals should too.
This script doesn’t try to outguess price — it helps you track capital rotation and flow behavior in alignment with the evolving macro structure of the digital asset market.
Trojan Cycle: Dip & Profit Hunter is a signal engine built to support and validate the capital rotation models outlined in the Trojan Cycle and Synthetic Rotation theses — available via RWCS_LTD’s published charts
It is not a classic “buy low, sell high” tool. It is a structural filter that uses price/volume statistics to surface accumulation zones, synthetic traps, and macro context shifts — all aligned with the institutionalization of crypto post-2024.
🧠 Purpose & Value
Crypto no longer follows the retail-led, halving-driven pattern of 2017 or 2021.
Instead, institutional infrastructure, regulatory filters, and equity-market Trojan horses define the new path of capital.
This tool helps you visualize that path by interpreting behavior through statistical imbalances and real-time momentum signals.
Use it to:
Track where capital is accumulating or exiting
Identify signals consistent with true cycle rotation (vs. synthetic traps)
Validate your macro view with real-time statistical context
🔍 How It Works
The engine combines four signal layers:
1. Z-Score Logic
- Measures how far price and volume have deviated from their mean
- Detects dips, blowoffs, and exhaustion zones
2. Percentile Logic
- Compares current price and volume to historical rank distribution
- Flags statistically rare conditions (e.g. bottom 10% price, top 90% volume)
3. Combined Context Engine
- Integrates both models to generate one of 36 unique output states
- Each state provides a labeled market context (e.g., 🟢 Confluent Buy, 🔴 Confluent Sell, 🧨 Synthetic Trap )
4. Momentum Spread & Divergence
- Measures whether price is leading volume (trap risk) or volume is leading price (accumulation)
- Outputs intuitive momentum context with emoji-coded alerts
📋 What You See
🧠 Contextual Table UI with key Z-Scores, percentiles, signals, and market commentary
🎯 Emoji-coded signals to quickly grasp high-probability setups or risk zones
🌊 Optional overlays: price/volume divergence, momentum spread
🎨 Visual table customization (size, position) and chart highlights for signal clarity
🔔 Alert System
✅ Single dynamic alert using alert() that only fires when signal context changes
Prevents alert fatigue and allows clean webhook/automation integration
🧭 Use Cases
For macro cycle traders: Track where we are in the Trojan Cycle using statistical context
For thesis explorers: Use the 36-output signal map to match against your rotation thesis
For capital rotation watchers: Identify structural setups consistent with ETF-driven or compliance-filtered flow
For narrative skeptics: Avoid synthetic altseason traps where volume lags or flow dries up
🧪 Suggested Pairing for Thesis Validation
To use this tool as part of a thesis-confirmation framework , pair it with:
BTC.D — Bitcoin Dominance
ETH/BTC — Ethereum strength vs. Bitcoin
TOTALE100/ETH — Altcoin strength relative to ETH
RWCS_LTD’s published charts and macro cycle models
🏁 Final Note
Crypto has matured. So should your signals.
This tool doesn’t try to game the next 2 candles. It helps you understand the current phase in a compliance-filtered, institutionalized rotation model.
It’s not built for hype — it’s built for conviction.
Explore the thesis → Validate the structure → Trade with clarity.
🚨 Disclaimer
This script is not financial advice. It is an analytical tool designed to support market structure research and rotation thesis validation. Use this as part of a broader framework including technical structure, dominance charts, and macro data.