Ticks bars duration indicator

Ticks bars duration indicator

Used in tick bars, or at least not in time, to evaluate the duration of the bar in seconds.
Returns the number of seconds elapsed to complete each individual bar.

Could be useful to measure the market speed in non-time-dependent charts: ticks charts, range bars, renko bars, etc.

Code emerged from discussion here: Indicator for bar duration


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

Register or


avatar avatar avatar avatar avatar
Related users ' posts
JohnScher Fine Work. I am currently working on divergences. I wanted to ask if there was already a b...
Nicolas There are many divergences indicators on the website already, please make a quick search wit...
JohnScher indicators i did fond, no problem, but a basic code to trade maybe RSI divergence didn´t fou...
dzim0032 J'avais oublié de mettre un commentaire pour la vente du scalper dont les règles sont justes...
Wilko This was a rather interesting idea that appears to work on a short timeframe. And also inter...
andreag76 Thank you Francesco78 !
juanj What happened after August 21?
bjoern With the same parameters? For me the results are negative
bjoern Oh ok, with the initial posted parameters it is positive
victormork yes! It's not like you want to put it on live but when I for example take the version I have...
Sofitech What is the timeframe(s) you woul suggest to use for this method ?On Forex and/or on stock m...
Doctrading Hello, Higher timeframes are better. I suggest D1 or H4.Best regards,
Frytconcord hello nicolas. what is the difference between "pprofit" to "profit" thank you
Nicolas "pprofit" is the target profit in points, while "profit" is in price.
Frytconcord oh yes, i see. thank you very much
Francesco78  Sorry I must add that it looks great only if we start the backtesting from 2008. Im not fa...
Nicolas You can't upload images here, sorry.
triss1965@gmail.com Hi, I dont understand, when I do the backtest I get only drawdown and a big loos? Have I mis...
jelogui bonjour Nicolas, bravo pour cet indicateur assez complexe et qui fonctionne parfaitement. ...
Nicolas Merci de formuler cette demande sur le forum Probuilder, je m'en chargerai dès que possible.
jelogui merci beaucoup Nicolas, je m'en occupe.
klintistwood Hello Ciccio, thanks for the sharing. Which time unit would be best to use candles ? Day ? H...
redz programme dont work with me
BennieHofer Would love to get these. I tried to import them via .itf file but got a error message and it...
Maxime Leleux Nice screener but the 2 candelsticks around the doji should be long sticks (red and green). ...
kajsy88 I'm using prorealtime suplied by ig markets so that's potentially why then !
davidspain It would be possible to use this screener at the same time than the recent one about high vo...
Jean-Pierre Poulain Hello, I am in version 10.3 but it does not work  
bluetime6 Hello Doctrading.   Can you ask you for something? Can you code a screener screen po...
Nicolas Well done supertiti, nicely coded and very accurate.
Dimi.A Beautiful.