Interval() always returns 1-minute no matter what the chart interval is

No matter whether I am looking at an hourly, 10-minute, or other, etc. timeframe chart, if I use the internal() function in my AFL code it returns 1-minute. Is there a way to get the actual chart interval being displayed using AFL?

Try again with this code:

Title = "" + Interval();

Thanks, Tomasz. It turns out that interval() was returning the correct value. The problem was when in debug mode and hovering the cursor over the variable set to interval(), the display would always read 1-minute.

Debugger has its own settings. There is a setting in the Preferences that decides whenever debugger uses BASE time interval or selected interval.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.