Merge branch 'improvedGraphing' into ObjectivyGraphImprovements
# Conflicts: # freqtrade/arguments.py
This commit is contained in:
@@ -260,6 +260,77 @@ class Arguments(object):
|
||||
default=None
|
||||
)
|
||||
|
||||
|
||||
self.parser.add_argument(
|
||||
'--stop-loss',
|
||||
help='Renders stop/loss information in the main chart',
|
||||
dest='stoplossdisplay',
|
||||
action='store_true',
|
||||
default=False
|
||||
|
||||
)
|
||||
|
||||
self.parser.add_argument(
|
||||
'--plot-rsi',
|
||||
help='Renders a rsi chart of the given RSI dataframe name, for example --plot-rsi rsi',
|
||||
dest='plotrsi',
|
||||
nargs='+',
|
||||
default=None
|
||||
|
||||
)
|
||||
|
||||
self.parser.add_argument(
|
||||
'--plot-cci',
|
||||
help='Renders a cci chart of the given CCI dataframe name, for example --plot-cci cci',
|
||||
dest='plotcci',
|
||||
nargs='+',
|
||||
|
||||
default=None
|
||||
)
|
||||
|
||||
self.parser.add_argument(
|
||||
'--plot-macd',
|
||||
help='Renders a macd chart of the given '
|
||||
'dataframe name, for example --plot-macd macd',
|
||||
dest='plotmacd',
|
||||
default=None
|
||||
)
|
||||
|
||||
self.parser.add_argument(
|
||||
'--plot-dataframe',
|
||||
help='Renders the specified dataframes',
|
||||
dest='plotdataframe',
|
||||
default=None,
|
||||
nargs='+',
|
||||
type=str
|
||||
)
|
||||
|
||||
self.parser.add_argument(
|
||||
'--plot-dataframe-marker',
|
||||
help='Renders the specified dataframes as markers. '
|
||||
'Accepted values for a marker are either 100 or -100',
|
||||
dest='plotdataframemarker',
|
||||
default=None,
|
||||
nargs='+',
|
||||
type=str
|
||||
)
|
||||
|
||||
self.parser.add_argument(
|
||||
'--plot-volume',
|
||||
help='plots the volume as a sub plot',
|
||||
dest='plotvolume',
|
||||
action='store_true'
|
||||
)
|
||||
|
||||
self.parser.add_argument(
|
||||
'--plot-max-ticks',
|
||||
help='specify an upper limit of how many ticks we can display',
|
||||
dest='plotticks',
|
||||
default=750,
|
||||
type=int
|
||||
)
|
||||
|
||||
|
||||
def testdata_dl_options(self) -> None:
|
||||
"""
|
||||
Parses given arguments for testdata download
|
||||
|
@@ -357,8 +357,9 @@ class Telegram(RPC):
|
||||
|
||||
message = tabulate({
|
||||
'current': [len(trades)],
|
||||
'max': [self._config['max_open_trades']]
|
||||
}, headers=['current', 'max'], tablefmt='simple')
|
||||
'max': [self._config['max_open_trades']],
|
||||
'total stake': [sum((trade.open_rate * trade.amount) for trade in trades)]
|
||||
}, headers=['current', 'max', 'total stake'], tablefmt='simple')
|
||||
message = "<pre>{}</pre>".format(message)
|
||||
logger.debug(message)
|
||||
self.send_msg(message, parse_mode=ParseMode.HTML)
|
||||
|
@@ -1013,9 +1013,12 @@ def test_count_handle(default_conf, update, ticker, fee, mocker) -> None:
|
||||
msg_mock.reset_mock()
|
||||
telegram._count(bot=MagicMock(), update=update)
|
||||
|
||||
msg = '<pre> current max\n--------- -----\n 1 {}</pre>'.format(
|
||||
default_conf['max_open_trades']
|
||||
)
|
||||
msg = '<pre> current max total stake\n--------- ----- -------------\n' \
|
||||
' 1 {} {}</pre>'\
|
||||
.format(
|
||||
default_conf['max_open_trades'],
|
||||
default_conf['stake_amount']
|
||||
)
|
||||
assert msg in msg_mock.call_args_list[0][0][0]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user