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.4.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tradeflow-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 d03f3bd5a19f3808e376d8bc102bf373d3c255af6bd2b928168a6f92fe11e50f
MD5 49dc010df5c216b4072a6b58f268f80b
BLAKE2b-256 6f24760523d9436582728b798ec3a625b9651d8011f0aa4a3d9dcf582539de3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tradeflow-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 682921f1e55a11500dfabecc0432257a92be847c8d6414a082ac86897a7f59ec
MD5 2324bc4bd901ecf9202887fc0a799974
BLAKE2b-256 a31945cdf6b9ca7ce56295dcd27e05ae8e3e7d8d1b08923fe26ffe5a27d3fd0e

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