Real Codex workflows

Real Sessions

Browse complete strategy-research conversations, from the first natural-language request through validated artifacts, simulation, and analysis.

SESSION 01

PIVOT_SPRING

A point-in-time NASDAQ-100 recovery strategy built, simulated, and investigated in one conversation.

PIVOT_SPRING RUN
2016–2025 · NASDAQ-100 · 944 trades
You

Please ask WhaleRider to create a long-only trade plan named PIVOT_SPRING_TRADE_PLAN.

Trade common stocks with point-in-time NASDAQ-100 membership.

Look for financially strong stocks that fall below monthly support and then recover. Require an operating profit margin above 15%, an operating-cash-flow-to-sales ratio above 10%.

Begin the setup while the stock’s daily low is above its standard monthly S2 pivot. Then, wait for the low to fall below monthly S2. Enter when the price subsequently recovers above its standard weekly S2 pivot and all financial conditions remain satisfied.

Use daily data for the standard weekly and monthly pivots and a daily 14-period ATR. Close any position still open after 30 calendar days. Take profit: 1.5 ATR above price. Stop loss: 3 ATR below price.

WhaleRider

I’ll pass the strategy to WhaleRider exactly as specified, preserving the point-in-time universe, staged S2 setup, and ATR-based exits.

Created and validated by WhaleRider.

Definition ID: 6ab230c83b7850e53b6732f5

PIVOT_SPRING_TRADE_PLAN.trade-plan.yamlFull validated definition
# ==============================================================================
# WHALERIDER TRADE-PLAN CONFIGURATION
# ==============================================================================
# Artifact Name: PIVOT_SPRING_TRADE_PLAN
# Purpose: Defines market scope, calculations, signals, and trading decisions.
# Status: Generated configuration; validation is required before deployment.
# Website: https://whalerider.org
# WhaleRider © 2026 RockSoldi. All rights reserved.
# ------------------------------------------------------------------------------

# ------------------------------------------------------------------------------
# TRADE-PLAN DEFINITION
# ------------------------------------------------------------------------------
# Identifies this long-only plan for financially strong NASDAQ-100 common stocks.
NAME: PIVOT_SPRING_TRADE_PLAN
SIDE: LONG

# ------------------------------------------------------------------------------
# RISK MANAGEMENT
# ------------------------------------------------------------------------------
# Limits each holding to 30 calendar days and retains existing positions when
# capital is unavailable. ATR distances use daily fourteen-period volatility.
RISK:
  HOLDING_MAX_PERIOD: 30D
  REPLACEMENT_MODE: NONE
  ATR:
    LOOKBACK: 14
    INTERVAL: DAY
    STOP_LOSS: 3
    TAKE_PROFIT: 1.5

# ------------------------------------------------------------------------------
# MARKET UNIVERSE
# ------------------------------------------------------------------------------
# Evaluates common stocks with point-in-time membership in the NASDAQ-100.
# Historical index membership is applied at the relevant evaluation time.
UNIVERSE:
  SECURITY_TYPES:
    - STOCK
  MARKET_INDICES:
    - NASDAQ100

# ------------------------------------------------------------------------------
# INDICATORS
# ------------------------------------------------------------------------------
# Calculates daily price references, standard weekly and monthly S2 pivots, and
# financial ratios. Pivot calculations use daily candle data as requested.
INDICATORS:
  - NAME: DAILY_LOW
    DOMAIN: CANDLE
    INTERVAL: DAY
    MEASUREMENT: Low

  - NAME: DAILY_CLOSE
    DOMAIN: CANDLE
    INTERVAL: DAY
    MEASUREMENT: Close

  - NAME: MONTHLY_PIVOT_S2
    DOMAIN: CANDLE
    INTERVAL: DAY
    STEPS:
      - TYPE: PIVOT
        LOOKBACK: 60
        ARGS:
          TYPE: Standard
          WINDOW_SIZE: MONTH
          LEVEL: S2

  - NAME: WEEKLY_PIVOT_S2
    DOMAIN: CANDLE
    INTERVAL: DAY
    STEPS:
      - TYPE: PIVOT
        LOOKBACK: 20
        ARGS:
          TYPE: Standard
          WINDOW_SIZE: WEEK
          LEVEL: S2

  - NAME: OPERATING_PROFIT_MARGIN
    DOMAIN: RATIO
    MEASUREMENT: OperatingProfitMargin

  - NAME: OPERATING_CASH_FLOW_TO_SALES_RATIO
    DOMAIN: RATIO
    MEASUREMENT: OperatingCashFlowSalesRatio

