https://github.com/marfusios/simple-backtester
📈 A simple backtester for OHLC data
https://github.com/marfusios/simple-backtester
backtest backtesting cryptocurrency ohlc reports trading trading-strategies tradingview tradingview-charting-library visualization
Last synced: 8 months ago
JSON representation
📈 A simple backtester for OHLC data
- Host: GitHub
- URL: https://github.com/marfusios/simple-backtester
- Owner: Marfusios
- License: mit
- Created: 2020-04-26T15:32:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-26T16:43:43.000Z (over 1 year ago)
- Last Synced: 2024-01-26T17:45:28.181Z (over 1 year ago)
- Topics: backtest, backtesting, cryptocurrency, ohlc, reports, trading, trading-strategies, tradingview, tradingview-charting-library, visualization
- Language: HTML
- Homepage:
- Size: 4.02 MB
- Stars: 27
- Watchers: 7
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
██████ █████ ██████ ██ ██ ████████ ███████ ███████ ████████ ███████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ███████ ██ █████ ██ █████ ███████ ██ █████ ██████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██ ██ ██████ ██ ██ ██ ███████ ███████ ██ ███████ ██ ██
```# Simple Backtester [](https://travis-ci.com/github/Marfusios/simple-backtester)
A very simple backtesting application for OHLC data (range bars)
### License:
MIT### Features
* cross platform
* chart and text report
* integrated TradingView charting library


### Usage
#### Data as CSV files
* minimal required columns:
* date and time, one of:
* `timestamp_unix` - unix seconds or milliseconds
* `date` or `timestamp` - human readable string parsed via `DateTime.Parse()`
* `mid` or `close` - last price
* additional columns (nice-to-have):
* `bid` - last bid/buy price
* `ask` - last ask/sell price#### Strategy
Write strategy that implements interface `IStrategy`, see example [ones](SimpleBacktester/Strategies)#### Configuration
Configure app via json file, see example [appsettings.json](SimpleBacktester/appsettings.json)---
**Pull Requests are welcome!**
### Available for help
I do consulting, please don't hesitate to contact me if you have a custom solution you would like me to implement ([web](http://mkotas.cz/),
)Donations gratefully accepted.
* [](https://en.cryptobadges.io/donate/1HfxKZhvm68qK3gE8bJAdDBWkcZ2AFs9pw)
* [](https://en.cryptobadges.io/donate/LftdENE8DTbLpV6RZLKLdzYzVU82E6dz4W)
* [](https://en.cryptobadges.io/donate/0xb9637c56b307f24372cdcebd208c0679d4e48a47)