askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.05k stars 3.95k forks source link

update indicators settings on the fly #2542

Closed DerBeweis closed 5 years ago

DerBeweis commented 5 years ago

Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.

I'm submitting a ... [ ] bug report [x ] question about the decisions made in the repository

Action taken (what you did) I managed to get my strategy get the settings for the indicator from a separate file, then I let this file be changed from the results of an ongoing gekkoGA.

Expected result (what you hoped would happen) that the changes gets adapted without a problem

Actual result (unexpected outcome) actually every thing works good, except that when the file changes, gekko gets new setting for the initial indicator settings e.g. for RSI I have to recall the indicator with a new RSI length. But then gekko stops and through out : "Error: Can only add indicators in the init method!"

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc) Knowing that I use pm2 every time I get that error the run just restarts with the new settings and its ok, problem is when the Strat restarts frequent I have problems with the exchange. I would hope that any how I can call the indicator with the new settings in the update or the check function without a problem... any thought about that ?

askmike commented 5 years ago

I managed to get my strategy get the settings for the indicator from a separate file, then I let this file be changed from the results of an ongoing gekkoGA.

Note that GekkoGA is third party software (meaning I can't help if the issue you face comes from GekkoGA).

But then gekko stops and through out : "Error: Can only add indicators in the init method!"

Could you be a bit more specific on what you are using Gekko for? GekkoGA is (AFAIK) a tool to bruteforce backtesting solutions. Which means it tries a lot of different indicator parameters in different backtests to see which one works best. <- I'm not sure about this since it's an external tool not from me. Please correct me if I am wrong.

So when you run a Gekko you can not change indicators when a gekko is running (so for example during a backtest). Mostly because an indicator needs historical data to be calculated, so if at noon of day 5 (inside the simulation) you ask for a MACD indicator, Gekko can't calculate this MACD indicator since it's missing the data from the previous days (required to calculate this indicator). As such Gekko will only calculate indicators that you tell it to calculate from the beginning (in the init method). This is not a problem for GekkoGA since it does hundreds of simulations. Each starting fresh with differently configured indicator.

DerBeweis commented 5 years ago

First, thanks for the respond.. it is great.. Second, my Question ist not about gekkoGA I Know well that it is a third party software I manage that part my self. I will try to explain my self more.. maybe with an example.. lets say I have 2 SMAs in my Strat. SmaSlow and SmaFast and we start the the Strat with with add indicator and SmaSlow - 300 and SmaFast 30

on the 3rd day may research done outside (with GA or without) tells me it is better to change the SmaSlow to 200 and the SmaFast to 40..

the strategy was running all the time, so it has the data... I jus want the aktive gekko to get the new settings and change it without the need to stop and rerun it again... i manage that in the code, but when gekko gets the new settings and recall the function addIndicator with the new settings it gives that error...

maybe I am missing something and I can change the value of the existing indicator with a new value.. I am not sure.. but this is all actually..

feel free to ask any more Questions..

askmike commented 5 years ago

the strategy was running all the time, so it has the data...

Technically Gekko (most likely) has all the data, since it's stored on disk. But calculating an indicator means looking back at say a day of history to calculate the number. Indicators are calculated over time: if you were running Gekko for 10 days with an SMA that SMA result on day 10 incorporates all market data from the previous 10 days. So if on day 11 you say you want a new SMA with different settings Gekko would need to go and recalculate the new SMA over the previous 11 days. This is not supported.

maybe I am missing something and I can change the value of the existing indicator with a new value.. I am not sure.. but this is all actually..

If you had an SMA with a timeperiod of 10, and one day you want to "change" this to 15. What does that even mean? If Gekko were to simply update the calculations to a timeperiod of 15 BUT using the old 10 SMA value it wouldn't be a true SMA to either of those, but some strange number in the middle. I guess the correct thing here would be to completely discard the 10 SMA and recalculate from some recent history the 15 SMA?

The other reason for restarting it: if you change your strategy midway by tweaking numbers, what do the result statistics even mean? Gekko strategies are supposed to be deterministic: when you run one it gives you certain results. That should be reproducable. If you want to tweak numbers around restarting it means that you are revalidating all the effects of your changes.

I jus want the aktive gekko to get the new settings and change it without the need to stop and rerun it again...

Why not simply restart it? If you run gekko over the CLI this shouldn't take more than 1 minute downtime.

DerBeweis commented 5 years ago

First of all thanks for the replay it is very useful.. I actually understand all what you say, and I am aware of the complication. This is why I was trying for example to parallel store the values that I need in an extra array, and use it for the new calculation.. fore example the one with SMA, If I am using SMA 10 and want to change it to 15, I wanted to store use the stored value to first recalculate the SMA on the fly with the last 15 days, and have it fresh with the right calcualations.

Why not simply restart it? If you run gekko over the CLI this shouldn't take more than 1 minute downtime. that is because of the amount of bots running parallel on the same combinations.. I have like almost 40 bots running for me and my friends and if I trigger a restart, even if they are not at the same time it is like 5 or 7 restarts at every time, and I have the experience that it doesn't always goes well if I restart all these bots...

but I understand what you mean.. actually I almost have it solved with storing the data and recalculating. But one thing I can't figure out till now is actually in the SMA indicator. in RSI for example it uses the input candle and works with the close, this object I know how to grab in the check function. But the SMA uses input "price" and I don't know what that means, which price? I understand that on every candle I have different values like : open, close, high, low etc. but where is price ?

askmike commented 5 years ago

The simplest answer would be:

Simply register all the SMAs that you might need in your logic. In your logic you can only use the indicators you actually need right now. So you can register a 10SMA and a 15SMA in your init, and in yoru check use the one you need at that time. Gekko will just keep calculating them both for as long as the strategy works.

Does that work?

But the SMA uses input "price" and I don't know what that means

The only thing you need to do is pass a single number (called the windowLength internally):

a simple moving average (SMA) is the unweighted mean of the previous n data.

(link) so it's whatever you want n to be. In other words: over how many points Gekko should calculate the average. The bigger the more smoother the line.

If you have more problems please share code snippets in a gist (do not paste them here).


I am closing this, as this is the issue tracker, but you can still comment.

DerBeweis commented 5 years ago

ok a small comment and actually the main problem I have with restart.. when I restart I keep getting this:

TypeError: err.message.contains is not a function │ at cancel (/home/aiman/gekko/exchange/wrappers/binance.js:473:22) │ at checkFn (/home/aiman/gekko/exchange/exchangeUtils.js:42:7) │ at /home/aiman/gekko/exchange/wrappers/binance.js:126:14 │ at Request.request [as _callback] (/home/aiman/gekko/exchange/node_modules/binance/lib/rest.js:90:25) │ at Request.self.callback (/home/aiman/gekko/exchange/node_modules/request/request.js:185:22) │ at Request.emit (events.js:180:13) │ at Request.emit (domain.js:422:20) │ at Request.<anonymous> (/home/aiman/gekko/exchange/node_modules/request/request.js:1157:10) │ at Request.emit (events.js:180:13) │ at Request.emit (domain.js:422:20) │ at IncomingMessage.<anonymous> (/home/aiman/gekko/exchange/node_modules/request/request.js:1079:12) │ at Object.onceWrapper (events.js:272:13) │ at IncomingMessage.emit (events.js:185:15) │ at IncomingMessage.emit (domain.js:422:20) │ at endReadableNT (_stream_readable.js:1106:12) │ at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) │ at process._tickCallback (internal/process/next_tick.js:178:19) │ TypeError: cb is not a function │ at afterWrite (_stream_writable.js:477:3) │ at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) │ at process._tickCallback (internal/process/next_tick.js:178:19) for a while and then it works after a couple of restarts.. do you know how I can stop this?

