bbgo
bbgo copied to clipboard
Holding strategy
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 Yes, I designed a smartStop configuration, which will be integrated into different strategies later.
(really cool!) is this documented? how could I test/use this?
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: @.***>