TradeTide


NameTradeTide JSON
Version 0.2.4 PyPI version JSON
download
home_pageNone
SummaryA package for stocks market backtesting.
upload_time2025-09-04 13:46:30
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2020 Martin de Sivry Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords backtesting stocks market
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            |logo|

.. list-table::
   :widths: 10 25 25 25
   :header-rows: 0

   * - Meta
     - |python|
     - |docs|
     -
   * - Testing
     - |ci/cd|
     - |coverage|
     - |colab|
   * - PyPI
     - |PyPI|
     - |PyPI_download|
     -
   * - Anaconda
     - |anaconda|
     - |anaconda_download|
     - |anaconda_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

.. code:: python

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

----


Coding example
**************

.. code-block:: python

   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()


|example|

----


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 <https://github.com/MartinPdS>`_  .

Email:`martin.poinsinet-de-sivry@polymtl.ca <mailto:martin.poinsinet.de.sivry@gmail.com?subject=TradeTide>`_ .

.. |logo| image:: https://github.com/MartinPdeS/TradeTide/raw/master/docs/images/logo.png
    :alt: TradeTide logo
.. |python| image:: https://img.shields.io/pypi/pyversions/tradetide.svg
    :alt: Python
    :target: https://www.python.org/
.. |colab| image:: https://colab.research.google.com/assets/colab-badge.svg
    :alt: Google Colab
    :target: https://colab.research.google.com/github/MartinPdeS/TradeTide/blob/master/notebook.ipynb
.. |docs| image:: https://github.com/martinpdes/tradetide/actions/workflows/deploy_documentation.yml/badge.svg
    :target: https://martinpdes.github.io/TradeTide/
    :alt: Documentation Status
.. |PyPI| image:: https://badge.fury.io/py/TradeTide.svg
    :alt: PyPI version
    :target: https://badge.fury.io/py/TradeTide
.. |PyPI_download| image:: https://img.shields.io/pypi/dm/TradeTide?style=plastic&label=PyPI%20downloads&labelColor=hex&color=hex
    :alt: PyPI downloads
    :target: https://pypistats.org/packages/tradetide
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/TradeTide/python-coverage-comment-action-data/badge.svg
    :alt: Unittest coverage
    :target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/TradeTide/blob/python-coverage-comment-action-data/htmlcov/index.html
.. |ci/cd| image:: https://github.com/martinpdes/tradetide/actions/workflows/deploy_coverage.yml/badge.svg
    :alt: Unittest Status
.. |example| image:: https://github.com/MartinPdeS/TradeTide/raw/master/docs/images/image_example.png
    :width: 800
    :alt: Qsca vs diameter
.. |anaconda| image:: https://anaconda.org/martinpdes/tradetide/badges/version.svg
    :alt: Anaconda version
    :target: https://anaconda.org/martinpdes/tradetide
.. |anaconda_download| image:: https://anaconda.org/martinpdes/tradetide/badges/downloads.svg
    :alt: Anaconda downloads
    :target: https://anaconda.org/martinpdes/tradetide
