(positions: list[float])
| 238 | |
| 239 | |
| 240 | def _turnover(positions: list[float]) -> float: |
| 241 | if len(positions) <= 1: |
| 242 | return 0.0 |
| 243 | return sum(abs(positions[i] - positions[i - 1]) for i in range(1, len(positions))) |
| 244 | |
| 245 | |
| 246 | def _std(values: list[float]) -> float: |
no outgoing calls
no test coverage detected