ZapCli is an open-source trading engine. That main focus is to simplify the process of writing trading automations.
- 💡 Intuitive
- 🔌 Extensible
- 🦾 Scalable
- 📦 Extremely easy to use
To learn more about ZapCLI read the documentation here or watch a video
npm i @zapcli/cli
zapcli create MyProject
zapcli backtest ./src/hello.zp
Buy one share of AAPL if price over EMA 30
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 }
- Getting Started full guide.
- View on Github
Copyright (c) 2021 ZapCLI Contributors Licensed under the GNU General License.