This repository has been archived by the owner on Feb 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
normalized backtest market stream behaviour over CP & standalone
- Loading branch information
Showing
6 changed files
with
35 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65f372d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interestingly, running a side by side backtest of the same custom method on development branch vs main branch gives a very different outcome - development: 32005% profit over 5 years vs main: 51852%.
I am now re-testing the custom method with different thresholds etc to see if there is a new "sweet spot".
Is there any obvious reason as to why the development branch would be so different?
65f372d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woa that is an insanely big difference, what candleSize did you use & did you use a method that has a TAlib indicator?
Yes there was a race condition bug in the stable version: the method would broadcast advices later (after the next tick), by this time the tradingSimulator would act on a different candle. This was only a problem with backtesting.
65f372d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah interesting.
Candlesize = 60.
Now interestingly, I improved performance to 60k+% by changing a couple of thresholds. Something that actually made perfect sense because I thought they were too low as to be logical on standard, so now I know you've fixed something I have more confidence!
65f372d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say the backtester still needs a lot more testing and verification, there are a lot of moving pieces involved in these simulations. I hope that the UI will lower the bar for people to actually run backtests and study the results.
See #489 for more details.