How to Change time frame in OLE Script

Document object has Interval property http://www.amibroker.com/guide/objects.html that you should use. By the way - use Code Tags as per forum rules: How to use this site