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 strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
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
Candlestick Patterns Strategy (revisited) executes trades directly on the price chart when selected bullish or bearish patterns trigger. Users can toggle individual candlestick formations on or off, enable or disable strategy orders, adjust a backtest start date, and configure an optional trailing stop loss via points and offset inputs. A notable limitation is the absence of secondary trend or volume filters, which can lead to false breakouts in choppy markets.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Engulfing
bool
true
OnEngulfing
Harami
bool
true
OnHarami
Piercing Line / Dark Cloud Cover
bool
true
OnPiercingLine
Morning Star / Evening Star
bool
true
OnMorningStar
Belt Hold
bool
true
OnBeltHold
Three White Soldiers / Three Black Crows
bool
true
OnThreeWhiteSoldiers
Three Stars in the South
bool
true
OnThreeStarsInTheSouth
Stick Sandwich
bool
true
OnStickSandwich
Meeting Line
bool
true
OnMeetingLine
Kicking
bool
true
OnKicking
Ladder Bottom
bool
true
OnLadderBottom
Use Strategy Setup
bool
true
useStrat
Show all 18 settings
Setting
Type
Default
Variable
Use Trailing Stop?
bool
true
useStop
Stop Loss Trail Points
int
1
slPoints
Stop Loss Trail Offset
int
1
slOffset
Starting backtest year
int
2019
yr
Starting backtest month
int
8
mn
Starting backtest day
int
1
dy
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.
Exceeded Candle [Alorse] is a mean-reversion strategy that identifies candlestick engulfing patterns combined with Bollinger Bands filters. It enters a long position when a green candle surpasses the body of the previous red candle while price is below the mid
Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish
ESU2023-10M - V1 is an intraday trend-reversal strategy designed for index futures contracts on the price chart. It calculates a 3-period moving average of candle highs and lows alongside specific three-bar price action patterns to detect short-term swing high
The STRG One Bar Pursuit strategy identifies single-bar momentum reversals by monitoring shifts between bullish and bearish candlesticks starting from the year 2024. It enters a long position when a bullish candle follows a bearish candle and enters a short po
This strategy identifies trade opportunities based on candlestick wick imbalances relative to the Average True Range. It enters positions when candle wicks exceed defined thresholds and filters out doji candles using a minimum body ATR requirement. Exits are h
This strategy trades the three-candle strike pattern filtered by trend direction and time sessions. It calculates market regime using linear regression and exponential or smoothed moving averages to distinguish between ranging and trending conditions. Risk man