An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

```
██████  █████  ██████ ██  ██ ████████ ███████ ███████ ████████ ███████ ██████ 
██   ██ ██   ██ ██      ██  ██     ██    ██      ██         ██    ██      ██   ██
██████  ███████ ██  █████   ██  █████  ███████  ██  █████  ██████ 
██   ██ ██   ██ ██  ██  ██  ██  ██          ██  ██  ██     ██   ██
██████  ██  ██  ██████ ██  ██  ██  ███████ ███████  ██  ███████ ██  ██
```

# Simple Backtester [![Build Status](https://travis-ci.com/Marfusios/simple-backtester.svg?branch=master)](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

![TradingView report](docs/report_tv.png)
![Chart report](docs/report_chart.png)
![Text report](docs/report_text.png)
![Artefacts](docs/artefacts.png)

### 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.
* [![Donate with Bitcoin](https://en.cryptobadges.io/badge/small/1HfxKZhvm68qK3gE8bJAdDBWkcZ2AFs9pw)](https://en.cryptobadges.io/donate/1HfxKZhvm68qK3gE8bJAdDBWkcZ2AFs9pw)
* [![Donate with Litecoin](https://en.cryptobadges.io/badge/small/LftdENE8DTbLpV6RZLKLdzYzVU82E6dz4W)](https://en.cryptobadges.io/donate/LftdENE8DTbLpV6RZLKLdzYzVU82E6dz4W)
* [![Donate with Ethereum](https://en.cryptobadges.io/badge/small/0xb9637c56b307f24372cdcebd208c0679d4e48a47)](https://en.cryptobadges.io/donate/0xb9637c56b307f24372cdcebd208c0679d4e48a47)