AI Backtesting Automation Specialist
An AI Backtesting Automation Specialist designs, builds, and maintains intelligent systems that automate the testing of trading st…
Skill Guide
The discipline of systematically designing prompts and managing API/integration layers to guide Large Language Models in generating, validating, and deploying executable trading or analytical strategy code.
Scenario
Create a prompt that instructs an LLM to generate Python code for a basic SMA crossover strategy using a common library like `yfinance` for data and `backtrader` or `pandas` for signals.
Scenario
Develop a system where a user's natural language strategy description (e.g., 'Buy when RSI < 30 and volume spikes 50% above the 20-day average') is automatically translated into a backtestable script, run, and returns performance metrics.
Scenario
Create a framework where multiple specialized LLM agents collaborate: a 'Strategist' generates initial code, a 'Critic' reviews it for logical errors or risk violations, and an 'Optimizer' suggests parameter adjustments based on historical performance.
Use these to build prompt chains, manage conversation history, and enforce structured output formats (like JSON or code blocks) essential for reliable code generation.
Docker/Lambda provide sandboxed environments for safely executing LLM-generated code. Pydantic and AST parsing are used to validate the structure and syntax of the generated code before execution.
These are the standard libraries the LLM will be instructed to use. Deep familiarity with their APIs is necessary to write accurate prompts and validate the generated code.
Answer Strategy
The candidate must demonstrate understanding of temporal data leakage in finance and technical validation. Structure the answer around: 1) Explicitly instructing the LLM in the prompt to use 'point-in-time' data only and defining the term. 2) Including a few-shot example where the code correctly uses `.shift(1)` or time-gapped data. 3) Adding a post-generation code review step (automated or manual) that checks for functions like `future().` or `data.iloc[current_index + 1]`.
Answer Strategy
Tests problem-solving and iterative prompt refinement. A strong answer will focus on the diagnostic process: 'The LLM generated a backtest script with incorrect position sizing. The root cause was ambiguous instructions in my prompt regarding the allocation percentage. I refined the prompt by adding a clear parameter `allocation_per_trade = 0.1` and a code snippet showing the expected calculation. I also implemented a unit test for the sizing function in the generated code.'
1 career found
Try a different search term.