# ------------------------------------------------------------------------------
# SIGNALS
# ------------------------------------------------------------------------------
# Requires operating profit margin above 15 percent and operating cash flow to
# sales above 10 percent. The setup tracks a monthly-S2 break and recovery.
SIGNALS:
  - NAME: FINANCIALS_STRONG
    IS: OPERATING_PROFIT_MARGIN > 0.15 AND OPERATING_CASH_FLOW_TO_SALES_RATIO > 0.10

  - NAME: LOW_ABOVE_MONTHLY_S2
    IS: DAILY_LOW > MONTHLY_PIVOT_S2

  - NAME: LOW_BELOW_MONTHLY_S2
    IS: DAILY_LOW < MONTHLY_PIVOT_S2

  - NAME: CLOSE_ABOVE_WEEKLY_S2
    IS: DAILY_CLOSE > WEEKLY_PIVOT_S2

# ------------------------------------------------------------------------------
# ENTRY AND EXIT CRITERIA
# ------------------------------------------------------------------------------
# Entry requires financial strength, an initial daily low above monthly S2, a
# subsequent daily low below monthly S2, and recovery above weekly S2 support.
CRITERIA:
  ENTER:
    IF: FINANCIALS_STRONG AND LOW_ABOVE_MONTHLY_S2
    NEXT:
      - IF: LOW_BELOW_MONTHLY_S2
        NEXT:
          - IF: CLOSE_ABOVE_WEEKLY_S2 AND FINANCIALS_STRONG

# ------------------------------------------------------------------------------
# LEGAL AND RISK NOTICE
# ------------------------------------------------------------------------------
# This configuration is provided for technical and informational use only.
# It is not investment, financial, legal, or tax advice and is not a
# recommendation or solicitation to buy, sell, or hold any instrument.
# Trading involves risk of loss. Margin and short selling may result in
# losses exceeding the capital initially committed.
# Historical, backtested, and simulated results do not guarantee future results.
# ==============================================================================
You

Ask WhaleRider to create a new risk policy named PIVOT_SPRING_RISK_POLICY.

Allow each position to use up to 30% of current account equity, but require a minimum position value of 1% of equity. Limit the maximum permitted loss on any individual position to 3% of current account equity.

WhaleRider

I’ll have WhaleRider create and validate the named risk policy with the three equity-based position constraints exactly as given.

Created and validated by WhaleRider.

Definition ID: 6ab231393b7850e53b6732f6

PIVOT_SPRING_RISK_POLICY.risk-policy.yamlFull validated definition
# ==============================================================================
# WHALERIDER RISK-POLICY CONFIGURATION
# ==============================================================================
# Artifact Name: PIVOT_SPRING_RISK_POLICY
# Purpose: Defines reusable limits for position value and loss exposure.
# Status: Generated configuration; validation is required before deployment.
# Website: https://whalerider.org
# WhaleRider © 2026 RockSoldi. All rights reserved.
# ------------------------------------------------------------------------------

NAME: PIVOT_SPRING_RISK_POLICY

# ------------------------------------------------------------------------------
# POSITION LIMITS
# ------------------------------------------------------------------------------
# Defines per-position value and risk limits as percentages of account equity.
# Caps each newly sized position at 30% of current account equity.
# This per-position limit remains separate from any strategy-level allocation cap.
MAX_POSITION_VALUE_PCT: 30
# Rejects a newly sized position when its value is below 1% of current equity.
MIN_POSITION_VALUE_PCT: 1
# Targets a maximum loss budget of 3% of current account equity per position.
# With an ATR stop, this limit can constrain position size; otherwise it derives
# a target stop-loss price after value-based sizing.
MAX_POSITION_RISK_PCT: 3

# ------------------------------------------------------------------------------
# LEGAL AND RISK NOTICE
# ------------------------------------------------------------------------------
# This configuration is provided for technical and informational use only.
# It is not investment, financial, legal, or tax advice and is not a
# recommendation or solicitation to buy, sell, or hold any instrument.
# Trading involves risk of loss. Margin and short selling may result in
# losses exceeding the capital initially committed.
# Historical, backtested, and simulated results do not guarantee future results.
# ==============================================================================
You

