Skip to content

Deep Backtesting - History Server (Premium only)#204

Open
nick-kilian wants to merge 3 commits intoMathieu2301:mainfrom
nick-kilian:deep-backtesting
Open

Deep Backtesting - History Server (Premium only)#204
nick-kilian wants to merge 3 commits intoMathieu2301:mainfrom
nick-kilian:deep-backtesting

Conversation

@nick-kilian
Copy link
Copy Markdown

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
Copy Markdown

Works for me

@0x090909
Copy link
Copy Markdown

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
Copy Markdown

would be nice!

@danielgroen
Copy link
Copy Markdown

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

i very much like to have this included!!

Copy link
Copy Markdown

@codeCraft-Ritik codeCraft-Ritik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid enhancement — integrating Deep Backtesting with a separate session is well designed.
Good to see it working smoothly with the history-data server.

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

6 participants