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.
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
404 lines of Pine Script v4 from banned-scripts/Five-in-one-Strategy.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Five-in-one Strategy generates trade signals using price breakout triggers adapted to bullish or bearish trends, which can be filtered by volume or volatility thresholds. Users can independently toggle each indicator, adjust DTTA lag lengths and coefficients, and configure pattern sensitivity. Signals can be set to allow unconfirmed drawings, which may repaint prior to bar closure.
Dual Thrust Trading Algorithm breakout logic
Integrated HalfTrend and Nick Rypock Trailing Reverse
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Filter Signals by
string
None
ftype
===Dual Thrust Trading Algo===
bool
true
dtta
Dataset
source
close
ds
Use DTTA algorithm #:
int
2
algo
DTTA Lag M
int
4
mlen
DTTA Lag N
int
20
nlen
DTTA Coeff
float
0.5
k
DTTA Coeff Trending Discount
float
0.5
disc
===Semafore===
bool
true
semafore
Allow Drawing of an Unconfirmed Signal
bool
false
repaint
Depth
int
14
Depth
Deviation
float
3.0
Deviation
Show all 29 settings
Setting
Type
Default
Variable
===HalfTrend===
bool
true
halftrend
Amplitude
int
2
amplitude
Channel Deviation
int
2
channelDeviation
===Nick Rypock Trailing Reverse===
bool
true
nrypock
Coefficient of Correction (%)
float
0.1
percentage
===Tweezer and Kangaroo Tail===
bool
false
enable_tk
Max Rate % Between Wick Sizes
input
150.
maxrate
Max Difference in level %
input
20.
leveldiff
Highest/Lowest Period
int
5
prd
Max Distance between Tweezers
int
12
apartprd
Period for Room
int
20
prd1
Minimum Period for Room
int
8
prd2
ATR Factor for Room Height
int
5
atrmult
Wick/Body Rate
input
3.
wickmult
Wick/Average_Wick Rate
input
2.
wickmultavg
===Information for DTTA only===
bool
true
show_info
Lot Size
float
0.01
lot_size
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 marks Linda Raschke short-term bar setups on the price chart. It flags Turtle Soup and Turtle Soup plus one false breakouts of a prior extreme, 80-20 bars, inside bars, failed inside-bar breakouts, outside up and down bars, NR4 and NR7 c
This indicator detects inside candles inside larger parent candles on the price chart. It plots colored boxes around inside and parent candles, fills them with user-adjustable transparency, draws Fibonacci retracement lines and mother candle range lines, and d
Ghost Channels fits dynamic parallel trend channels over a configurable lookback window using linear regression or pivot swing methods. It layers confirmation signals onto the channel geometry, detecting candlestick pattern reactions at the rails, volume-confi
Zen Z Bars V1 analyzes bar-by-bar price action, candle range expansion, and internal bar strength (IBS). It identifies breakouts, inside and outside bars, climax candles based on range expansion factors, and tiered range multiple bars. The indicator draws brea
This indicator plots Bollinger Bands and smoothed HAMA candles on the price chart. It builds each candle from separate moving averages of open, high, low and close, using selectable EMA, SMA or WMA lengths. A simple moving average forms the band basis, and an
Calculates adaptive arithmetic candles by blending price data with Kaufman Efficiency Ratio smoothing and a linear regression anchor. It measures trend health using a zero-to-hundred Quality Score derived from market efficiency, regression slope, and normalize