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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tradeflow-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6ad10927fdab6129a7134707fde156c980f6b98c3100d3a00fbe3850bbd77033
MD5 ecad6087892edf7dcc11a7beb519a1b6
BLAKE2b-256 ff25dbec2573865e33685bb1faf28c532821d153fe0d213a73918883d7f8564b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tradeflow-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93b754aa04f7cd4f1148ae02659fb6ba139410a22fd76e88d46087937b143185
MD5 e30727edbae71bf7998702999f90f367
BLAKE2b-256 576e5d908345d44b6cecc94f20de9e97928c5fb0efbfeb6c1e33c0c15d19463b

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