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

How can I solve the issue of web page crashes due to too many backtest runs? #172

Open
g001613001 opened this issue Apr 27, 2024 · 7 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@g001613001
Copy link

Currently, I can only manage to control the number of tests to about 3,000 sets per session. If it exceeds 3,000 sets, the web page tends to crash. What are some good solutions to prevent the web page from crashing and allow more than 3,000 backtest runs?

At the moment, I can only manage by refreshing the web page after every 3,000 test runs to avoid crashes, and then continue with further testing.

@akumidv
Copy link
Owner

akumidv commented Apr 28, 2024

The problem in memory limits, this will be improved in new refactored version. But I'm working on it more than 3 month and probably it will demand the same time.

@akumidv akumidv added bug Something isn't working duplicate This issue or pull request already exists labels Apr 28, 2024
@g001613001
Copy link
Author

The problem in memory limits, this will be improved in new refactored version. But I'm working on it more than 3 month and probably it will demand the same time.

Great! I look forward to your solution to the memory management issue.

@VincenzoUrso
Copy link

try different browsers, every one reacts in a different way. edge is actually the one that (almost) never crash for me

@g001613001
Copy link
Author

try different browsers, every one reacts in a different way. edge is actually the one that (almost) never crash for me

I will tiy edge, thank you!

@pegaltier
Copy link
Contributor

The problem in memory limits, this will be improved in new refactored version. But I'm working on it more than 3 month and probably it will demand the same time.

@akumidv Can I ask you which Web framework are you using for building the new version? Angular, React, Vue? Other? thanks!

@g001613001
Copy link
Author

I've tried using Edge on both Mac and Windows, and I still experience webpage crashes.

try different browsers, every one reacts in a different way. edge is actually the one that (almost) never crash for me

@g001613001
Copy link
Author

The problem in memory limits, this will be improved in new refactored version. But I'm working on it more than 3 month and probably it will demand the same time.

I've discovered something that might help solve the issue of web page crashes. I suspect it's due to not releasing the data accumulated during backtests, which causes the crashes. The data I'm referring to is what eventually gets downloaded as a CSV file. I noticed something interesting during my tests: if the data provided by TradingView during a backtest is identical across runs, it won't be stored or appear in the final CSV file. Interestingly, without this stored data, I was able to exceed the 3,000 test limit I mentioned before, even reaching over 10,000 tests without issues.

So, I was thinking, maybe you could implement a feature where we can input a parameter for the backtest to run between 1,000 and 3,000 tests. After reaching the specified number, it would automatically download the stored data as a CSV file and clear this data to free up memory, then resume the backtest from where it left off.

This approach might resolve the issue of web page crashes.

This finding is based on my experience with the latest plugin version, and I hope it can help you address the web page crash issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants