Nicolas

QQE - Quantitative Qualitative Estimation

Category: Indicators By: Nicolas Created: October 11, 2016, 9:28 AM
October 11, 2016, 9:28 AM
Indicators
11 Comments
QQE - Quantitative Qualitative Estimation

QQE ProRealTime indicator — or Quantitative Qualitative Estimation, is based on a rather complex calculation of the smoothed RSI indicators.

The QQE indicator consists of a smoothed Relative Strength Index (RSI) indicator and two volatility-based trailing levels (fast and slow). The Fast Trailing Level (TL) and Slow TL are constructed by calculating the ATR of the smoothed RSI over n-periods and then further smoothing the ATR using an additional n-periods Wilders smoothing function. This smoothed ATR of RSI is then multiplied by the Fast and Slow ATR Multipliers to calculate the final Fast and Slow Trailing Levels.

//PRC_QQE | indicator
//11.10.2016
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

//--- parameters
RSIPeriod = 14
SF = 5
QQE=4.236
//---

WildersPeriod = RSIPeriod * 2 - 1
if barindex>WildersPeriod then

MyRsi = rsi[RSIPeriod](close)
RsiMa = exponentialaverage[SF](MyRsi)
AtrRsi = abs(RsiMa[1] - RsiMa)
MaAtrRsi = exponentialaverage[WildersPeriod](AtrRsi)
dar = exponentialaverage[WildersPeriod](MaAtrRsi) * QQE

trr=TrLevelSlow[1]
dv = trr
if RsiMA[0]<trr then
 trr = RsiMA[0] + dar
  if(RsiMA[1]<dv) then
   if(trr>dv) then
    trr=dv
   endif
  endif
elsif RsiMA[0]>trr then
 trr = RsiMA[0] - dar
   if(RsiMA[1]>dv) then
    if(trr<dv) then
     trr=dv
    endif
  endif

 endif
TrLevelSlow=trr

endif

RETURN trr coloured(0,0,0) as "QQE" , RsiMA coloured(0,0,200) as "RsiMA", 50 as "level 50"

 

Download
Filename: PRC_QQE-indicator.itf
Downloads: 795
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

ilstefano
5 years ago
#

Bonjour Nicolas, te serait il possible de rajouter la fast ATR manquante dans le code? Merci

Nicolas
5 years ago
#

Désolé je ne comprends pas la question ?

jeanphi0034
9 years ago
#

Hello, I would like to use the QQE indicator which is based on smooth RSI as far as I understand In the code I don't understand the line: trr=TrLevelSlow[1] I would appreciate if somebody can explain me this instruction Thank you Jean Philippe

gforton
10 years ago
#

Hi,

I was wondering if this QQE indicator could be used on a 1 min or 15 min timeframe. With the settings shown above (for the RSI period, SF and QQE), the indicator clearly does not match the evolution of the candlesticks.

Has anyone calculated these variables for 1 min or 15 min TF ?  How can this be done ?

 

Thank you very much for advice.

 

Glen

Nicolas
10 years ago
#

Because it is built upon RSI, divergences from price may occur. 

leyoy
10 years ago
#

AU top ! Merci pour la réponse rapide :)

leyoy
10 years ago
#

Bonjour Nicolas, sur 10.2, impossible de changer les couleurs. Je vais dans les paramètres ... je mets par exemple la couleur rouge ... elle se valide mais ne se change pas dans l'indicateur. Bug ? Merci pour ta réponse :)

Nicolas
10 years ago
#

Non ça n'est pas un bug. Les couleurs sont déclarés en dur dans le code à la ligne 43, donc tu ne pourras pas les changer à la main dans la fenêtre de paramètre de l'indicateur. Tu peux supprimer les instructions "coloured" dans cette ligne et tu pourras alors les changer à volonté toi même.

Ernesto1
10 years ago
#

Good evening NICOLAS,
QQE with the smoothed RSI
is a good indicator to build a Automated Trading Strategy  .

Only for Intraday,  can be useful to change
the code with the departure of the signal from the first candle of the market day,

with zero time lag.
thanks for your job !

supertiti
10 years ago
#

Bonjour Nicolas

slow ATR = 4.236

fast ATR = 2.618

C'est volontaire de ne pas faire apparaitre la ligne fast ATR je suppose ? 

Nicolas
10 years ago
#

Je n'ai pas écrit la description moi même je te l'avoue. J'ai "simplement" convertit un indicateur MT4 dans lequel le fast ATR n'apparaît pas. J'ai souvent vu les QQE avec une seule ligne de signal, mais en effet elle pourrait être ajouté.

ProRealCode ProRealCode
Loading...