Please create a strategy from both and call it PIVOT_SPRING_STRATEGY.

WhaleRider

I’ll combine the validated trade plan (6ab230c83b7850e53b6732f5) and risk policy (6ab231393b7850e53b6732f6) into the requested strategy.

Created and validated by WhaleRider.

Definition ID: 6ab231573b7850e53b6732f7

PIVOT_SPRING_STRATEGY.strategy.yamlFull validated definition
# ==============================================================================
# WHALERIDER STRATEGY CONFIGURATION
# ==============================================================================
# Artifact Name: PIVOT_SPRING_STRATEGY
# Purpose: Connects one deployed trade plan to one deployed risk policy.
# Status: Generated configuration; validation is required before deployment.
# Website: https://whalerider.org
# WhaleRider © 2026 RockSoldi. All rights reserved.
# ------------------------------------------------------------------------------

NAME: PIVOT_SPRING_STRATEGY

# ------------------------------------------------------------------------------
# DEPLOYED ARTIFACT REFERENCES
# ------------------------------------------------------------------------------
# Binds the strategy to validated, deployed artifact identifiers.
# Uses the deployed trade plan identifier supplied for this strategy.
TRADE_PLAN_ID: 6ab230c83b7850e53b6732f5
# Uses the deployed risk policy identifier supplied for this strategy.
RISK_POLICY_ID: 6ab231393b7850e53b6732f6

# ------------------------------------------------------------------------------
# LEGAL AND RISK NOTICE
# ------------------------------------------------------------------------------
# This configuration is provided for technical and informational use only.
# It is not investment, financial, legal, or tax advice and is not a
# recommendation or solicitation to buy, sell, or hold any instrument.
# Trading involves risk of loss. Margin and short selling may result in
# losses exceeding the capital initially committed.
# Historical, backtested, and simulated results do not guarantee future results.
# ==============================================================================
You

Now create a simulation named PIVOT_SPRING_SIMULATION from 2016-01-01 to 2025-12-31, with initial cash of $100,000.

WhaleRider

I’ll create the simulation definition against PIVOT_SPRING_STRATEGY (6ab231573b7850e53b6732f7) for 2016-01-01 through 2025-12-31 with $100,000 initial cash.

Created and validated by WhaleRider.

Definition ID: 6ab231873b7850e53b6732f8

PIVOT_SPRING_SIMULATION.simulation.yamlFull validated definition
# ==============================================================================
# WHALERIDER SIMULATION CONFIGURATION
# ==============================================================================
# Artifact Name: PIVOT_SPRING_SIMULATION
# Purpose: Defines a historical multi-strategy simulation and account model.
# Status: Generated configuration; validation is required before execution.
# Website: https://whalerider.org
# WhaleRider © 2026 RockSoldi. All rights reserved.
# ------------------------------------------------------------------------------

# Defines the unique simulation artifact name.
NAME: PIVOT_SPRING_SIMULATION

# ------------------------------------------------------------------------------
# STRATEGY ALLOCATION
# ------------------------------------------------------------------------------
# Selects the deployed strategy to execute using the shared simulation account.
# No strategy-specific gross-equity allocation cap is applied.
STRATEGIES:
  - STRATEGY_ID: 6ab231573b7850e53b6732f7

# ------------------------------------------------------------------------------
# ACCOUNT ASSUMPTIONS
# ------------------------------------------------------------------------------
# Sets the simulation account's starting cash and equity in U.S. dollar units.
# Margin requirements and financing costs are not included because none were requested.
INITIAL_CASH: 100000

# ------------------------------------------------------------------------------
# HISTORICAL DATE SCOPE
# ------------------------------------------------------------------------------
# Defines the inclusive historical evaluation period using ISO calendar dates.
# The period runs from 2016-01-01 through 2025-12-31.
FROM: 2016-01-01
TO: 2025-12-31

# ------------------------------------------------------------------------------
# LEGAL AND RISK NOTICE
# ------------------------------------------------------------------------------
# This configuration is provided for technical and informational use only.
# It is not investment, financial, legal, or tax advice and is not a
# recommendation or solicitation to buy, sell, or hold any instrument.
# Trading involves risk of loss. Margin and short selling may result in
# losses exceeding the capital initially committed.
# Historical, backtested, and simulated results do not guarantee future results.
# ==============================================================================
You

