Hi,
I use AmIQuote to try getting USD-JPY currency pair from Yahoo. The ticker I see is USDJPY=X. But, I cannot get the data. Anyone can show me the right way to get free forex data into Amibroker? Clement _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of johsun Sent: Saturday, November 25, 2006 7:36 PM To: [email protected] Subject: [amibroker] Re: How to code Unweighted Arithmetic Price Index using ATC? UAPI = 100 * exp( Cum( log( Factor ) ) ); Johan --- In [EMAIL PROTECTED] <mailto:amibroker%40yahoogroups.com> ps.com, "personal592002" <[EMAIL PROTECTED]> wrote: > > How to code Unweighted Arithmetic Price Index using ATC? > I am stuck. I can export/import to/from Excel but was hoping someone > could suggest an easier way. > > /*Unweighted Arithmetic Price Index > http://www.valuelin <http://www.valueline.com/news/vlv030328x.html*/> e.com/news/vlv030328x.html*/ > > AddToComposite( C/Ref(C,-1), "~UPI", "X", flags = 1 ) ; > AddToComposite( 1, "~UPI", "I" ); > Buy = 0; > Factor = Foreign("~UPI","C") / Foreign("~UPI","I"); > > // needs PRODUCT function like in Excel not Cum() > UAPI = 100 * Cum(Factor); > > Plot(UAPI,"Unweighted Arithimetic Index",colorGreen,styleLine); >
