{"record":{"id":"0a879c82cbcf70cd","repo":"microsoft/qlib","slug":"please-implement-the-sum-all-indicators-method","errorCode":null,"errorMessage":"Please implement the 'sum_all_indicators' method","messagePattern":"Please implement the 'sum_all_indicators' method","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"qlib/backtest/high_performance_ds.py","lineNumber":418,"sourceCode":"        fill_value: float = 0,\n    ) -> None:\n        \"\"\"sum indicators with the same metrics.\n        and assign to the order_indicator(BaseOrderIndicator).\n        NOTE: indicators could be a empty list when orders in lower level all fail.\n\n        Parameters\n        ----------\n        order_indicator : BaseOrderIndicator\n            the order indicator to assign.\n        indicators : List[BaseOrderIndicator]\n            the list of all inner indicators.\n        metrics : Union[str, List[str]]\n            all metrics needs to be sumed.\n        fill_value : float, optional\n            fill np.nan with value. By default None.\n        \"\"\"\n\n        raise NotImplementedError(f\"Please implement the 'sum_all_indicators' method\")\n\n    def to_series(self) -> Dict[Text, pd.Series]:\n        \"\"\"return the metrics as pandas series\n\n        for example: { \"ffr\":\n                SH600068    NaN\n                SH600079    1.0\n                SH600266    NaN\n                           ...\n                SZ300692    NaN\n                SZ300719    NaN,\n                ...\n         }\n        \"\"\"\n        raise NotImplementedError(f\"Please implement the `to_series` method\")\n\n\nclass SingleMetric(BaseSingleMetric):","sourceCodeStart":400,"sourceCodeEnd":436,"githubUrl":"https://github.com/microsoft/qlib/blob/79633dd9506ea689e5400dea0197717b5b3d74b7/qlib/backtest/high_performance_ds.py#L400-L436","documentation":"Error \"Please implement the 'sum_all_indicators' method\" thrown in microsoft/qlib.","triggerScenarios":"This error is raised at qlib/backtest/high_performance_ds.py:418 when the guard condition fails: \"Please implement the 'sum_all_indicators' method\". It triggers when the code path receives input or a state that violates the precondition checked at this point — e.g. an unimplemented abstract method being called, an unsupported argument type/value, or an invalid configuration. To avoid it, satisfy the documented precondition before this call: implement the required method in your subclass, or pass a supported value of the expected type as described by the message.","commonSituations":"See trigger scenarios.","solutions":["Implement the `sum_all_indicators` method in your subclass before calling it.","Use a concrete class that provides `sum_all_indicators` instead of the abstract base."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"79633dd9506ea689e5400dea0197717b5b3d74b7","analyzedAt":"2026-08-15T07:01:27.511Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}