.. |anaconda_date| image:: https://anaconda.org/martinpdes/tradetide/badges/latest_release_relative_date.svg
    :alt: Latest release date
    :target: https://anaconda.org/martinpdes/tradetide
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "TradeTide",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "backtesting, stocks, market",
    "author": null,
    "author_email": "Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>",
    "download_url": null,
    "platform": null,
    "description": "|logo|\n\n.. list-table::\n   :widths: 10 25 25 25\n   :header-rows: 0\n\n   * - Meta\n     - |python|\n     - |docs|\n     -\n   * - Testing\n     - |ci/cd|\n     - |coverage|\n     - |colab|\n   * - PyPI\n     - |PyPI|\n     - |PyPI_download|\n     -\n   * - Anaconda\n     - |anaconda|\n     - |anaconda_download|\n     - |anaconda_date|\n\nTradeTide\n=========\n\nTradeTide 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.\n\n\nTesting\n*******\n\nTo test localy (with cloning the GitHub repository) you'll need to install the dependencies and run the coverage command as\n\n.. code:: python\n\n   >>> git clone https://github.com/MartinPdeS/TradeTide.git\n   >>> cd TradeTide\n   >>> pip install -r requirements/requirements.txt\n   >>> pytest\n\n----\n\n\nCoding example\n**************\n\n.. code-block:: python\n\n   from TradeTide import Backtester, Strategy, Market, Currency, days, hours, minutes\n   from TradeTide.indicators import BollingerBands\n   from TradeTide import capital_management, exit_strategy\n\n   market = Market()\n\n   market.load_from_database(\n      currency_0=Currency.CAD,\n      currency_1=Currency.USD,\n      time_span=100 * days,\n   )\n\n   indicator = BollingerBands(\n      window=3 * minutes,\n      multiplier=2.0\n   )\n\n   indicator.run(market)\n\n   strategy = Strategy()\n\n   strategy.add_indicator(indicator)\n\n   exit_strategy = exit_strategy.Static(\n      stop_loss=4,\n      take_profit=4,\n      save_price_data=True\n   )\n\n   capital_management = capital_management.FixedLot(\n      capital=1_000_000,\n      fixed_lot_size=10_000,\n      max_capital_at_risk=100_000,\n      max_concurrent_positions=100,\n   )\n\n   backtester = Backtester(\n      strategy=strategy,\n      exit_strategy=exit_strategy,\n      market=market,\n      capital_management=capital_management,\n   )\n\n   backtester.run()\n\n   backtester.print_performance()\n\n\n|example|\n\n----\n\n\nContact Information\n************************\nAs of 2025, the project is still under development. If you want to collaborate, it would be a pleasure! I encourage you to contact me.\n\nTradeTide was written by `Martin Poinsinet de Sivry-Houle <https://github.com/MartinPdS>`_  .\n\nEmail:`martin.poinsinet-de-sivry@polymtl.ca <mailto:martin.poinsinet.de.sivry@gmail.com?subject=TradeTide>`_ .\n\n.. |logo| image:: https://github.com/MartinPdeS/TradeTide/raw/master/docs/images/logo.png\n    :alt: TradeTide logo\n.. |python| image:: https://img.shields.io/pypi/pyversions/tradetide.svg\n    :alt: Python\n    :target: https://www.python.org/\n.. |colab| image:: https://colab.research.google.com/assets/colab-badge.svg\n    :alt: Google Colab\n    :target: https://colab.research.google.com/github/MartinPdeS/TradeTide/blob/master/notebook.ipynb\n.. |docs| image:: https://github.com/martinpdes/tradetide/actions/workflows/deploy_documentation.yml/badge.svg\n    :target: https://martinpdes.github.io/TradeTide/\n    :alt: Documentation Status\n.. |PyPI| image:: https://badge.fury.io/py/TradeTide.svg\n    :alt: PyPI version\n    :target: https://badge.fury.io/py/TradeTide\n.. |PyPI_download| image:: https://img.shields.io/pypi/dm/TradeTide?style=plastic&label=PyPI%20downloads&labelColor=hex&color=hex\n    :alt: PyPI downloads\n    :target: https://pypistats.org/packages/tradetide\n.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/TradeTide/python-coverage-comment-action-data/badge.svg\n    :alt: Unittest coverage\n    :target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/TradeTide/blob/python-coverage-comment-action-data/htmlcov/index.html\n.. |ci/cd| image:: https://github.com/martinpdes/tradetide/actions/workflows/deploy_coverage.yml/badge.svg\n    :alt: Unittest Status\n.. |example| image:: https://github.com/MartinPdeS/TradeTide/raw/master/docs/images/image_example.png\n    :width: 800\n    :alt: Qsca vs diameter\n.. |anaconda| image:: https://anaconda.org/martinpdes/tradetide/badges/version.svg\n    :alt: Anaconda version\n    :target: https://anaconda.org/martinpdes/tradetide\n.. |anaconda_download| image:: https://anaconda.org/martinpdes/tradetide/badges/downloads.svg\n    :alt: Anaconda downloads\n    :target: https://anaconda.org/martinpdes/tradetide\n.. |anaconda_date| image:: https://anaconda.org/martinpdes/tradetide/badges/latest_release_relative_date.svg\n    :alt: Latest release date\n    :target: https://anaconda.org/martinpdes/tradetide",
    "bugtrack_url": null,
    "license": "MIT License\n         \n         Copyright (c) 2020 Martin de Sivry\n         \n         Permission is hereby granted, free of charge, to any person obtaining a copy\n         of this software and associated documentation files (the \"Software\"), to deal\n         in the Software without restriction, including without limitation the rights\n         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n         copies of the Software, and to permit persons to whom the Software is\n         furnished to do so, subject to the following conditions:\n         \n         The above copyright notice and this permission notice shall be included in all\n         copies or substantial portions of the Software.\n         \n         THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n         SOFTWARE.\n         ",
    "summary": "A package for stocks market backtesting.",
    "version": "0.2.4",
    "project_urls": null,
    "split_keywords": [
        "backtesting",
        " stocks",
        " market"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "05bc7f586a88554b432023deb2f1c258d1fac42322ce8ac426b5dd5289d1cefa",
                "md5": "c9df489eb3e158caac4d8a5f843d64b8",
                "sha256": "ee62b22a9f01642c850f2e574608ae016323735ea262590b5a50fa848933f83e"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp310-cp310-macosx_15_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "c9df489eb3e158caac4d8a5f843d64b8",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 13203266,
            "upload_time": "2025-09-04T13:46:30",
            "upload_time_iso_8601": "2025-09-04T13:46:30.258379Z",
            "url": "https://files.pythonhosted.org/packages/05/bc/7f586a88554b432023deb2f1c258d1fac42322ce8ac426b5dd5289d1cefa/tradetide-0.2.4-cp310-cp310-macosx_15_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2faa31d4153ca9f78f128ada8fbac6c35a8b0877cc594ae156691d8011b10a25",
                "md5": "68d90eab167d70df92b03310a4d87251",
                "sha256": "431ad72c3e034184330a58cc6c9b17c9deb87074b2176fb6e2128d4eb083f8f2"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp310-cp310-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "68d90eab167d70df92b03310a4d87251",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 12034346,
            "upload_time": "2025-09-04T13:46:36",
            "upload_time_iso_8601": "2025-09-04T13:46:36.450263Z",
            "url": "https://files.pythonhosted.org/packages/2f/aa/31d4153ca9f78f128ada8fbac6c35a8b0877cc594ae156691d8011b10a25/tradetide-0.2.4-cp310-cp310-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "85bbd7f4a98397a7f19428849e04cf652eda67d7a5423b3a73d18f7c4c4db422",
                "md5": "763523c653ef8a07ec258dc6bd87d5a0",
                "sha256": "52c5d6684267b520aeeb508286dc2b3dd3e8e9d9b5fbf3df0354a714f39554cc"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "763523c653ef8a07ec258dc6bd87d5a0",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 17672835,
            "upload_time": "2025-09-04T13:46:42",
            "upload_time_iso_8601": "2025-09-04T13:46:42.364038Z",
            "url": "https://files.pythonhosted.org/packages/85/bb/d7f4a98397a7f19428849e04cf652eda67d7a5423b3a73d18f7c4c4db422/tradetide-0.2.4-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e9fb92bc80a4066e01cfc3afaf4b34fb51770e0cf6a2f56970a561f1174184e4",
                "md5": "6ebac79dff5f85067f0362e0113b4fa7",
                "sha256": "5ce4e4c0462b339c7c75d9990d0a65380ef24cdf335a2575378a6c473b518a3e"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp311-cp311-macosx_15_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "6ebac79dff5f85067f0362e0113b4fa7",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 14450116,
            "upload_time": "2025-09-04T13:46:32",
            "upload_time_iso_8601": "2025-09-04T13:46:32.384859Z",
            "url": "https://files.pythonhosted.org/packages/e9/fb/92bc80a4066e01cfc3afaf4b34fb51770e0cf6a2f56970a561f1174184e4/tradetide-0.2.4-cp311-cp311-macosx_15_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c6a2acd5f89d6b0f12a61c2b6532f038cf79e4fbbbdb14e6766755233dc8b74a",
                "md5": "a75a9f33e7fcb39934409465978b262c",
                "sha256": "2e682ad2500c29137d95126a4037ca829de69e602ed65b0a955facb8d0885209"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp311-cp311-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "a75a9f33e7fcb39934409465978b262c",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 13126690,
            "upload_time": "2025-09-04T13:46:38",
            "upload_time_iso_8601": "2025-09-04T13:46:38.361624Z",
            "url": "https://files.pythonhosted.org/packages/c6/a2/acd5f89d6b0f12a61c2b6532f038cf79e4fbbbdb14e6766755233dc8b74a/tradetide-0.2.4-cp311-cp311-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c93428cbeb0ba558fa26743b73354dda04e9e4d3ceae6c4ab9341263d8659355",
                "md5": "281fad54cfaa2b489a431440826eaa4d",
                "sha256": "9c369af6f06c65388aeff1cb13a7307cdb777be437ff593f2974879a53fc368a"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "281fad54cfaa2b489a431440826eaa4d",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.10",
            "size": 24466621,
            "upload_time": "2025-09-04T13:46:45",
            "upload_time_iso_8601": "2025-09-04T13:46:45.502451Z",
            "url": "https://files.pythonhosted.org/packages/c9/34/28cbeb0ba558fa26743b73354dda04e9e4d3ceae6c4ab9341263d8659355/tradetide-0.2.4-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ecabbb093ddf87e5e51f45dd60493cbb76e1d207cd87ba21a269910f7adeb313",
                "md5": "355e9b39fde6a66ed63defc71356231b",
                "sha256": "e89563b92b6af5a854961c856b748e01f9ca37936ff9fdb472e9c660c2e94456"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp312-cp312-macosx_15_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "355e9b39fde6a66ed63defc71356231b",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 15700454,
            "upload_time": "2025-09-04T13:46:34",
            "upload_time_iso_8601": "2025-09-04T13:46:34.357569Z",
            "url": "https://files.pythonhosted.org/packages/ec/ab/bb093ddf87e5e51f45dd60493cbb76e1d207cd87ba21a269910f7adeb313/tradetide-0.2.4-cp312-cp312-macosx_15_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f8f3be15cb63c46baf0acbdd45825d22bed9cba20e90edfc485915bd1d9733db",
                "md5": "1135d9aeb80659834562e1961ad358c3",
                "sha256": "90d50028794781a96bdce9d4b03e8d17df50c84b1793f935fdb13d57526f4d0c"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp312-cp312-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "1135d9aeb80659834562e1961ad358c3",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 14218530,
            "upload_time": "2025-09-04T13:46:40",
            "upload_time_iso_8601": "2025-09-04T13:46:40.393518Z",
            "url": "https://files.pythonhosted.org/packages/f8/f3/be15cb63c46baf0acbdd45825d22bed9cba20e90edfc485915bd1d9733db/tradetide-0.2.4-cp312-cp312-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3ef06a842641d8c0e896422a16da8feb1b398deca0aed4327eebe7dbf56cc5f2",
                "md5": "19d53b47da85085705068acceb1d8abf",
                "sha256": "37af427d49440230fdde74f184435c977a17ae9a405feec3e7e1c2a7d4ee4451"
            },
            "downloads": -1,
            "filename": "tradetide-0.2.4-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "19d53b47da85085705068acceb1d8abf",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.10",
            "size": 31267129,
            "upload_time": "2025-09-04T13:46:48",
            "upload_time_iso_8601": "2025-09-04T13:46:48.211205Z",
            "url": "https://files.pythonhosted.org/packages/3e/f0/6a842641d8c0e896422a16da8feb1b398deca0aed4327eebe7dbf56cc5f2/tradetide-0.2.4-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-04 13:46:30",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "tradetide"
}
        
Elapsed time: 1.79379s