Skip to main content

Utilities for intrinsic time decomposition and fractal event analysis

Project description

IntrinsicTime

Utilities for decomposing intrinsic time events and analyzing fractal scaling behavior in price or signal data.

This package provides:

  • dcos_core: A Directional Change and Overshoot (DcOS) event detector.
  • dcos_fractal: Tools for fractal scaling and multi-threshold analysis.
  • dcos_plot: Plotly visualization for interactive fractal plots.

Installation

From GitHub

pip install git+https://github.com/THouwe/IntrinsicTime.git

Local Install

git clone https://github.com/THouwe/IntrinsicTime.git
cd IntrinsicTime
pip install -e .

Dependencies

See requirements.txt.


Overview

IntrinsicTime decomposes time series into Directional Changes (DCs) and Overshoots (OSs) based on log-scale thresholds. It then explores the fractal scaling law between event frequency and detection threshold.

Example Usage

import numpy as np
import pandas as pd
from IntrinsicTime import DcOS_fractal

# Example input DataFrame
df = pd.DataFrame({
    "Timestamp": range(1000),
    "Price": 100 + np.cumsum(np.random.randn(1000))
})

# Initialize and run
analyzer = DcOS_fractal(debugMode=True)
results, ranges = analyzer.run(df)

# Display results
print(results.head())
print(ranges)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intrinsictime-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intrinsictime-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file intrinsictime-0.1.0.tar.gz.

File metadata

  • Download URL: intrinsictime-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for intrinsictime-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c4eecc0c6f1ffc869caacbc9ffe4db271b8ee5cf8264686a1782cba5eab31ba8
MD5 1d9b2e5ffb50374eb17ba65e9460e193
BLAKE2b-256 9075b4b7907ee635999476deed3f48d845b479f7f0dab737eeee8dff076f02fa

See more details on using hashes here.

File details

Details for the file intrinsictime-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: intrinsictime-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for intrinsictime-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d6f7ebbddd5b44b46f5a3f96b46fc017aad4bad72c246d6829df632c0fba0bf
MD5 85ddf6f19370aff5e72834c4e66d7d11
BLAKE2b-256 9f1137ac4f72e5dc404b4311e0290dc3494f93b18593fd47b3ddc43322a500c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page