bbgo icon indicating copy to clipboard operation
bbgo copied to clipboard

Holding strategy

Open arthurwolf opened this issue 2 years ago • 3 comments

I'm looking for a strategy that does the following:

  • For pair XXX-YYY:
  • At the beginning, buy as much XXX as possible using the YYY available
  • Wait, do nothing, except checking prices compared to (configurable) stop-loss value. If price does below stop-loss for more than W time, sell all XXX for YYY back to prevent further loss.
  • At the end, (if not done before because of stop-loss), sell all XXX for YYY.

This would be extremely helpful as a "baseline" strategy to compare other strategies to.

Is this currently possible using one of the strategies, maybe by using a specific set of configurations? If not, I'd be interested in paying for implementation and documentation.

Thanks!

arthurwolf avatar Jan 10 '22 15:01 arthurwolf

@arthurwolf Yes, I designed a smartStop configuration, which will be integrated into different strategies later.

c9s avatar Mar 25 '22 04:03 c9s

(really cool!) is this documented? how could I test/use this?

arthurwolf avatar Mar 25 '22 09:03 arthurwolf

I will add the doc after the integration is done~

Arthur Wolf @.***>於 2022年3月25日 週五,17:52寫道:

(really cool!) is this documented? how could I test/use this?

— Reply to this email directly, view it on GitHub https://github.com/c9s/bbgo/issues/425#issuecomment-1078842340, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAMNTWMND5FSRN254QA4O3VBWEGZANCNFSM5LT4KRBA . You are receiving this because you commented.Message ID: @.***>

c9s avatar Mar 25 '22 10:03 c9s