Get "Exposed" in Strategy?

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!

Forum Jump:

Users browsing this thread: