Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4214

Random prices from FinancialData

From DrMajorBob <btreat1@austin.rr.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Random prices from FinancialData
Date 2011-08-08 08:22 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j1o6cm$4i0$1@smc.vnet.net> (permalink)

Show all headers | View raw


FOR EXAMPLE, below you see both "Close" and "RawClose" prices varying  
randomly within ELEVEN seconds.

All the differences in the last three outputs should be zero for mutual  
funds, especially on a Sunday.

AbsoluteTiming[
  s1 = {#, FinancialData[#, "Close"], FinancialData[#, "RawClose"]} & /@
      janusStocks // Transpose;
  s2 = {#, FinancialData[#, "Close"], FinancialData[#, "RawClose"]} & /@
      janusStocks // Transpose;
  s3 = {#, FinancialData[#, "Close"], FinancialData[#, "RawClose"]} & /@
      janusStocks // Transpose;]
s1[[2 ;;]] - s2[[2 ;;]]
s1[[2 ;;]] - s3[[2 ;;]]
s2[[2 ;;]] - s3[[2 ;;]]

{10.728764, Null}

{{0., 0., 0., 0., 0., 0., 0., 0.79, 0., 0.}, {-4.06, 0., 0.,
   0., -1.61, 0., 0., 0.79, 0., 0.}}

{{0., -3.69, 0., 0., 0., 0., 0., 0.79, 0., 0.}, {0., 0., 0., 0., 0.,
   0., 0., 0., 0., 0.}}

{{0., -3.69, 0., 0., 0., 0., 0., 0., 0., 0.}, {4.06, 0., 0., 0., 1.61,
    0., 0., -0.79, 0., 0.}}

Bobby

-- 
DrMajorBob@yahoo.com

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Random prices from FinancialData DrMajorBob <btreat1@austin.rr.com> - 2011-08-08 08:22 +0000
  Re: Random prices from FinancialData "Chris Degnen" <degnen@cwgsy.net> - 2011-08-09 11:29 +0000
  Re: Random prices from FinancialData DrMajorBob <btreat1@austin.rr.com> - 2011-08-09 11:31 +0000

csiph-web