Real Codex workflows

Real Sessions

Follow the actual prompts, responses, definitions, and charts from the October 7, 2026 research conversations.

SESSION 02

WEAK_IBS

A SPY internal bar strength strategy, simulated over 2016–2025.

WEAK_IBS RUN
2016–2025 · 184 completed trades
You

Please create a trade plan named WEAK_IBS_TRADE_PLAN. Trade only SPY with a maximum holding period of 60 days. The strategy enters long when daily IBS drops below 0.1, and exits when IBS rises above 0.8.

WhaleRider

Created and validated WEAK_IBS_TRADE_PLAN: SPY only, long entry at daily IBS < 0.1, exit at IBS > 0.8, with a 60-calendar-day holding limit.

Definition ID: 6ac665bd2d45d7263f24a0b8

WEAK_IBS_TRADE_PLAN.trade-plan.yaml

Validated YAML
# ==============================================================================
# WHALERIDER TRADE-PLAN CONFIGURATION
# ==============================================================================
# Artifact Name: WEAK_IBS_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.
# ------------------------------------------------------------------------------

NAME: WEAK_IBS_TRADE_PLAN
SIDE: LONG

# ------------------------------------------------------------------------------
# RISK MANAGEMENT
# ------------------------------------------------------------------------------
# Limits holding time to 60 calendar days.
# The default replacement mode does not close existing positions to free capital.
# Holding-period exits are checked on evaluation events, not at guaranteed times.
RISK:
  HOLDING_MAX_PERIOD: 60D
  REPLACEMENT_MODE: NONE

# ------------------------------------------------------------------------------
# MARKET UNIVERSE
# ------------------------------------------------------------------------------
# Restricts evaluation and trading to SPY, an exchange-traded fund.
# No index-membership restriction is applied.
UNIVERSE:
  SECURITY_TYPES:
    - ETF
  TICKERS:
    - SPY

# ------------------------------------------------------------------------------
# INDICATOR CALCULATIONS
# ------------------------------------------------------------------------------
# Daily internal bar strength is (Close - Low) / (High - Low).
# IBS is a dimensionless fraction; zero-range candles are excluded to prevent
# division by zero.
INDICATORS:
  - NAME: DAILY_IBS
    DOMAIN: CANDLE
    INTERVAL: DAY
    MEASUREMENT: (Close - Low) / (High - Low)
    FILTER: High > Low

# ------------------------------------------------------------------------------
# TRADING SIGNALS
# ------------------------------------------------------------------------------
# Uses strict thresholds: equality at 0.1 or 0.8 does not satisfy the condition.
# Missing usable indicator data retains the previous signal state by default;
# before the first successful calculation, that state is false.
SIGNALS:
  - NAME: IBS_WEAK
    IS: DAILY_IBS < 0.1
  - NAME: IBS_STRONG
    IS: DAILY_IBS > 0.8

# ------------------------------------------------------------------------------
# ENTRY AND EXIT CRITERIA
# ------------------------------------------------------------------------------
# Permits a long entry while daily IBS is below 0.1.
# Requests an exit while daily IBS is above 0.8; the holding limit also applies.
# Execution remains subject to eligible evaluations and market availability.
CRITERIA:
  ENTER:
    IF: IBS_WEAK
  EXIT:
    IF: IBS_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

Create a risk policy called WEAK_IBS_RISK_POLICY. Set the maximum position risk to 100% of equity, maximum position size to 100%, and minimum position size to 2%.

WhaleRider

Created and validated WEAK_IBS_RISK_POLICY with maximum position risk of 100%, maximum position size of 100%, and minimum position size of 2% of equity.

Definition ID: 6ac665f62d45d7263f24a0b9

WEAK_IBS_RISK_POLICY.risk-policy.yaml

Validated YAML
# ==============================================================================
# WHALERIDER RISK-POLICY CONFIGURATION
# ==============================================================================
# Artifact Name: WEAK_IBS_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.
# ------------------------------------------------------------------------------

# Defines the reusable position-sizing policy with the requested equity limits.
NAME: WEAK_IBS_RISK_POLICY

# ------------------------------------------------------------------------------
# POSITION LIMITS
# ------------------------------------------------------------------------------
# Defines per-position value and risk limits as percentages of account equity.
# All percentages are integers measured against current account equity.
# Actual sizing remains subject to available buying power and the strategy's
# remaining aggregate allocation capacity.

# Caps the market value of one new position at 100% of current account equity.
# This cap is separate from the strategy's aggregate exposure limit.
MAX_POSITION_VALUE_PCT: 100

# Rejects a newly sized position worth less than 2% of current account equity.
MIN_POSITION_VALUE_PCT: 2

# Targets a maximum loss budget of 100% of current account equity per position.
# With a positive trade-plan STOP_LOSS_ATR and current ATR, this budget limits
# position size alongside all active capital limits.
# Without STOP_LOSS_ATR, sizing uses the value cap and active capital limits;
# the risk budget then determines a policy-derived stop-loss price.
# Stops are checked only at trade-plan evaluations. Gaps, execution delays,
# slippage, and commissions can cause losses to exceed this target.
MAX_POSITION_RISK_PCT: 100

# ------------------------------------------------------------------------------
# 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

Create a strategy named WEAK_IBS_STRATEGY combining WEAK_IBS_TRADE_PLAN and WEAK_IBS_RISK_POLICY.

WhaleRider

Created and validated WEAK_IBS_STRATEGY, combining WEAK_IBS_TRADE_PLAN and WEAK_IBS_RISK_POLICY.

