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.

설명이 도움이 되었나요?
아니오

하실 말씀이 있습니까?

피드백 감사합니다.

제출하기

지원 문의

청구서, 제품 동기화에 관한 질문에서 기술적인 질문까지 부담없이 문의하세요.

1-800-WOLFRAM (국제 전화는 +1-217-398-0700)

고객 지원

월요일 - 금요일
8am–5pm 중부 표준시

  • 제품 등록 및 동기화
  • 구매 전 정보 및 주문
  • 설치 및 동작

고급 기술지원 (해당 고객을 대상으로)

월요일 - 목요일
8am–7pm 중부 표준시

금요일
8:30–10am & 11am–5pm 중부 표준시

  • 우선적 기술지원
  • Wolfram 전문가들의 제품 지원
  • Wolfram 프로그래밍
  • 고급 설치 지원