Gekko Forum
Get "Exposed" in Strategy? - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: General Discussion (https://forum.gekko.wizb.it/forum-14.html)
+--- Thread: Get "Exposed" in Strategy? (/thread-57486.html)



Get "Exposed" in Strategy? - cthulhu - 07-31-2018

Hey,

today my gekko crashed after it bougth some coins.

After the restart, my Strategie does not know, that it already bougth,
because the variable was set before the crash.

After the restart the adviced var is false again and will never send a sell advice...



The bug is fixed in the dev branch but i am thinking about an initialisation at startup.
Gekko outputs the "Exposed" value on every startup,
is it possible to use this value in the strategy to check on first run whether
we are exposed or not?

That would be really great for initiallisation!