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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
//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" |
Share this
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 :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Nic, you’re a blessing mate thank you so much. This is great.
Merci pour ton travail Nicolas !
Ca m’a l’air d’être un très bon indicateur de tendance.
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
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.
Thanks.
@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.
Please open a new topic on forums for coding requests, I’ll help you there.
Lyny / Nicolas
Please advise whether you proceded with the code in ProOrder and if so where can I find it