Skip to content

Repository files navigation

中文

Banbot Strategies

This repo contains free strategies for banbot.

Directory Description
ma Example strategies & various examples
idea Classic Strategy
grid Grid trading strategies
adv Examples of advanced usage of banbot
rpc_ai Interaction with Python via gRPC, supporting ML/DL models

Disclaimer

These strategies are for educational purposes only. Do not risk money which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING RESULTS.

Always start by testing strategies with a backtesting then run the trading bot in Dry-run. Do not engage money before you understand how it works and what profit/loss you should expect.

We strongly recommend you to read the document and understand the mechanism of this bot.

Some only work in specific market conditions, while others are more "general purpose" strategies. It's noteworthy that depending on the exchange and Pairs used, further optimization can bring better results.

Please keep in mind, results will heavily depend on the symbols, timeframe and timerange used to backtest - so please run your own backtests that mirror your usecase, to evaluate each strategy for yourself.

Share your own strategies

We welcome contributions of classic algorithmic trading strategies so that more people can quickly get started with banbot.

Third-party data regression proof pack

For the Binance long/short example and the cross-repo framework seam, use the canonical hermetic proof-pack entrypoint:

bash scripts/verify_third_party_regression.sh

The script runs four fail-fast layers in order:

  1. banstrats example registration, fetch normalization, strategy, and DataHub proof.
  2. banbot framework bootstrap, history ensure, activation, and startup ordering proof.
  3. banbot legacy OHLCV compatibility and source-scoped cache/window proof.
  4. A broader hermetic sweep across the targeted banbot framework packages.

Each layer prints the exact command before running it, then stops at the first failure so future agents can immediately localize whether the breakage is in the example package, framework startup/activation, or legacy compatibility/cache semantics.

FAQ

What is banbot?

banbot is a free and open source crypto trading bot written in golang. It aims to provide a simple, easy-to-use, high-performance quantitative backtesting experience. It contains web ui, backtesting, plotting and money management tools as well as strategy optimization.

How to test a strategy?

You can directly use this code repository as your project, or copy the Go source code files of the strategy into your strategy project and register them.

Then, you can execute the go build -o bot command to compile the banbot and the strategy into a single executable file.

  • Then configure the yml file, and execute bot backtest to perform the backtest.
  • You can also directly run this file, and then access the WebUI from http://localhost:8000.
  • Or check the command documentation to explore more usage scenarios.

About

Classic trading strategy based on banbot

Resources

Stars

107 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages