{"repo":"pawelkn/btester","free":true,"listed":false,"github":"https://github.com/pawelkn/btester","clone":"git clone https://github.com/pawelkn/btester.git","description":"Python framework optimized for running backtests on multiple asset portfolios","language":"Python","stars":25,"topics":["algorithmics","analysis","backtesting","parallel","portfolio","python","python3","quantitative","trading","multi-asset"],"license":"MIT","category":"trading","readme_excerpt":"btester - Multi-Assets Backtesting Framework btester is a Python framework optimized for running backtests on multiple asset portfolios. It provides tools for backtesting trading strategies based on historical market data. The framework includes classes for managing financial positions, completed trades, and a flexible abstract base class for implementing custom trading strategies. Installation You can install btester using pip. Simply run the following command: Usage 1. Define your custom trading strategy by creating a class that inherits from the Strategy abstract class. 2. Implement the required methods in your custom strategy: init for initialization and next for the core strategy logic. 3. Instantiate the Backtest class with your custom strategy, historical market data, and other parameters. 4. Run the backtest using the run method, which returns a Result object containing backtest results. Example Usage Examples Check out the examples in the examples directory for additional use cases and demonstrations. The examples cover various scenarios and strategies to help you understand the versatility of the btester . - Example 1: Multi-Assets Breakout Strategy - Example 2: Multi-Assets Moving Average Crossover Strategy - Example 3: Single Asset Breakout Strategy - Example 4: Single Asset Moving Average Crossover Strategy - Example 5: Index Short-Long Day Trading Strategy Feel free to explore and adapt these examples to suit your specific needs and trading strategies.","default_branch":null,"files":null,"tree":[],"storefront":"/r/pawelkn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pawelkn/btester/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}