Haos Visual

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
//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
once n=1+0.5*(n-1)
once w1=2/(n+1)
once w2=1-w1
if(qn<1) then
once qn=1+0.5*(qn-1)
once qw1=2/(qn+1)
once qw2=1-qw1

if barindex>per2 then



 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
  Mid =qt3
  Up2 =0
  Dn1 =0
  Up1 =0
  Dn2 =0

//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"


Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Dimi.A • 103 days ago #

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

  2. Matriciel • 103 days ago #

    Merci pour ton travail Nicolas !

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

  3. Francesco • 92 days 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?


  4. Francesco • 91 days ago #


  5. Lyny • 77 days 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 • 77 days ago #

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

  6. Johan Swarts • 42 days ago #

    Lyny / Nicolas

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

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
triss1965@gmail.com HELP, WHY DONT I NOT GOT THE INDICATOR IN CHART. JUST UNDER?????????????
Nicolas Use the wrench on the upper left side of your price chart to add correctly indicator on PRICE.