08-27-2018, 12:27 PM
Quick summary:
- Native trailing stops have landed in Gekko 0.6.6! Note that they are still considered experimental.
- You can implement them in your strategy: when advicing a BUY, pass an object indicating that you want a trailingStop. And Gekko will make sure the trailing stop gets created. When asking for a trailingStop you need to pass either a fixed value (trailValue or a trailPercentage). For an example, see here: https://gekko.wizb.it/docs/strategies/cr...k-function
- in simulation Gekko will use OHLC data, but when running a live trader Gekko will actually watch the orderbook more closely, and fire events as the ticker (best bid) moves up or down.
- If your strategy fires a SELL advice before the trigger fires, Gekko will delete the trigger.
- Once the trailing stop triggers because the price moves down, Gekko will automatically sell (right now using a sticky order).
- Your strategy can use the (experimental) onTrade handle to be notified of all executed trades (including those fired from trailing stops).
- Native trailing stops have landed in Gekko 0.6.6! Note that they are still considered experimental.
- You can implement them in your strategy: when advicing a BUY, pass an object indicating that you want a trailingStop. And Gekko will make sure the trailing stop gets created. When asking for a trailingStop you need to pass either a fixed value (trailValue or a trailPercentage). For an example, see here: https://gekko.wizb.it/docs/strategies/cr...k-function
- in simulation Gekko will use OHLC data, but when running a live trader Gekko will actually watch the orderbook more closely, and fire events as the ticker (best bid) moves up or down.
- If your strategy fires a SELL advice before the trigger fires, Gekko will delete the trigger.
- Once the trailing stop triggers because the price moves down, Gekko will automatically sell (right now using a sticky order).
- Your strategy can use the (experimental) onTrade handle to be notified of all executed trades (including those fired from trailing stops).