You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`call_indicator(...)`| callable | Invoke another saved indicator from this script |
139
+
|`SMA, EMA, RSI, MACD, BOLL, ATR, CROSSOVER, CROSSUNDER`| callables | Built-in technical helpers (see `app/services/backtest.py::_get_indicator_functions`) |
140
+
141
+
**Required output** — the script must add **either** of these to `df`:
142
+
143
+
| Style | Required columns | When to use |
144
+
|-------|------------------|-------------|
145
+
| 2-way (recommended) |`df['buy']`, `df['sell']` (boolean Series) | Most strategies — simple long-only or `trade_direction='both'`|
146
+
| 4-way (advanced) |`df['open_long']`, `df['close_long']`, `df['open_short']`, `df['close_short']` (boolean Series) | When you need explicit control over each leg |
0 commit comments