Multi Z-Score analysis

v10.3
Multi Z-Score analysis

This indicator is a quick attempt to represent the distance of prices from their averages using the Zscore.
By using the DRAWTEXT graphical function in a loop, you can display a large amount of information at the same time.

The Zscore is calculated dynamically against several moving averages for as many “definition” periods. The variable “definition” is a multiplier.

What the indicator shows us is that the price both to return more quickly to its mean when few Zscore (1 Zscore = 1 point on the graph) exceeds a deviation of 2 standard deviations and that quickly, while many other points form a compact package.

Other observations could be formulated for different types of graphs, time horizons and ways to trade, I leave you the pleasure to test by yourself 🙂

 

Share this

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?

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

  1. alfapenna • 06/26/2018 #

    good job! when it comes to the 4 standard deviation the price almost always breaks in

    • Nicolas • 06/26/2018 #

      Yes because the mean is also moving, it is not stationnary 🙂

  2. alfapenna • 06/26/2018 #

    I AM NOT VERY PRACTICAL … IS IT POSSIBLE TO MAKE THE SCREENER WHEN AT LEAST A BALL EXCEEDS FROM 4 DEVIATION?

    • Jan Wind • 06/26/2018 #

      Dear Alfapenna,

      I would think the following 3 additions/changes in the code will do; however 4 is an extreme value .

      if zscore <= -4 then (CHANGE INSTEAD OF = 4 then ( CHANGE ADDED LINE)
      r=0
      g=255-(30*i)
      drawtext(“.”,barindex,zscore,Dialog,Bold,20) coloured(r,max(g,100),0)
      endif
      endif (CHANGE ADDED ADDITIONAL ENDIF)

    • Jan Wind • 06/26/2018 #

      Dear Alfapenna,
      I just saw my reply of this morning to you, it is completely mixed up (?)
      So I give it another try to answer your question:
      however ZFactor of 4 is an extreme value .

      if zscore< -4 then //ADJUSTED; was if zscore 4 then //NEW LINE
      r=0
      g=255-(30*i)
      drawtext(“.”,barindex,zscore,Dialog,Bold,20) coloured(r,max(g,100),0)
      endif
      endif //NEW LINE

  3. Jan Wind • 06/26/2018 #

    Nicolas,

    thanks for the code.
    “Smooth” does not seem to give any value (smooth=average[period](globalz))
    If you can react on this, would be great !
    KR Jan

    • Nicolas • 06/26/2018 #

      But it should, I’ll test later.

    • Jan Wind • 06/26/2018 #

      Nicolas, maybe the cause is that the values of / or the smooth line is not visible (??)

  4. Jose7674 • 06/26/2018 #

    Thanks for such a great job… I will try to use it in a trading system.
    Really great

  5. Sofitech • 06/26/2018 #

    Is there a way to create a return value for the points so we can create alerts when some points are higher or lower of a value ? how can we modify the code to do that ?

    • Nicolas • 06/26/2018 #

      So many variables to be returned! The indicator is dynamic by its settings, so you can’t know how much variables it would return, that’s why I used dots made with a graphic instruction. Zscore is pretty much the same as a standard deviation, so bollinger bands do already this job for you.

    • m-zeter • 06/26/2018 #

      Has anyone found a solution for Sofitech? Would it be possible to draw two lines? An upper line for the maximum points and a lower line for the minimum points. Would that be possible?

  6. Brisvegas • 06/26/2018 #

    Is this indicator for use in a binary sense or is it just a type of visual . If it is to be used as binary/boolean type signal what would your suggestion be ? It seems a little noisey to me , possibly i just dont get it .

    • Nicolas • 06/26/2018 #

      Multiple zscore are plotted around many different time horizons means. Purely visual as you cant get a binary signal without any studies of all the information that are plotted by the indicator. As I wrote in the post, I let everyone make their own studies about the concept.

  7. Gianluca • 06/26/2018 #

    Hello Nicolas, my prt become stuck when i load the indicator, is there any problem with it?

    • m-zeter • 06/26/2018 #

      Hm, i dont know exactly why, but I think, that the indicator needs lots of power. I need also lots of time to load it. Maybe your computer has not enaugh power for it?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
rpreviteri Hi Nicolas, thanks a  loto for sharing your knowliedge, Wasn't the original momentum pinball...
air Thank you!  
elanoa Buonasera sig. Nicolas......sarebbe possibile far in modo che quando l'indicatore raggiunga ...
Dimi.A Perfect for counter-trend scalping. I like this!
viktorthuns Hi Nicolas! Great work you've done with all your indicators. Just wondering about the code a...
Nicolas the value is not a boolean but an average of an addition of booleans. As stated in the descr...
cassio amigo você tem esse indicador para mt4 ou mt5.. ?
manchokcity WE NEED THIS IN MQL4 OR EX4
Nicolas We do not provide MT4 indicator in our website, all the codes around are made for Prorealti...
Nicolas I would not recommend using this version of the linear regression channel, but this one inst...
Aragorna Hello, Is it possible to updated the indicator to the more updated versione of ProrealTime? ...
Nicolas Use that code instead: https://www.prorealcode.com/prorealtime-indicators/standard-deviation...
Bard Did anyone get an error with lines 25 and 26?
Nicolas Aucune immobilisation du capital. Quel est le drawdown du buy & hold ? Je ne l'ai pas ca...
jctrader ok pour le codage mais le choix "indice" n'est pas le bon : moins de 5%/an pour le meilleur ...
Thomas Hi Nicloas nice one i do understand :D im trying to put in MA200 as a criteria so it only go...
DonDollar ...and I do not see any opened positions...strange...
DonDollar I found the answer by myself for the second question. But still no idea about the False and ...
Nicolas The line 12 of the code is the answer of your question. Before launching a new trade, the co...
Nicolas I think it's because of price gaps and/or quote interrupt. Anyway, be aware that this strate...
NA je trouve cette stratégie interessante même si le qqq en question etf n'a pas beaucoup de vo...
NA I find this strategy interesting even if the qqq in question etf does not have much transact...
patrick3 Merci Nicolas pour cet indicateur, il est très utile pour voir les vagues

Top