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

https://github.com/benyblack/ex_backtest

A library for back-testing strategies in trading.
https://github.com/benyblack/ex_backtest

backtesting backtesting-trading-strategies elixir trading

Last synced: 4 months ago
JSON representation

A library for back-testing strategies in trading.

Awesome Lists containing this project

README

          

# ExBacktest

For running the examples:
```
> iex -S mix

ExBacktest.Example.SmaCrossover.run()
```

It will open a browser and will show something like this:

![image](https://user-images.githubusercontent.com/772474/62280598-8c8bd800-b44c-11e9-89da-97f87538c778.png)

Before running the examples you need to have some OHLCV files. There is a repo for Binance data here (https://github.com/benyblack/BinanceDataset/releases/)

For chart I am using Bokeh in python. If you check the python file in priv folder it needs some libraries in Pyhton which have to be installed via PIP.
```
pip install numpy bokeh
```

Also, I use [talib](https://github.com/benyblack/talib) as my indicator library in Elixir.

The docs can be found at [https://hexdocs.pm/ex_backtest](https://hexdocs.pm/ex_backtest).