Wolfram Computation Meets Knowledge

How do I use financial indicators as functions?

Financial indicators take OHLCV (Open, High, Low, Close, Volume) datasets as arguments and return a list of values. For example, the function FinancialData provides Google’s OHLCV values:

data = FinancialData["GOOG", "OHLCV", All];

FinancialData returns a list of pairs, each consisting of the date and the OHLCV values on that date. Consider the first pair of values in data:

First[data]
{{2004, 8, 19}, {100., 104.06, 95.96, 100.34, 22351900}}

The first list represents the date of August 19, 2004. The second list gives the open, high, low, close, and volume values for the stock on that date, respectively.

For example, we can run a simple moving average on the data. FinancialIndicator["SimpleMovingAverage"] represents a function that takes our data and returns the simple moving average. To apply the simple moving average to the data, evaluate:

FinancialIndicator["SimpleMovingAverage"][data]

By looking at the documentation for the SimpleMovingAverage indicator, you can find how to specify the time range that the average covers. The function FinancialIndicator["SimpleMovingAverage", 50] averages over fifty days for example.

Este artigo foi útil?
Sim
Não

Algum comentário?

Obrigado pelo seu feedback.

Enviar

Entre em contato com o Suporte

Caso tenha alguma dúvida sobre cobrança, ativação ou suporte técnico, estamos a sua total disposição.

1-800-WOLFRAM (+1-217-398-0700 para chamadas internacionais)

Suporte ao consumidor

Segunda–Sexta
8:00–17:00 Horário Central dos EUA

  • Registro ou ativação do produto
  • Informações de pré-venda e pedidos
  • Ajuda com instalação e início

Suporte técnico avançado (para clientes habilitados)

Segunda–Quinta
8:00–19:00 Horário Central dos EUA

FSexta
8:30–10:00 & 11:00–17:00 Horário Central dos EUA

  • Suporte técnico prioritário
  • Assistência com especialistas da Wolfram
  • Ajuda com a programação da Wolfram Language
  • Suporte avançado de instalação