Gekko Forum
Gekko Buy/sell starting position - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Feature Requests (https://forum.gekko.wizb.it/forum-15.html)
+--- Thread: Gekko Buy/sell starting position (/thread-57171.html)



Gekko Buy/sell starting position - Kris191 - 05-16-2018

Hi all,

One feature i think is needed is the ability for gekko to decide if long or short is the 1st trade to use, when you fire up gekko, currently it chooses to short each time you fire it up even when there is nothing to short.

Having gekko check if the balance is in favor of the asset or currency on start up then adjust the 1st trade would be ideal.

Thanks


RE: Gekko Buy/sell starting position - Ballsy - 05-16-2018

In susitronix's guide:
https://forum.gekko.wizb.it/thread-56936.html

About 2/3 of the way down the page he shows you how to add a few lines of code which contains;
"this.logic.longpos == true" adding this and the other few lines should fix your problem

The rest of his guides have some good information/tips as well