No trades to show
Closed this issue · 1 comments
moinonin commented
I don't seem to get through this error. Even though I have checked the backtest_results dir. It has three files one meta, json backtest results and the pickled signals. But when I run the script it seems to process the pairs but then throw the message 'no trades to show'.
Processing 71 pairs...
Strategy258btc
\_ No trades to show
Could it be a special case not covered by the if conditions under the following sections?
for sname in stratnames:
bigdf = pd.DataFrame()
print(f"{sname}")
for tpair, trades in analysed_trades_dict[sname].items():
bigdf = pd.concat([bigdf, trades], ignore_index=True)
if outfile:
outfile.write(bigdf.to_csv())
else:
bigdf.to_csv(f'{sname}_all_trade_buys.csv')
if (start_date is not None):
bigdf = bigdf.loc[(bigdf['date'] > start_date)]
if (end_date is not None):
bigdf = bigdf.loc[(bigdf['date'] < end_date)]
if bigdf.shape[0] > 0 and ('enter_reason' in bigdf.columns):
if group is not None: .......................
Would it have been better to use try & except somewhere?
moinonin commented
My bad! I had forgotten to change the strategy interface to 3. I will close this.