Skip to main content

A package to simulate autocorrelated time series of signs

Project description

tradeflow : generate autocorrelated time series of signs

tradeflow lets you generate autocorrelated time series of signs.

Installation

pip install tradeflow

How to use

You can create an autoregressive model from a training time series of signs time_series_signs:

>>> import tradeflow
>>>
>>> ar_model = tradeflow.AR(signs=time_series_signs, max_order=50, order_selection_method='pacf', information_criterion=None)

To fit the model parameters, you have to call the fit function:

>>> ar_model.fit(method='yule_walker')

You can then easily simulate an autocorrelated time series of signs by calling the simulate function:

>>> simulated_signs = ar_model.simulate(size=15, seed=1)
>>> print(simulated_signs)

Documentation

Read the full documentation here.

License

Copyright (c) 2024 Martin Gangand

Distributed under the terms of the MIT license.

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

tradeflow-0.0.2.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

tradeflow-0.0.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file tradeflow-0.0.2.tar.gz.

File metadata

  • Download URL: tradeflow-0.0.2.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tradeflow-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0f7db7b8ae214f4eced6a988666be0af6dbcb83e607537626f1bc12483ce27b7
MD5 6113c0a9b773a08b4368545c5560d929
BLAKE2b-256 45c2f7d82980bd8ee92e47a69886ec43c60a72b91241d6ffe0e487ac4455f194

See more details on using hashes here.

File details

Details for the file tradeflow-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tradeflow-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tradeflow-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa569411b94d0c86a7212b77cf0dd332573b88f411e11602fa1411a3e8779fce
MD5 1625822dc4dca7c0df0d7e767f4609fe
BLAKE2b-256 b03bfeb6f8d412a1d6a55c2aba91db4eb79555eb92f4af7e3f8b2f4879ee1877

See more details on using hashes here.

Supported by

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