From 5f71232d6f488a3b3d9d6e4384ab05cd24e9e424 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 25 Mar 2022 07:00:35 +0100 Subject: [PATCH] Fix doc typo --- docs/strategy-customization.md | 2 +- freqtrade/edge/edge_positioning.py | 3 +-- freqtrade/rpc/rpc.py | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/strategy-customization.md b/docs/strategy-customization.md index 4b505d400..900c6d1b4 100644 --- a/docs/strategy-customization.md +++ b/docs/strategy-customization.md @@ -908,7 +908,7 @@ In some situations it may be confusing to deal with stops relative to current ra ??? Example "Returning a stoploss using absolute price from the custom stoploss function" - If we want to trail a stop price at 2xATR below current proce we can call `stoploss_from_absolute(current_rate - (candle['atr'] * 2), current_rate, is_short=trade.is_short)`. + If we want to trail a stop price at 2xATR below current price we can call `stoploss_from_absolute(current_rate - (candle['atr'] * 2), current_rate, is_short=trade.is_short)`. ``` python diff --git a/freqtrade/edge/edge_positioning.py b/freqtrade/edge/edge_positioning.py index d6df86dea..8116949cf 100644 --- a/freqtrade/edge/edge_positioning.py +++ b/freqtrade/edge/edge_positioning.py @@ -13,8 +13,7 @@ from pandas import DataFrame from freqtrade.configuration import TimeRange from freqtrade.constants import DATETIME_PRINT_FORMAT, UNLIMITED_STAKE_AMOUNT from freqtrade.data.history import get_timerange, load_data, refresh_data -from freqtrade.enums import RunMode, ExitType -from freqtrade.enums.candletype import CandleType +from freqtrade.enums import CandleType, ExitType, RunMode from freqtrade.exceptions import OperationalException from freqtrade.exchange.exchange import timeframe_to_seconds from freqtrade.plugins.pairlist.pairlist_helpers import expand_pairlist diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 4934343b6..5b59da1fc 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -18,7 +18,7 @@ from freqtrade import __version__ from freqtrade.configuration.timerange import TimeRange from freqtrade.constants import CANCEL_REASON, DATETIME_PRINT_FORMAT from freqtrade.data.history import load_data -from freqtrade.enums import ExitType, SignalDirection, State, TradingMode +from freqtrade.enums import ExitCheckTuple, ExitType, SignalDirection, State, TradingMode from freqtrade.exceptions import ExchangeError, PricingError from freqtrade.exchange import timeframe_to_minutes, timeframe_to_msecs from freqtrade.loggers import bufferHandler @@ -27,7 +27,6 @@ from freqtrade.persistence import PairLocks, Trade from freqtrade.persistence.models import PairLock from freqtrade.plugins.pairlist.pairlist_helpers import expand_pairlist from freqtrade.rpc.fiat_convert import CryptoToFiatConverter -from freqtrade.strategy.interface import ExitCheckTuple from freqtrade.wallets import PositionWallet, Wallet