Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better estimation on candle import #436

Closed

Conversation

kakulukia
Copy link
Contributor

Lets say you already have a year worth of data, but forgot about the warmup_candles. Or you want to test larger time frames and need even more candles now. This will screw up the estimated time for the import.

This change allows an additional completed parameter for the Progressbar and uses that while importing candles. This way the estimated_remaining_seconds will take into account that most of the work might be done already.

…warmup_candles. Or you want to test larger time frames and need even more candles now. This will screw up the estimated time for the import.

This change allows an additional completed paramter for the Progressbar and uses that while importing candles. This way the estimated_remaining_seconds will take into account that most of the work might be done already.
@saleh-mir
Copy link
Member

This idea is good, but it disrupts the remaining time feature in some cases. Currently, the remaining time adjusts based on execution duration. With this PR, it returns zero when the candle exists, even if execution is fast and there is still some remaining time like 6 or 7 seconds. After testing, it keeps displaying "please wait," indicating zero time for those cases.

@saleh-mir saleh-mir closed this Apr 14, 2024
@kakulukia
Copy link
Contributor Author

We could say it needs a few milliseconds to check each candle. Didn't check the algo in much detail, I guess it only records time, if there is a request to an exchange. Let me have another look.

@saleh-mir
Copy link
Member

Please don't spend too much time on it. Your solution is clever, but I don't think the issue is actually bothering anyone.

@kakulukia
Copy link
Contributor Author

It was bothering me as I was importing additional candles due to the warmup I did not have enough. I guess I'm not the only one.
But yes, this is s but lower on my to-do list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants