disable time calcs output on vector displaying in debug. Excessive.

This commit is contained in:
creslinux 2018-07-16 16:30:11 +00:00
parent 885a653439
commit 99d16e82c0

View File

@ -89,10 +89,10 @@ class Backtesting(object):
self.np_stop: int = 6 self.np_stop: int = 6
self.np_bto: int = self.np_close # buys_triggered_on - should be close self.np_bto: int = self.np_close # buys_triggered_on - should be close
self.np_bco: int = self.np_open # buys calculated on - open of the next candle. self.np_bco: int = self.np_open # buys calculated on - open of the next candle.
self.np_sto: int = self.np_low # stops_triggered_on - Should be low, FT uses close #self.np_sto: int = self.np_low # stops_triggered_on - Should be low, FT uses close
self.np_sco: int = self.np_stop # stops_calculated_on - Should be stop, FT uses close #self.np_sco: int = self.np_stop # stops_calculated_on - Should be stop, FT uses close
#self.np_sto: int = self.np_close # stops_triggered_on - Should be low, FT uses close self.np_sto: int = self.np_close # stops_triggered_on - Should be low, FT uses close
#self.np_sco: int = self.np_close # stops_calculated_on - Should be stop, FT uses close self.np_sco: int = self.np_close # stops_calculated_on - Should be stop, FT uses close
self.use_backslap = True # Enable backslap - if false Orginal code is executed. self.use_backslap = True # Enable backslap - if false Orginal code is executed.
self.debug = False # Main debug enable, very print heavy, enable 2 loops recommended self.debug = False # Main debug enable, very print heavy, enable 2 loops recommended
@ -410,8 +410,8 @@ class Backtesting(object):
# Populate duration # Populate duration
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']
if debug: # if debug:
print(bslap_results_df[['open_time', 'close_time', 'trade_duration']]) # print(bslap_results_df[['open_time', 'close_time', 'trade_duration']])
## Spends, Takes, Profit, Absolute Profit ## Spends, Takes, Profit, Absolute Profit
# Buy Price # Buy Price