1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
189 lines of Pine Script v5 from Tradingview/matt-moheeka-candles.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Matt Moheeka Candles identifies and highlights session opening candles, long-wick reversal candles such as hammers or shooting stars, and doji patterns determined by user-defined wick-to-body and wick-to-wick ratio thresholds. Standard bullish and bearish candles receive custom default styling. Inputs allow users to modify ratio multipliers, session start times, and color choices for bodies, wicks, and outlines.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Update Live
bool
true
update_live
Bull/Bear Mode
bool
true
bull_bear_mode
Bull Body
color
color.new(#ffffff,0)
default_bullbody
Bull Outline
color
color.new(#3b3b3b, 0)
default_bulloutline
Bull Wick
color
color.new(#3b3b3b,0)
default_bullwick
Bear Body
color
color.new(#000000, 0)
default_bearbody
Bear Outline
color
color.new(#000000, 0)
default_bearoutline
Bear Wick
color
color.new(#000000,0)
default_bearwick
Color First Candles
bool
true
_color_firsts
First Candle Time (EST.)
session
0930-0931
first_time
Bull Body
color
color.new(#20ff36, 0)
first_bullbody
Bull Outline
color
color.new(#2f7736, 0)
first_bulloutline
Show all 38 settings
Setting
Type
Default
Variable
Bull first
color
color.new(#2f7736,0)
first_bullwick
Bear Body
color
color.new(#ff2989, 0)
first_bearbody
Bear Outline
color
color.new(#a42525, 0)
first_bearoutline
Bear first
color
color.new(#a42525,0)
first_bearwick
Wick Compared Against Body Ratio
float
2.0
_wickratio_size
Wick Compared Against Opposite Wick Ratio
float
1.5
_wicktowickratio_size
Bull Body
color
color.new(#55d562, 0)
wick_bullbody
Bull Outline
color
color.new(#2f7736, 0)
wick_bulloutline
Bull Wick
color
color.new(#2f7736,0)
wick_bullwick
Bear Body
color
color.new(#ff1010, 0)
wick_bearbody
Bear Outline
color
color.new(#a42525, 0)
wick_bearoutline
Bear Wick
color
color.new(#a42525,0)
wick_bearwick
Color Doji Candles
bool
true
_color_dojis
Wick Compared Against Body Ratio
float
2.0
_dojiratio_size
Wick Compared Against Opposite Wick Ratio
float
1.5
_dojitodojiratio_size
Doji Body
color
color.new(#fffb27, 0)
doji_body
Doji Outline
color
color.new(#8f8127, 0)
doji_outline
Doji Wick
color
color.new(#8f8127,0)
doji_wick
Filter Hammers
bool
true
filter_hammers
| Lower Wick %
float
40.00
hammer_lower_wick_pct
Filter Shooting Stars
bool
true
filter_shootingstars
| Upper Wick %
float
40.00
star_upper_wick_pct
Bull Lower than x
bool
true
bull_lower
lower_x
int
5
lower_x
Bear Higher than x
bool
true
bear_higher
higher_x
int
5
higher_x
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.
This overlay indicator highlights candles with a body smaller than 50% of their total range by coloring them white on the price chart. Simultaneously, it calculates and plots horizontal lines for open prices across multiple higher timeframes, such as daily, we
This indicator identifies whether the opening bar of a new trading day opens at its high (Open = High) or low (Open = Low) within a customizable tick tolerance. It marks matching sessions directly on the price chart using directional arrows, text labels, and t
Point-Clip Unified Indicator plots breakout and directional labels on the price chart. It scores volume spikes against a volume average, range or opening-range breaks, optional VWAP or session-anchored VWAP, fast and slow EMA trend, and a higher-timeframe EMA
Multi-Ticker Anchored Candles overlays up to three user-selected symbols on the price chart as candles anchored to a chosen period, which defaults to the daily timeframe. Each symbol has its own color and an on or off toggle. Optional drawings mark session bre
This indicator detects three-candle time patterns on the price chart, tracking range, manipulation, and distribution phases based on Smart Money Concepts. It establishes high and low boundaries from the opening candle and identifies boundary rejections during
This indicator plots key session-based price action reference levels on the price chart. It calculates and displays the current session open, previous day close, Globex session high and low, weekly open, and higher-timeframe boundaries. It also supports bar co