RSI & Volume Coloured BarsCandles get darker when volume is high, and brighter when volume is low. They are red or green depending on whether the RSI is above or below a threshold value, or alternatively you can pick a more vanilla coloring based on current close vs last close or last open.
For personal use as I enjoy the aesthetics of it. The more solid RSI coloring helps highlight the brightness variations from changing volume and makes trends crystal clear.
Inspired by "Volume Based Coloured Bars" by KivancOzbilgic:
and by and by RSI bars chart by taskman9:
Cari dalam skrip untuk "bar"
Hide Active BarWe are not supposed to make trading decisions based on active bars (bars that have not closed), right? Well sometimes my trigger finger gets a little twitchy when I'm awaiting an entry and an active candle starts to pull away or I'm in a trade and an active candle pushes against me.
Therefore, I made a VERY simple indicator that ghosts the active bar. You can see the outline but the body is transparent to emphasize that you should await its close before deciding what to do...
Very simple script but hopefully it will help me (and others) to remain a little calmer in the moment.
In case the bar recolour does not show in the main image - here it is below.
Two Bars IndexThe Two Bars Index compares the current bar to a bar n periods back.
This indicator is incredibly simple, yet so effective.
Hide extended hours/non-intraday barsEspecially for future users, such as ES/NQ/RTY/YM, etc., this script can hide the extended hours/non-intraday bars and leave the intraday bars only.
With this script , you can find the intraday support/resistance quite easily!
Example, if you are a ES investor, you can easily find the intraday support/resistance level ,which is almost equal to SPY, with this script, and no need to check SPY separately again , saving your time a lot.
Note: Please couple this script with American Bars. If you use candle charts, the upper/lower pins of the candle can't be hidden with the bars together, which is restricted by the code editor itself...
NR4 / NR7 + Inside BarIndicator Script for identifying Narrow Range 4 / 7 + Inside Bar
It also helps to check whether NR4 / NR7 breakout trading has been profitable or not in the past in a particular instrument.
It has helped me to select profitable scripts and avoid losing ones. Can be used for anytime frame.
SIGNAL
NR4 == Narrowest range of 4 periods + signal day is an inside bar
NR4 & NR7 == Narrowest range of 7 periods + signal day is an inside bar
SIGNAL "PROFIT" -
Prior day was NR4 / NR7 and next day price broke out of prior day range in 1 direction and closed in the direction of breakout away from breakout price, resulting in a profit trade.
SIGNAL "LOSS" -
Prior day was NR4 / NR7 and next day price broke out of prior day range and returned back to close inside the narrow zone OR went in opposite direction after the initial breakout, resulting in a loss trade.
BossHouse - Price ChangeBossHouse - Price Change
What it is:
In the stock market, a price change is the difference in trading prices from one period to the next or the difference between the daily opening and closing prices of a share of stock.
Here you have a timeline with a bar price change. In seconds you can see if the selected market has good and high price changes or not.
The values are in percentage and you have a limiter in the settings, so you can show only bar/values above a value. Ex. 2.4%.
Why it Matters:
Price changes are a core component of financial analysis, and predicting price changes can be as, if not more, important than an actual price change.
It is important to remember, however, that percent-based price changes are useful only in the context of the number of dollars involved.
A 75% change in the price of a company X, for example, may only involve a few dollars while a 75% change in the price of company Y may involve thousands of dollars.
Settings:
Show the SMA 21 line
Minimum Limit - Set the minimum value to show a bar
Calculation:
For example, let's say Company XYZ shares opened at $25 this morning and closed at $24.
The price change is -$1, or -$1/$25 = -4%.
Any help and suggestions will be appreciated.
Marcos Issler @ Isslerman
Volume Profile: Intra-bar VolumeThis indicator was developed as part of a free blog post tutorial on the Backtest-Rookies website for detailed code commentary, head over there.
Scope
The indicator shall attempt to do the following:
Look at a lower time-frame. E.g 5 minutes when on a 1-hour chart.
Create a function to loop through through candles and make an assessment.
If the candle it closed up, the volume will be categorized as buying volume. Conversely, if it closed down, the volume will be categorized as selling volume
The function will then be passed to the security() function to run on a lower timeframe.
All buying volume and selling volume from the lower time-frame shall be summed and displayed on the main chart.
Important Note
This indicator will not give you genuine buying or selling volume. It simply follows the assumption that if price closed up, there must have been more buyers than sellers and if it closed down we assume the opposite.
Usage
In order to use this indicator, users will need to calculate how many lower time-frame bars are contained in the time-frame on the main chart. So for example, the default settings are configured for the indicator to be run on the 1H chart. As a result, we need to set the "Bars on Lower Timeframe" input to 12. This is because there are 12 x 5-minute bars in 60 minutes.
draw line at bar on condition, up to 40 bars in lengthDraws line at bar on condition, up to 40 bars in length.
Well, that's not a line, but a set of `—` characters. But it looks like a line, so it is line.
Green BarsA simple script to count the number of up days, or intraday bars, (Green Bars) for a given Look Back period.
Inputs are: Look Back Period and Increment.
Use 0 for the Increment to count only the up days, or bars.
Use -1 to include the down days, or bars, in the sum.
Trend Setter Max BarsThis script allows you to visualize trends. It counts continuous bars in the same direction, then makes an average of the maximum count in the look back period. If Green is above Red, its strength is upward and vice versa. This doesn't use returns or measure price moves.
*Positive Gray is current up bars count. Negative Gray down current down bars count
*Green and Red are average max counts.
This info could possibly be used to gauge trends or momentum.
Note: I finally figured out how to use loops and mutable variables in V3.
[RS]Dollar Basket - Bar by Bar Percent ChangeDisplays a horizontal selection of instruments Vs the dollar, value is percent change from bar to bar with option to smooth the data with a simple average.
Hersheys CoCo BarsThis is my latest attempt to show price movement differences between symbols. I want to see the buying and selling pressure... is that price movement going with the market or is it moving alone? It's VERY interesting to watch this indicator and see how things play out!
In my previous versions the arrows on the chart were too much clutter, while the single row of color under the chart was not enough info. Also, I removed the calculations to build a world index because the correlation between US and world markets is a hard nut to crack, plus it took many seconds to calculate.
So here is "CoCo Bars", which clearly show price moves with or against another symbol. The default symbol is the US index SPY. The coolest thing here is there are three rows of data in ONE INDICATOR! Many thanks to user rollas for helping with that code.
"CoCo" stands for correlation coefficient, which is what I was studying when I got the idea for this project.
GREEN bars in row #1 = Symbol up, US up, Symbol up more than US
RED bars in row #2 = Symbol down, US down, Symbol down more than US
In rows 1 and 2 the color intensity is based on the biggest difference, light, medium and dark colors.
green/red colors in bottom row are a 7 period average of the sum of price changes of both symbol and index, green = positive, red = negative
Enjoy, and good trading!
Brian Hershey
Price Action Awesome IndicatorThis indicator is everything you need to do Price Action Trading.
It provides signals about:
Inside Bars
Pin Bars
Fakey Pin Bars (background color red or green for bearish or bullish fakeys)
Fakey pattern (Inside Bar False Breakout)Inside Bar + False-Breakout = Fakey pattern
A Fakey pattern can have a pin bar as the false-break bar or not. Fakey’s are a very important and potent price action trading strategy because they can help us identify stop-hunting and provide us with a very good clue as to what price might do next.
UCS Squeeze BarThis indicator is a request from tvmember jackvmk. Credits to jackvmk.
Squeeze bar = a bar which encompasses 5, 10, 15, 20, 30, 40 SMA
Squeeze bars high and lows are support and resistance. when price break one of them, this direction is direction of explosion.
I have added a further more customization
1. Using EMA instead of SMA
2. Using Heikin Ashi Optimization
3. Using Realbody (ignore wicks)
4. Plot the MA Ribbon
CM EMA Trend BarsThis Code Simply Changes the Bar Colors based on if the Bar is Above or Below the EMA.
Inputs via the Inputs Tab:
Ability to change the EMA Period.
Ability to Turn On/Off the EMA Plotted on the Screen
***Note - I used the HLC/3 To determine if the bar/candle is above or below the EMA. This Filters out the Chop and gets rid of many of the False Breaks above or below the EMA.
Bollinger Free BarsIdentify Extreme Price Actions with Non-Overlay Visualization
Core Functionality
This indicator detects two types of Bollinger Band breakout patterns without cluttering your chart:
1 ️⃣ Half Breakout Bar (Blue Triangles)
- Triggers when both open & close prices are outside the Bollinger Bands
- Suggests strong directional momentum continuation
2 ️⃣ Complete Breakout Bar (Red Flags)
- Activates when entire price action (including wicks) stays outside the bands
- Signals extreme volatility exhaustion points
Feature Highlights
◾ Smart Band Display
Translucent bands (#2196F3 & #FF9800 with 70% transparency) maintain chart clarity while showing dynamic volatility ranges
◾ Parameter Customization
- Adjustable period (default 20) & deviation multiplier (default 2.0)
- Selectable price source (close/open/high/low)
◾ Statistical Validation
Based on Bollinger Band's 95.4% price containment principle, signals filter out 4.6% extreme market conditions for high-probability scenarios.
Recommended Usage
1. Combine with volume analysis (significant breakout with high volume increases signal reliability)
2. Confirm with trend lines or RSI divergence
3. Adjust transparency via "Style" tab for multi-indicator layouts
Code Safety
- No repainting: All calculations use historical price data only
- No external network requests
- Open-source logic compliant with Pine Script v6 standards
Disclaimer
This tool is for technical analysis education only. Past performance doesn't guarantee future results. Always validate signals with fundamental analysis and proper risk management.
3 Consecutive Inside Bars - RSTInside bars are often used to identify potential consolidation periods or breakout setups.
This will provide tight range for 3 consecutive inside bars.
Remember that inside bar patterns are just one tool, and no indicator is perfect. Always use sound risk management.
My Bar IndexA simple script to display bar index at the bottom of the chart. It will be a handy tool for those who like to do bar counts.
2:45 AM Candle High/Low Crossing Bars2:45 AM Candle High/Low Crossing Bars is an indicator that focuses on the trading view 2:45am NY TIME high and low indicating green for buy and red bars for sell, with the 2:45am new york time highlight/ If the next candle sweeps the low we buy while if it sweeps the high we sell, all time zoon must be the new York UTC time.
Similar Bars Pattern DetecterDescription:
The Similar Bars Pattern Detector is a professional Pine Script indicator designed for TradingView users who want to identify sequences of similar candlesticks in a row. Whether you're looking for bullish or bearish patterns, this tool helps you spot repeating formations based on customizable settings.
Features:
✅ Detects patterns of consecutive similar bars
✅ Works for both bullish and bearish trends
✅ Uses tick-based range filtering for precise detection
✅ Fully customizable: adjust number of candles, trend type, and range
✅ Highlights detected patterns directly on the chart
🔹 Ideal for traders who rely on pattern recognition to confirm trends and price movements.
🔹 Works across all markets and timeframes.
💡 How to Use:
1️⃣ Set the number of candles to detect a repeating pattern.
2️⃣ Choose bullish or bearish trend direction.
3️⃣ Adjust the tick range to fine-tune pattern similarity.
🚀 Enhance your trading analysis with this powerful pattern recognition tool!
Time of Day Background with Bar Count & TableDescription:
This indicator provides a comprehensive overview of market activity by dynamically displaying the time-of-day background and tracking bullish and bearish bar counts across different sessions. It also features a table summarizing the market performance for the last 7 days, segmented into four time-based sessions: Morning, Afternoon, Evening, and Night.
Key Features:
Time of Day Background:
The chart's background color changes based on the time of day:
Evening (12 AM - 6 AM) is shaded blue.
Morning (6 AM - 12 PM) is shaded aqua.
Afternoon (12 PM - 6 PM) is shaded yellow.
Night (6 PM - 12 AM) is shaded silver.
Bullish and Bearish Bar Counting:
It tracks the number of bullish (closing higher than opening) and bearish (closing lower than opening) candles.
The sum of the price differences (bullish minus bearish) for each session is displayed as a dynamic label, indicating overall market direction for each session.
Session Breakdown:
The chart is divided into four sessions, each lasting 6 hours (Morning, Afternoon, Evening, Night).
A new label is generated at the start of each session, indicating the bullish/bearish performance and the net difference in price movements for that session.
Historical Session Performance:
The indicator tracks and stores the performance for each session over the past 7 days.
A table is generated in the top-right corner of the chart, summarizing the performance for each session (Morning, Afternoon, Evening, Night) and the price changes for each of the past 7 days.
The values are color-coded to indicate positive (green) or negative (red) results.
Dynamic Table:
The table presents performance data for each time session over the past week with color-coded cells:
Green cells indicate positive performance.
Red cells indicate negative performance.
Empty cells represent no data for that session.
Use Case:
This indicator is useful for traders who want to track market activity and performance across different times of day and monitor how each session contributes to the overall market trend. It provides both visual insights (through background color) and numerical data (via the table) for better decision-making.
Settings:
The background color and session labels update automatically based on the time of day.
The table updates every day, tracking the performance of each session over the past week.
SuperTrend Bar Counter - DolphinTradeBot
OVERVIEW
This indicator calculates the lengths of upward and downward trends based on the specified SuperTrend settings and timeframe. It then takes the average length of the entered number of swings and compares the current trend durations with these averages. The main goal is to anticipate potential reversals in advance.
HOW IS IT WORK ?
The indicator actually contains two different but conceptually similar metrics.
The first part; shows how long the Supertrend stays in an upward or downward trend in real time. Additionally, it analyzes how close the current value is to the average of the Supertrend bar count for the given input.
The second part; aims to provide a different perspective on general trend analysis. It calculates the average duration of upward and downward trends in bars based on the SuperTrend indicator settings within a specified period and timeframe. If, contrary to expectations, downward trends last longer than upward trends, the background is colored green, indicating a prediction that the trend will continue upward.
Explanation of the second part logic: As you know, moving averages or similar approaches that follow the price are often correct when looking back retrospectively, but they cannot serve as leading indicators in real-time trading.That's why, when performing trend analysis, I wanted to introduce a completely different perspective based on price movement, yet still grounded in price action itself.
This phenomenon is partly due to the nature of the SuperTrend itself. After strong price movements, SuperTrend tends to reverse direction much more quickly during pullbacks. Following a strong upward move, a downward trend is detected much earlier and tends to last longer. The indicator provides an alternative perspective by analyzing which directional movement occurs more rapidly and uses this insight for trend prediction.
HOW TO USE ?
It can be used to identify potential price reversals or to assess whether the price is generally cheap or expensive.
In the settings section, you can adjust the SuperTrend parameters and timeframes for the values displayed in the table.
In the second part, you can configure the values used for general trend analysis.
NOTE
Things to be aware of: As the chart's timeframe decreases, pulling data from higher timeframes becomes more difficult. For example, when the chart is set to a 5-minute timeframe, it may fail to retrieve swing periods from the daily timeframe. Similarly, on a 4-hour chart, when calculating the average swing, there might be enough data for only 5 periods instead of 20.
Please keep in mind that this indicator was created solely to provide an idea. It should only be considered as a perspective or a supporting tool that influences your decision by no more than 5% at most.