Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -589,7 +589,7 @@ def run_backtest(data, params,
|
|
| 589 |
analysis_start_date=None,
|
| 590 |
analysis_end_date=None,
|
| 591 |
benchmark_lookback_years=None,
|
| 592 |
-
use_rolling_benchmark=
|
| 593 |
|
| 594 |
df = data.copy()
|
| 595 |
required_cols = ['Close']
|
|
@@ -3743,7 +3743,7 @@ def main():
|
|
| 3743 |
)
|
| 3744 |
use_rolling_benchmark = st.sidebar.checkbox(
|
| 3745 |
"Use Rolling Benchmark (Adaptive)",
|
| 3746 |
-
value=st.session_state.get('use_rolling_benchmark',
|
| 3747 |
key='widget_use_rolling_benchmark',
|
| 3748 |
on_change=update_state,
|
| 3749 |
help="CHECKED: Adaptive Mode. Benchmarks adapt to recent history. Realistic backtest.\nUNCHECKED: Global Mode (Crystal Ball). Uses ALL history to set one strict benchmark. Good for filtering Open Trades."
|
|
|
|
| 589 |
analysis_start_date=None,
|
| 590 |
analysis_end_date=None,
|
| 591 |
benchmark_lookback_years=None,
|
| 592 |
+
use_rolling_benchmark=False):
|
| 593 |
|
| 594 |
df = data.copy()
|
| 595 |
required_cols = ['Close']
|
|
|
|
| 3743 |
)
|
| 3744 |
use_rolling_benchmark = st.sidebar.checkbox(
|
| 3745 |
"Use Rolling Benchmark (Adaptive)",
|
| 3746 |
+
value=st.session_state.get('use_rolling_benchmark', False),
|
| 3747 |
key='widget_use_rolling_benchmark',
|
| 3748 |
on_change=update_state,
|
| 3749 |
help="CHECKED: Adaptive Mode. Benchmarks adapt to recent history. Realistic backtest.\nUNCHECKED: Global Mode (Crystal Ball). Uses ALL history to set one strict benchmark. Good for filtering Open Trades."
|