mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-11 02:33:55 +00:00
Some reason did not push this...
vector calcs redone.
This commit is contained in:
parent
3184c85dca
commit
e39ae45d2f
|
@ -419,6 +419,12 @@ class Backtesting(object):
|
||||||
pd.set_option('max_colwidth', 40)
|
pd.set_option('max_colwidth', 40)
|
||||||
pd.set_option('precision', 12)
|
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']
|
bslap_results_df['trade_duration'] = bslap_results_df['close_time'] - bslap_results_df['open_time']
|
||||||
|
|
||||||
## Spends, Takes, Profit, Absolute Profit
|
## Spends, Takes, Profit, Absolute Profit
|
||||||
|
@ -438,6 +444,10 @@ class Backtesting(object):
|
||||||
# Absolute profit
|
# Absolute profit
|
||||||
bslap_results_df['profit_abs'] = bslap_results_df['sell_take'] - bslap_results_df['buy_spend']
|
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:
|
if debug:
|
||||||
print("\n")
|
print("\n")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user