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
118 lines of Pine Script v6 from Archive/qqe-ak-trend-v1.4.6.pine, published under MPL-2.0. Keep the author's credit and licence lines when you reuse it.
QQE + AK Trend + EFI calculates the QQE using RSI with smoothing and displays it as a histogram in a separate pane. The AK Trend line is formed by two exponential moving averages whose scale adjusts according to the current timeframe. The EFI is dynamically scaled to align with the QQE range based on historical bars. The script renders the QQE histogram, AK trend line, and EFI in a separate pane. Settings include RSI parameters, QQE factor, AK EMA lengths, timeframe-based scale factors, EFI length and multiplier, and dynamic scaling bars. It focuses on trend analysis and does not include exit rules.
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 and show the AK Trend line
bool
true
showAkTrend
Fast EMA 1
int
3
input1
Fast EMA 2
int
8
input2
AK Scale Factor (<15m)
float
32.0
ak_scale_less_15m
AK Scale Factor (15m-1h)
float
16.0
ak_scale_15m_1h
AK Scale Factor (>1h-1d)
float
8.0
ak_scale_1h_1d
Show all 16 settings
Setting
Type
Default
Variable
AK Scale Factor (>1d)
float
3.0
ak_scale_above_1d
EFI Length
int
13
efiLength
EFI Multiplier
float
2.25
efiMultiplier
Dynamic Scaling Bars
int
300
dynamicScalingBars
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.
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
The Supertrended RSI [AlgoAlpha] indicator plots the Relative Strength Index combined with a Supertrend overlay in a separate indicator pane. It first computes standard RSI, with an optional Hull Moving Average smoothing step, and computes a secondary moving a
This indicator computes and plots multiple technical analysis features on a separate pane. It calculates EMA-based trend indicators including fast and slow EMAs along with their slope, momentum oscillators such as RSI, Stochastic RSI, and MACD histogram, WaveT
Short Term Alpha Indicator calculates a weighted alpha from price change multiplied by volume, then derives EMAs at fast, medium, and slow lengths. It computes ROC values for the EMAs and applies percentile rank functions to identify deviations. These deviatio
This indicator improves the standard Directional Movement Index by adjusting plus and minus directional movement calculations with a weight factor and SMA adjustments for sensitivity. It calculates and plots improved DI+ and DI- lines in a separate pane. Setti
This indicator plots a trend strength oscillator in a separate pane using the Kalman filter applied to a chosen source. It combines ZigZag trend detection with configurable depth and deviation settings to identify trend changes. The Follow Line feature generat