Error Messages Reference¶
Common errors and how to resolve them.
Parse Errors¶
E001: Unexpected Token¶
Cause: Syntax error in sigc code.
Solution: Check the line for missing punctuation or keywords.
E002: Unknown Identifier¶
Cause: Typo in variable or function name.
Solution: Check spelling of identifiers.
E003: Missing Colon¶
Cause: Section declaration missing colon.
Solution: Add colon after data, signal, or portfolio.
Type Errors¶
E100: Type Mismatch¶
Cause: Operation on incompatible types.
Solution: Ensure operands have compatible types.
E101: Shape Mismatch¶
Cause: Operations require matching shapes.
Solution: Use appropriate broadcasting or aggregation.
E102: Missing Emit¶
Cause: Signal block must end with emit.
Solution: Add emit expression at end of signal.
Data Errors¶
E200: File Not Found¶
Cause: Data file doesn't exist at specified path.
Solution: Check file path and existence.
E201: Invalid Format¶
Cause: Data contains invalid values.
Solution: Clean data or specify correct column types.
E202: Missing Column¶
Cause: Data file missing expected column.
Solution: Check column names in data file.
Runtime Errors¶
E300: Division by Zero¶
Cause: Dividing by zero value.
Solution: Add small epsilon or filter zeros.
E301: NaN Propagation¶
Cause: Calculations producing NaN.
Solution: Check for log of negative, sqrt of negative, etc.
E302: Insufficient Data¶
Cause: Not enough data for lookback window.
Solution: Reduce window or get more data.
Configuration Errors¶
E400: Invalid YAML¶
Cause: Syntax error in configuration file.
Solution: Check YAML syntax.
E401: Missing Required Field¶
Cause: Configuration missing required parameter.
Solution: Add the required field.
E402: Invalid Value¶
Cause: Configuration value wrong type.
Solution: Check expected type in documentation.
Backtest Errors¶
E500: Date Range Error¶
Cause: Invalid date range.
Solution: Fix date order.
E501: No Data in Range¶
Cause: Data doesn't cover specified period.
Solution: Adjust date range or get more data.
E502: Invalid Constraint¶
Cause: Contradictory constraints.
Solution: Fix constraint values.
Broker Errors¶
E600: Connection Failed¶
Cause: Network or authentication issue.
Solution: Check credentials and network.
E601: Order Rejected¶
Cause: Broker rejected order.
Solution: Check account balance and order parameters.
E602: Invalid Symbol¶
Cause: Invalid or delisted ticker.
Solution: Use correct symbol.
Warning Messages¶
W001: Deprecated Feature¶
Action: Update code to use new feature.
W002: High Turnover¶
Action: Consider reducing rebalancing frequency.
W003: Concentration¶
Action: Add position limits.
Getting Help¶
If you encounter an error not listed here:
- Check the documentation
- Search GitHub Issues
- Open a new issue with:
- Error message
- Minimal reproducing example
- sigc version