bbgo icon indicating copy to clipboard operation
bbgo copied to clipboard

Multi-coin strategy

Open arthurwolf opened this issue 2 years ago • 0 comments

I'd like a new strategy to be implemented. I currently implement it in a Javascript module that "wraps" BBGO, but it would be so much neater/better/faster if BBGO implemented it directly.

The strategy is as follows:

  • For a certain number of coins/pairs (can be dozens/hundreds), and a certain period of time:
  • Buy an equal amount of each coin (with BTC or USDT as configured/available)
  • Hold for the period of time. For any given coin, if the price goes below a certain value, execute stoploss (in "live" trading, check time can be long, like an hour, to not over-burden the server)
  • Once done holding for that period of time, sell all of the coins back, measure how much profit we made compared to the initial "treasure".

Is it possible to implement this strategy? It's working very well for me in JS, but it'd be so much more efficient if I could just "normally" use BBGO for it.

Thanks!

arthurwolf avatar Jan 10 '22 15:01 arthurwolf