Pullback by Candle BodyThe Pullback Indicator version 0.2
Identifies pullbacks by checking if the current candle's body is lower than the previous candle's low for a bearish pullback or higher than the previous candle's high for a bullish pullback. Once a pullback has been identified, the Indicator marks the lowest low or highest high of the trend with a circle.
NOTE it's not fully working as expected as it lacks trend analysis in its code, resulting in it indicating pullbacks in the opposite direction of the trend, such as bullish pullbacks in a bullish trend or bearish pullbacks in a bearish trend. This is a work in progress, maybe it will be "improved" in the future.
Поиск скриптов по запросу "candle"
ka66: Candle Range IndicatorVisually shows the Body Range (open to close) and Candle Range (high to low).
Semi-transparent overlapping area is the full Candle Range, and fully-opaque smaller area is the Body Range. For aesthetics and visual consistency, Candle Range follows the direction of the Body Range, even though technically it's always positive (high - low).
The different plots for each range type also means the UI will allow deselecting one or the other as needed. For example, some strategies may care only about the Body Range, rather than the entire Candle Range, so the latter can be hidden to reduce noise.
Threshold horizontal lines are plotted, so the trader can modify these high and low levels as needed through the user interface. These need to be configured to match the instrument's price range levels for the timeframe. The defaults are pretty arbitrary for +/- 0.0080 (80 pips in a 4-decimal place forex pair). Where a range reaches or exceeds a threshold, it's visually marked as well with a shape at the Body or Candle peak, to assist with quicker visual potential setup scanning, for example, to anticipate a following reversal or continuation.
Inside CandleThis is a inside candle strategy based trading identifier. The basic idea is this
1. It will identify entry point if the previous candle was fully engulfed under the one previous
2. Then depending on the trend and your other indicators/thought process - you can take an entry
3. It is normally a good idea to keep the low of the bigger candle as your SL
Relative CandlesCustom candles which only didsplay highs and lows. Color depends on relative position of highs and lows and indicates whether it is going up, down or indecision based on this relative position. Made specially for superchiqui :P
Supply/Demand Zone CandlesThis is a Pine Script to do a basic scan for demand zones and supply zones based on a Leg-Base-Leg-Base pattern.
Yellow candles define a Demand Zone.
Maroon candles define a Supply Zone.
Harris Triple Impulse Candle Detector Triple impulse candle detector system. Indicator uses size multiplier, volume multiplier and body to mick ratio, to calculate the size of its impulse
First Historical Candle Date daily intervalIndicator that displays a first historical candle on daily interval as a table at a top-right corner
2nd 1H: Midpoints (white=2nd mid, blue=2-candle range mid)2nd 1H: Midpoints (white=2nd mid, blue=2-candle range mid)
5 AM NY 4H Candle High/LowThis indicator identifies the 4-hour candle that starts at 5:00 AM New York time (NYT) and automatically plots its high and low on intraday charts (e.g., 15m, 30m, 1H).
It helps traders:
Highlight a key session window often associated with increased market activity.
Use the 5AM–9AM NYT range for breakout, reversal, or liquidity zone strategies.
See clean horizontal levels that can act as support or resistance throughout the trading day.
🧠 Key Features:
Works on any timeframe below 4H.
Automatically detects and updates daily.
Optional labels to mark the range visually.
First and Last Candle HighlightSimple indicator that colors the 8:30 am Morning open candle, 3pm close candle and overnight 12:00am candle for ES as a quick reference for ICT strategies or any other strategies that provide added confluence to your style of trading. the time is set to UTC -5 for chicago time but im sure it will auto adjust for any other time zone if not message me and i will leave the script open for you to edit to your liking
Vertical Line at nth Previous CandleThis code is a Pine script for TradingView that plots a vertical line on the chart n bars away from the current candle on the current time frame. The number of bars and line color can be customized by the user using input fields. The script calculates the highest and lowest price on the chart for the past n bars, and then draws a vertical line at the target bar with the specified line color. The previous line is removed and the ID of the new line is stored so that the next time the script is run, it can be removed and replaced with a new line. This script can be useful for marking important points on a chart or for visually tracking patterns or trends over time.
High timeframe Highs, Lows, Opens, Closes. HTF Candles displayPosting previously requested indicator.
Overlays higher timeframe high and low over the current bars - pictured is daily high and low overlayed on lower timeframe chart.
Can be set to fill between the open and close to show higher timeframe candles by color, with bullish or bearish fills
Very versatile and can be used to display weekly or monthly opens, or used to display previous weekly highs and lows for charting out possible liquidity points, etc.
Originally converted from Chris Moody's HLOC pine version 2 indicator.
Aggregate CandlesThis script creates candles based on an aggregated Index price from various exchange tickers. A lot of exchanges have specific flash crash wicks, missing data, erraticness compared to other exchanges particularly in their first few months, this is an attempt to clean up the price history, be it for TA ( trendlines , S/R etc.) or use in algos or other indicators, without reliance on one exchange. It uses the new Array functionality to generate median and averages, and is entirely original work. This particular version is a generic version of the BTC version. Please read the header before use, and if you do wish to use the code, please ask permission first.
Pin Bar CandlesPin Bar Candles can be used for identifying reversal points with the help of support and resistance
No Shadow Candles - Alertsalert script to detect candles with no wick, for testing.
scripted on request.
<50% body candleThis Script shows the candle whose body is less than the full candle and is shown in black color
Sagar sir - N Continuous candle green with +ve % changeThis script will plot labels based on N number of continuous green candle with +ve % change.
Small candle/Stop Gap indicator MHThis script has a different setting for the stop gap vs the candle size
*All Candlestick Patterns* Tiny VersionThis is just the *All Candlestick Patterns* script with tiny labels. Also an excuse to test the script publication .. but you will find this version much less annoying
Identificador de Candlestick PT-br (updated 27/05/19) -whande1Identificador de Candlestick PT-br (updated 27/05/19) -whande1
Wavelet Candle Constructor (Inc. Morlet) 2Here is the detailed description of the **Wavelet Candle** construction principles based on the code provided.
This indicator is not a simple smoothing mechanism (like a Moving Average). It utilizes the **Discrete Wavelet Transform (DWT)**, specifically the Stationary variant (SWT / à Trous Algorithm), to separate "noise" (high frequencies) from the "trend" (low frequencies).
Here is how it works step-by-step:
###1. The Wavelet Kernel (Coefficients)The heart of the algorithm lies in the coefficients (the `h` array in the `get_coeffs` function). Each wavelet type represents a different set of mathematical weights that define how price data is analyzed:
* **Haar:** The simplest wavelet. It acts like a simple average of neighboring candles. It reacts quickly but produces a "boxy" or "jagged" output.
* **Daubechies 4:** An asymmetric wavelet. It is better at detecting sudden trend changes and the fractal structure of the market, though it introduces a slight phase shift.
* **Symlet / Coiflet:** More symmetric than Daubechies. They attempt to minimize lag (phase shift) while maintaining smoothness.
* **Morlet (Gaussian):** Implemented in this code as a Gaussian approximation (bell curve). It provides the smoothest, most "organic" effect, ideal for filtering noise without jagged edges.
###2. The Convolution EngineInstead of a simple average, the code performs a mathematical operation called **convolution**:
For every candle on the chart, the algorithm takes past prices, multiplies them by the Wavelet Kernel weights, and sums them up. This acts as a **digital low-pass filter**—it allows the main price movements to pass through while cutting out the noise.
###3. The "à Trous" Algorithm (Stationary Wavelet Transform)This is the key difference between this indicator and standard data compression.
In a classic wavelet transform, every second data point is usually discarded (downsampling). Here, the **Stationary** approach is used:
* **Level 1:** Convolution every **1** candle.
* **Level 2:** Convolution every **2** candles (skipping one in between).
* **Level 3:** Convolution every **4** candles.
* **Level 4:** Convolution every **8** candles.
Because of this, **we do not lose time resolution**. The Wavelet Candle is drawn exactly where the original candle is, but it represents the trend structure from a broader perspective. The higher the `Decomposition Level`, the deeper the denoising (looking at a wider context).
###4. Independent OHLC ProcessingThe algorithm processes each component of the candle separately:
1. Filters the **Open** series.
2. Filters the **High** series.
3. Filters the **Low** series.
4. Filters the **Close** series.
This results in four smoothed curves: `w_open`, `w_high`, `w_low`, `w_close`.
###5. Geometric Reconstruction (Logic Repair)Since each price series is filtered independently, the mathematics can sometimes lead to physically impossible situations (e.g., the smoothed `Low` being higher than the smoothed `High`).
The code includes a repair section:
```pinescript
real_high = math.max(w_high, w_low)
real_high := math.max(real_high, math.max(w_open, w_close))
// Same logic for Low (math.min)
```
This guarantees that the final Wavelet Candle always has a valid construction: wicks encapsulate the body, and the `High` is strictly the highest point.
---
###Summary of ApplicationThis construction makes the Wavelet Candle an **excellent trend-following tool**.
* If the candle is **green**, it means that after filtering the noise (according to the selected wavelet), the market energy is bullish.
* If it is **red**, the energy is bearish.
* The wicks show volatility that exists within the bounds of the selected decomposition level.
Here is a descriptive comparison of **Wavelet Candles** against other popular chart types. As requested, this is a narrative explanation focusing on the differences in mechanics, interpretation philosophy, and the specific pros and cons of each approach.
---
###1. Wavelet Candles vs. Standard (Japanese) CandlesThis is a clash between "the raw truth" and "mathematical interpretation." Standard Japanese candles display raw market data—exactly what happened on the exchange. Wavelet Candles are a synthetic image created by a signal processor.
**Differences and Philosophy:**
A standard candle is full of emotion and noise. Every single price tick impacts its shape. The Wavelet Candle treats this noise as interference that must be removed to reveal the true energy of the trend. Wavelets decompose the price, reject high frequencies (noise), and reconstruct the candle using only low frequencies (the trend).
* **Wavelet Advantages:** The main advantage is clarity. Where a standard chart shows a series of confusing candles (e.g., a long green one, followed by a short red one, then a doji), the Wavelet Candle often draws a smooth, uniform wave in a single color. This makes it psychologically easier to hold a position and ignore temporary pullbacks.
* **Wavelet Disadvantages:** The biggest drawback is the loss of price precision. The Open, Close, High, and Low values on a Wavelet candle are calculated, not real. You **cannot** place Stop Loss orders or enter trades based on these levels, as the actual market price might be in a completely different place than the smoothed candle suggests. They also introduce lag, which depends on the chosen wavelet—whereas a standard candle reacts instantly.
###2. Wavelet Candles vs. Heikin AshiThese are close cousins, but they share very different "DNA." Both methods aim to smooth the trend, but they achieve it differently.
**Differences and Philosophy:**
Heikin Ashi (HA) is based on a simple recursive arithmetic average. The current HA candle depends on the previous one, making it react linearly.
The Wavelet Candle uses **convolution**. This means the shape of the current candle depends on a "window" (group) of past candles multiplied by weights (Gaussian curve, Daubechies, etc.). This results in a more "organic" and elastic reaction.
* **Wavelet Advantages:** Wavelets are highly customizable. With Heikin Ashi, you are stuck with one algorithm. With Wavelet Candles, you can change the kernel to "Haar" for a fast (boxy) reaction or "Morlet" for an ultra-smooth, wave-like effect. Wavelets handle the separation of market cycles better than simple HA averaging, which can generate many false color flips during consolidation.
* **Wavelet Disadvantages:** They are computationally much more complex and harder to understand intuitively ("Why is this candle red if the price is going up?"). In strong, vertical breakouts (pumps), Heikin Ashi often "chases" the price faster, whereas deep wavelet decomposition (High Level) may show more inertia and change color more slowly.
###3. Wavelet Candles vs. RenkoThis compares two different dimensions: Time vs. Price.
**Differences and Philosophy:**
Renko completely ignores time. A new brick is formed only when the price moves by a specific amount. If the market stands still for 5 hours, nothing happens on a Renko chart.
The Wavelet Candle is **time-synchronous**. If the market stands still for 5 hours, the Wavelet algorithm will draw a series of flat, small candles (the "wavelet decays").
* **Wavelet Advantages:** They preserve the context of time, which is crucial for traders who consider trading sessions (London/New York) or macroeconomic data releases. On a wavelet chart, you can see when volatility drops (candles become small), whereas Renko hides periods of stagnation, which can be misleading for options traders or intraday strategies.
* **Wavelet Disadvantages:** In sideways trends (chop), Wavelet Candles—despite the smoothing—will still draw a "snake" that flips colors (unless you set a very high decomposition level). Renko can remain perfectly clean and static during the same period, not drawing any new bricks, which for many traders is the ultimate filter against overtrading in a flat market.
###Summary**Wavelet Candles** are a tool for the analyst who wants to visualize the **structure of the wave and market cycle**, accepting some lag in exchange for noise reduction, but without giving up the time axis (like in Renko) or relying on simple averaging (like in Heikin Ashi). It serves best as a "roadmap" for the trend rather than a "sniper scope" for precise entries.






















