Customize strategies
Configuring open bot variables
Go to the config file in
src/config/index.js
.
Here you will find the following variables:

Trading mode
Choose between
Backtesting
Paper testing
Running the bot live
Time measures
Time frame (if backtest is chosen)
Backtest days (if backtest is chosen)
Retry order (to configure the order execution)
Market
Specify your market foreaxmple 'BTC-ETH' for Bitcoin / Ethereum market.
Strategy
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
Creating your own strategy
To create your own strategy take a look at the template implementation in
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.So if we add a folder called
MY_NEW_STRATEGY
insrc/strategy/strategies
you can then set theSTRATEGY
value in the config file to'MY_NEW_STRATEGY'
.
Last updated
Was this helpful?