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

https://github.com/ghalex/zapcli

The quickest way to test and improve your trading strategies
https://github.com/ghalex/zapcli

backtesting trading trading-strategies

Last synced: about 1 month ago
JSON representation

The quickest way to test and improve your trading strategies

Awesome Lists containing this project

README

          







ZapCli


The quickest way to write trading automations!



ZapCli is an open-source trading engine. That main focus is to simplify the process of writing trading automations.









GitHub





## ZapCLI

- 💡 Intuitive
- 🔌 Extensible
- 🦾 Scalable
- 📦 Extremely easy to use

## Documentation

To learn more about ZapCLI read the documentation [here](https://zapcli.com/) or [watch a video](https://www.youtube.com/watch?v=4-dnBD4YWwU)

## Get Started

```shell
npm i @zapcli/cli
zapcli create MyProject
zapcli backtest ./src/hello.zp
```

## Simple example

Buy one share of AAPL if price over EMA 30
```javascript
const assets = ["AAPL"]
const window = 30
const settings = {}

function run() {
const AAPL = this.asset(assets[0])
const ema = this.ema(AAPL, 30)

if (AAPL.close > ema) {
this.buy(AAPL, 1)
}
}

return { assets, settings, window, run }
```

## Useful links:

- [Getting Started](https://zapcli.com/getting-started/) full guide.
- [View on Github](https://github.com/ghalex/zapcli)

## License

Copyright (c) 2021 [ZapCLI Contributors](https://github.com/ghalex/zapcli/graphs/contributors)
Licensed under the [GNU General License](https://github.com/ghalex/zapcli/blob/HEAD/LICENSE).