Last Sell , last Buy - 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: Last Sell , last Buy (/thread-57720.html) |
Last Sell , last Buy - mauroprojetos - 10-15-2018 People need help, I'm trying to develop a strategy, but for this I need to make the last sell price or the last buy. Would anyone have any tips? RE: Last Sell , last Buy - askmike - 10-19-2018 You can add a method to your strategy called onTrade. Whenever Gekko trades (real or simulated) it will run that function and pass it a tradeCompleted event, which is documented here: https://gekko.wizb.it/docs/internals/events.html#tradeCompleted-event |