Nicolas

Waddah Attar Explosion

Category: Indicators By: Nicolas Created: August 9, 2016, 10:09 AM
August 9, 2016, 10:09 AM
Indicators
14 Comments
Waddah Attar Explosion

The Waddah Attar explosion indicator is a well known indi in the forex community all over the web. It measures the price volatility “explosion” with the help of a difference between upper and lower bollinger bands (also known as “squeeze”) and its direction and with a slow MACD advance or decline weighted with a coefficient (sensitivity=150).

A “deadzone” of x pips/points is at 20 points by default, but should be adjusted to the traded instrument.

If green or red oscillator histogram breach the “Explosion Line” above the dead zone, it’s a signal.

This indicator act pretty much as a scalper in lower timeframe, but I found it useful with different timeframe comparison in higher ones in the past (M30/H1/H4).

// -- parameters
//sensitivity = 150
//fastLength=20 //"FastEMA Length"
//slowLength=40 //"SlowEMA Length"
//channelLength=20 //"BB Channel Length"
//mult=2.0 //"BB Stdev Multiplier")
//deadZone=30 //"No trade zone threshold"

// indis
if barindex>slowLength then
 calcMACD = MACD[fastLength,slowLength,9](customclose)
 calcBBUpper = average[channelLength](customclose)+(mult*std[channelLength](customclose))
 calcBBLower = average[channelLength](customclose)-(mult*std[channelLength](customclose))

 t1 = (calcMACD-calcMACD[1])*sensitivity
 e1 = calcBBUpper - calcBBLower

 if t1>=0 then
  trendUP = t1
  trendDOWN = 0
 else
  trendUP = 0
  trendDOWN = -1*t1
 endif

 if trendUP<trendUP[1] then
  color = -1
 else
  color = 1
 endif

 if trendDOWN<trendDOWN[1] then
  color = -1
 else
  color = 1
 endif
endif

RETURN trendUP coloured by color as "UP", trendDOWN coloured by color as "DOWN", e1 as "Explosion line", deadzone*pipsize as "Dead Zone Line"

 

Download
Filename: waddah-attar-explosion-indicator.png
Downloads: 107
Download
Filename: PRC_Waddah-Attar-explosion.itf
Downloads: 427
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

stephxr
6 months ago
#

bonjour nicolas

je n'ai pas le waddah attar comme sur ton impression d'ecran

j'ai paramétré les couleurs rouge et verte mais je n'ai pas d'histogramme comme toi uniquement des courbes à la place

merci de ton aide

stephane

Nicolas
6 months ago
#

Tu peux modifier le rendu des lignes en histogramme dans les paramètres de l'indicateur. Sinon, tu peux aussi modifier la dernière ligne avec ceci: RETURN trendUP style(histogram) coloured("green") as "UP", trendDOWN style(histogram) coloured("red") as "DOWN", e1 as "Explosion line", deadzone*pipsize as "Dead Zone Line"

stephxr
6 months ago
#

merci Nicolas c'est parfait, bon week end à toi!

Chicane23
6 years ago
#

Hi, when uploaded the WAE isnt showing histogram; only line. Is there a way to modify?

Nicolas
6 years ago
#

Change the way the lines are displayed in the indicator settings window : histogram, lines, dots, and colours ..

Pelle Nævestad
9 years ago
#

Thanks Nicolas, this is a keeper!

zilliq
10 years ago
#

Merci Nicolas,

Personnellement, il y a tellement de dépassement de "Lexplosion line" que je ne vois pas comment cet indicateur peut être utile et aussi populaire, mais bon

Passe une bonne journée

Zilliq

Nicolas
10 years ago
#

Merci, je le constate aussi. Ce sont les paramètres par défaut que l'on retrouve ailleurs sur toutes les plateformes, le paramètre "sensitivity" permet de faire varier la sensibilité de l'explosion.

larouedegann
10 years ago
#

 merci beaucoup

larouedegann
10 years ago
#

merci c'est ce que j'ai fait.

un autre  petit service,mon anglais étant médiocre,pourrait-tu m'expliquer le fonctionnement en français stp..je pense ne pas être le seul dans ce cas là malheureusement..

merci

PS : je remarque que l'explosion line ressemble étrangement aux bandwith que j'utilise dans un autre indicateur....

Nicolas
10 years ago
#

https://translate.google.com/translate?hl=&sl=auto&tl=fr&u=http%3A%2F%2Fwww.prorealcode.com%2Fprorealtime-indicators%2Fwaddah-attar-explosion%2F&sandbox=1

En effet, il s'agit d'une différence des Bandes de Bollinger.

larouedegann
10 years ago
#

merci nicolas,

Mais je n'arrive pas a le faire fonctionner sur prorealtime cfd.

il ne reconnait pas '' by color"

si tu as une solution merci

Nicolas
10 years ago
#

ProBuilder indique une erreur sur ce genre de ligne avec 'coloured by', mais le code fonctionne correctement. Il faut paramètrer les couleurs des histogrammes différemment selon les hausses et baisses dans la fenêtre des propriétés de l'indicateur.

supertiti
10 years ago
#

Un des meilleurs indicateurs qui existent une une fois que l'on a bien calé ses paramètres !

ProRealCode ProRealCode
Loading...