askmike / gekko

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

DEMA Buying high, Selling low #818

Closed jakemenner closed 7 years ago

jakemenner commented 7 years ago

Alright, so I'm still playing around with Gekko and trying to understand how it works, but I'm not too sure what I'm doing wrong here.

I'm trying to backtest a DEMA configuration on GDAX historical data but it appears to produce unexpected results. Not too sure if I'm misunderstanding the configuration fields.

I've plotted EMAs on a particular bitcoin online chart. The crossover points makes sense here. (Look especially at the 5th May period)

image

I tried backtesting the same thing on Gekko using the same time periods and EMA periods. However, the results does not make much sense here. It's mostly buying high, selling low.

image

Doesn't seem right there. Am I missing something?

EDIT: My bad! Think I looked at the chart wrongly. I think the points are correct.

askmike commented 7 years ago

EDIT: My bad! Think I looked at the chart wrongly. I think the points are correct.

Great!

It's mostly buying high, selling low.

Just to clarify: The strategy you use will 100% determine buy and sell signals in Gekko, if your DEMA strategy signals to buy at the bottom and sell at the top there is nothing Gekko will do about it.

If you have any other questions, feel free to ask here :)