NeuroBacktest

Documentation

Everything you need to turn your trading ideas into data-driven strategies.

Getting Started

  • Create a free account or sign in with Google.
  • Navigate to the Backtest Chat from the navigation menu.
  • Type your strategy in plain English — for example: "Backtest RSI mean reversion on AAPL from 2021 to 2024."
  • Review the generated backtest report, equity curve, and trade log.

How the Chat Works

  • Our AI interprets your message, classifies the intent, and routes it to the appropriate engine.
  • Single messages can trigger multiple tasks — ask for a backtest, optimization, and Monte Carlo analysis in one go.
  • The AI automatically selects date ranges, strategy parameters, and comparison logic unless you specify them.
  • Results are cached for 1 hour so repeat queries return instantly.

Supported Strategies

  • RSI Mean Reversion — Buy oversold, sell overbought conditions.
  • SMA Crossover — Golden cross and death cross signals.
  • MACD Crossover — Signal line crossovers with histogram confirmation.
  • Bollinger Bands — Mean reversion at upper and lower bands.
  • Combined Strategies — Run multiple indicators together with AND/OR logic.

Understanding Metrics

  • Total Return — Cumulative percentage gain or loss over the test period.
  • Sharpe Ratio — Risk-adjusted return. Higher is better. Above 1.0 is considered good.
  • Max Drawdown — Largest peak-to-trough decline. Lower is better.
  • Win Rate — Percentage of trades that were profitable.
  • Profit Factor — Gross profit divided by gross loss. Above 1.5 indicates a healthy strategy.
  • Sortino Ratio — Similar to Sharpe but only penalizes downside volatility.

Optimization & Analysis

  • Bayesian Optimization — Automatically finds the best parameters for your strategy using intelligent search.
  • Walk-Forward Analysis — Tests robustness by training on in-sample data and validating on out-of-sample data.
  • Monte Carlo Simulation — Randomizes trade order to test if results are due to luck or edge.
  • Company Analysis — Deep dive into financials, earnings, news sentiment, and peer comparison.

Security & Data

  • All data is sourced from Yahoo Finance and refreshed daily.
  • 50 US equities are pre-loaded with full OHLCV history.
  • Payment processing is handled by Stripe with PCI-DSS compliance.
  • API keys use SHA-256 hashing and are never stored in plain text.

Code Examples

Chat Prompts

Copy and paste these prompts directly into the Backtest Chat:

Backtest RSI mean reversion on AAPL from 2020-01-01 to 2024-01-01
Optimize MACD fast and slow periods for TSLA with 50 trials
Run Monte Carlo simulation on Bollinger Bands strategy for MSFT
Walk-forward analysis on SMA crossover for SPY with 5 folds
Portfolio backtest for AAPL, MSFT, GOOGL with equal weights

Enterprise API (cURL)

curl -X POST https://www.neurobacktest.com/api/v1/backtest \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "symbol": "AAPL",
    "strategy": "rsi_mean_reversion",
    "timeframe": "1d",
    "start_date": "2020-01-01",
    "end_date": "2024-01-01",
    "params": { "rsi_period": 14, "oversold": 30, "overbought": 70 }
  }'

Python SDK Example

import requests

API_KEY = "nb_your_api_key_here"
BASE_URL = "https://www.neurobacktest.com/api/v1"

response = requests.post(
    f"{BASE_URL}/backtest",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={
        "symbol": "TSLA",
        "strategy": "macd_crossover",
        "timeframe": "1d",
        "start_date": "2022-01-01",
        "end_date": "2024-01-01",
    }
)

result = response.json()
print(f"Total Return: {result['metrics']['total_return']:.2f}%")
print(f"Sharpe Ratio: {result['metrics']['sharpe_ratio']:.2f}")

Plans & Usage Limits

PlanBacktests / MonthQueries / MonthHistory
Free103030 days
Essential200500365 days
Plus8002,500730 days
Ultimate2,0006,0001,825 days

Frequently Asked Questions

Do I need to know how to code?

No. NeuroBacktest is built for traders, not programmers. Describe your idea in plain English and the AI handles the rest.

What markets and timeframes are supported?

We currently support US equities with daily (1d) data. Intraday timeframes are on our roadmap.

How accurate are the backtests?

Backtests use historical closing prices with realistic assumptions. They simulate what would have happened, but past performance never guarantees future results.

Can I download my results?

Yes. Every backtest includes exportable charts, CSV trade logs, and a summary report you can save or share.

What happens when I hit my plan limit?

You will see a friendly rate-limit message with the option to upgrade. Limits reset daily at midnight UTC.

Is there an API for enterprise use?

Yes. Our REST API is available exclusively to Enterprise customers. It supports programmatic backtesting, optimization, and analysis. Contact sales for access.