A package for stocks market backtesting.
Project description
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()
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 .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tradetide-0.1.1.post0.tar.gz
.
File metadata
- Download URL: tradetide-0.1.1.post0.tar.gz
- Upload date:
- Size: 10.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0061dcbcb05ac0f5b0d7130ac38878f19d2f2b4476bb8074a3312f4334cc5be1 |
|
MD5 | ce063c75741654d55918467bd38c2394 |
|
BLAKE2b-256 | ef9b6e9f1fa23c0588039679191ede2297e978c1f04964602bc5b948bc60969a |
File details
Details for the file TradeTide-0.1.1.post0-py3-none-any.whl
.
File metadata
- Download URL: TradeTide-0.1.1.post0-py3-none-any.whl
- Upload date:
- Size: 10.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2390b9c8d136a0ec6a751e246085f2570b6c9e65b4beee27efd549b3a9ba4977 |
|
MD5 | 38f49300dcfb224f9b8bbf2d9c8903c4 |
|
BLAKE2b-256 | 8afc30c020a3f159d76dabf3a70c2aa2161033f7e2b4b338ce8e257e9193ea57 |