# Multi Z-Score analysis

v10.3

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 ðŸ™‚

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. • 06/26/2018 #

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

• • 06/26/2018 #

Yes because the mean is also moving, it is not stationnary ðŸ™‚

2. • 06/26/2018 #

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

• • 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

• • 06/26/2018 #

Dear Alfapenna,
I just saw my reply of this morning to you, it is completely mixed up (?)
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. • 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

• • 06/26/2018 #

But it should, I’ll test later.

• • 06/26/2018 #

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

4. • 06/26/2018 #

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

5. • 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 ?

• • 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.

• • 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. • 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 .

• • 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. • 06/26/2018 #

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

• • 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?

Register or

#### Likes

Related users ' posts
Dr Manhattan
2 weeks ago
v10.3
2
Indicators
Thanks Doc !
Intresting, thank you!
Nicolas
9 months ago
0
Indicators
Nicolas
9 months ago
v10.3
10
Indicators
Thanks Nicolas, I imported the itf file and solved the problem.
Hallo Nicolas, i tried to code the multi period heat map in combination with the Ehlerâ€™s ...
Please open a new topic with the code in forum.
Nicolas
9 months ago
v10.3
3
Indicators
Excellent Nicolas ;)
Hi Nicolas, There seems to be a small error in the code, which causes the channel not to...
Hmm, I don't think so, otherwise the channel will have a moving start and not anchored anymo...
Vonasi
1 year ago
3
Indicators
Thanks for this code. i will try to adapt it in the EUR/USD Pac Man Strategy who is based on...
I still have two versions of the PacMan strategy on forward test although there have been va...
I use your version on a real account and the strategy is profitable and i did not have any p...
Nicolas
1 year ago
v10.3
5
Indicators
Just add a linear regression moving average of 200 periods on the chart and you'll get the s...
Hello Nicolas, this is great, however the actual PRT standard error and standard deviation c...
If you want to anchor the channel to a specific candlestick, that would be possible but with...
Nicolas
1 year ago
v10.3
5
Indicators
Bonjour Ã  tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Il faut simplement l'appliquer sur le prix.
Merci pour la rÃ©ponse, je ne suis pas familier avec l'application de cette procÃ©dure simple,...
v10.3
3
Indicators
Bonjour et merci pour cet indicateur. Toutefois, il me semble qu'il est unidirectionnel. P...
Hi Choliver, you are right, there is a problem with the drawing instruction when the slope i...
File and code are updated.
Nicolas
1 year ago
v10.3
6
Indicators
Try to restrain to trading hours when Volumes are present (customized trading hours: righ cl...
Thank you!
Bonsoir Nicolas, Merci pour cet indicateur. MÃªme s'il n'y a officiellement pas de volume s...
Vonasi
1 year ago
v10.3
0
Indicators
Vonasi
2 years ago
2
Indicators
@Vonasi I saw that you did some work on seasonality, I wondered if you wanted to go here and...
Sorry - my understanding of Italian is zero so if I watch the video I won't understand it I'...
Nicolas
2 years ago
v10.3
8
Indicators
Definition of CustomClose: https://www.prorealcode.com/documentation/customclose/ [2] means...
Just wondered Nicolas, say you had set DEFPARAM CumulateOrders = True, is there anyway for t...
Sorry pls ignore last image, try this - it actually has the Dev Stop indicator! https://www...
juanj
2 years ago
2
Indicators
Thanks!
Is it possible to change it to highs and lows rather than open and close?
Francesco78
2 years ago
1
Strategies
Hi. Please, describe the algorithm in words. I want to understand how it works, but for now...
Francesco78
2 years ago
0
Strategies
victormork
2 years ago
8
Strategies
Bonjour Nicolas la formule du stop loss est elle vraiment valable ?? il n'y a pas au depart ...
Il y a peut-Ãªtre un erreur en effet, essayer avec: set stop ploss (averagetruerange[14] * ...
ok merci Nicolas c'est avec /pipsize que Ã§a fonctionne
Francesco78
2 years ago
16
Strategies
Hello Francesco! when i replace a&b with 10&30 the results are not the same? h...
@snucke the results are not the same because the pictures refers to a few years ago. I am no...
@Francesco78 i mean the results differ when i test on my own. so im curious of what the p...
Nicolas
2 years ago
15
Indicators
Thank you very much!!
Hello. Firstly, It doesn't really replicate what Brian Shannon uses on his videos. Anyone ha...
Sorry i don't know who is Brian Shannon?! If you want to get the indicator applied on the pr...
Nicolas
2 years ago
v10.3
7
Indicators
Bonjour Nicolas, merci pour le travail que vous effectuez. Je ne suis vraiment pas bon dans ...
any chance you can email me this indicator for MT4,, can't get the code to work.. limited kn...
This website is dedicated to prorealtime programming. But you can ask for custom programming...
Francesco78
3 years ago
18
Strategies
Hi Francesco, nice algorithme, works with me on other markets as well !
thank you Janwd. Do you mind sharing where it works? happy new year!
Nice analysis, with the proposed tweak I'm seeing great performance since 2008/QE on the CAC...

Top