Skip to main content

A package for stocks market backtesting.

Project description

Logo

python Documentation Status PyPi PyPi_download

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, indicators, get_market_data
from TradeTide import capital_managment, risk_management

market_data = get_market_data('eur', 'usd', year=2023, time_span='30day', spread=0)

indicator =  indicators.BB(periods=20)

indicator.generate_signal(market_data)

indicator.plot()

backtester = BackTester(market=market_data, strategy=indicator)

risk = risk_management.DirectLossProfit(
    market=market_data,
    stop_loss='10pip',
    take_profit='10pip',
)

capital_managment = capital_managment.LimitedCapital(
    initial_capital=100_000,
    risk_management=risk,
    max_cap_per_trade=10_000,
    limit_of_positions=1,
    micro_lot=1_000
)

backtester.backtest(capital_managment=capital_managment)


backtester.plot(show_price=True)

metrics = backtester.metrics

metrics.print()

example_image


Contact Information

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

PyMieSim 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

tradetide-0.2.1-cp312-cp312-win_amd64.whl (30.8 MB view details)

Uploaded CPython 3.12Windows x86-64

tradetide-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl (13.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

tradetide-0.2.1-cp312-cp312-macosx_14_0_arm64.whl (15.3 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

tradetide-0.2.1-cp311-cp311-win_amd64.whl (24.2 MB view details)

Uploaded CPython 3.11Windows x86-64

tradetide-0.2.1-cp311-cp311-manylinux_2_28_x86_64.whl (12.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

tradetide-0.2.1-cp311-cp311-macosx_14_0_arm64.whl (14.2 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

tradetide-0.2.1-cp310-cp310-win_amd64.whl (17.5 MB view details)

Uploaded CPython 3.10Windows x86-64

tradetide-0.2.1-cp310-cp310-manylinux_2_28_x86_64.whl (11.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

tradetide-0.2.1-cp310-cp310-macosx_14_0_arm64.whl (13.1 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: tradetide-0.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 30.8 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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 51294b3864b384540a5e394f84414afb4dc4babf4fee62d730c924f7c4c50a5e
MD5 2a3ba27c05896f3202982607f8fc96f5
BLAKE2b-256 9af2a4f420d4d13b9f6e7a830ef72713e12fc2e95becfdcd8b8b68f2e3232add

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 735c9d8afbba929efc95bb92b83c812ac5b776361327e49efdf79a5c98993379
MD5 61d60e287186afa5b2e6571c887b7e6d
BLAKE2b-256 f200fd7172767be78c7f767107877083506819966b44133a3ea4bd998e015d59

See more details on using hashes here.

File details

Details for the file tradetide-0.2.1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c18e097531a5cfff4e57a6fe5bd20deb0b5bf7421ed5e9d4b2f361733071f578
MD5 7f5437380096f1191a2c71b68ba99acb
BLAKE2b-256 c42522ef0f8b3511f278aefe2dd5866a4367bf8535ae63c1b451843010b58e02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tradetide-0.2.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 24.2 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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 03b73187b426b2a9754f0466f01b21edc7cac4c1eb4ce1490531997b76ce76b1
MD5 2fc260d504e860a0a4982a22361ee2ce
BLAKE2b-256 42609cd29798370e7af2162199c5fbf5f2fd49f0d934f939097c4894889659a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5933ebfdec01e4c6033b71d318fe140ea0cefc8e0d9a2ed037db56cf6481fd80
MD5 58925f35dd27318fc239dbe11166eb97
BLAKE2b-256 37ae04e47e6195a680e639dc3e1413a08273d6e04e90aec94eaf6e1c55a982f0

See more details on using hashes here.

File details

Details for the file tradetide-0.2.1-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f187872b4d7b1e39c52b0d9e4ea9cb67d025e1bcf372725214382ea9d7ef8192
MD5 ccf1ea806984f87e5cb4db966ee2cb3e
BLAKE2b-256 d700dccc946c2ee668c71fcb085ffb1e7fe0b2936c6e0a96b52fc92a44631af3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tradetide-0.2.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 17.5 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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 081d219a865a81a03d0eeaf025c3720ac51f9d0223c52a49d44737c1a4c68b73
MD5 4d34b0453eaa968a306a831d7b9aef3c
BLAKE2b-256 71a4ce78aa0bb5bb7184ddbefccf8876f428687c74fe86734cbae3dffa158a2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tradetide-0.2.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 65201107003140622fd1019ca0f0efadc277a7f2561fa33854748d293b834b2a
MD5 7c93e084ce536951d57dd086f8d4fe6d
BLAKE2b-256 a5b68211ba53c4644f2c1392f92e972e02333b8d209873ee580c3bc635c06e45

See more details on using hashes here.

File details

Details for the file tradetide-0.2.1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for tradetide-0.2.1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a13691fca9679f0dd8be3442709a1bcfe9cb2f673b14296373855a5a69dac0d2
MD5 609a50876a788759c96fb91815bb72fa
BLAKE2b-256 4bf2ee17da7f2a3b1dd4797b2ac17616592a7794e32d60fd33d3c1c575dd72ef

See more details on using hashes here.

Supported by

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