1 Star 0 Fork 0

jim4us/tbfix

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

tbfix

TBFIX - Just another tradebot trying to be profitable (Fork of zenbot, with a lot of improvements)

List of improvements when compared to zenbot:

  1. Zenbot (lib/engine.js) use the callback style, i changed all the code of engine.js to async/await style. It's reducing bugs.
  2. With tbfix you can use multiple strategies in diferent periods with diferent combinations!!! I think, it's a most important feature when i compared to zenbot.
  3. Improves in binance API.
  4. Improves backtest when i try to reduce the most number of bugs.
  5. Add conf.json-dist style.
  6. Add --deposit (the max money for trade).

ALERT !!!

  1. Just use binance. I don't work in others exchanges. I don't know if tbfix work with others exchanges.
  2. Use simulate mode (./tbfix.sh sim ...) and paper mode (./tbfix.sh trade --paper ...)
  3. Use by your risk! It's an experimental project.

GETTING STARTED:

# you need installed mongodb and nodejs
git clone https://github.com/marcelomf/tbfix
npm install
cp conf.json-dist conf.json
vim conf.json # put your key and secret of binance
mkdir BTC-USDT
node genstts.js BTC-USDT > tmp.sh
chmod + x tmp.sh
vim tmp.sh # view the strategies
./tmp.sh # waiting for backtests !!! View the results on BTC-USDT folder
./simsresults.sh BTC-USDT/simsresults_BTC-USDT.txt # grep by you like
./tbfix.sh trade --paper --deposit 500 binance.BTC-USDT --strategies "macd.30m, ehlers_ft.30m" --strategies_action_buy "(macd30m.buyANDehlers_ft30m.buy)" --strategies_action_sell "(macd30m.sellORehlers_ft30 .sell) " # observe with --paper mode
# by your risk, remove --paper and try to be profitable in real market.
MIT License Copyright (c) 2021 Marcelo Fleury Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

zenbot 的改进版 展开 收起
JavaScript 等 6 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jim4us/tbfix.git
git@gitee.com:jim4us/tbfix.git
jim4us
tbfix
tbfix
main

搜索帮助