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

#126821

robocop -Please don’t shout in the forums. The use of all capital letters is considered shouting in any forum. Sometimes in the ProRealCode forums we use capital letters to highlight that a word is a code word but otherwise we try not to shout in the forums. Please don’t shout again in future posts.

I don’t need to fix the indicator because as I said before it is totally dependent on the data that you put in as is every thing in life – what you put in effects what you get out. On v10.3 for me the indicator was able to detect the time frame on most popular markets within 6 bars. I have not extensively tested it on v11 but as I mentioned earlier I have found some issues in the open time of bars on my end of day version of v11 that would mess up time frame detection.

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. I have been testing today an indicator that I just coded that can show on any chart a simple moving average and standard deviation bands like Bollinger bands for monthly, weekly, daily and any hourly chart and any minute chart on any faster time frame chart without the need for knowing what the time frame of the actual chart is. It can also display lines that update on close as well as updating on every new bar. I hope to submit it and another version that shows the same result as a percentage of the bands to the library tomorrow. 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 by Covid-19 and the need to work from home.

1 user thanked author for this post.