Gekko Forum
how to console.log profit rate ? - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html)
+--- Thread: how to console.log profit rate ? (/thread-57993.html)



how to console.log profit rate ? - PGTART - 08-26-2019

Currently developing some improvements to bull/bear strategies.
It would be handy for debugging my codeĀ  to get the profit % to console.log when i do a short

how to get that, is it simply the previous.close and current candle close.. or does it works a bit more advanced ?.
(as that is not guaranteed to happen in real life to get it like that).