Cumulative Volume Delta with periods

v10.3
Cumulative Volume Delta with periods

Because it is not possible to get the bid/ask volumes into an usual timeframe (such as the 1 minute one for example), I had the idea to use the “tick by tick chart” to get them. In this kind of chart, each price movement is x ticks received.

Each time the price is higher than the previous received one, the code count the Volumes received as a positive one, same goes for a lower price received, counting as a negative Volumes.

These Volumes counts are accumulated and plotted as green and red histograms. Then a “Cumulative Delta”, which is the difference of the 2 histograms is plotted as a black line.

When the Cumulative Delta is crossing below the zero line, the bearish pressure is real, while the bullish one exist when the Delta is crossing above zero level.

I add a setting to reset the Cumulative Delta to zero each X minutes with the “minutes” parameter. So it is possible to stack many Cumulative Delta on the same chart with different “minutes” settings to get the large picture and smaller one(s).

Note: This indicator is only compatible on a ‘Tick by Tick’ chart with instruments which have Volumes.

 

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. Matriciel • 03/21/2018 #

    Merci encore pour cet indicateur Nicolas.

    Juste pour ma formation personnelle en matière de langage PRT, je ne comprends pas ceci : minuteminute[1]
    C’est surtout le “” que je ne comprends pas.
    Peux-tu me l’expliquer S.T.P ?

  2. Nicolas • 03/21/2018 #

    Cela permet de tester si on a changé de minute sur la barre courante

  3. Mert • 03/21/2018 #

    Hello Nicolas, I do not now if this is the place to ask but I would like to ask you something. I am sure that for you it is very simple. I have a moving average in my charts. This MA changes color from red to green for an uptrend and green to red for a down trend.
    I want to have code that covers the color change so that I, for example, can use it in a trading system. Like: go long if the MA turns green. Go shot if the MA turns red. Or use it in an allert. Can you help me in that?
    Warmest regards and thanking you in advance.
    Mert

    • Nicolas • 03/21/2018 #

      This is not the right place, please open a new topic in ProOrder forum. This question has been answered many times, I’m sure you will find an answer by using our search engine (right under your avatar at the top right of the website or in the homepage).

  4. claudio1964 • 03/21/2018 #

    Hello Nicolas great indicator, I use it on prorealtime, can I have a code version for Webank T3? Webank T3 uses proealcode language but I found some problems to generate your indicator thank you vero much

    • Nicolas • 03/21/2018 #

      I think that it could work if you remove “style(histogram)” from the last line of the code.

  5. Bretty86 • 03/21/2018 #

    Great work Nicolas! Thank you!

  6. Geons • 03/21/2018 #

    Hi Nicolas! This indicator is awesome! Can you help me to modify it a little bit…I want to get the Cumulative Delta on all loaded tick bars on a chart. And not to reset every X minutes. Something like this I found on PRC forum (but don’t provide the inside code): https://www.prorealcode.com/topic/cumulative-delta/

  7. Hans63 • 03/21/2018 #

    Can you add a code that fixes the cumulative period with a start/end time?

    • Nicolas • 03/21/2018 #

      Yes that’s possible, please open a new topic in the indicators forum.

  8. Pasquale Fracicone • 03/21/2018 #

    Come andrebbe modificato il codice se volessi calcolare il Cumulative Delta ogni X Ticks

    • Nicolas • 03/21/2018 #

      That should be possible but with PRT v11.1

  9. Thally • 03/21/2018 #

    Hi Nicolas, I am trying to use your indicator on IGs Germany 30 DFB. I want to have the indicator calculate the cumulative delta for each minute and then reset. However the indicator doesn’t seem to consistently reset every minute, then length of time for each accumulation is variable and I have to reset the indicator if I want each block to be equal to 1 minute – this suggest it is working fine for historical data but has problems running in real time. Any ideas how to fix this as it is a really useful indicator otherwise

    • Nicolas • 03/21/2018 #

      It depends if a tick is received at the exact time of 1 minute elapsed since the last one. If not, then a decay may arise.

  10. Thally • 03/21/2018 #

    Thanks for the quick response Nicholas. Would you have any idea how to resolve. Manually refreshing the indicator works but is not ideal. Its a shame because its potentially a very powerful tool.

  11. Thally • 03/21/2018 #

    Do you think adjusting the below code might help?

    newperiod = minuteminute[1]
    if newperiod then
    count=count+1
    endif

    if count = iminutes then
    count=0
    volp=0
    volm=0
    endif

    If the indicator requires a tick to come in the precise moment that 1 minute has elapsed perhaps a 5 second buffer either end of the minute might facilitate this? What would be the syntax to replace ‘minute’ int he above with ‘second’? I can only find ‘CurrentSecond’ which doesn’t seem to do the job.

    • Nicolas • 03/21/2018 #

      There is no “second” instruction.

