DocsDashboard

Research Lab

Projects
Editor
Analyze
Results
Intelligence
EMA Crossover Project
Code
Analyze
Optimize
WFA
// EMA Crossover Strategy
function define(ctx) {
ctx.param('fastLength', { type: 'int', default: 9 });
ctx.param('slowLength', { type: 'int', default: 21 });
}
function onBar(ctx, i) {
if (q.crossOver(ctx.fastEMA, ctx.slowEMA, i))
ctx.order.market('long');
}
ConfigJobs
SymbolBTCUSDT
Interval4h
ModeLong Only
Capital10,000
0 errors0 warnings
QSL v1.0

The Research Lab is the main workspace. It combines a code editor, backtest runner, optimizer, and analysis tools into a single interface.

Code Editor

The left panel contains a full-featured code editor for your QSL strategy:

  • Syntax highlighting for JavaScript/QSL
  • Parameter extraction from your define() function
  • Inline error reporting when strategies fail validation

Changes to the code are reflected immediately — save your strategy, and the parameter panel updates to match.

Running a Backtest

From the Backtest tab in the right dock:

  1. Select a symbol (e.g., BTCUSDT) and interval (e.g., 4h)
  2. Set the date range or candle range
  3. Configure portfolio amount and trading fees
  4. Click Run Backtest

Results appear in the same panel: equity curve, trade list, and performance metrics.

Switching Contexts

The right dock tabs let you move through the research pipeline without leaving the page:

Your strategy code stays mounted across all tabs. Switching between them does not reset your work.

Keyboard Shortcuts

ShortcutAction
Ctrl+SSave strategy
Ctrl+EnterRun backtest

Next Steps

research labideworkspaceeditortabs