PureBytes Links
Trading Reference Links
|
If what you ahve does not work try this
setforeign("$COMPQ");
comp = C;
compp = TimeFrameGetPrice( "C", inDaily, -1 );
restorepricearrays;
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 13/12/06, troll <deanhodgins@xxxxxxxxxxx> wrote:
>
> 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
|