Gekko Forum
How to retrieve balance - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Discussion (https://forum.gekko.wizb.it/forum-23.html)
+--- Thread: How to retrieve balance (/thread-58011.html)



How to retrieve balance - PGTART - 09-14-2019

So far I've not seen any strategy looking at the personal balance, or any coding example.
ea allĀ  gains of trades are estimated upon candle.close math

Which is nice but at some point one could be trough all his/her invested money.
So my question how to retrieve the current balance (after a short).

Also where to set the starting balance.

Otherwise, lots of strategies dont make sense, i mean it's nice to have invested 1000 euro.
But when one loses 1500 euro in a trade and then next make 3000 profit then that could never have happened (since you where broke allready).

It seems quite vital to know the current balance.
And i would like to handle this in my strategies.