askmike commented 5 years ago

People have reported that issue before, but i haven't been able to reproduce. Can you post full logs?

On Wed, Sep 19, 2018 at 11:46 PM, DerBeweis notifications@github.com wrote:

ok a small comment and actually the main problem I have with restart.. when I restart I keep getting this:

TypeError: cb is not a function │ │2018-09-19 17:41:11 (INFO): 1.7e-7 BTC ││ at afterWrite (_stream_writable.js:477:3) │ │2018-09-19 17:41:11 (INFO): Balance: ││ at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop│ │2018-09-19 17:41:11 (INFO): 992.2334277861 USDT ││ at process._tickCallback (internal/process/next_tick.js:178:19) for a while and then it works after a couple of restarts.. do you know how I can stop this?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/2542#issuecomment-422853828, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7MDxOfCVwLwz9HyV0TmZBrGepVsec7ks5ucma8gaJpZM4Wsgd7 .

-- PGP key at keybase.io/mikevanrossum https://keybase.io/mikevanrossum/key.asc

DerBeweis commented 5 years ago

This is the whole log of the automatic restart after each other.

TypeError: err.message.contains is not a function at cancel (/home/aiman/gekko/exchange/wrappers/binance.js:473:22) at checkFn (/home/aiman/gekko/exchange/exchangeUtils.js:42:7) at /home/aiman/gekko/exchange/wrappers/binance.js:126:14 at Request.request [as _callback] (/home/aiman/gekko/exchange/node_modules/binance/lib/rest.js:90:25) at Request.self.callback (/home/aiman/gekko/exchange/node_modules/request/request.js:185:22) at Request.emit (events.js:180:13) at Request.emit (domain.js:422:20) at Request.<anonymous> (/home/aiman/gekko/exchange/node_modules/request/request.js:1157:10) at Request.emit (events.js:180:13) at Request.emit (domain.js:422:20) at IncomingMessage.<anonymous> (/home/aiman/gekko/exchange/node_modules/request/request.js:1079:12) at Object.onceWrapper (events.js:272:13) at IncomingMessage.emit (events.js:185:15) at IncomingMessage.emit (domain.js:422:20) at endReadableNT (_stream_readable.js:1106:12) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19) TypeError: cb is not a function at afterWrite (_stream_writable.js:477:3) at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29) at process._tickCallback (internal/process/next_tick.js:178:19)

DerBeweis commented 5 years ago

and these are the logs from the out log file.. so the restarts of the gekko `


/ \ / |/ | / |/ | / | / \ /$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ | $$ | $$/ $$ | $$ |/$$/ $$ |/$$/ $$ | $$ | $$ |/ |$$ | $$ $$< $$ $$< $$ | $$ | $$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ | $$ \$$ |$$ |____ $$ |$$ \ $$ |$$ \ $$ __$$ | $$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/ $$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/

Gekko v0.6.6
I'm gonna make you rich, Bud Fox. 

2018-09-19 17:40:10 (INFO): Setting up Gekko in realtime mode 2018-09-19 17:40:10 (INFO): 2018-09-19 17:40:10 (INFO): Setting up: 2018-09-19 17:40:10 (INFO): Candle writer 2018-09-19 17:40:10 (INFO): Store candles in a database 2018-09-19 17:40:10 (INFO):

2018-09-19 17:40:10 (INFO): Setting up: 2018-09-19 17:40:10 (INFO): Trading Advisor 2018-09-19 17:40:10 (INFO): Calculate trading advice 2018-09-19 17:40:11 (INFO): Using the strategy: RSI_BULL_BEAR_ADX3 2018-09-19 17:40:11 (INFO): ==================================== 2018-09-19 17:40:11 (INFO): Running RSI Bull and Bear + ADX 2018-09-19 17:40:11 (INFO): ==================================== 2018-09-19 17:40:11 (INFO): Make sure your warmup period matches SMA_long and that Gekko downloads data if needed 2018-09-19 17:40:14 (INFO): The trading method requests 1750 minutes of historic data. Checking availablity.. 2018-09-19 17:40:14 (INFO):

2018-09-19 17:40:14 (DEBUG): Check database exists: binance 2018-09-19 17:40:15 (DEBUG): Database exists: binance 2018-09-19 17:40:15 (DEBUG): Postgres connection pool is ready, db binance 2018-09-19 17:40:15 (DEBUG): Available local data: 2018-09-19 17:40:15 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:15 (DEBUG): to: 1 minutes ago 2018-09-19 17:40:15 (INFO): Usable local data available, trying to match with exchange data.. 2018-09-19 17:40:15 (DEBUG): Fetching exchange data since 16 minutes ago 2018-09-19 17:40:16 (DEBUG): Available exchange data: 2018-09-19 17:40:16 (DEBUG): from: 16 minutes ago 2018-09-19 17:40:16 (DEBUG): to: 0 minutes ago 2018-09-19 17:40:16 (DEBUG): Stitching datasets 2018-09-19 17:40:16 (INFO): Full history locally available. Seeding the trading method with all required historical candles. 2018-09-19 17:40:16 (DEBUG): Seeding with: 2018-09-19 17:40:16 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:16 (DEBUG): to: 17 minutes ago 2018-09-19 17:40:16 (INFO): Setting up: 2018-09-19 17:40:16 (INFO): Advice logger 2018-09-19 17:40:16 (INFO):
2018-09-19 17:40:16 (INFO): Setting up: 2018-09-19 17:40:16 (INFO): Trader 2018-09-19 17:40:16 (INFO): Follows the advice and create real orders. 2018-09-19 17:40:16 (DEBUG): syncing private data 2018-09-19 17:40:16 (INFO):

2018-09-19 17:40:22 (INFO): Portfolio: 2018-09-19 17:40:22 (INFO): 992.23235163 USDT 2018-09-19 17:40:22 (INFO): 1.7e-7 BTC 2018-09-19 17:40:22 (INFO): Balance: 2018-09-19 17:40:22 (INFO): 992.2334282145 USDT 2018-09-19 17:40:22 (INFO): Exposed: 2018-09-19 17:40:22 (INFO): no (0.00%) 2018-09-19 17:40:22 (INFO): Setting up: 2018-09-19 17:40:22 (INFO): Performance Analyzer 2018-09-19 17:40:22 (INFO): Analyzes performances of trades 2018-09-19 17:40:22 (INFO):

2018-09-19 17:40:22 (INFO): Starting to watch the market: Binance BTC/USDT 2018-09-19 17:40:22 (DEBUG): scheduling ticks 2018-09-19 17:40:22 (DEBUG): Requested BTC/USDT trade data from Binance ... 2018-09-19 17:40:23 (DEBUG): Processing 2004 new trades. From 2018-09-19 15:24:02 UTC to 2018-09-19 15:40:20 UTC. (16 minutes)

______   ________  __    __  __    __   ______

/ \ / |/ | / |/ | / | / \ /$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ | $$ | $$/ $$ | $$ |/$$/ $$ |/$$/ $$ | $$ | $$ |/ |$$ | $$ $$< $$ $$< $$ | $$ | $$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ | $$ \$$ |$$ |____ $$ |$$ \ $$ |$$ \ $$ __$$ | $$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/ $$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/

Gekko v0.6.6
I'm gonna make you rich, Bud Fox. 

2018-09-19 17:40:23 (INFO): Setting up Gekko in realtime mode 2018-09-19 17:40:23 (INFO): 2018-09-19 17:40:23 (INFO): Setting up: 2018-09-19 17:40:23 (INFO): Candle writer 2018-09-19 17:40:23 (INFO): Store candles in a database 2018-09-19 17:40:23 (INFO):

2018-09-19 17:40:23 (INFO): Setting up: 2018-09-19 17:40:23 (INFO): Trading Advisor 2018-09-19 17:40:23 (INFO): Calculate trading advice 2018-09-19 17:40:23 (INFO): Using the strategy: RSI_BULL_BEAR_ADX3 2018-09-19 17:40:24 (INFO): ==================================== 2018-09-19 17:40:24 (INFO): Running RSI Bull and Bear + ADX 2018-09-19 17:40:24 (INFO): ==================================== 2018-09-19 17:40:24 (INFO): Make sure your warmup period matches SMA_long and that Gekko downloads data if needed 2018-09-19 17:40:24 (INFO): The trading method requests 1750 minutes of historic data. Checking availablity.. 2018-09-19 17:40:24 (INFO):

2018-09-19 17:40:24 (DEBUG): Check database exists: binance 2018-09-19 17:40:24 (DEBUG): Database exists: binance 2018-09-19 17:40:24 (DEBUG): Postgres connection pool is ready, db binance 2018-09-19 17:40:24 (DEBUG): Available local data: 2018-09-19 17:40:24 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:24 (DEBUG): to: 1 minutes ago 2018-09-19 17:40:24 (INFO): Usable local data available, trying to match with exchange data.. 2018-09-19 17:40:24 (DEBUG): Fetching exchange data since 16 minutes ago 2018-09-19 17:40:25 (DEBUG): Available exchange data: 2018-09-19 17:40:25 (DEBUG): from: 16 minutes ago 2018-09-19 17:40:25 (DEBUG): to: 0 minutes ago 2018-09-19 17:40:25 (DEBUG): Stitching datasets 2018-09-19 17:40:25 (INFO): Full history locally available. Seeding the trading method with all required historical candles. 2018-09-19 17:40:25 (DEBUG): Seeding with: 2018-09-19 17:40:25 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:25 (DEBUG): to: 17 minutes ago 2018-09-19 17:40:25 (INFO): Setting up: 2018-09-19 17:40:25 (INFO): Advice logger 2018-09-19 17:40:25 (INFO):
2018-09-19 17:40:25 (INFO): Setting up: 2018-09-19 17:40:25 (INFO): Trader 2018-09-19 17:40:25 (INFO): Follows the advice and create real orders. 2018-09-19 17:40:25 (DEBUG): syncing private data 2018-09-19 17:40:25 (INFO):

2018-09-19 17:40:31 (INFO): Portfolio: 2018-09-19 17:40:31 (INFO): 992.23235163 USDT 2018-09-19 17:40:31 (INFO): 1.7e-7 BTC 2018-09-19 17:40:31 (INFO): Balance: 2018-09-19 17:40:31 (INFO): 992.2334285698 USDT 2018-09-19 17:40:31 (INFO): Exposed: 2018-09-19 17:40:31 (INFO): no (0.00%) 2018-09-19 17:40:31 (INFO): Setting up: 2018-09-19 17:40:31 (INFO): Performance Analyzer 2018-09-19 17:40:31 (INFO): Analyzes performances of trades 2018-09-19 17:40:31 (INFO):

2018-09-19 17:40:31 (INFO): Starting to watch the market: Binance BTC/USDT 2018-09-19 17:40:31 (DEBUG): scheduling ticks 2018-09-19 17:40:31 (DEBUG): Requested BTC/USDT trade data from Binance ... 2018-09-19 17:40:32 (DEBUG): Processing 2023 new trades. From 2018-09-19 15:24:02 UTC to 2018-09-19 15:40:29 UTC. (16 minutes)

______   ________  __    __  __    __   ______

/ \ / |/ | / |/ | / | / \ /$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ | $$ | $$/ $$ | $$ |/$$/ $$ |/$$/ $$ | $$ | $$ |/ |$$ | $$ $$< $$ $$< $$ | $$ | $$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ | $$ \$$ |$$ |____ $$ |$$ \ $$ |$$ \ $$ __$$ | $$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/ $$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/

Gekko v0.6.6
I'm gonna make you rich, Bud Fox. 

2018-09-19 17:40:32 (INFO): Setting up Gekko in realtime mode 2018-09-19 17:40:32 (INFO): 2018-09-19 17:40:32 (INFO): Setting up: 2018-09-19 17:40:32 (INFO): Candle writer 2018-09-19 17:40:32 (INFO): Store candles in a database 2018-09-19 17:40:32 (INFO):

2018-09-19 17:40:32 (INFO): Setting up: 2018-09-19 17:40:32 (INFO): Trading Advisor 2018-09-19 17:40:32 (INFO): Calculate trading advice 2018-09-19 17:40:32 (INFO): Using the strategy: RSI_BULL_BEAR_ADX3 2018-09-19 17:40:32 (INFO): ==================================== 2018-09-19 17:40:32 (INFO): Running RSI Bull and Bear + ADX 2018-09-19 17:40:32 (INFO): ==================================== 2018-09-19 17:40:32 (INFO): Make sure your warmup period matches SMA_long and that Gekko downloads data if needed 2018-09-19 17:40:33 (INFO): The trading method requests 1750 minutes of historic data. Checking availablity.. 2018-09-19 17:40:33 (INFO):

2018-09-19 17:40:33 (DEBUG): Check database exists: binance 2018-09-19 17:40:33 (DEBUG): Database exists: binance 2018-09-19 17:40:33 (DEBUG): Postgres connection pool is ready, db binance 2018-09-19 17:40:33 (DEBUG): Available local data: 2018-09-19 17:40:33 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:33 (DEBUG): to: 1 minutes ago 2018-09-19 17:40:33 (INFO): Usable local data available, trying to match with exchange data.. 2018-09-19 17:40:33 (DEBUG): Fetching exchange data since 16 minutes ago 2018-09-19 17:40:35 (DEBUG): Available exchange data: 2018-09-19 17:40:35 (DEBUG): from: 16 minutes ago 2018-09-19 17:40:35 (DEBUG): to: 0 minutes ago 2018-09-19 17:40:35 (DEBUG): Stitching datasets 2018-09-19 17:40:35 (INFO): Full history locally available. Seeding the trading method with all required historical candles. 2018-09-19 17:40:35 (DEBUG): Seeding with: 2018-09-19 17:40:35 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:35 (DEBUG): to: 17 minutes ago 2018-09-19 17:40:35 (INFO): Setting up: 2018-09-19 17:40:35 (INFO): Advice logger 2018-09-19 17:40:35 (INFO):
2018-09-19 17:40:35 (INFO): Setting up: 2018-09-19 17:40:35 (INFO): Trader 2018-09-19 17:40:35 (INFO): Follows the advice and create real orders. 2018-09-19 17:40:35 (DEBUG): syncing private data 2018-09-19 17:40:35 (INFO):

2018-09-19 17:40:41 (INFO): Portfolio: 2018-09-19 17:40:41 (INFO): 992.23235163 USDT 2018-09-19 17:40:41 (INFO): 1.7e-7 BTC 2018-09-19 17:40:41 (INFO): Balance: 2018-09-19 17:40:41 (INFO): 992.2334283029 USDT 2018-09-19 17:40:41 (INFO): Exposed: 2018-09-19 17:40:41 (INFO): no (0.00%) 2018-09-19 17:40:41 (INFO): Setting up: 2018-09-19 17:40:41 (INFO): Performance Analyzer 2018-09-19 17:40:41 (INFO): Analyzes performances of trades 2018-09-19 17:40:41 (INFO):

2018-09-19 17:40:41 (INFO): Starting to watch the market: Binance BTC/USDT 2018-09-19 17:40:41 (DEBUG): scheduling ticks 2018-09-19 17:40:41 (DEBUG): Requested BTC/USDT trade data from Binance ... 2018-09-19 17:40:42 (DEBUG): Processing 2043 new trades. From 2018-09-19 15:24:02 UTC to 2018-09-19 15:40:41 UTC. (17 minutes)

______   ________  __    __  __    __   ______

/ \ / |/ | / |/ | / | / \ /$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ | $$ | $$/ $$ | $$ |/$$/ $$ |/$$/ $$ | $$ | $$ |/ |$$ | $$ $$< $$ $$< $$ | $$ | $$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ | $$ \$$ |$$ |____ $$ |$$ \ $$ |$$ \ $$ __$$ | $$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/ $$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/

Gekko v0.6.6
I'm gonna make you rich, Bud Fox. 

2018-09-19 17:40:43 (INFO): Setting up Gekko in realtime mode 2018-09-19 17:40:43 (INFO): 2018-09-19 17:40:43 (INFO): Setting up: 2018-09-19 17:40:43 (INFO): Candle writer 2018-09-19 17:40:43 (INFO): Store candles in a database 2018-09-19 17:40:43 (INFO):

2018-09-19 17:40:43 (INFO): Setting up: 2018-09-19 17:40:43 (INFO): Trading Advisor 2018-09-19 17:40:43 (INFO): Calculate trading advice 2018-09-19 17:40:43 (INFO): Using the strategy: RSI_BULL_BEAR_ADX3 2018-09-19 17:40:43 (INFO): ==================================== 2018-09-19 17:40:43 (INFO): Running RSI Bull and Bear + ADX 2018-09-19 17:40:43 (INFO): ==================================== 2018-09-19 17:40:43 (INFO): Make sure your warmup period matches SMA_long and that Gekko downloads data if needed 2018-09-19 17:40:43 (INFO): The trading method requests 1750 minutes of historic data. Checking availablity.. 2018-09-19 17:40:43 (INFO):

2018-09-19 17:40:43 (DEBUG): Check database exists: binance 2018-09-19 17:40:43 (DEBUG): Available local data: 2018-09-19 17:40:43 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:43 (DEBUG): to: 1 minutes ago 2018-09-19 17:40:43 (INFO): Usable local data available, trying to match with exchange data.. 2018-09-19 17:40:43 (DEBUG): Fetching exchange data since 16 minutes ago 2018-09-19 17:40:43 (DEBUG): Database exists: binance 2018-09-19 17:40:43 (DEBUG): Postgres connection pool is ready, db binance 2018-09-19 17:40:44 (DEBUG): Available exchange data: 2018-09-19 17:40:44 (DEBUG): from: 16 minutes ago 2018-09-19 17:40:44 (DEBUG): to: 0 minutes ago 2018-09-19 17:40:44 (DEBUG): Stitching datasets 2018-09-19 17:40:44 (INFO): Full history locally available. Seeding the trading method with all required historical candles. 2018-09-19 17:40:44 (DEBUG): Seeding with: 2018-09-19 17:40:44 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:44 (DEBUG): to: 17 minutes ago 2018-09-19 17:40:44 (INFO): Setting up: 2018-09-19 17:40:44 (INFO): Advice logger 2018-09-19 17:40:44 (INFO):
2018-09-19 17:40:44 (INFO): Setting up: 2018-09-19 17:40:44 (INFO): Trader 2018-09-19 17:40:44 (INFO): Follows the advice and create real orders. 2018-09-19 17:40:44 (DEBUG): syncing private data 2018-09-19 17:40:44 (INFO):

2018-09-19 17:40:50 (INFO): Portfolio: 2018-09-19 17:40:50 (INFO): 992.23235163 USDT 2018-09-19 17:40:50 (INFO): 1.7e-7 BTC 2018-09-19 17:40:50 (INFO): Balance: 2018-09-19 17:40:50 (INFO): 992.2334282026001 USDT 2018-09-19 17:40:50 (INFO): Exposed: 2018-09-19 17:40:50 (INFO): no (0.00%) 2018-09-19 17:40:50 (INFO): Setting up: 2018-09-19 17:40:50 (INFO): Performance Analyzer 2018-09-19 17:40:50 (INFO): Analyzes performances of trades 2018-09-19 17:40:50 (INFO):

2018-09-19 17:40:50 (INFO): Starting to watch the market: Binance BTC/USDT 2018-09-19 17:40:50 (DEBUG): scheduling ticks 2018-09-19 17:40:50 (DEBUG): Requested BTC/USDT trade data from Binance ... 2018-09-19 17:40:52 (DEBUG): Processing 2061 new trades. From 2018-09-19 15:24:02 UTC to 2018-09-19 15:40:50 UTC. (17 minutes)

______   ________  __    __  __    __   ______

/ \ / |/ | / |/ | / | / \ /$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ | $$ | $$/ $$ | $$ |/$$/ $$ |/$$/ $$ | $$ | $$ |/ |$$ | $$ $$< $$ $$< $$ | $$ | $$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ | $$ \$$ |$$ |____ $$ |$$ \ $$ |$$ \ $$ __$$ | $$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/ $$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/

Gekko v0.6.6
I'm gonna make you rich, Bud Fox. 

2018-09-19 17:40:52 (INFO): Setting up Gekko in realtime mode 2018-09-19 17:40:52 (INFO): 2018-09-19 17:40:52 (INFO): Setting up: 2018-09-19 17:40:52 (INFO): Candle writer 2018-09-19 17:40:52 (INFO): Store candles in a database 2018-09-19 17:40:52 (INFO):

2018-09-19 17:40:52 (INFO): Setting up: 2018-09-19 17:40:52 (INFO): Trading Advisor 2018-09-19 17:40:52 (INFO): Calculate trading advice 2018-09-19 17:40:52 (INFO): Using the strategy: RSI_BULL_BEAR_ADX3 2018-09-19 17:40:52 (INFO): ==================================== 2018-09-19 17:40:52 (INFO): Running RSI Bull and Bear + ADX 2018-09-19 17:40:52 (INFO): ==================================== 2018-09-19 17:40:52 (INFO): Make sure your warmup period matches SMA_long and that Gekko downloads data if needed 2018-09-19 17:40:53 (INFO): The trading method requests 1750 minutes of historic data. Checking availablity.. 2018-09-19 17:40:53 (INFO):

2018-09-19 17:40:53 (DEBUG): Check database exists: binance 2018-09-19 17:40:53 (DEBUG): Database exists: binance 2018-09-19 17:40:53 (DEBUG): Postgres connection pool is ready, db binance 2018-09-19 17:40:53 (DEBUG): Available local data: 2018-09-19 17:40:53 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:53 (DEBUG): to: 1 minutes ago 2018-09-19 17:40:53 (INFO): Usable local data available, trying to match with exchange data.. 2018-09-19 17:40:53 (DEBUG): Fetching exchange data since 16 minutes ago 2018-09-19 17:40:54 (DEBUG): Available exchange data: 2018-09-19 17:40:54 (DEBUG): from: 16 minutes ago 2018-09-19 17:40:54 (DEBUG): to: 0 minutes ago 2018-09-19 17:40:54 (DEBUG): Stitching datasets 2018-09-19 17:40:54 (INFO): Full history locally available. Seeding the trading method with all required historical candles. 2018-09-19 17:40:54 (DEBUG): Seeding with: 2018-09-19 17:40:54 (DEBUG): from: 1750 minutes ago 2018-09-19 17:40:54 (DEBUG): to: 17 minutes ago 2018-09-19 17:40:54 (INFO): Setting up: 2018-09-19 17:40:54 (INFO): Advice logger 2018-09-19 17:40:54 (INFO):
2018-09-19 17:40:54 (INFO): Setting up: 2018-09-19 17:40:54 (INFO): Trader 2018-09-19 17:40:54 (INFO): Follows the advice and create real orders. 2018-09-19 17:40:54 (DEBUG): syncing private data 2018-09-19 17:40:54 (INFO):

2018-09-19 17:41:01 (INFO): Portfolio: 2018-09-19 17:41:01 (INFO): 992.23235163 USDT 2018-09-19 17:41:01 (INFO): 1.7e-7 BTC 2018-09-19 17:41:01 (INFO): Balance: 2018-09-19 17:41:01 (INFO): 992.2334282281 USDT 2018-09-19 17:41:01 (INFO): Exposed: 2018-09-19 17:41:01 (INFO): no (0.00%) 2018-09-19 17:41:01 (INFO): Setting up: 2018-09-19 17:41:01 (INFO): Performance Analyzer 2018-09-19 17:41:01 (INFO): Analyzes performances of trades 2018-09-19 17:41:01 (INFO):

2018-09-19 17:41:01 (INFO): Starting to watch the market: Binance BTC/USDT 2018-09-19 17:41:01 (DEBUG): scheduling ticks 2018-09-19 17:41:01 (DEBUG): Requested BTC/USDT trade data from Binance ... 2018-09-19 17:41:02 (DEBUG): Processing 2094 new trades. From 2018-09-19 15:24:02 UTC to 2018-09-19 15:40:59 UTC. (17 minutes)

______   ________  __    __  __    __   ______

/ \ / |/ | / |/ | / | / \ /$$$$$$ |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$ | $$ | $$/ $$ | $$ |/$$/ $$ |/$$/ $$ | $$ | $$ |/ |$$ | $$ $$< $$ $$< $$ | $$ | $$ |$$$$ |$$$$$/ $$$$$ \ $$$$$ \ $$ | $$ | $$ \$$ |$$ |____ $$ |$$ \ $$ |$$ \ $$ __$$ | $$ $$/ $$ |$$ | $$ |$$ | $$ |$$ $$/ $$$$$$/ $$$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$/

Gekko v0.6.6
I'm gonna make you rich, Bud Fox. 

2018-09-19 17:41:02 (INFO): Setting up Gekko in realtime mode 2018-09-19 17:41:02 (INFO): 2018-09-19 17:41:02 (INFO): Setting up: 2018-09-19 17:41:02 (INFO): Candle writer 2018-09-19 17:41:02 (INFO): Store candles in a database 2018-09-19 17:41:02 (INFO):

2018-09-19 17:41:02 (INFO): Setting up: 2018-09-19 17:41:02 (INFO): Trading Advisor 2018-09-19 17:41:02 (INFO): Calculate trading advice 2018-09-19 17:41:02 (INFO): Using the strategy: RSI_BULL_BEAR_ADX3 2018-09-19 17:41:02 (INFO): ==================================== 2018-09-19 17:41:02 (INFO): Running RSI Bull and Bear + ADX 2018-09-19 17:41:02 (INFO): ==================================== 2018-09-19 17:41:02 (INFO): Make sure your warmup period matches SMA_long and that Gekko downloads data if needed 2018-09-19 17:41:03 (INFO): The trading method requests 1750 minutes of historic data. Checking availablity.. 2018-09-19 17:41:03 (INFO):

2018-09-19 17:41:03 (DEBUG): Check database exists: binance 2018-09-19 17:41:03 (DEBUG): Database exists: binance 2018-09-19 17:41:03 (DEBUG): Postgres connection pool is ready, db binance 2018-09-19 17:41:03 (DEBUG): Available local data: 2018-09-19 17:41:03 (DEBUG): from: 1750 minutes ago 2018-09-19 17:41:03 (DEBUG): to: 2 minutes ago 2018-09-19 17:41:03 (INFO): Usable local data available, trying to match with exchange data.. 2018-09-19 17:41:03 (DEBUG): Fetching exchange data since 17 minutes ago 2018-09-19 17:41:04 (DEBUG): Available exchange data: 2018-09-19 17:41:04 (DEBUG): from: 17 minutes ago 2018-09-19 17:41:04 (DEBUG): to: 0 minutes ago 2018-09-19 17:41:04 (DEBUG): Stitching datasets 2018-09-19 17:41:04 (INFO): Full history locally available. Seeding the trading method with all required historical candles. 2018-09-19 17:41:04 (DEBUG): Seeding with: 2018-09-19 17:41:04 (DEBUG): from: 1750 minutes ago 2018-09-19 17:41:04 (DEBUG): to: 18 minutes ago 2018-09-19 17:41:04 (INFO): Setting up: 2018-09-19 17:41:04 (INFO): Advice logger 2018-09-19 17:41:04 (INFO):
2018-09-19 17:41:04 (INFO): Setting up: 2018-09-19 17:41:04 (INFO): Trader 2018-09-19 17:41:04 (INFO): Follows the advice and create real orders. 2018-09-19 17:41:04 (DEBUG): syncing private data 2018-09-19 17:41:04 (INFO):

2018-09-19 17:41:11 (INFO): Portfolio: 2018-09-19 17:41:11 (INFO): 992.23235163 USDT 2018-09-19 17:41:11 (INFO): 1.7e-7 BTC 2018-09-19 17:41:11 (INFO): Balance: 2018-09-19 17:41:11 (INFO): 992.2334277861 USDT 2018-09-19 17:41:11 (INFO): Exposed: 2018-09-19 17:41:11 (INFO): no (0.00%) 2018-09-19 17:41:11 (INFO): Setting up: 2018-09-19 17:41:11 (INFO): Performance Analyzer 2018-09-19 17:41:11 (INFO): Analyzes performances of trades 2018-09-19 17:41:11 (INFO):

2018-09-19 17:41:11 (INFO): Starting to watch the market: Binance BTC/USDT 2018-09-19 17:41:11 (DEBUG): scheduling ticks 2018-09-19 17:41:11 (DEBUG): Requested BTC/USDT trade data from Binance ... 2018-09-19 17:41:12 (DEBUG): Processing 2110 new trades. From 2018-09-19 15:24:02 UTC to 2018-09-19 15:41:08 UTC. (17 minutes) 2018-09-19 17:41:31 (DEBUG): Requested BTC/USDT trade data from Binance ... 2018-09-19 17:41:31 (DEBUG): Processing 33 new trades. From 2018-09-19 15:41:11 UTC to 2018-09-19 15:41:30 UTC. (a few seconds)`

DerBeweis commented 5 years ago

@askmike that was my answer.. should I open a new issue for this ?