From c89a68c1ab84c70367d87efdc57157aea62bcd4a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 5 Mar 2022 15:11:02 +0100 Subject: [PATCH] Alternative candle types --- docs/strategy-customization.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/strategy-customization.md b/docs/strategy-customization.md index c6d347dc8..44d3ed62b 100644 --- a/docs/strategy-customization.md +++ b/docs/strategy-customization.md @@ -436,6 +436,19 @@ A full sample can be found [in the DataProvider section](#complete-data-provider It is however better to use resampling to longer timeframes whenever possible to avoid hammering the exchange with too many requests and risk being blocked. +??? Note "Alternative candle types" + Informative_pairs can also provide a 3rd tuple element defining the candle type explicitly. + Availability of alternative candle-types will depend on the trading-mode and the exchange. Details about this can be found in the exchange documentation. + + ``` python + def informative_pairs(self): + return [ + ("ETH/USDT", "5m", ""), # Uses default candletype, depends on trading_mode + ("ETH/USDT", "5m", "spot"), # Forces usage of spot candles + ("BTC/TUSD", "15m", "futures"), # Uses futures candles + ("BTC/TUSD", "15m", "mark"), # Uses mark candles + ] + ``` *** ### Informative pairs decorator (`@informative()`)