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.5-cp312-cp312-win_amd64.whl (31.3 MB view details)

Uploaded CPython 3.12Windows x86-64

tradetide-0.2.5-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.5-cp312-cp312-macosx_15_0_arm64.whl (15.7 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

tradetide-0.2.5-cp311-cp311-win_amd64.whl (24.5 MB view details)

Uploaded CPython 3.11Windows x86-64

tradetide-0.2.5-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.5-cp311-cp311-macosx_15_0_arm64.whl (14.5 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

tradetide-0.2.5-cp310-cp310-win_amd64.whl (17.7 MB view details)

Uploaded CPython 3.10Windows x86-64

tradetide-0.2.5-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.5-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.5-cp312-cp312-win_amd64.whl.

File metadata

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

File hashes

Hashes for tradetide-0.2.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eda302778db6388476dc32b0f3299cbfe5da60224ff7c022130642854b613a1b
MD5 f7f0913715f768b9410a03980dac047c
BLAKE2b-256 fd8a65551bfa83e2f028e7987bc4389ba0645f984b257161c10f53762d519778

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.5-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f757bb43b31bb0a53e18601808cccd4bd64cda386bc3f37b4caf8d27df81cafe
MD5 22a491acd553e8329d4bc85c4b1c32dc
BLAKE2b-256 46d6141a93d2c173487be0238744ff6f23dc3f04130d8cc8afe7c41ec53247c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.5-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 42663d06a463de5f965cb068c92f290e90c790c336dcdeba3af749c5d5e8b237
MD5 f2757ceda6d96e721e97a6acf469b530
BLAKE2b-256 2a33bbd4792a53f05520749bf3407393e4394f37e3a79bdfd620f0bdafeb080d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tradetide-0.2.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8dbbcac4699882f2eab288b43deae473d962c2bb85e508c71e04edf92a970ed5
MD5 f26fbc560aba378cffd94a6aa1fc50e9
BLAKE2b-256 439c244f0eac7ac11cb3f0d5cf4ceb44100f775886efa46b737194862520e609

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.5-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e66eeb6a1dff08f4226cd6fe38a5908954cc15a513d40a80c2fa078d53de2f04
MD5 86e6688009fae4ee6e24a46bff3574ff
BLAKE2b-256 7928c94d42304c5fb8b6218bd2655ce8737ebeb8350d9382d98bd0896dce20f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.5-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b938c53b49eb88457bbba12697da6377d399924f4b1423adc70e26e04bf0f852
MD5 920eabe709d0c1e4cc296659f0fda60a
BLAKE2b-256 1680138c154b02e69bceb599d0f2299597705dbb60c1101c8fe47f3dffe3da7e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tradetide-0.2.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ee25bf59ea3400ce8f621743ff9c00e8ab4fabb6aa70e2f5dc48718dd59aaa05
MD5 699e6152b2e2667ecacb9c1cebc6cb58
BLAKE2b-256 fbddf01fc2dd2905fa5b613986f1ce873fef0af40a2d7a7d8ee6bde2e37e3499

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.5-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a64c7f482f7c5a7b62ed5af9034b48ab40d30c309a051e69a5ed98d98d5d6b0a
MD5 cea07c7be4655c434624b6a9a210e90d
BLAKE2b-256 dbe430aea95a936b0dc99719592b405c61ed65e5b260682aa24a968da1f65fed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.5-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d221b909c7e5d7a6e9b28707765fbcdc828043080bc166469d34efe7a1947346
MD5 f39b7fc5704cd2a3d2ad95fd2460d2fb
BLAKE2b-256 aa670c6585ec0facb2c04cf74c424cb4a61ca1e265c8bb599cee9776c83a6218

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