engines.macro.commodityCycle Engines drafted

Macro — Commodity Cycle (Copper-Gold + Oil)

원자재 사이클 — Copper-Gold ratio (성장 sentiment) + WTI 사이클 + Iron Ore 중국 PMI 선행. KR 시장 수출주·소재주 alpha driver.

이 스킬

Macro — Commodity Cycle (Copper-Gold + Oil)

원자재 사이클 — Copper-Gold ratio (성장 sentiment) + WTI 사이클 + Iron Ore 중국 PMI 선행. KR 시장 수출주·소재주 alpha driver.

Engines drafted engines.macro.commodityCycle

이어 가기

절차

실행 순서

  1. 1

    **Copper-Gold ratio**: 성장 vs 안전 sentiment (ratio ↑ = 위험자산 alpha)

  2. 2

    **WTI cycle**: 글로벌 수요 + OPEC 공급

  3. 3

    **Iron Ore**: 중국 PMI 선행 (3-6 개월)

  4. 4

    copper/gold/wti 단위 USD 명시 (ton / oz / bbl).

  5. 5

    regime enum 3 종 (risk_on/mixed/risk_off).

  6. 6

    z252 단위 σ.

  7. 7

    [engines.macro](/skills/engines.macro) — base SKILL

  8. 8

    [engines.macro.cycles](/skills/engines.macro.cycles) — copper-gold 가 cycle phase 보조 신호

엔진 역할

원자재 cycle 3 신호 결합:

  • Copper-Gold ratio: 성장 vs 안전 sentiment (ratio ↑ = 위험자산 alpha)
  • WTI cycle: 글로벌 수요 + OPEC 공급
  • Iron Ore: 중국 PMI 선행 (3-6 개월)

공개 호출 방식

import dartlab
co = dartlab.macro("commodityCycle", market="global")
# → dict: copperGold · wti · ironOre · regime

호출 동작

LME 구리 / COMEX 금 / WTI / SGX Iron Ore 일별 → ratio + z + regime.

대표 반환 형태

dict
  copper : float            # USD/ton
  gold : float              # USD/oz
  copperGoldRatio : float
  wti : float               # USD/bbl
  ironOre : float           # USD/ton
  regime : str              # risk_on / mixed / risk_off
  z252 : dict
  dateRef : str

기본 검증

  • copper/gold/wti 단위 USD 명시 (ton / oz / bbl).
  • regime enum 3 종 (risk_on/mixed/risk_off).
  • z252 단위 σ.

관련

런타임

실행 환경별 호환성

환경상태비고 / 제한
Local Python supported·
Server supported·
MCP supported·
Web AI supported·
Pyodide limited·