GetTimeframe does the job (https://www.prorealcode.com/documentation/gettimeframe/) , but NOT for screeners. It’s availbale for indicators and strategies only, so you’d have to compare the time from one bar to next one with some math.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue