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

Deep Backtesting - History Server (Premium only) #204

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nick-kilian
Copy link

Adds Deep Backtest support (only available on Premium plans) via a new HistorySession. Deep Backtesting works with a different server (history-data) and session and doesn't use any chart information.

Tradingview Docs: https://www.tradingview.com/support/solutions/43000666265-how-does-deep-backtesting-work/

  • updateReport could be refactored to work across both a study and historySession.

Test results:

[08/06 09:09:23]  11. DeepBacktest
[08/06 09:09:23]  >  Creating logged history client
[08/06 09:09:24]  >  Loading built-in strategy....
[08/06 09:09:24]  >  Running deep backtest....
[08/06 09:09:24]  >  Strategy loaded !
[08/06 09:09:28]  >  Deep backtest traded from 2010-02-01T17:50:00.000Z
[08/06 09:09:28]  >  Closing client...
[08/06 09:09:28]  >  Client closed
[08/06 09:09:28]  ==== ALL TESTS DONE ====

Resolves #118

@frizLabz-FFriZz
Copy link

Works for me

@0x090909
Copy link

0x090909 commented Aug 27, 2023

@nick-kilian Is it possible to fetch indicator values from DeepTesting? I have to use my engine to do the backtesting

@danielgroen
Copy link

would be nice!

@danielgroen
Copy link

@nick-kilian can you maybe rebase this PR so @Mathieu2301 can easily merge this?

i very much like to have this included!!

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.

Deep Backtesting
4 participants