PureBytes Links
Trading Reference Links
|
Did you try this since you already stored the value of the entire array?
Actually, yours probably works, you just forgot Ref(
But I like to use the stored data instead of recalculating.
comp = Foreign("$COMPQ", "C");
compd = TimeFrameGetPrice(comp, inDaily);
compp = Ref(compd,-1);
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of troll
Sent: Tuesday, December 12, 2006 16:32
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Question re Foreign Function
I'm using the following code to fetch the current Nasdaq value
and I display the results in the title of an A/D graph I work
with. Works fine with intraday data and displays current value
correctly.
comp = Foreign("$COMPQ", "C");
I wanted to also show change from previous day's Index close
which means I need to fetch the previous day's Index close on
Daily basis and to do that I've tried following line and various
permutations with no success.
compp = TimeFrameGetPrice( Foreign("$COMPQ", "C"), inDaily, -1 );
Any suggestions as to how I can retrieve the previous day's Index
close on Daily basis would be much appreciated. Somehow I need to
combine the Foreign and TimeFrameGetPrice functions if that can be
done
Thanks & Regards, ( And best wishes to all over the Holiday Period)
Dean Hodgins
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.16/582 - Release Date: 12/11/2006 4:32 PM
|