1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
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, bearish, neutral, all, or non-neutral patterns, and each named pattern can be turned on or off. Label style, text color, and bullish, bearish, and neutral colors are configurable. It does not enter or exit trades.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Detect Trend Based On
input
trendRule1
trendRule
Pattern Type
string
All
CandleType
Language
string
English
language
Bullish Color
color
color.green
bullishColor
Bearish Color
color
color.red
bearishColor
Neutral Color
color
color.gray
neutralColor
Text Color
color
color.white
textColor
Bullish Label
string
label up
Bullish Label
Bearish Label
string
label down
Bearish Label
Neutral Label
string
label up
Neutral Label
Marubozu White 光头光脚阳线
bool
true
MarubozuWhiteInput
Hammer 锤子
bool
true
HammerInput
Show all 40 settings
Setting
Type
Default
Variable
Inverted Hammer 倒锤子
bool
true
InvertedHammerInput
Long Lower Shadow 长下影线
bool
true
LongLowerShadowInput
Upside Tasuki Gap 旭日东升
bool
true
UpsideTasukiGapInput
Rising Window 跳空上涨
bool
true
RisingWindowInput
Piercing 曙光初现
bool
true
PiercingInput
Engulfing 上涨吞没
bool
true
BullishEngulfingInput
Tweezer Bottom 平底
bool
true
TweezerBottomInput
Abandoned Baby 看涨弃婴
bool
true
BullishAbandonedBabyInput
Morning Star 早晨之星
bool
true
MorningStarInput
Morning Doji Star 晨星十字
bool
true
MorningDojiStarInput
Dragonfly Doji 蜻蜓十字
bool
true
DragonflyDojiInput
Three White Soldiers 红三兵
bool
true
ThreeWhiteSoldiersInput
Rising Three Methods 上升三法
bool
true
RisingThreeMethodsInput
Tri-Star 底部三星
bool
true
TriStarInput
Marubozu Black 光头光脚阴线
bool
true
MarubozuBlackInput
Gravestone Doji 墓碑十字
bool
true
GravestoneDojiInput
Hanging Man 上吊线
bool
true
HangingManInput
Long Upper Shadow 长上影线
bool
true
LongUpperShadowInput
Downside Tasuki Gap 倾盆大雨
bool
true
DownsideTasukiGapInput
Falling Window 跳空下跌
bool
true
FallingWindowInput
Dark Cloud Cover 乌云压顶
bool
true
DarkCloudCoverInput
Engulfing 下跌吞没
bool
true
BearishEngulfingInput
Tweezer Top 平顶
bool
true
TweezerTopInput
Abandoned Baby 弃婴
bool
true
AbandonedBabyInput
Evening Doji Star 黄昏十字星
bool
true
EveningDojiStarInput
Evening Star 黄昏之星
bool
true
EveningStarInput
Three Black Crows 三只乌鸦
bool
true
ThreeBlackCrowsInput
Falling Three Methods 下降三法
bool
true
FallingThreeMethodsInput
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.
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
Five-in-one Strategy combines five analytical tools into a single price chart overlay: the Dual Thrust Trading Algorithm (DTTA), Semafore, HalfTrend, Nick Rypock Trailing Reverse, and Tweezer or Kangaroo Tail candlestick patterns. It generates trade signals us
This indicator calculates and plots Heikin-Ashi smoothed candlesticks directly on the price chart. It derives the smoothed close from standard price averages and recursively computes the open, high, and low values. The script does not issue trade signals or al
This indicator overlays on the price chart and provides trend and momentum analysis. It calculates and plots three exponential moving averages with fixed periods of 20, 50, and 200 using yellow, orange, and blue colors respectively. The script also computes th
The Confluence Suite indicator draws multiple trading signals and tools directly on the price chart. It generates entry and exit signals based on selected modes and filters, with an AI signal classifier rating quality from 1-4. Additional features include smar
This indicator identifies the Bullish Abandoned Baby candlestick pattern directly on the price chart. The three-bar reversal pattern consists of a strong down candle during an established downtrend, followed by a lower gapping doji candle, and completed by an