Go to the config file in src/config/index.js.
src/config/index.js
Here you will find the following variables:
Choose between
Backtesting
Paper testing
Running the bot live
Time frame (if backtest is chosen)
Backtest days (if backtest is chosen)
Retry order (to configure the order execution)
Specify your market foreaxmple 'BTC-ETH' for Bitcoin / Ethereum market.
Choose a premade strategy such as 'BBANDS-RSI' or set in your own custom strategy.
Each folder in src/core/strategy/strategies folder is a strategy you can choose from
src/core/strategy/strategies
To create your own strategy take a look at the template implementation in src/strategy/strategies/TEMPLATE
src/strategy/strategies/TEMPLATE
When you add a new folder with the strategy as index.js then webpack will make that folder available as a module.
index.js
So if we add a folder called MY_NEW_STRATEGY in src/strategy/strategies you can then set the STRATEGY value in the config file to 'MY_NEW_STRATEGY'.
MY_NEW_STRATEGY
src/strategy/strategies
STRATEGY
'MY_NEW_STRATEGY'
Last updated 6 years ago