[amibroker] Re: Reference the most recent timestamp of a foreign ticker.

 

Brent,


You can't access data from a lower timeframe, only higher. So, running someting on the 5-min, you can compress that to get the 15-min or daily data but you can't get access to 1-min, even if the db base timeframe is 1-min.

To overcome this, you need to run exploration on a 1-min and store what you need in a StaticVar, which then can be accessed at a higher timeframe.

You may also opt for chart refresh, if you keep a 1-min chart open and add this to its code:
if(Interval() == in1Minute) {
//SetBarsRequired(-2, -2);
RequestTimedRefresh(in1Minute, False);
}

You may or may not need the SetBarsRequired (in your case probably not).

I find that sometimes it would make life easier if you could access the lower TF data but ..

__._,_.___

Posted by: gabor.s.kuti@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon