FAIG icon indicating copy to clipboard operation
FAIG copied to clipboard

Backtesting trading strategy performance

Open ghost opened this issue 6 years ago • 6 comments

Any idea on backtesting?

ghost avatar Feb 27 '18 14:02 ghost

For back-testing, We would need to get some historical data.... This would be VERY heavy on the API usage. Perhaps we could get this into some kind of database?

tg12 avatar Feb 27 '18 14:02 tg12

Yea, the market data fetched is supposed to be saved for later use.

How about keeping this issue opened, and wait until later when the project structure is better understood then we start making this saving function?

ghost avatar Feb 27 '18 15:02 ghost

Yeah can do!

tg12 avatar Feb 27 '18 15:02 tg12

I've been thinking about this for a little while. I don't want to use a central-DB due to open read/write permissions, and while that'd help data sharing, I suspect would break IG's T&Cs. So something local. sqlite3 is near-perfect, but sql is a pain once you've experienced nosql done well, and this project screams nosql. However, it's also burdensome to expect people to setup mongodb or similar, and we really don't need the performance yet, so i think tinydb http://tinydb.readthedocs.io/en/latest/intro.html or similar is the way to go. I was going to implement this for market data until i realised that market dealhandling rules CAN change per-request, and don't count against the history api limit anyway.

FlickeringIRoam avatar Feb 27 '18 18:02 FlickeringIRoam

@FlickeringIRoam why not consider dockerising the application, and running a database designed for timeseries like InfluxDB? Thus the entire stack could be bought up with docker-compose.

callamd avatar Mar 04 '18 03:03 callamd

Yep, very valid point. I have no issues at all with distributing it as a container

On 4 Mar 2018 3:02 am, "Callam Delaney" [email protected] wrote:

@FlickeringIRoam https://github.com/flickeringiroam why not consider dockerising the application, and running a database designed for timeseries like InfluxDB?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tg12/FAIG/issues/10#issuecomment-370198102, or mute the thread https://github.com/notifications/unsubscribe-auth/AbZaZRAhlWa097YMqw48UfbZzLrr04x0ks5ta1lTgaJpZM4SVCmO .

FlickeringIRoam avatar Mar 04 '18 14:03 FlickeringIRoam