Nicolas

Haos Visual

Category: Indicators By: Nicolas Created: January 10, 2017, 11:48 AM
January 10, 2017, 11:48 AM
Indicators
8 Comments
Haos Visual

The Haos Visual technical indicator is a trend indicator in the form of a histogram oscillating around the zero level.

The algorithm of the Haos Visual indicator measures the difference between two William’s Percent Rank T3 oscillators with different periods.
A signal line is also calculated.

The Haos Visual stock market indicator identifies over-bought and over-sold markets and could be used to find potential price reversal key zones.

Indicator converted from MT4 by request on English forum.

//PRC_HaosVisual | indicator
//10.01.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//Converted from MT4 version

// --- parameters
// *** WPR1 ***
t3period   = 8
b          = 0.7
per        = 14
psel       = 30
pbuy       = -30
// *** WPR2 ***
t3period2  = 8
b2         = 0.7
per2       = 96
psel2      = 40
pbuy2      = -40
// ---

once b2=b*b
once b3=b2*b
once c1=-b3
once c2=(3*(b2+b3))
once c3=-3*(2*b2+b+b3)
once c4=(1+3*b+b3+3*b2)
once n=t3period
once qb2=b2*b2
once qb3=qb2*b2
once qc1=-qb3
once qc2=(3*(qb2+qb3))
once qc3=-3*(2*qb2+b2+qb3)
once qc4=(1+3*b2+qb3+3*qb2)
once qn=t3period2
if(n<1) then
 n=1
endif
once n=1+0.5*(n-1)
once w1=2/(n+1)
once w2=1-w1
if(qn<1) then
 qn=1
endif
once qn=1+0.5*(qn-1)
once qw1=2/(qn+1)
once qw2=1-qw1
//---------

if barindex>per2 then
 wpr=Williams[per](close)
 qwpr=Williams[per2](close)

 e1=w1*wpr+w2*e1
 e2=w1*e1+w2*e2
 e3=w1*e2+w2*e3
 e4=w1*e3+w2*e4
 e5=w1*e4+w2*e5
 e6=w1*e5+w2*e6
 t3=c1*e6+c2*e5+c3*e4+c4*e3+50
 Buffer1=t3

 qe1=qw1*qwpr+qw2*qe1
 qe2=qw1*qe1+qw2*qe2
 qe3=qw1*qe2+qw2*qe3
 qe4=qw1*qe3+qw2*qe4
 qe5=qw1*qe4+qw2*qe5
 qe6=qw1*qe5+qw2*qe6
 qt3=qc1*qe6+qc2*qe5+qc3*qe4+qc4*qe3+50
 Buffer2=qt3

 if (t3>psel and qt3>psel2) then
  Dn2 =qt3
  Up2 =0
  Dn1 =0
  Up1 =0
  Mid =0
 elsif (t3<=psel and qt3>psel2) then
  Dn1 =qt3
  Up2 =0
  Dn2 =0
  Up1 =0
  Mid =0
 elsif (t3<pbuy and qt3<pbuy2) then
  Up2 =qt3
  Dn2 =0
  Dn1 =0
  Up1 =0
  Mid =0
 elsif (t3>=pbuy and qt3<pbuy2) then
  Up1 =qt3
  Up2 =0
  Dn1 =0
  Dn2 =0
  Mid =0
 else
  Mid =qt3
  Up2 =0
  Dn1 =0
  Up1 =0
  Dn2 =0
 endif
endif

//return all levels to dotted lines, all others variables to histogram except the last 2 ones to lines

RETURN 0 as "0 level", psel2 as "40 level", psel as "30 level", pbuy as "-30 level", pbuy2 as "-40 level", Up1 coloured(0,255,255) as "Up1", Dn1 coloured(255,127,80) as "Dn1", Up2 coloured(0,255,0) as "Up2", Dn2 coloured(0,255,0) as "Dn2", Mid coloured(30,144,255) as "Mid", Buffer1 coloured(255,215,0) as "Fast Line", Buffer2 coloured(0,255,0) as "Slow Line"

 

Download
Filename: PRC_HaosVisual.itf
Downloads: 270
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

Johan Swarts
10 years ago
#

Lyny / Nicolas

Please advise whether you proceded with the code in ProOrder and if so where can I find it

Lyny
10 years ago
#

@Nicolas, how can i put this code in ProOder when for example i want to buy 1 share with condition fast line < - 30 level, and want to sellshort 1 share with condition fast line > 30 level? Please help, i can not figure how to put it into code on Creation by programming.

Nicolas
10 years ago
#

Please open a new topic on forums for coding requests, I'll help you there. 

Francesco
10 years ago
#

 Thanks.

Francesco
10 years ago
#

I googled for an interpretation of this indicator, but found nothing except an MT4 strategy using TMA Bands also. Please, someone can write some comments about?

Thanks

Nicolas
10 years ago
#

The request to code this indicator came from this topic: https://www.prorealcode.com/topic/haos-visual-indicator-request-for-nic/
I haven't read anything myself about this indicator, but like many other oscillators, you might find it useful to catch potential reversal zones (reversion to the mean). So use it with TMA bands is somehow a good idea.

Matriciel
10 years ago
#

Merci pour ton travail Nicolas !

Ca m'a l'air d'être un très bon indicateur de tendance.

Dimi.A
10 years ago
#

Nic, you're a blessing mate thank you so much. This is great.

ProRealCode ProRealCode
Loading...