This commit is contained in:
Misagh 2019-04-03 19:29:44 +02:00
parent 5f38d5ee63
commit d5498c8712
2 changed files with 4 additions and 4 deletions

View File

@ -111,9 +111,9 @@ class RPC(object):
close_profit=fmt_close_profit,
current_profit=round(current_profit * 100, 2),
stop_loss=trade.stop_loss,
stop_loss_pct=trade.stop_loss_pct,
stop_loss_pct=(trade.stop_loss_pct * 100),
initial_stop_loss=trade.initial_stop_loss,
initial_stop_loss_pct=trade.initial_stop_loss_pct,
initial_stop_loss_pct=(trade.initial_stop_loss_pct * 100),
open_order='({} {} rem={:.8f})'.format(
order['type'], order['side'], order['remaining']
) if order else None,

View File

@ -208,12 +208,12 @@ class Telegram(RPC):
# Adding initial stoploss only if it is different from stoploss
"*Initial Stoploss:* `{initial_stop_loss:.8f}` " +
("`({initial_stop_loss_pct:.2f})`" if r['initial_stop_loss_pct'] else "")
("`({initial_stop_loss_pct:.2f}%)`" if r['initial_stop_loss_pct'] else "")
if r['stop_loss'] != r['initial_stop_loss'] else "",
# Adding stoploss and stoploss percentage only if it is not None
"*Stoploss:* `{stop_loss:.8f}` " +
("`({stop_loss_pct:.2f})`" if r['stop_loss_pct'] else ""),
("`({stop_loss_pct:.2f}%)`" if r['stop_loss_pct'] else ""),
"*Open Order:* `{open_order}`" if r['open_order'] else ""
]