Forums ProRealTime English forum ProBuilder support Determine the charts time frame in a program Reply To: Determine the charts time frame in a program

#126824


In fact the indicator is no longer needed on v11 because we can use arrays to store values at any point in history and so create indicators that simulate MTF without the need for knowing what the time frame of our chart is. …

The same theory can be used to create other MTF indicators whilst we wait for PRT to be able to release their much awaited MTF indicator ability – the release of which has unfortunately been delayed …

I’n not able enough to understand theory you describe, maybe you are right, but i am not sure that i can use an array to solve my problem, that i describe below:

I have to calculate the number of bars in a theoretical 24-hour working day for my chart, in which user choice timeframe, and only way i’ve found is: 24*60/minutes of timeframe.
For example, in the 15 minute time frame the number of bars in 24 hours is 96 (24 * 60 /15). Your detector is fine for me, because it returns a number of minutes (or hours) which i can use for a general algorithm.

If anyone have any other way to reach target, i will appreciate.

So, in a non capital letter to respect netiquette, i think that PRT developer have the chance to help user releasing general function that many people can use.
To know which Timeframe is my chart, is in my opinion a basic function.

Another basic and general function, that in my opinion is a must to have in a platform that have to deal the time factor, is a generalized routine to perform date operation.