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
108 lines of Pine Script v6 from Archive/qqe-ak-trend-v1.2.6.pine, published under MPL-2.0. Keep the author's credit and licence lines when you reuse it.
QQE + AK Trend Combined computes a smoothed Relative Strength Index and builds QQE bands using Wilder's smoothed average true range of the RSI. Additionally, it integrates an adaptive AK Trend calculation that automatically selects scale factors based on the active timeframe. Users can adjust RSI parameters, QQE factors, fast EMA lengths, and scale factor thresholds for different chart timeframes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
RSI Length
int
6
rsiLengthPrimary
RSI Smoothing
int
5
rsiSmoothingPrimary
QQE Factor
float
2.0
qqeFactorPrimary
Threshold
float
10.0
thresholdPrimary
RSI Source
source
close
sourcePrimary
ATR Length for QQE (Wilder)
int
14
atrLen
Compute AK Trend
bool
true
computeAk
Show AK Trend Line
bool
true
showAkTrend
Fast EMA 1
int
3
input1
Fast EMA 2
int
8
input2
AK Scale Factor (<15m)
float
28.0
ak_scale_less_15m
AK Scale Factor (15m-1h)
float
16.0
ak_scale_15m_1h
Show all 14 settings
Setting
Type
Default
Variable
AK Scale Factor (>1h-1d)
float
8.0
ak_scale_1h_1d
AK Scale Factor (>1d)
float
3.0
ak_scale_above_1d
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 indicator calculates a modified MACD oscillator and signal line alongside a trend EMA filter, plotting the output as a stylized column histogram in a separate pane. Instead of plotting true MACD distance, it quantifies positive and negative histogram mome
Multi-Timeframe Analysis Suite calculates trend direction and momentum conditions across five user-selected timeframes using moving averages, RSI, and Stochastic oscillators. It evaluates moving average slope and oscillator levels to compute trend alignment, m
KamaFama is an indicator that translates a Freqtrade trading strategy into Pine Script for visualization. It combines Kaufman Adaptive Moving Average (KAMA), MAMA/FAMA calculations derived via Hilbert Transform, Williams %R, and correlation trend filters to ev
MultiIndicator combines multiple technical indicators into a single separate pane to save chart space. It calculates and displays market regime detection based on ordinary least squares regression, a Holt exponential smoothing crossover, normalized RSI, ADX, a
Elder Impulse System plots a column series in a separate pane. It compares a 13-period exponential moving average with its previous value and a MACD histogram with its previous value. A rising EMA and rising histogram print 1, a falling EMA and falling histogr
This indicator calculates the Williams Gator Oscillator derived from Bill Williams Alligator lines and plots dual histograms in a separate pane. The upper histogram displays the absolute difference between the Jaw and Teeth moving averages, while the lower his