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 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
136 lines of Pine Script v5 from pinescript/edge59/e59-strategy.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
The channel uses an exponential moving average of close, optionally smoothed by linear regression, and a percentage of a fixed 280-bar price range. It marks long when the ADX and trend filters agree and price breaks the prior N-bar high, and short on the matching breakdown of the prior low. Inputs change ADX lengths, the MA and trend periods, the channel rate, and the breakout lookback. It has no stop loss by default.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
DI Length
int
14
lenadx
ADX Smoothing
int
14
lensig
ADX MA Active
int
17
limadx
Length
int
10
len
Source
source
close
src
Period to Check Trend
int
20
prd
MA Period
int
20
maprd
Trend Channel Rate %
float
1
rateinp
Use Linear Regression
bool
true
ulinreg
Linear Regression Period
int
5
linprd
Number of Days (Close Breakout)
int
22
num_breakout_days
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 strategy trades longs and shorts on the price chart. Long entries require a close above the prior Donchian high, a close above a long-term SMA, and RSI above a threshold, with size set as a percentage of equity. Long exits use a stop at the prior Donchian
AG Momentum Breakout is a strategy that identifies continuation signals after pullbacks in trending markets. It filters for uptrends using EMAs and detects recent pullbacks via RSI conditions before entering on RSI crossovers above 50 with ADX confirmation. Th
Christian Qullamaggie Strategy is a trend-following and breakout strategy overlay designed to identify high-momentum trading opportunities directly on the price chart. It evaluates market conditions using fast, mid, and slow EMAs, average true range (ATR), and
This strategy identifies breakout trades using a 7-period RSI combined with price extreme lookbacks. A long entry triggers when the RSI rises above 70 and price reaches a new lookback high, provided price remains above an optional EMA trend filter and passes a
This strategy trades momentum breakouts by combining an Exponential Moving Average with the Relative Strength Index. It enters a long position when the closing price is above the EMA and the RSI crosses above the breakout threshold. It enters a short position
This strategy plots EMAs 21, 52, and 144 alongside the MACD indicator on the BTC price chart. It identifies bullish or bearish line segments using MACD crossovers above and below zero, with delay confirmations and below-zero-axis breakout filters. Entries occu