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
On the efficiency of back testing? #865
Comments
Hi!
|
Hi, I've tried to use the following code, which seems to end quickly without running.
Console output: |
@hlevel you have to adapt my code and change the CurrencyPairDTO to the one you want to use |
Hi, I don't understand what you mean? |
@hlevel Is tickers-btc-usdt.tsv full ? can you attach the file ? |
I use the Maven prototype to generate the project, and the data is also generated. The onTickersUpdates method does not print any data |
@hlevel Indeed, there is an issue with my method |
isFluxDone(CurrencyPairDTO) not working #865
I think the issue is fixed now, it will be available in |
OK, in addition, |
@hlevel I think you should use |
@straumat Hi,Share a piece of code for loading back test data and generating files, which can be integrated into the function Get data load file:
Test:
|
Hello, you can add a more detailed method Let me show you an example:
|
@hlevel can you provide the method code? We could indeed add a |
I have no code for this detail. This paragraph is for other projects. |
Hello, may I ask you two questions? :)
1.How to improve the back test efficiency? tickers-xrp-usdt. There are 47073 pieces of data in the TSV file. It is estimated that you can run 8 pieces in one second, which takes a total of 100 minutes. How can you improve the efficiency?
2.BackTesting a policy will load all *.tsv files must be run and completed before the back test is completed. Can you change it to back test only one currency pairs?
My code:
`@Autowired
private TickerFluxMock tickerFluxMock;
/** Dumb strategy. */
@Autowired
private SimpleTa4jStrategy strategy;
@test
@DisplayName("Check gains")
public void gainTest() {
await().forever().until(() -> tickerFluxMock.isFluxDone());
}`
My config:
test\java\resources
.....application.properties
.....tickers-btc-usdt.tsv
.....tickers-xrp-usdt.tsv
.....user-main.tsv
.....user-trade.tsv
The text was updated successfully, but these errors were encountered: