Skip to content
/ zapcli Public

The quickest way to test and improve your trading strategies

License

Notifications You must be signed in to change notification settings

ghalex/zapcli

Repository files navigation


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 or watch a video

Get Started

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

Simple example

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 }

Useful links:

License

Copyright (c) 2021 ZapCLI Contributors Licensed under the GNU General License.

About

The quickest way to test and improve your trading strategies

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published