Strategy Analysis - Backtests & Performance Metrics

Run strategy backtests for crypto, stocks, futures, and gold. Review equity curves, win rates, Sharpe, profit factor, and compare vs buy-and-hold.


o (Open): [{x: [{rsi: 5}, {v: 70}]}]
c (Close): [{y: [{rsi: 5}, {v: 70}]}]
Long (1x)
Selected source: ticker (btcusd)

Single Strategy Mode (or build multi-leg nested composite)

Duplicate into a nested composite to combine and edit multiple strategies together.

1. Signal Conditions — Open (`o`) & Close (`c`)

Adjust entry (`o`) and exit (`c`) rules independently. Changes automatically parse into and update the Strategy expression above.
o

Open Condition (Entry Signal)

Syntax OK

Rule list that triggers opening a position (e.g. [{<: [{rsi: 14}, {v: 30}]}]).

Presets:
RSI(5) Cross > 70
RSI(14) < 30
Close > SMA(50)
Candle Dip (IBS < 20)
Weekday (Tue)
Streak <= -3
c

Close Condition (Exit Signal)

Syntax OK

Rule list that closes an open trade. Leave empty to close after Hold Duration (n) bars.

Presets:
RSI(5) Cross < 70
RSI(14) > 70
Close < SMA(50)
Close > Prev High
None (Hold n bars)

Trailing close signal evaluated continuously after entry (optional).

2. Market & Data Source (`s`, `api`, `nbars`)

Select a single Ticker + Exchange or run across a Tickerlist batch, and set timeframe (`interval`), feed (`api`), and history window (`nbars`).
Selected source: ticker (btcusd)

Candle timeframe (15, 1h, 4h, 1D)

Data source (md / alp)

Clock mode (ext / rth / tv)

Lookback window (bars)

3. Execution, Hold Duration & Risk (`t`, `n`, `h`, `spread`, `sl`, `tp`)

Configure trade direction/leverage (`t`), max hold bars (`n`), max concurrent open trades (`h`), fee (`spread`), and Stop Loss / Take Profit (%).
Quick Direction:
Long (+1)
Short (-1)

1 = Long, -1 = Short (leverage)

Auto-exit after n bars

1 = single, 0 = unlimited

Fee / slippage per trade (%)

Optional SL in %

Optional TP in %


Add a strategy expression to load data and populate the table.


Select one or more rows in the strategy table above to view trade markers and entry/exit conditions.

Systematic Trading Strategy Backtester & DSL

Build, backtest, and compare rule-based long and short trading strategies across Bitcoin, crypto, equities, ETFs, commodities, and forex. Combine 166 technical indicators (RSI, SMA, EMA, MACD, Bollinger Bands, ATR, ADX) with stop-loss, take-profit, and holding-period rules, and evaluate full ROI, CAGR, win rate, profit factor, Sharpe ratio, and maximum drawdown.

Browse Top Backtested StrategiesShort-Term Trading Strategies That WorkMarsDX Bitcoin StrategyStrategy DSL Reference →