Here is my PRT code for those would be interested in. It returns the number of ticks per second in any UT “ticks”.
Feel free to add moving average… and comments.
BR,
Thomas
//Variable : //Variable : ticks quantity of the current timeframe (21 ticks by default)
Variable=21
Hr=Round(OpenTime/10000)
if Hr*10000>OpenTime then
Hr=Hr-1
endif
M=Round((OpenTime-Hr*10000)/100)
if M*100>OpenTime-Hr*10000 then
M=M-1
endif
S=OpenTime-(Hr*10000+M*100)
Taillme=3600*Hr+60*M+S
Ticksme=Variable/(Taillme-Taillme[1])
Return Ticksme
Hi. Thank you that is what I am looking for. As well as the chart, I want to also add to a proscreener to display only indices that have activity of at least 2 ticks per second or 120 ticks per minute. Proscreener doesn't like seconds, only minutes. Would be very grateful for assistance to convert the indicator to ticks per minute please? Thank you, Bruce