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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
//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 |
Share this
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 :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
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