neural-candlestick icon indicating copy to clipboard operation
neural-candlestick copied to clipboard

Is there any possibility to use my own data?

Open JafferWilson opened this issue 6 years ago • 6 comments

Hello, as I see you are using the gekko for data and prediction. How I can use your repo for producing result base on my own dataset from another platform and display the output in the command window or in jupyter notebook? Please let me know

JafferWilson avatar Jun 29 '18 07:06 JafferWilson

Candles can be fed via the http listener, or just wrote up in candles file, which is expected to by a 3d python array (batch, small number of sequential candles, OHLCV). Thus you have two options:

a) Replicate neuralloader.js gekko strategy funcionality on your desired platform. b) Write the array of candles directly on candles (and maybe on evalcandles).

Any question just ask... cheers!

Gab0 avatar Jun 29 '18 18:06 Gab0

Hi, Gab0

I can't find example for input the candle using http post. I've searched for neuralloader.js but can't find it. can you give me example of data format to post using http.

sakirun avatar Feb 27 '19 04:02 sakirun

Hey @sakirun, this project is extremely WIP and I don't reccomend it unless you're a hardcore researcher xD

The gekko strat neuraloader.js and the indicator nncandle.js were really missing, added.

There you can find the http request outline, which is like this:

addr = localhost:5000/candleinput
payload = {'candle': [O, H, L, C, V]}

This request can be done from any platform, of course... cheers!

Gab0 avatar Feb 28 '19 03:02 Gab0

Thanks for the quick reply and update,

I think there's typo in: @app.route('/candleinput', methods=['POST']) def storeCandlestick(): Candles = json.loads(request.data) app.candleBank[app.currentBank].attach(Candles['candles']) print(Candles)

should be: @app.route('/candleinput', methods=['POST']) def storeCandlestick(): Candles = json.loads(request.data) app.candleBanks[app.currentBank].attach(Candles['candles']) print(Candles)

sakirun avatar Feb 28 '19 04:02 sakirun

Thanks, I'll update in a while. Feel free to make PRs with this and/or more ideas, if you manage to understand the workings of this... I will tell in advance that I didn't get predictions results reliable enough to apply on my own live trading usage.

Gab0 avatar Feb 28 '19 04:02 Gab0

Great,

I try to manage this project to predict binary option candlestick, still working. I will make PR if i can make it work good enough

sakirun avatar Feb 28 '19 05:02 sakirun