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
177 lines of Pine Script v4 from scripts/119-Coppock-Curve-Strategy.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Long entries occur when the curve crosses above zero or a simple moving-average trigger, and short entries occur on the opposite cross; the reverse cross is the exit cue. Volatility, volume, or both can filter signals, while the holding period, lot size, and time threshold change signal duration and live-bar timing. It does not place orders, and a low time threshold can leave signals changing before the bar closes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Price Type
string
Close
ptype
Short Lag |1..n|
int
11
shortlag
Long Lag |1..n|
int
22
longlag
WMA Lag |1..n|
int
2
wmalag
Method
string
Trigger
method
Trigger Lag
int
5
triglag
Filtering by
string
Volatility
ftype
Time Threshold (%) |0.0..1.0|
float
0.01
tthres
Holding Period |1..n|
int
5
holding_p
===Information===
bool
false
show_info
Lot Size
float
0.01
lot_size
Use Base Price?
bool
false
ubase
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.
The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma
This overlay indicator screens a pasted list of up to forty symbols and draws a table on the price chart. It classifies bullish or bearish setups from the percent change between the current candle and the candle 250 bars back, then shows RSI with a simple movi
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre
This indicator plots three moving averages on the price chart alongside colored fills between the lines to visualize trend structure. Internally, it calculates a Stochastic RSI oscillator to detect oversold reversals. When the Stochastic %K line rises above 10
Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E