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 market data is sourced from leading providers and refreshed daily.
  • 80+ US and Hong Kong equities are pre-loaded with full historical market data.
  • 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 "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "symbol": "AAPL",
    "strategy": "rsi",
    "start_date": "2020-01-01",
    "end_date": "2024-01-01",
    "params": { "window": 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={"x-api-key": API_KEY},
    json={
        "symbol": "TSLA",
        "strategy": "macd",
        "start_date": "2022-01-01",
        "end_date": "2024-01-01",
    }
)

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

Plans & Usage Limits

PlanBacktests / MonthQueries / MonthHistory
Free10301 year
Essential2005005 years
Plus8002,50010 years
Ultimate2,0006,000Unlimited

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 and Hong Kong equities with daily data. China, Taiwan, crypto, and 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.