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

https://github.com/dakimura/loopifdone-backtest


https://github.com/dakimura/loopifdone-backtest

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# loopifdone-backtest

時系列データに特化したDBである[marketstore](https://github.com/alpacahq/marketstore/)に保存された各通貨ペアの分足のOHLCVデータを
用いて、[ループイフダン](https://sec.himawari-group.co.jp/loopifdone/about/)アルゴリズムで取引を行った際の資産変化をバックテストする
シミュレーションです。

## Usage
- marketstore DBに、過去の分足データが`{通貨ペア}/1Min/OHLCV`のバケットに
`Epoch(int64),Open(float32),High(float32),Close(float32),Volume(int32)`の形式でデータが保存されていることが前提となっています。
(例)
```
============================= ========== ========== ========== ========== ==========
» \show USDJPY/1Min/OHLCV 2021-02-26
============================= ========== ========== ========== ========== ==========
Epoch Open High Low Close Volume
============================= ========== ========== ========== ========== ==========
2021-02-26 00:00:00 +0000 UTC 106.165 106.168 106.134 106.168 87
2021-02-26 00:01:00 +0000 UTC 106.174 106.202 106.172 106.19 81
2021-02-26 00:02:00 +0000 UTC 106.191 106.199 106.182 106.195 66
2021-02-26 00:03:00 +0000 UTC 106.193 106.203 106.188 106.197 57
2021-02-26 00:04:00 +0000 UTC 106.194 106.217 106.192 106.213 61
2021-02-26 00:05:00 +0000 UTC 106.214 106.214 106.177 106.188 62
2021-02-26 00:06:00 +0000 UTC 106.186 106.202 106.167 106.202 81
...
============================= ========== ========== ========== ========== ==========
```

- marketstoreサーバを準備した上で、下記のようにパラメータを指定してループイフダンのバックテストを実行することができます。

```typescript

```

## 出力されるデータ