PureBytes Links
Trading Reference Links
|
Try
prevday = ref(comp,-1);
R
--- 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
>
>
>
>
>
>
>
>
>
>
>
Rick Osborn & Associates
885 Sorrento Ave.
Oshawa, Ontario L1J 6V6
(905) 728-8543 fax 728-0815
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
|