//@version=4
// Copyright (c) 2019-present, Alex Orekhov (everget)
// Heikin-Ashi Chart Identifier script may be freely distributed under the terms of the GPL-3.0 license.
study("Heikin-Ashi Chart Identifier", overlay=true)
var int gapsCount = -1
gapsCount := low[1] > high or high[1] < low ? gapsCount + 1 : gapsCount
var int matchedCandles = -1
matchedCandles := open == (open[1] + close[1]) / 2 ? matchedCandles + 1 : matchedCandles
isHA = matchedCandles == bar_index - 1 and matchedCandles != -1 and gapsCount == -1
labelText = isHA ? "This is Heikin-Ashi Chart" : "This is not Heikin-Ashi Chart"
stats = "\n------------------------------------" +
"\nBar Index: " + tostring(int(bar_index)) +
"\nMatched: " + tostring(matchedCandles)
labelColor = #1e90ff
whiteColor = color.white
var label l = label.new(
x=bar_index,
y=na,
text="",
color=labelColor,
textcolor=whiteColor,
style=label.style_labeldown,
size=size.normal
)
label.set_text(l, labelText + stats)
label.set_xy(l, bar_index, highest(high, 50))
Overview
Heikin-Ashi Chart Identifier tracks matched candles where open equals the average of previous open and close, and verifies no gaps between bars. When conditions match, it displays a label on the price chart stating it is a Heikin-Ashi chart along with bar index and matched count. Otherwise it labels the chart as not Heikin-Ashi. The label updates on the price chart with position at recent highs.
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr
All Candlestick Patterns detects and highlights a wide range of bullish, bearish, and neutral candlestick patterns directly on the price chart. It features optional trend filtering using either a 50-period simple moving average or a combination of 50-period an
Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a
This indicator overlays up to five higher-timeframe candlestick groups on the price chart. For each enabled timeframe it requests open, high, low, and close and can show up to five candles, offset by a spacing setting. The main inputs set the candle count, the
This indicator detects a large set of classic candlestick patterns and plots colored labels on the price chart. Trend context uses a 50-period simple moving average, or the 50 and 200 averages stacked together, and can be switched off. Users filter bullish, be
This educational script demonstrates custom candlestick rendering on the price chart using the plotcandle function. It calculates a 20-period Simple Moving Average and checks if the bar's low price remains strictly above it. When the condition is met, the indi