Skip to content

Latest commit

 

History

History
268 lines (205 loc) · 8.75 KB

ReadMe.md

File metadata and controls

268 lines (205 loc) · 8.75 KB

Trading Strategies Based on Debut/Community Edition

Switch to Russian

Debut is an ecosystem for developing and launching trading strategies. An analogue of the well-known ZenBot, but with much more flexible possibilities for constructing strategies. All you need to do is come up with and describe the entry points to the market and connect the necessary plugins to work. Everything else is a matter of technology: genetic algorithms - will help you choose the most effective parameters for the strategy (period, stops, and others), ticker selection module - will help you find an asset suitable for the strategy (token or share), on which it will work best.

Debut is based on the architecture of the core and add-on plugins that allow flexible customization of any solutions. The main goal of the entire Debut ecosystem is to simplify the process of creating and launching working trading robots on various exchanges. Currently supported: Tinkoff and Binance.

The project has two starting trading strategies "For example" how to work with the system.

An example of the strategy SpikesG in 200 days. Optimization was carried out in 180 days and 20 days of free work on untrained data. An initial deposit of $500 was used

Strategy statistics were collected based on the plugin statistics, follow the link to learn more about the meaning of some statistics.

Visualization is done using the Report plugin.

Community edition

We believe in the power of the community! That is why we decided to publish the project. The community version is free, but it has some limitations in commercial use (income from trading startups is not commerce), as well as technical differences in testing strategies. Join the community, join developer chat

Enterprise edition

Enterprise version is a ready-made set of tools for "big guys", for those who are engaged in trade services or create strategies professionally. Everything is here! And this is all ready to work for you and to increase the speed of your development.

Functionality Community Enterprise
Strategy Tester
Emulation of OHLC ticks in the tester
Search modle (finder) suitable for the strategy of assets
A collection of plugins from the collection
Basic set of ready-made trading strategies
M1 candlestick data for tick emulation
Synthetic emulation of ticks in the tester (tick size no more than 0.75%)
Risk Management System
Work reports in messenger
Ready solutions to run on VPS/VDS and Cloud servers
Technical Support
System of fast subscriptions to signals by token, for signal sales

We are streaming Enterprise-based deals live on our telegram channel

Find out the price by sending a request to [email protected]

Disclaimer

  • Debut does not guarantee 100% probability of making a profit. Use it at your own peril and risk, relying on your own professionalism.
  • Cryptocurrency is a global experiment, so Debut is also. That is, both can fail at any time. All you need to know

Remember! Starting a bot and trading in general requires careful study of the associated risks and parameters. Incorrect settings can cause serious financial losses.

System requirements

To work, you need NodeJS 14.xx/npm 7.xx (installation instructions)

Project file structure

| - .tokens.json - custom access tokens for working with the exchange
| - schema.json - description of the location of the startup files
| - public/- folder for finder reports (created when finder starts)
| - src/
    | - strategies/
        | - strategy1/- strategies directory
            | - bot.ts - Strategy implementation
            | - meta.ts - Meta data, for launching and for optimization
            | - cfgs.ts - Configurations, for launching in tester and genetic
        | - strategy2/
        ...

Installation and configuration

Obtaining API tokens

Binance instructions

Tinkoff instructions

Installing tokens

To work, you need to create a .tokens.json file, add a token to it for work.

For Tinkoff:

{
    "tinkoff":" YOU_TOKEN"
}

For Binance:

{
    "binance": "YOU_TOKEN",
    "binanceSecret": "YOU_SECRET
}

You can use any field name for the token, for more details see the documentation on token settings section.

Installing npm packages

To install packages, run:

npm install

Build the project

npm run compile

It is recommended to build before each test run

npm run compile && npm run ...

Start testing on historical data

Historical data will be loaded automatically at startup All loaded data is saved in the history folder in the root of the project, then reused.

Before starting, make sure:

  • The cfgs.ts file contains the ticker you need
  • To get history in the.tokens.json filea token may be required
  • The history of a stock or token exists in the requested number of days

To start, run the command:

npm run testing -- --bot=FTBot --ticker=CRVUSDT --days=200 --gap=20

To view the test results in a browser, execute

npm run serve

The results will be available for viewing on http://localhost: 5000/

You can read more about the test run parameters in the documentation

Run genetic optimization

Run the command:

npm run genetic -- --bot=FTBot --ticker=CRVUSDT --days=200 --gap=30 --gen=12 --pop=2000 --log

More details about the launch parameters of the genetics can be found in the documentation

After starting with the --log parameter, the geneticist will output data to the console

Binance history loading from Wed Nov 18 2020 03:00:00 GMT + 0300 (Moscow Standard Time) ...

----- Genetic Start with 17314 candles -----

Generation: 0
Generation time: 5.15 s
Stats: {
   population: 100,
   maximum: 20.8,
   minimum: -1.24,
   mean: 2.5174,
   stdev: 3.8101996325652054
}
Generation: 1
...

Run genetic optimization with tickers/tokens selection

Run the command:

npm run finder -- --bot=FTBot --ticker=CRVUSDT --days=200 --gap=30 --gen=12 --pop=2000 --log

Use the --crypt option to take crypto pairs from the./Crypt.json file (By default, there are actual Binance cross-margin pairs)

By default, a set of stock tickers is used for streaming optimization from the file stocks.json

You can read more about the parameters for launching streaming genetics in the documentation

Starting a strategy

Install any process manager for NodeJS, for example PM2,,,

npm install -g pm2

Execute the launch command, the path to the strategy launch file in the ./Out directory. An example of such a file can be found here /src/bootstrap.ts

pm2 start ./out/bootstrap.js

To customize the token name in the .tokens.json file, you can also pass the launch parameter in the file .tokens.json write a token in this format:{"tinkoffCusotm": "YOU_API_TOKEN"}

pm2 start ./out/bootstrap.js -- --token=tinkoffCustom

For Binance, parameters launch, you can pass 2: --btoken=... --bsecret=... if you need to change the name of tokens.

Further, for operation and monitoring, you can use the command set `pm2``

pm2 list` - a list of active processes

pm2 delete $ pid - stop a process

pm2 log - to view the logs of running processes

and other commands, which can be found in the documentation of the process manager