-
Notifications
You must be signed in to change notification settings - Fork 2k
Why are periods stored in the database? #2532
Comments
My guess would be that they are being collected for the simulation / backtesting. |
There is no code in the repo that ever reads them, though. All |
If this is true, maybe we can add an option in conf.js to configure if we want to store past data during trading or not. |
@mmdiego As far as storing candle periods goes, I think that should be removed entirely, as it's not used anywhere. As far as storing trades goes, which Zenbot bases all its operations on, I'd say it would be good to remove trades that are further in the past than you will ever need pre-roll for. Now this entirely depends on your indicators and the timeframe interval(s) at which you operate. If you're trading on |
System information
f91355a
unstable
zenbot trade binance.ETH-USDT --strategy my-strategy
Describe the problem
trade.js
callsgetPeriods
to access theperiods
Mongo collection. It saves new periods there as it collects new trades.Then that's it. The periods collection is never used again.
Why is zenbot storing periods, never to be used again?
Source code / Error logs
commands/trade.js:465
callsgetPeriods
commands/trade.js:737
callssavePeriod
The text was updated successfully, but these errors were encountered: