Crippled timespan in backtest graph
#1
I've performed a couple of backtests but something is wrong with the results' time frame. My database timespan should be 1 year, but somehow the results I get on the graph are depicted as a couple of hours long (see screenshot). I have tried different pairs with different exchanges and strategies, but all gave me the same kind of crippled result. The attached screenshot illustrates the problem (i.e. the X-axis shows minutes instead of months). Please also note the low volume of trades (only 60) in the supposedly 12 month period. Any help is appreciated (I'm using Gekko v.0.6.2 by the way).


Attached Files
.png   1 year backtest result.png (Size: 112.71 KB / Downloads: 9)
  Reply
#2
Looking into it!
  Reply
#3
I'm testing a fix here: https://github.com/askmike/gekko/pull/2360

If you want to try it out, see here: https://gekko.wizb.it/docs/installation/...lop-branch (also see recompiling the frontend)
  Reply
#4
(07-24-2018, 09:09 AM)askmike Wrote: I'm testing a fix here: https://github.com/askmike/gekko/pull/2360

If you want to try it out, see here: https://gekko.wizb.it/docs/installation/...lop-branch (also see recompiling the frontend)

Thanks a lot. Just to inform you that the roundtrips table seems to follow suit with the graph, so I believe it should also be fixed.
  Reply
#5
I'm not able to reproduce that. Can you post another screenshot?
  Reply
#6
(07-24-2018, 02:29 PM)askmike Wrote: I'm not able to reproduce that. Can you post another screenshot?

Here you go! Just to be clear: What I meant was that there should be a lot more roundtrips in a 12 month period. The transactions shown are, apparently, related to a shorter timeframe, both in the graph and table. The dates in the table are also wrong (1970, instead of 2017?).


Attached Files
.png   1 year backtest graph.png (Size: 110.77 KB / Downloads: 3)
.png   1 year backtest roundtrips.png (Size: 114.53 KB / Downloads: 5)
  Reply
#7
(1970 means a second timestamp was parsed as a millisecond timestamp)

What browser and what OS are you using?
  Reply
#8
(07-24-2018, 04:05 PM)askmike Wrote: (1970 means a second timestamp was parsed as a millisecond timestamp)

What browser and what OS are you using?

Ok, sorry for the confusion. I'm using Firefox on MacOS 10.12.6.
  Reply
#9
I think I know the reason of 1970 in the roundtrip table, that was a bug that was fixed between 0.6.2 and 0.6.3, can you try latest stable? If you try develop (and recompile the frontend, see here) your chart bug should be gone too!
  Reply
#10
(07-24-2018, 05:10 PM)bitbot Wrote:
(07-24-2018, 04:05 PM)askmike Wrote: (1970 means a second timestamp was parsed as a millisecond timestamp)

What browser and what OS are you using?

Ok, sorry for the confusion. I'm using Firefox on MacOS 10.12.6.

I have upgraded my gekko version as instructed, and now my roundtrip table seems to be ok. However, the graph still remains offset.
  Reply


Forum Jump:


Users browsing this thread: