About data storage

Author: The dead came, Created: 2017-01-28 00:23:56, Updated: 2019-08-01 09:22:19

Hello everyone, I have a question for you.

I've been going through a lot of articles (including posts) in Inventors Quantify and found very little mention of data storage. That is, when I'm done, and I'm running it on my own server (rather than retesting), then: 1. Is the data I get newly collected by me? (my own answer, should be); If I collect it myself, is it stored on the server? 3. Do I personally need to consider how much hard disk space my data takes up? 4. Do I need to install a database myself?

Thank you.


More

Zero1. Is the data I get newly collected by me? The data you get is captured in real-time from the API provided by the exchange, which is equivalent to the data you collect yourself. If I collect it myself, is it stored on the server? All the transaction data is stored in memory, and the log information is permanently stored on the hard drive. 3. Do I personally need to consider how much hard disk space my data takes up? Log information takes up hard disk space. If the hard disk space is not too large and the logs are found to take up too much space, the LogReset function can be used to clean them regularly. 4. Do I need to install a database myself? No, the administrator has built-in sqlite database

ZeroHi, if you're using a JavaScript policy, the policy can't read any files locally, and you can't manipulate the database, and if you're using Python to call a SQLite module to read a local database, the retrieval system may not support it, only the hard drive.

rajajackWell, we've figured out if the policy can read directly from the database and use the data provided by the author in the program, or does this data have to be typed manually in the policy itself (if the data is large, it's too exaggerated to type manually)?

ZeroLogs/robot/robot id.db3 in the administrator directory

rajajackFor example, if the host is a Linux file, I want to use a robot to record months of market depth information.

edwardgywThe _G function can be used to store data

ZeroFor exchanges that do not provide a market K-line interface, a recalculation is required. For exchanges that do provide a market K-line interface, a recalculation is required if the policy can obtain dozens of K-lines at a time.

The dead cameThank you very much for replying. So I would like to ask you, if the market data is stored in memory, if my server is restarted or my robot is restarted, will the previous market data still be there? [# The question is, will the data I have collected affect my new strategy after I adjust my strategy, or when I interrupt it in the middle? For example, I'm going to use the 20th MA, so the 20th MA when I get there will need to re-collect the data for the calculation.