Index Filters (FOREIGN)

I am using a 5 min chart ,but would like to get the open price (current day)of the index for reference ,the below formula doesnt seem to work,please advice
TimeFrameSet(inDaily);
FCO =Foreign( “Nifty-I”, “O” ,True);
TimeFrameRestore();
FCO = TimeFrameExpand(FCO,(inDaily));

First and foremost: read HOW TO USE THIS SITE and use proper code tags.

As to your question, your code is incorrect, correct code is in existing documentation, see
http://www.amibroker.com/kb/2014/10/20/foreign-timeframeset/

1 Like

I did google with key word “set foreign + indaily + amibroker” ,but the link below does not have the link you sent
https://www.google.co.in/search?q=set+foreign+%2B+indaily+%2B+amibroker&oq=set+foreign+%2B+indaily+%2B+amibroker&gs_l=psy-ab.3...25250.25478.0.26370.2.2.0.0.0.0.112.208.1j1.2.0…0…1.1.64.psy-ab…0.0.0…0.IfHmqGQlDlw

That is because you don’t know how to use Google. The search syntax you used is wrong.
You should have entered the names of functions from your formula and limit the search to amibroker.com site, to narrow search use +site:amibroker.com in your search term.

So you should google for:

foreign timeframeset +site:amibroker.com

here is a demo how to do that: http://lmgtfy.com?q=foreign+timeframeset+%2Bsite%3Aamibroker.com

Using this +site:amibroker.com you would find everything yourself.

The link I gave comes FIRST on the result list.

1 Like