rename to profitperc

This commit is contained in:
orehunt 2020-04-30 12:11:08 +02:00
parent ceb697f54c
commit 443a36dd62

View File

@ -261,7 +261,7 @@ def calculate_outstanding_balance(
open_time = pair_trades.index.values open_time = pair_trades.index.values
close_time = pair_trades["close_time"].values close_time = pair_trades["close_time"].values
close = pair_candles["close"].values close = pair_candles["close"].values
profits = pair_trades["profit_percent"].values - slippage profits = pair_trades["profitperc"].values - slippage
# at the open_time candle, the balance is matched to the close of the candle # at the open_time candle, the balance is matched to the close of the candle
pair_balance = np.where( pair_balance = np.where(
# only the rows with actual trades # only the rows with actual trades