Spaces:
Running
Running
P2SAMAPA commited on
Update strategy.py
Browse files- strategy.py +1 -1
strategy.py
CHANGED
|
@@ -113,7 +113,7 @@ def execute_strategy(proba, y_fwd_test, test_dates, target_etfs, fee_bps,
|
|
| 113 |
consec_loss_rets.pop(0)
|
| 114 |
|
| 115 |
trade_date = test_dates[i]
|
| 116 |
-
if trade_date.date() < today:
|
| 117 |
audit_trail.append({
|
| 118 |
'Date': trade_date.strftime('%Y-%m-%d'),
|
| 119 |
'Signal': trade_signal,
|
|
|
|
| 113 |
consec_loss_rets.pop(0)
|
| 114 |
|
| 115 |
trade_date = test_dates[i]
|
| 116 |
+
if trade_date.date() <= today:
|
| 117 |
audit_trail.append({
|
| 118 |
'Date': trade_date.strftime('%Y-%m-%d'),
|
| 119 |
'Signal': trade_signal,
|