Customize strategies
Last updated
Was this helpful?
Last updated
Was this helpful?
Go to the config file in 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
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
in src/strategy/strategies
you can then set the STRATEGY
value in the config file to 'MY_NEW_STRATEGY'
.