Please run the simulation.

WhaleRider

I’ll start the validated PIVOT_SPRING_SIMULATION now.

Simulation started successfully.

Simulation run ID: 6ab234d13b7850e53b6732f9

You

Please let me know when it has finished.

WhaleRider

I’ll wait for the simulation to finish and let you know when it reaches a terminal state.

The simulation finished successfully.

Simulation run ID: 6ab234d13b7850e53b6732f9
Status: Completed

You

Show me the summary of the results.

WhaleRider

The simulation completed with strong returns, alongside a 28.03% maximum drawdown.

$864,077.73Ending equity
764.08%Total return
24.07%CAGR
944Completed trades
1.454Profit factor
28.03%Maximum drawdown
1.20Sharpe ratio
1.81Sortino ratio
26.25%Exposure-adjusted CAGR
You

Show me the annual returns in a vertical bar chart. x-axis as years and y-axis as returns.

WhaleRider

Annual returns

0%
+23.35%2016
+8.89%2017
-17.02%2018
+38.04%2019
+87.57%2020
+60.54%2021
-10.47%2022
+66.87%2023
+11.98%2024
+11.47%2025

2020 was strongest at 87.57%; 2018 and 2022 were the only negative years.

Monthly returns heatmap

JanFebMarAprMayJunJulAugSepOctNovDec2016+0.84%-4.74%+9.70%-1.97%-1.78%+0.63%+8.43%+2.35%+4.60%-2.40%+1.15%+5.42%2017+0.59%+3.49%+0.98%+0.93%+3.11%-0.96%-1.57%-1.76%+2.06%+1.07%-1.32%+2.10%2018+8.39%+0.27%-4.16%+0.36%+0.08%+2.14%-0.21%+0.32%-1.38%-16.66%+2.87%-8.24%2019+15.10%+5.65%-1.72%+8.32%-5.45%+9.05%+1.66%-6.16%+5.84%-0.08%-0.63%+3.16%2020+1.43%+1.71%-9.55%+14.71%+12.84%+11.79%+6.10%+0.65%+2.39%+7.21%+12.93%+4.95%2021+6.24%+1.92%+1.36%+3.22%+8.14%+6.73%+8.81%+2.77%+0.97%+1.39%+7.70%-0.42%2022-14.56%+3.28%+3.80%-7.92%-1.62%-2.93%+5.92%+6.06%+0.09%-0.27%+7.98%-8.22%2023+4.31%+4.12%+6.11%+3.98%+8.22%+7.32%+6.91%-2.07%+1.20%-1.83%+10.14%+4.68%2024-3.23%+1.02%+0.33%+0.06%+7.93%+2.07%+4.15%-3.67%-1.45%+1.76%+3.99%-1.01%2025+2.52%+7.82%-9.79%+4.53%+6.84%+3.79%+2.12%-1.21%-4.48%+0.58%-2.61%+2.16%

Equity curve

0%200%400%600%800%2016201720182019202020212022202320242025YearCumulative return (%)
You

I see a 16.66% decline in October 2018. Please show me all trades realized that month.

WhaleRider

There were 7 trades realized in October 2018. Six lost money and one was profitable. Combined realized P&L was −$23,607.77.

TickerEnteredEntryExitedExitSharesP&LReturn
META2018-09-10$163.442018-10-11$151.00253−$3,147.32−7.61%
ASML2018-09-10$186.242018-10-11$176.19225−$2,261.25−5.40%
AMAT2018-09-14$39.442018-10-10$34.34648−$3,304.80−12.93%
KLAC2018-09-19$10.302018-10-12$9.313,192−$3,160.08−9.61%
ALGN2018-10-10$332.652018-10-25$205.4566−$8,395.20−38.24%
IDXX2018-10-11$217.902018-10-18$228.218+$82.48+4.73%
ADI2018-10-11$84.912018-10-26$77.39455−$3,421.60−8.86%

From strategy idea to research result, in one AI conversation.

WhaleRider converted the natural-language strategy into linked, validated artifacts, ran the ten-year simulation, and returned authoritative analysis without leaving the AI interface.

Connect your AI →