Comments (5)
it's starting to look like this is a weird re-entry issue.
why is getNext() an async function but await isn't used when it's called?
from zenbot.
a dirty fix to this was to change limit: 100 to limit: 100000000, it now works 100% of the time
it also had a weird side effect: execution of simulations is MASSIVELY faster
why was this limited to 100, was this built to be executed on a raspberry pi originally or something like that? it's a very small limit...
or maybe there's an operational reason why you need to do it by small groups? the reverse/symmetry thing?
from zenbot.
note: setting limit to very high values does not solve the issue, it just makes it much much more difficult to reproduce
also, setting limit to 5 makes it much easier to reproduce
from zenbot.
Replacing most of the getNext() function with simply:
let cur = tradesCollection.find(opts.query).sort(opts.sort);
let results = await cur.toArray();
results.forEach((trade, i) => {eventBus.emit('trade', trade)});
engine.exit(exitSim);
functions great (so far...)
I'm loosing the "reverse" feature, which I don't use/understand. If I understood what it is maybe I could re-implement it, will look into it.
from zenbot.
Down to two lines, works perfectly. Doesn't have the "symmetry" feature, but I don't understand that well enough to implement it. Any explanations welcome:
await tradesCollection.find(opts.query).batchSize(10).sort(opts.sort).forEach((trade, i) => {eventBus.emit('trade', trade)});
engine.exit(exitSim);
from zenbot.
Related Issues (20)
- Coinbase Pro (gdax) maker/taker fees much higher for low volume trading
- Implenting genetic backtesting HOT 1
- Installation failure with ubuntu 20.04 HOT 2
- Error with docker-compose on windows HOT 6
- Binance API is down! unable to call getBalance, retrying in 20s HOT 1
- kraken: order buy XETH-ZEUR and XXRP-ZEUR HOT 1
- if (!match) throw new Error('invalid bucket size spec: ' + spec); HOT 1
- Crash when unable to get the account balance. HOT 3
- Thoughts on backfills based on trade history
- Forex.analytics npm install error Node 16.4.1
- Issue with docker: Error: listen EADDRINUSE: address already in use :::17365 HOT 2
- deviavir/zenbot docker image 10 month old HOT 7
- just posting a fix for anyone that might have the "MongoNetworkTimeoutError" i was having.....
- Feature: AI or brute force to detect the best strategy and parameters HOT 3
- Unexpected token * HOT 4
- Buy_hold is always wrong
- Huge speedup HOT 7
- Zenbot notifications
- Enable web interface before data load,
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zenbot.