jc-Inside_BarCopyright by jack calo -- v1.0 -- 03/04/2015 -- Paint the bar yellow when it's an inside day. When the full range of a candle is equal or within the full range of the previous bar. Credit to Rob Smith and his In The Black Strategy.
חפש סקריפטים עבור "bar"
Over ATR Bar highlightScript highlights bars over ATR (20), i use this to look for mazabuzo candles.
FVE Volatility color-coded Volume bar The FVE is a pure volume indicator. Unlike most of the other indicators
(except OBV), price change doesn?t come into the equation for the FVE
(price is not multiplied by volume), but is only used to determine whether
money is flowing in or out of the stock. This is contrary to the current trend
in the design of modern money flow indicators. The author decided against a
price-volume indicator for the following reasons:
- A pure volume indicator has more power to contradict.
- The number of buyers or sellers (which is assessed by volume) will be the same,
regardless of the price fluctuation.
- Price-volume indicators tend to spike excessively at breakouts or breakdowns.
This study is an addition to FVE indicator. Indicator plots different-coloured volume
bars depending on volatility.
Custom Indicator Clearly Shows If Bulls or Bears are in Control!The Two Versions of this Indicator I learned from Two Famous and Highly Successful Traders. This Indicator shows With No Lag Clear Up and Down Trends in Market by Documenting Clearly If Bulls or Bears are in Control. The Version In SubChart 1 Shows Consecutive Closes if the Current Close is Greater than of Less than the Midpoint of the Previous Bar (Why Midpoint Explained in Detail in 1st Post). The Version in SubChart 2 Shows Consecutive Closes that are Greater than or Less Than the Previous Close (Will Discuss Specific Uses in 1st Post). Works on Stocks, Forex, Futures, on All Timeframes.
VWAP filtered MACD Bars with positive MACD histogram value and closing above VWAP are colored, long positions should be taken in areas made of those bars.
Similarly, bars with negative MACD histogram value and closing below VWAP are also colored, short positions should be taken there.
This indicator by default should be a part of your trend following trading system.
In the setting you can change colors
Above grow: positive and rising MACD histogram value
Above fall: positive and falling MACD histogram value
Below fall: negative and falling MACD histogram value
Below grow: negative and rising MACD histogram value
bar color changeThis Pine v5 code allows you to distinguish between candles on the chart. The body/wick/frame of the "live" candle that hasn't yet closed is colored white. When a live candle is present, the body of the immediately preceding candle is colored green with offset = -1. All other candles remain gray (#2e2e2e). plotcandle fixes the wick/frame so that the live and previous candles are selected when following the trend. If there are other conflicting scripts, the most recently added one quickly takes precedence.
Bar RangeI use this to complement the daily ATR bars. It is interesting to see how much the stock has actually moved vs the ATR movement.
MACD Aspray Hybrid Bars (teal/red) = raw momentum (Aspray Histogram).
Teal line = smooth curve of the histogram (Aspray Line).
Orange line = 9-EMA of that line (new signal).
Zero line for reference.
Bar numberAdds a number above the last 50 candles. Candle 1 is always the most recent.
Can be useful when teaching people onlinet. Now they can just ask « what’s candle number 20 » instead of « what’s with that narrow range candle next to the big one to the left… no not that one, the other one »
Bars pattern MLThis script implements a K-Nearest Neighbors (KNN)-based machine learning model to predict future price movements in financial markets. It analyzes past price action using Euclidean distance and selects the most similar historical patterns to estimate future price changes. Unlike traditional KNN implementations, this approach optimizes distance calculations by maintaining a dynamically updated list of the closest neighbors, ensuring efficient selection without the need for sorting. The model generates a forecasted price trajectory based on incremental predictions, which are visualized on the chart using polylines for better interpretability.
Volume HighlightBar colouring: this indicator is simple but effective, it repaints higher than normal candles a certain colour (by default gold/yellow) it helps to know what are valuable areas to trade around for longs and shorts.
Changing the volume multiplier manually helps you to screen volume relevant to the timeframe you are trading on.
For example, some charts 1min the best filter/setting would be 12-35 multiplier where others like btc 1-4 hourly, the filter/setting might be 8-12.
The key is having only the highest/most relevant 3-4 volume candles showing as they often represent supports and resistances.
Pivot Points And Breakout Price Action With LuckyNickVaBar Color Candle Aligned with pivot points swing high and swing lows For Those Who Are Familiar with Trading The Breakouts Of Highs & Lows Of Structure. Pivots are said to be key areas in the market where price shows heavy reaction to where reversals make occur. At these points there are swing Highs & swing lows that traders may be able to find opportunity in the market. This Script is a combination of pivot points and Barcolor signals for the breakout.
Koalafied Volume Extension Bar colours based on extensions from volume Z-Score. Large volume candles can often signal exhaustion or show market strength in reversals or breakouts. Candles not supported by rising volume are coloured black while those that are retain their colouring.
Bars CharacteristicsThis code is for defining or explaining market conditions via micro trend and the characterized bars.
lines 5,6: show the conditions for a normal trend, means market can go in the direction that it has in the past.
lines 11,12: show the conditions for kind of the trend having cumulative energy itself, mean market can go in the same direction.
lines 18,19: show the conditions for kind of the trend having overbought/sold concept, means it's better exit from the market or to look for the other clues.
lines 24,25: show some kind of noise not a stable trend, it's better not to enter the market.
WhenWasThePriceAction
Bars of largest range (volatility)
* see moments of strongest price action immediately
* colored & upDown by candle color
* amplifier: you see only the bull runs, and subsequent dumps
Very nice on the 5 years scale of BITSTAMP:BTCUSD - nothing comparable to 2013 has happened yet.
Internals:
squared_range = pow(high-low, 2)
That is essentially it already. The rest are details:
* gauge with (in case of Bitcoin exponentially rising) price
* show in red for negative candles
* take even higher polynomial (than 2) to show only the very largest values
* allow some user input (but there is not much more that can be chosen here.)
Sorry for such a simple formula - but sometimes the easiest things are powerful.
Please give feedback. www.tradingview.com and/or in the cryptocurrency chat. Thanks.
Bars Since the last RSI ExtremeThis is something Jamie Saettele pointed out. Gold has been in 'neutral' RSI territory for its longest stretch in four years. It's coiling up for its next major move.
SPX vs VIX Risk-On / Risk-Off Toolkit [SB1]SPX vs VIX Risk-On / Risk-Off Toolkit — Indicator Description
This toolkit provides a clear view of market sentiment by comparing the behavior of the S&P 500 Index (SPX) with the VIX volatility index. The goal is to identify when conditions align into Risk-On, Risk-Off, or Neutral states using objective price and volatility signals.
🔹 Core Logic
The indicator analyzes:
SPX Candle Direction
Each bar is classified as Bullish, Bearish, or Neutral based on SPX open/close behavior.
VIX Direction of Change
Falling VIX = easing volatility pressure
Rising VIX = increasing risk pressure
Market Alignment Conditions
Risk-On: SPX bullish + VIX falling
Risk-Off: SPX bearish + VIX rising
Neutral: Any non-aligned state
These conditions dynamically update with each bar and provide alerts when alignment changes.
🔹 Normalized Trend Strength (n-value)
The script measures SPX trend intensity using a normalized EMA-distance calculation:
Fast EMA vs Slow EMA
True Range–based ATR smoothing
n-value = EMA distance ÷ ATR
This metric helps identify strong, sustained directional moves regardless of volatility environment.
Alerts trigger when the n-value enters a user-defined trend-strength zone.
🔹 Movable Dashboard Display
A clean, compact dashboard displays:
SPX bias (Bullish / Bearish / Neutral)
SPX n-value (trend strength)
VIX direction (Rising / Falling / Flat)
You can place the dashboard in any corner of the chart.
🔹 VIX-Based Background Coloring
Optional background shading shows overall sentiment:
Green: Risk-On
Red: Risk-Off
Gray: Neutral
This makes the market backdrop instantly visible.
🔹 Strong Candle Detection
The script also identifies powerful SPX candles using strict criteria:
Candle body must exceed a minimum percentage of total range
Close must be near the high (for bullish) or near the low (for bearish)
Marks candles with triangles and can color the bars
Useful for spotting impulsive moves and continuation signals
Alerts also fire when a strong candle aligns with Risk-On or Risk-Off sentiment.
🔹 Full Alert Suite
Alerts include:
Risk-On alignment
Risk-Off alignment
Neutral/out-of-alignment
Strong Bull or Bear Candle + Sentiment confirmation
High-trend n-value conditions
This makes the indicator ready for automation or alert-based trading workflows.
📌 Summary
This SPX-focused sentiment engine blends:
Index trend behavior
Volatility pressure (VIX)
Normalized trend strength (n-value)
Strong candle confirmation
Visual dashboard
Smart alerts
It provides a structured, objective way to gauge market risk conditions and identify high-quality trend opportunities.
🆕 Update: Added Normalized Trend Strength (n-Value)
This update introduces a Normalized Trend Strength metric, displayed as a small numeric value next to each trend signal. It measures how strong the current trend is relative to market volatility.
How It Works
The n-value uses the difference between the Fast EMA and Slow EMA, divided by ATR:
n = | Fast EMA – Slow EMA | ÷ ATR
This transforms raw price movement into a volatility-adjusted trend strength score, making it easier to compare trend quality across different market conditions.
How to Read the n-Value
n-Value Meaning
< 0.10 No trend / Chop / Noise
0.10 – 0.30 Weak trend
0.30 – 0.60 Moderate trend
0.60 – 1.00 Strong trend
1.00+ Very strong momentum
Why It Matters
This addition helps you:
Filter weak signals
Confirm when a trend has real strength
Avoid low-quality setups
Spot strong momentum early
The n-value works automatically with your existing Fast/Slow EMA trend logic and appears inline with the trend label so you can evaluate signals at a glance.
ES + NQ vs VIX Risk-On / Risk-Off Toolkit [SB1]ES + NQ vs VIX Risk-On / Risk-Off Toolkit — Indicator Description
This toolkit provides a full market-sentiment dashboard by comparing S&P 500 (ES), Nasdaq 100 (NQ), and VIX behavior in real time. It is designed to quickly identify when conditions align into Risk-On, Risk-Off, or Neutral market states and to highlight high-conviction candles that support trend continuation.
🔹 Core Logic
The script evaluates:
ES & NQ Candle Bias
Each index is classified as Bullish, Bearish, or Neutral based on its current candle (close vs open).
VIX Direction
Rising VIX = Risk-Off pressure
Falling VIX = Risk-On relief
Market Sentiment Alignment
Risk-On: ES Bullish + NQ Bullish + VIX Falling
Risk-Off: ES Bearish + NQ Bearish + VIX Rising
Neutral: Anything not aligned
🔹 Normalized Trend Strength (n-value)
The indicator introduces a normalized trend metric for both ES and NQ:
Uses fast and slow EMAs to measure directional strength
Normalizes the EMA distance by ATR
Produces an n-value that shows trend intensity regardless of volatility regime
Alerts trigger when the trend reaches a configurable strength range
This helps identify when either index is entering a strong trend environment.
🔹 Movable Dashboard
A clean on-chart dashboard displays:
ES bias & n-value
NQ bias & n-value
VIX direction (Rising / Falling / Flat)
You can place the dashboard in any chart corner (Top-Left, Top-Right, Bottom-Left, Bottom-Right).
🔹 VIX Background Context
Optionally color the chart background automatically:
Green: Risk-On alignment
Red: Risk-Off alignment
Gray: Neutral
This provides immediate visual context behind price action.
🔹 Strong Candle Detection
The script highlights powerful bullish and bearish candles using objective criteria:
Body must exceed a minimum % of the total range
Close must occur near the session extreme
Automatically marks strong candles with up/down triangles
Optionally colors the candle bar for added clarity
Alerts also fire when a strong candle aligns with Risk-On or Risk-Off sentiment.
🔹 Alert System
Built-in alerts cover:
Risk-On alignment
Risk-Off alignment
Neutral/Out-of-alignment context
Strong Bull/Bear Candle + Sentiment alignment
High-trend n-value signals for ES and NQ
All alerts use clear descriptions for automated strategy integration.
📌 Summary
This tool provides a complete multi-asset sentiment engine by combining:
ES & NQ directional bias
VIX volatility pressure
Normalized trend strength
Strong candle confirmation
Visual dashboard
Automated alerts
It is built to support traders who rely on intermarket context, trend strength, and high-confluence entries. Release Notes
🆕 Update: Added Normalized Trend Strength (n-Value)
This update introduces a Normalized Trend Strength metric, displayed as a small numeric value next to each trend signal. It measures how strong the current trend is relative to market volatility.
How It Works
The n-value uses the difference between the Fast EMA and Slow EMA, divided by ATR:
n = | Fast EMA – Slow EMA | ÷ ATR
This transforms raw price movement into a volatility-adjusted trend strength score, making it easier to compare trend quality across different market conditions.
How to Read the n-Value
n-Value Meaning
< 0.10 No trend / Chop / Noise
0.10 – 0.30 Weak trend
0.30 – 0.60 Moderate trend
0.60 – 1.00 Strong trend
1.00+ Very strong momentum
Why It Matters
This addition helps you:
Filter weak signals
Confirm when a trend has real strength
Avoid low-quality setups
Spot strong momentum early
The n-value works automatically with your existing Fast/Slow EMA trend logic and appears inline with the trend label so you can evaluate signals at a glance.






















