> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequency.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Strategy Test

> Retail simplified backtest — predefined params, no dollar amounts.



## OpenAPI

````yaml /api/openapi.json post /api/graph/v1/backtest/v2/strategy-test
openapi: 3.1.0
info:
  title: Sequency Graph API
  description: >

    # Sequency Graph-Native Trading API


    Graph-native API for trading intelligence, built on FalkorDB.


    ## Features


    - **Screener**: Filter stocks using graph-native queries with relationship
    expansion

    - **Stock Detail**: Complete stock context with all relationships

    - **Confluence Scoring**: Setup quality assessment with weighted components

    - **Strategy Matching**: Find matching options strategies via graph
    traversal

    - **Market Context**: Current market-wide context for trading decisions


    ## Data Sources


    All data is sourced from the FalkorDB knowledge graph, populated by:

    - Pattern detector (Go) - Technical indicators, patterns

    - Graph sync service - Levels, volume profiles, news, day classification
  version: 1.0.0
servers: []
security: []
paths:
  /api/graph/v1/backtest/v2/strategy-test:
    post:
      tags:
        - backtest-v2
      summary: Strategy Test
      description: Retail simplified backtest — predefined params, no dollar amounts.
      operationId: strategy_test_api_graph_v1_backtest_v2_strategy_test_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StrategyTestRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StrategyTestResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    StrategyTestRequest:
      properties:
        signal_types:
          items:
            type: string
          type: array
          title: Signal Types
        quality_tiers:
          items:
            type: string
          type: array
          title: Quality Tiers
        date_from:
          type: string
          format: date
          title: Date From
        date_to:
          type: string
          format: date
          title: Date To
        stop_atr:
          type: number
          title: Stop Atr
          default: 1.5
        target_atr:
          type: number
          title: Target Atr
          default: 2.5
      type: object
      required:
        - signal_types
        - date_from
        - date_to
      title: StrategyTestRequest
    StrategyTestResponse:
      properties:
        rows:
          items:
            $ref: '#/components/schemas/StrategyTestRow'
          type: array
          title: Rows
        current_regime:
          type: string
          title: Current Regime
          default: ''
        regime_win_rate_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Regime Win Rate Pct
        min_signals_met:
          type: boolean
          title: Min Signals Met
          default: true
      type: object
      required:
        - rows
      title: StrategyTestResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StrategyTestRow:
      properties:
        label:
          type: string
          title: Label
        total_signals:
          type: integer
          title: Total Signals
        win_rate_pct:
          type: number
          title: Win Rate Pct
        profit_factor:
          type: number
          title: Profit Factor
        expectancy_pct:
          type: number
          title: Expectancy Pct
        sharpe:
          type: number
          title: Sharpe
        max_drawdown_pct:
          type: number
          title: Max Drawdown Pct
        avg_holding_minutes:
          type: number
          title: Avg Holding Minutes
      type: object
      required:
        - label
        - total_signals
        - win_rate_pct
        - profit_factor
        - expectancy_pct
        - sharpe
        - max_drawdown_pct
        - avg_holding_minutes
      title: StrategyTestRow
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````