avatar
Register or

Likes

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

+8 more likes

Related users ' posts
NEOMKEY Magnífico !!!. Al menos para mí. Gran trabajo con tus aportes Iván. Mira a ver si le incluye...
Iván jajaja gracias :)
oliTR Very good Iván ! However what would be the modification to add to the code in order to dis...
Iván
10 months ago
Iván I personally like it in daily timeframe
oliTR Many thanks Ivan, I copy/paste your code to try it but could only get a constant stable unif...
Iván Hi, I've copied the code above and it works... what asset are you trying? $indices array ...
Razz Bonjour Je pense que votre indicateur est très bon. Serait-il possible d'afficher la heatma...
philippe59139 if marketEtHeamap=1 then drawtext("#touch#",barindex+10,checkprice,SansSerif,Standard,10) c...
philippe59139 voici pour toi RAZZ il te faut simplement ajouter les drawtext https://www.prorealcode.com...
JS
1 year ago
steffen_burat Hello Nicolas, I have a cumulative histogram update problem, the indicator often updates ...
taklause Hello Nicolas, if I try to use your indicator in a trading system, the error on prc pops up ...
Gio56 Bonjour Nicolas J'ai le meme souci que steffen , l'indicateur ne cumule qu'après avoir redé...
Rafa Hi Nicolas! I can´t install this indicator. it installs in a separate window not as an av...
Nicolas Add it on the price, see how: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an...
Frankyslo1 No consigo instalarlo en el precio en PRL-version 10
Khaled As this section of the forum is in English, I'll reply in English. I'm using PRT v11, so I d...
sal157011 Don't understand where it says: "Volume Pressure Histogram: Columns plotted in positive are ...
Khaled Not sure to understand the question. However, the columns (Histogram) represent the variable...
Alai-n Cela fonctionne très bien !!! Super Merci
andreabarbuscia Ciao Nicolas, molto bello questo indicatore, l'ho apprezzato molto. Lo sto testando insieme...
Alai-n Je poste ici un lien afin de mieux appréhender le CVD-Cumulative Volume Delta : https://www....
Nicolas
3 years ago
DELBERT Bonsoir , Nicolas , j'ai transféré votre indicateur sur ma PRT 10,3 et j'ai un méssage d'ére...
Nicolas Vous pouvez essayer en remplacant la ligne avec: vwapsd = sqrt(average[lengthz](square(clo...
DELBERT Bonsoir , merci Nicolas , a bientôt .
ChemaGeek Bonjour Nicolas, j'ai récemment découvert cet indicateur (Regularized Momentum 2017) et je l...
YvesRobert Bonjour, nouveau sur PRT (qq jours), j'essaie un peu de voir quel type d'indicateur me convi...
Ichimoku Reading I don't know in this case, I just downloaded it again and no problem for me. Try to downloa...
Ichimoku Reading What's the error that appears ?
Suzu Yuk Yes, it worked with 1Tick with 200 K . Thank you very much.
Monobrow Hi Daniele Thank you for the indicator, it looks very good. However, I have a problem so...
avatar
Anonymous Thanks very much for sharing, look forward to testing this idea out.
mathiasKN Thank you Daniele for making this script, I know its been some time since the release but wo...
Barrabas15 Apparently, according to the attached data, there is an error in the indicator code. Attach...
Barrabas15 The files are at the end of the following link: https://www.prorealcode.com/topic/time-seg...
robertogozzi Thank you Barrabas15, the correct code is at https://www.prorealcode.com/topic/time-segmente...
Nicolas esta possible
bolsatonimora2 Hola Nicolas, perdona la molestia, pero podrias codificar el screener para rupturas de sopor...
Nicolas Utilice los foros para solicitar una codificación personalizada.
GARNIEPI hello I am looking for an anchored vwap intraday, indicator which allows you to visualize th...
withoutwings To be able to flexibly wrap around the full 24h (i.e. past midnight), or to use just a singl...
yeoreum Thank you very much for the screener, it reminds me on Minervini VCP. How to change th...
reecet any codes like this but in minutes and hours rather than days?
PHAN100 bonjour, je viens de tester ce screener, je constate une anomalie...il ne renvoie pas l'e...
jaginho Bonjour Vivien, je n'arrive pas à comprendre ce screener... En tout cas merci pour tes contr...
avatar
Anonymous Superb, merci!

Top