Skip to main content

A package for stocks market backtesting.

Project description

TradeTide logo

Meta

Python

Documentation Status

Testing

Unittest Status

Unittest coverage

Google Colab

PyPI

PyPI version

PyPI downloads

Anaconda

Anaconda version

Anaconda downloads

Latest release date

TradeTide

TradeTide is a trading platform designed to empower traders with advanced analytics, real-time market data, and automated trading capabilities. Our platform caters to both novice and experienced traders, offering a wide range of tools to analyze market trends, execute trades, and manage portfolios efficiently.

Testing

To test localy (with cloning the GitHub repository) you’ll need to install the dependencies and run the coverage command as

>>> git clone https://github.com/MartinPdeS/TradeTide.git
>>> cd TradeTide
>>> pip install -r requirements/requirements.txt
>>> pytest

Coding example

from TradeTide import Backtester, Strategy, Market, Currency, days, hours, minutes
from TradeTide.indicators import BollingerBands
from TradeTide import capital_management, exit_strategy

market = Market()

market.load_from_database(
   currency_0=Currency.CAD,
   currency_1=Currency.USD,
   time_span=100 * days,
)

indicator = BollingerBands(
   window=3 * minutes,
   multiplier=2.0
)

indicator.run(market)

strategy = Strategy()

strategy.add_indicator(indicator)

exit_strategy = exit_strategy.Static(
   stop_loss=4,
   take_profit=4,
   save_price_data=True
)

capital_management = capital_management.FixedLot(
   capital=1_000_000,
   fixed_lot_size=10_000,
   max_capital_at_risk=100_000,
   max_concurrent_positions=100,
)

backtester = Backtester(
   strategy=strategy,
   exit_strategy=exit_strategy,
   market=market,
   capital_management=capital_management,
)

backtester.run()

backtester.print_performance()

Qsca vs diameter


Contact Information

As of 2025, the project is still under development. If you want to collaborate, it would be a pleasure! I encourage you to contact me.

TradeTide was written by Martin Poinsinet de Sivry-Houle .

Email:martin.poinsinet-de-sivry@polymtl.ca .

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

tradetide-0.2.6-cp312-cp312-win_amd64.whl (28.6 MB view details)

Uploaded CPython 3.12Windows x86-64

tradetide-0.2.6-cp312-cp312-manylinux_2_28_x86_64.whl (14.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

tradetide-0.2.6-cp312-cp312-macosx_15_0_arm64.whl (15.7 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

tradetide-0.2.6-cp311-cp311-win_amd64.whl (22.7 MB view details)

Uploaded CPython 3.11Windows x86-64

tradetide-0.2.6-cp311-cp311-manylinux_2_28_x86_64.whl (13.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

tradetide-0.2.6-cp311-cp311-macosx_15_0_arm64.whl (14.5 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

tradetide-0.2.6-cp310-cp310-win_amd64.whl (16.8 MB view details)

Uploaded CPython 3.10Windows x86-64

tradetide-0.2.6-cp310-cp310-manylinux_2_28_x86_64.whl (12.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

tradetide-0.2.6-cp310-cp310-macosx_15_0_arm64.whl (13.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

Details for the file tradetide-0.2.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: tradetide-0.2.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 28.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for tradetide-0.2.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 72d5e4d02b2f5ca1d1a1560fc1a32d609a5b48cf2fc4abda2ac27f71bb0b91ba
MD5 390d6781ade91ab3747e4608a27f6aee
BLAKE2b-256 5829aa79ecdc1d1cb910e8e8a91f65a909bf0c3e6afb030aee86b98fed1d1b5b

See more details on using hashes here.

File details

Details for the file tradetide-0.2.6-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.6-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 41533240122ae1367bd1dede8923b9ab7efa1c8b8b00da684a713f80c2193ed5
MD5 506331f45fd32aeac61f6349f0c971b6
BLAKE2b-256 0b7160ceb6680b20bfe00eb22706aeedf700eac122f3644fed7774eabfc48f18

See more details on using hashes here.

File details

Details for the file tradetide-0.2.6-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.6-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d91c2be4d18a55b827f4f9a243df458f94875ce95d2b9a58fcca7c286e7b1b5e
MD5 98635a6beba07e042cf48fa962d9769f
BLAKE2b-256 810d10518f3d043daf88d6dba0ddee1b96198d8427717a9546687e24f40d9830

See more details on using hashes here.

File details

Details for the file tradetide-0.2.6-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: tradetide-0.2.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 22.7 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for tradetide-0.2.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c70971dc61fbeb547d71edadd7c8bd5ad1cf7a90e0bd294d530b76b60c97034f
MD5 351bd5f78161aebd6f46a2f89aa8e62d
BLAKE2b-256 7317dfcf85abdfebe6e839a740f7c941e1ac787a4d3f097c03a53a4193c3e3bd

See more details on using hashes here.

File details

Details for the file tradetide-0.2.6-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.6-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 453d8b6176b4042906fc3d8da8f41112fdeb4cabb330635a2a899b180aec9166
MD5 8f813aa7f32ef9e2b443c104b43bf5c4
BLAKE2b-256 70c0cc17520716cdd08408ad39eda20f2fa278f7605614a0275b68f91de4e7d2

See more details on using hashes here.

File details

Details for the file tradetide-0.2.6-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.6-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e68e5bd6983170174696536855a8a6ac3de1bc92a7336dd7092c9e7c32cc9297
MD5 05548b8fbd20c9d9bb146cc2273ec298
BLAKE2b-256 b4ea423584bd112b07c9add8830488bcc23f2bbdbea6e076cf27b9e4ed10eeb9

See more details on using hashes here.

File details

Details for the file tradetide-0.2.6-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: tradetide-0.2.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 16.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for tradetide-0.2.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f07264d15ac98e4e40483f9681d04205053733222b9f1d2b93005dd190a6a6d3
MD5 9b43d1f0000c252490875e2984c3ab98
BLAKE2b-256 0644c1a426f96a367b1cb4bbe096a83baea4c3242202a4206896f2681be77f06

See more details on using hashes here.

File details

Details for the file tradetide-0.2.6-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.6-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 07778cf174d6eb1c6f0a348ff1b4c029a66fe0236ec5661d5c19de868b809f04
MD5 4d4cc069235acfbd8d3728f4c2a71701
BLAKE2b-256 86c3736a69806adb943dbbd386f3106376ccf5ba408a602bdd4a88ca851fb4d9

See more details on using hashes here.

File details

Details for the file tradetide-0.2.6-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.6-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bee0aa73bd03cf5c0b4e836f8dce6d283e147630dc5a1e8dd287d046f2922d64
MD5 9c731abb4911d75e2a6ea2c60dcbf530
BLAKE2b-256 3d6ff62af47ec30966d4d54053fbec630acae08e7900947451d0f2030624cd6b

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