Definition ID: 6ac6662a2d45d7263f24a0ba

WEAK_IBS_STRATEGY.strategy.yaml

Validated YAML
# ==============================================================================
# WHALERIDER STRATEGY CONFIGURATION
# ==============================================================================
# Artifact Name: WEAK_IBS_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.
# ------------------------------------------------------------------------------

# Names this strategy without embedding its dependency identifiers.
NAME: WEAK_IBS_STRATEGY

# ------------------------------------------------------------------------------
# DEPLOYED ARTIFACT REFERENCES
# ------------------------------------------------------------------------------
# Binds the strategy to validated, deployed artifact identifiers.
# Uses the exact trade plan definition identifier supplied by the caller.
# The referenced trade plan defines signals, entry and exit criteria,
# and trade-management rules.
TRADE_PLAN_ID: 6ac665bd2d45d7263f24a0b8

# Uses the exact risk policy definition identifier supplied by the caller.
# The referenced risk policy defines position-value and position-risk limits.
RISK_POLICY_ID: 6ac665f62d45d7263f24a0b9

# ------------------------------------------------------------------------------
# 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

Create a simulation called WEAK_IBS_SIMULATION for WEAK_IBS_STRATEGY with $100,000 in starting cash, running from 2016-01-01 to 2025-12-31.

WhaleRider

Created and validated WEAK_IBS_SIMULATION for WEAK_IBS_STRATEGY, with $100,000 starting cash covering 2016-01-01 through 2025-12-31. It is ready to run.

Definition ID: 6ac666532d45d7263f24a0bb

WEAK_IBS_SIMULATION.simulation.yaml

Validated YAML
# ==============================================================================
# WHALERIDER SIMULATION CONFIGURATION
# ==============================================================================
# Artifact Name: WEAK_IBS_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.
# ------------------------------------------------------------------------------

# ------------------------------------------------------------------------------
# SIMULATION IDENTITY
# ------------------------------------------------------------------------------
# Identifies this historical simulation independently of its strategy reference.
NAME: WEAK_IBS_SIMULATION

# ------------------------------------------------------------------------------
# STRATEGY ALLOCATION
# ------------------------------------------------------------------------------
# Runs the supplied strategy using the simulation account and its buying power.
# No strategy-specific gross-equity-exposure cap is requested or applied.
STRATEGIES:
  - STRATEGY_ID: 6ac6662a2d45d7263f24a0ba

# ------------------------------------------------------------------------------
# INITIAL ACCOUNT CAPITAL
# ------------------------------------------------------------------------------
# Sets starting cash and equity to 100,000 US dollars.
# No optional margin requirements or financing configuration is requested.
INITIAL_CASH: 100000

# ------------------------------------------------------------------------------
# HISTORICAL EVALUATION PERIOD
# ------------------------------------------------------------------------------
# Defines the inclusive historical period using ISO calendar dates.
# Covers January 1, 2016 through December 31, 2025.
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

Run WEAK_IBS_SIMULATION and let me know when it's done.

WhaleRider

WEAK_IBS_SIMULATION has completed successfully.

Run ID: 6ac666742d45d7263f24a0bc

You

Show me a summary of the simulation's performance.

WhaleRider

WEAK_IBS_SIMULATION grew $100,000 to $223,634.95, returning 123.63% over 2016–2025.

Performance metricResult
Annualized return (CAGR)8.38%
Maximum drawdown14.79%
Completed trades184
Profit factor1.97
Sharpe ratio0.76
Sortino ratio1.22
Exposure-adjusted CAGR36.63%

Exposure-adjusted CAGR reflects time in the market; the full-period annualized return was 8.38%.

You

Please show me the annual returns chart

WhaleRider

Annual realized returns peaked in 2020 at +25.09%. The only negative year was 2018 at −12.52%.

2025 returned +11.62%, marked as a partial period by WhaleRider.

You

Plot the equity curve over time

WhaleRider

The weekly realized account-value curve rises from $100,000 to $223,634.95 over 2016–2025.

It includes realized trading profits and losses; unrealized changes in open positions are excluded.

You

Show me a monthly heatmap across all years.

WhaleRider

The heatmap covers all 120 months from 2016–2025, using monthly realized returns in the WhaleRider blue/amber palette. Partial periods are marked.

You

For the trades that closed in December 2018, please show the entry and exit dates, entry and exit prices, dollar PnL, and percentage return for each trade, along with the total PnL and overall return.

WhaleRider

Two SPY long trades closed in December 2018, with a total loss of $8,390.34.

Entry dateExit dateSharesEntry priceExit priceDollar PnLTrade return
2018-12-062018-12-07413$266.72$270.74+$1,660.26+1.51%
2018-12-132018-12-27420$266.40$242.47−$10,050.60−8.98%

Overall December account return: −7.61%, as reported by WhaleRider.

Trade PnL is calculated as (exit price − entry price) × shares, before any separately charged fees. Trade returns use each trade’s entry price; the overall return uses account equity.

You

Please plot a daily candlestick chart for the trade on 2018-12-13.

WhaleRider

The daily SPY chart includes the trade’s entry and exit markers:

  • Entry: December 13, 2018 at $266.40
  • Exit: December 27, 2018 at $242.47
  • Gross PnL: −$10,050.60 (−8.98%) on 420 shares.

Continue the research in your own AI.

Build validated definitions, run historical simulations, and investigate the results with WhaleRider.

Connect your AI →