GithubHelp home page GithubHelp logo

moontrade-algotrading's Introduction

moontrade-algotrading

Binance algotrading & backtesting tools in typescript.

Write your strategy once, and use it in backtesting and auto trading with zero changes. Trade 24 hour carelessly of moon or sun currently above.

First of all, please run this command.

npm install

And then setup the .env file using your binance API key, and Telegram API key for notification (optional)

Features

  • Strategy backtester using historical data from binance.
  • Backtest result in profit chart, lose and win log saved in txt.
  • Auto Trade algoritmic automated binance futures cryptocurrency trading.
  • Strategy obfuscator, all .js file under ./build/strategy/ folder is obfuscated after build command.
  • Hyper parameter optimization to optimize strategy indicator parameters (coming soon).
  • Multi strategy support, trade using more than one strategy in multiple cryptocurrency (coming soon).
  • Monte Carlo simulation to measure worst trading chance in the future (coming soon).
  • Probability Cone to measure live trading peformance and help to decide when to stop the trading (coming soon).

Automated Trading

Automated strategy configuration located in ./index.ts this configuration is using strategy located in ./strategy/MyStrategy.ts, which already contain free 1h timeframe strategy that I have developed. You can also backtest this strategy by following the backtest section below. Please use this at your own risk. I am not responsible for any risk in using this moontrade-algotrading program.

First step, build the js file

npm run build

And then, to start the trading bot.

npm run start

Backtesting Strategy

Backtest configuration located in ./backtest/index.ts this configuration also using strategy located in ./strategy/MyStrategy.ts that is also used in automated trading section above, after running the backtest the backtest result is printed in the console, and result in some saved files that located in ./backtest/result/.

  • ./backtest/result/profit-chart.png containing profit chart and other backtesting result such as number of win/loss, win rate, profit %, maximum drawdown % and maximum gain %.
  • ./backtest/result/lose-log.txt and ./backtest/result/win-log.txt containing win and lose log with some useful trade information such as datetime, price, and indicator info on each win/losing trade.

To start the backtest

npm run backtest

Example ./backtest/result/profit-chart.png backtest result on 1h timeframe strategy in ./strategy/MyStrategy.ts.

moontrade-algotrading's People

Contributors

hantama237 avatar

Stargazers

 avatar Kraz avatar

Watchers

 avatar

Forkers

meelement

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.