Improve output from show_config when trailing_stop is active
This commit is contained in:
parent
6c4f424887
commit
014c18ead2
@ -587,12 +587,23 @@ class Telegram(RPC):
|
|||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
val = self._rpc_show_config()
|
val = self._rpc_show_config()
|
||||||
|
if val['trailing_stop']:
|
||||||
|
sl_info = (
|
||||||
|
f"*Initial Stoploss:* `{val['stoploss']}`\n"
|
||||||
|
f"*Trailing stop positive:* `{val['trailing_stop_positive']}`\n"
|
||||||
|
f"*Trailing stop offset:* `{val['trailing_stop_positive_offset']}`\n"
|
||||||
|
f"*Only trail above offset:* `{val['trailing_only_offset_is_reached']}`\n"
|
||||||
|
)
|
||||||
|
|
||||||
|
else:
|
||||||
|
sl_info = f"*Stoploss:* `{val['stoploss']}`\n"
|
||||||
|
|
||||||
self._send_msg(
|
self._send_msg(
|
||||||
f"*Mode:* `{'Dry-run' if val['dry_run'] else 'Live'}`\n"
|
f"*Mode:* `{'Dry-run' if val['dry_run'] else 'Live'}`\n"
|
||||||
f"*Exchange:* `{val['exchange']}`\n"
|
f"*Exchange:* `{val['exchange']}`\n"
|
||||||
f"*Stake per trade:* `{val['stake_amount']} {val['stake_currency']}`\n"
|
f"*Stake per trade:* `{val['stake_amount']} {val['stake_currency']}`\n"
|
||||||
f"*Minimum ROI:* `{val['minimal_roi']}`\n"
|
f"*Minimum ROI:* `{val['minimal_roi']}`\n"
|
||||||
f"*{'Trailing ' if val['trailing_stop'] else ''}Stoploss:* `{val['stoploss']}`\n"
|
f"{sl_info}"
|
||||||
f"*Ticker Interval:* `{val['ticker_interval']}`\n"
|
f"*Ticker Interval:* `{val['ticker_interval']}`\n"
|
||||||
f"*Strategy:* `{val['strategy']}`'"
|
f"*Strategy:* `{val['strategy']}`'"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user