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
Q-Trend + KVO Strategy enters long when a Q-Trend buy trigger aligns with a positive KVO value and a bullish candle confirmation, taking short trades under inverted conditions. Exits are managed via a stop loss placed at recent swing highs or lows and a fixed risk-to-reward take-profit target. Settings allow adjusting ATR parameters, KVO moving average lengths, swing lookback depth, and risk-reward ratios. Plotted in a separate indicator pane.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Source
source
close
qtSrcInput
Trend Period
int
200
qtPeriod
ATR Period
int
40
qtAtrPeriod
ATR Multiplier
float
1.0
qtMult
Signal Mode
string
Type A
qtMode
Smooth Source with EMA?
bool
false
qtUseEma
EMA Smoother Period
int
10
qtEmaPeriod
Fast Length
int
29
kvFastLength
Slow Length
int
55
kvSlowLength
Signal Smoothing Type
string
EMA
kvSignalType
Signal Smoothing Length
int
16
kvSignalLength
Long: require STRONG buy signal
bool
false
requireStrongLong
Show all 27 settings
Setting
Type
Default
Variable
Short: require STRONG sell signal
bool
false
requireStrongShort
Require candle confirmation
bool
true
requireCandle
Allow Long trades
bool
true
allowLongs
Allow Short trades
bool
true
allowShorts
Stop-Loss Swing Lookback (bars)
int
5
slLookback
Risk : Reward Ratio
float
1.5
rrRatio
Show Q-Trend line
bool
true
showTrendLine
Show entry signals
bool
true
showSignals
Color bars by Q-Trend
bool
false
colorBars
Tint background by KVO area
bool
false
showKvoBg
Show KVO oscillator (this pane)
bool
true
showKvo
Long / TP color
color
color.new(#26a69a, 0)
longColor
Short / SL color
color
color.new(#ef5350, 0)
shortColor
Ticker field
string
{{ticker}}
tpTicker
Quantity field (optional)
string
tpQty
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 Brrrrr Strategy is a macro-based breakout strategy designed for crypto markets. It tracks the Glassnode total USDT supply daily metric and calculates a Donchian Channel over a user-defined lookback period. The strategy enters a long position when the USDT
BTC MACD Basic Tests implements a Pine Script unit-testing framework designed to validate components of a long-only Bitcoin MACD trading system. It constructs structured test cases to evaluate mock functions for MACD crossover calculations, volume threshold ch
This strategy plots a comparative relative strength line against a benchmark symbol in a separate pane. It calculates price and volume simple moving averages alongside a multi-period highest high. Long trades enter using full equity when price exceeds its movi
This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim
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
This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses