Z-Score Distance From VWAP

v10.3
Z-Score Distance From VWAP

In this indicator, the Z-Score distance is the current standard deviation from the intraday VWAP of the price.

If the exceed a certain deviation (such as 2 standard deviation), the indicator highlight an oversold or overbought area from which the price could tend to return to its mean, the VWAP.

The VWAP is the  Volume Weighted Average Price, in this indicator it is compute only for intraday trading because it resets its own value on each new day.

I included a minimal period setting for the calculation of the standard deviation (default period is 100), as soon as 100 bars have elapsed the SD is calculated with the summation of all present bar during the day (such as the VWAP does too), and a smoothing function for the curve (not used by default).

 

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. Hans63 • 01/08/2019 #

    it does not appear on the chart when plotted

    • Nicolas • 01/08/2019 #

      This indicator needs Volumes. Verify that this is the case for the instrument you applied the indicator on..

  2. Carlos Garcia • 01/08/2019 #

    why doesn´t work on Dax?

    • Nicolas • 01/08/2019 #

      Try to restrain to trading hours when Volumes are present (customized trading hours: righ click in the price chart).

  3. Carlos Garcia • 01/08/2019 #

    Thank you!

  4. Choliver • 01/08/2019 #

    Bonsoir Nicolas,
    Merci pour cet indicateur.
    Même s’il n’y a officiellement pas de volume sur les CFD, le Vwap est quand même calculé et apparait sur les charts CFD type Dax UT 15 (en Daily – et même sur des unités de temps plus petites – 60 min par exemple). Très instructif !
    En revanche, cet indicateur VWAP – Z score est sûrement bien pratique, mais il n’apparait pas.
    Serait-il possible de lui permettre d’être utilisable aussi avec des CFD ?
    Merci. 🙂
    Bon début de semaine.

  5. arnaudat • 01/08/2019 #

    Bonjour,
    je suis tombé sur cet indicateur par des recherches sur les écarts types et il me semble réellement excellent. Il donne une “information” nouvelle vis à vis d’autres indicateurs. Le seul soucis c’est qu’il s’affiche la première fois (je vois bien la courbe) mais disparait à chaque nouvelle bougie (ie minute si UT1, 5 minute si UT5). Pour le faire réapparaitre il suffit que je modifie la période par exemple ce qui le fait se recalculer et s’afficher. Si je comprends le problème je ne vois pas pourquoi il y en a un et encore moins comment le résoudre …
    Merci par avance,
    Arnaud

    • Nicolas • 01/08/2019 #

      Il y a peut-être une erreur de calcul causée par un division par zéro, j’ai retrouvé une autre version corrigée ici: https://www.prorealcode.com/topic/z-score-distance-from-vwap/#post-90008

  6. arnaudat • 01/08/2019 #

    Merci nicolas, j’ai déjà pris cette version et en plus je suis sur les futures. Par contre du coup je viens de l’installer sur CFD (PRT V10.3) et là je n’ai pas le bug … Ca vient donc de la V11 sur Future et c’est de ma faute car vous indiquiez bien que c’était pour la V10.3 … J’essayerai de chercher pourquoi mais en attendant je vais le laisser sur la 10.3 !
    Merci

  7. ullle73 • 01/08/2019 #

    hi nicolas, when im making a strategy out of this i get the error “PRC_VWAP z-score” called from “vwap z-score” returns 6 values but your code needs 7. how can i fix this?

    • Nicolas • 01/08/2019 #

      Please open a new topic in the ProOrder forum section and post the code there in order to check what could be wrong, thank you.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+2 more likes

Related users ' posts
majid52026 Hi I want MBXF Timing for mq5 Does anyone have this indicator???
dertopen Hi Nicolas good work for the code translation when i chek the mbfx system site i see in t...
Nicolas Yes, just change the color by yourself in the indicator settings window.
JanWd Thank you for the coding, it seems promising. FTSE gives for the short term (5 min) promis...
Jan Wind 21.04.2019: I retested the strategy for the DAX 5 minutes , it works fine for 10.000 bars, b...
bertrandpinoy hello Francesco, are you still working on this strategy?
Nacho Buenos días Raul, tengo puesto este sistema desde hace unos días en una cuenta demo en la ve...
Dominik Hola Raul ... it looks wonderful :-) Why does it not work if I use less than 100,000 € capi...
Bobbi Hola y gracias por compartir! Descubrí que en 5 minutos teníamos algo muy bueno! Pero no ...
Nicolas You'll need to preload bars to get the good calculations of you indicators. I did not test i...
David Nicolas I tried DEFPARAM Preloadbars = 5000 And still the same drawn output of entries/exit...
marcara Hi, Thank you very much for the Moving Average Daily indicator, I am using it as indicator i...
Nicolas
9 years ago
Nicolas You will find the VWAP code from PRT here: https://www.prorealcode.com/topic/is-there-any-wo...
keks Thanks for sharing this wonderful code. Is there a way to draw a horizontal line to plot pre...
taklause Hello, just one question, can it be that this indicator does not work on ProRealTime v12? T...
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 ...
proreal82 Testing it out, and sorry guys but this indicator is ridiculous. Don't use it!
rama I have tested this indicator , this is one of the best indicator for scalping , I tested on ...
Regan2020 Hi Rama, I am using the indicator now, but it doesn't seem to form live time, and only indic...
Nicolas Non ça n'est pas encore possible.
Denis Merci Nicolas.
Yann LB Bonjour à tous, Est-il possible de rajouter un morceau de code qui permette d'afficher (s...
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...
Naren Yanan what is    diplus  diminus  please
Barney Has anyone tested this algon now when PRT 10.3 was released?
Yngve does anyone know if the issue with the TP/SL is resolved ?
JakeDB Answered my own question....Sorry about this question. 5 positions, take profit at 15, loss ...
maxxb sto facendo girare in demo questa strategia modificata a 10 minuti con stop e profit ottimiz...
Manuel9z Hello, this strategy improves with the SL 30 and the TP 10. I have done backtesting and it w...
raviesco Hello Nicolas, Thanks for the post. Do you have an updated version of this screener/indi...
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...
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...
Nicolas
9 years ago
Jean-Claude REGIS ok merci pour la rapidité de la réponse  cordialement    vu ça fonctionne me reste q...
Balian Merci pour l'indicateur J'ai l'impression qu'un truc cloche. Les triggers sont systémtiqeme...
Balian Tout va bien. J'avais mal lu
Nicolas
9 years ago
XBKZ Bonjour, Je trouve votre indicateur très intéressant. J'ai essayé de créer un autre indicat...
Nicolas Pour visualiser une variable, il suffit de l'ajouter dans la fonction RETURN et la plateform...
cruxtrader Hello Nicolas, Is this script Ninjatrader Compatible ?

Top