Some reason did not push this...

vector calcs redone.
This commit is contained in:
creslinux 2018-07-26 18:40:45 +00:00
parent 3184c85dca
commit e39ae45d2f

View File

@ -419,6 +419,12 @@ class Backtesting(object):
pd.set_option('max_colwidth', 40)
pd.set_option('precision', 12)
# # Get before
# csv = "cryptosher_before_debug"
# bslap_results_df.to_csv(csv, sep='\t', encoding='utf-8')
bslap_results_df.to_csv(csv, sep='\t', encoding='utf-8')
bslap_results_df['trade_duration'] = bslap_results_df['close_time'] - bslap_results_df['open_time']
## Spends, Takes, Profit, Absolute Profit
@ -438,6 +444,10 @@ class Backtesting(object):
# Absolute profit
bslap_results_df['profit_abs'] = bslap_results_df['sell_take'] - bslap_results_df['buy_spend']
# # Get After
# csv="cryptosher_after_debug"
# bslap_results_df.to_csv(csv, sep='\t', encoding='utf-8')
if debug:
print("\n")