P and T Volatility

P and T Volatility

This indicator gives an indication of recent market volatility based on the number of peaks and troughs in the p look back period.

A trough or a peak can be classified by the number of bars before and after a high or low that have lower highs (for a peak) or higher lows (for a trough). Change the ‘BarsBefore’ and ‘BarsAfter’ variables to select what type of peaks and troughs you are testing for. Some people call these fractals and others pivot points and others support and resistance but I am choosing to call them peaks and troughs!

The number of peaks and troughs in the look back period are counted and returned as a weighted average line chart centred around zero. The zero line represents the all time average of peaks and troughs for the period p.

Change the look back period length by changing the value ‘p’.

The green line represents peaks (P volatility) in the look back period and the red line represents troughs (T volatility) in the look back period. The blue line is peaks and troughs (P and T volatility) combined.

Low values show that there has not been a lot of peaks or troughs recently indicating a not very volatile market.

High values show that there has been a lot of peaks or troughs recently indicating a very volatile market.

Low and High volatility readings can sometimes indicate a market that is about to change or choose a direction.

If a market has been trending then we might see the P and T volatility dropping off as the market makes less and less peaks and troughs as it heads off in whichever direction it has chosen.

If the P value is high and the T value low then it might be that the market has recently been hitting upward resistance but little downward support.

How you finally analyse the indicators output is up to you!

I advise downloading and importing the ITF file to get full functionality.

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?

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

  1. Matriciel • 08/30/2019 #

    Well done Vonasi !
    You have a lot of ideas.
    Personally, I work with Moving Averages only. Whether in a bounded indicator or not.

  2. Bard • 08/30/2019 #

    Very interesting approach Vonasi! I’m getting a 404 error when trying to download though?

  3. Vonasi • 08/30/2019 #

    I just tested and I was able to download with no error.

  4. Psari • 322 days ago #

    Hi Vonasi,
    I am a newbie and was wondering whether you could possibly help me with this problem:
    I would like to make an indicator with 3 Williams %R with 3 different periods and on each a Weighted Moving Average. I don’t manage to do this and would greatly appreiate your help.

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
Vinks_o_7 Thanks IV Do you think it can be used on stonk too ?
IV Mcm I don't speak English and the translation is not clear. Do you have a different turn of ...
IV Mcm stonk ?
Juan Gonzalez Que buen contenido! No tienes alguno que me permita operar Order Flow? Gracias
jissey Bjr Nicolas, merci pour cet indicateur interessant, mais en le recopiant pour creer un progr...
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
oraclus Bonjour indicateur très intéressant existe t il un screener qui détecte les actions qui donn...
Nicolas Le paramètre showcl doit être en true (égal à 1 )
Lednora Ah oui en effet c’est magique!j’étais resté bloqué sur la ligne 96^^. Merci beaucoup nicolas...
samsampop Merci Nicolas, c'est superb!
luxrun // volatilitĂ  Schwager calcolo incrediblecharts.com x = TR (close) y = exponentialaver...
luxrun sorry, add prt code add doesn't work
robertogozzi Don't worry about PRT code, I can't make it work either! Great for pointing that out, it's ...
luxrun One question, Roberto: the two AvgT are variable, could you explain to me what they regulate...
robertogozzi AvgT stands for Average Type, it's a parameter for the AVERAGE keyword (https://www.prorealc...
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
robertogozzi Yes, you can use any setting that suits you best! As to which one... it depends on the inst...
DaxRider grazie Robnerto
Rory Dryden Thank you. Experimenting with it now.
Vonasi I developed and tested on v11.1 - 1.8.0_202. All the array use in the code is very basic. Di...
Vonasi You can find the minor bug fix and new ITF file here: https://www.prorealcode.com/topic/eve...
Reddington Hi Vonasi! Really nice work, is it possible to re-create this to work in 10.3? Best regards ...
mohamed bonjour nicolas! j'aimerais pouvoir changer les couleurs des chandelier directement depuis ...
Nicolas remplacer les valeurs de coloured(0,255,0) par coloured(r,g,b) et ajouter ces noms de variab...
mohamed merci Nicolas!
Canis Majoris Hi , Helpful indicator ...
Maxime Csls Bonjour Vonasi, Bravo pour ton travail ! Est-il possible de créer un screener quand le prix ...
Bhanu Pratap Great Work Sir, Hats Off.
bolsatonimora2 Hi Roberto, It is possible to modify this indicator which it marks the supports and resist...
robertogozzi What do you mean by "very high volume"? What do you want to be printed exactly?

Top