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 Distribution

tradetide-0.1.3.post0.tar.gz (10.3 MB view details)

Uploaded Source

Built Distribution

TradeTide-0.1.3.post0-py3-none-any.whl (10.6 MB view details)

Uploaded Python 3

File details

Details for the file tradetide-0.1.3.post0.tar.gz.

File metadata

  • Download URL: tradetide-0.1.3.post0.tar.gz
  • Upload date:
  • Size: 10.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for tradetide-0.1.3.post0.tar.gz
Algorithm Hash digest
SHA256 94ccfc154a49d87ff807da693ab4cc06864951d8e7af7c74c0b36058e789fa72
MD5 5eceb340d65cdc21399a2cebbfc15983
BLAKE2b-256 9ce4cc08a3ce42dfa60c0ebfa8f3b6d37e3c8a238f45543eeab18695b4af365f

See more details on using hashes here.

File details

Details for the file TradeTide-0.1.3.post0-py3-none-any.whl.

File metadata

File hashes

Hashes for TradeTide-0.1.3.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e8c1865461fc6813617ac1df2e14714e9875288cddf34c4d34645320cc9a0e6
MD5 b1211582725e99bb8a457ea44b501ad7
BLAKE2b-256 38d3f04fde6253aa692ab761f9d3f91932e13dee9120d68690ea81812dc6a83c

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