DocsDashboard
Research Lab
Projects
Editor
Analyze
Results
Intelligence
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.0The 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:
- Select a symbol (e.g., BTCUSDT) and interval (e.g., 4h)
- Set the date range or candle range
- Configure portfolio amount and trading fees
- 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:
- Write code in Definition
- Test it in Backtest
- Search for robust parameters in Optimization
- Validate with WFA
- Analyze stability in Robustness
Your strategy code stays mounted across all tabs. Switching between them does not reset your work.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+S | Save strategy |
Ctrl+Enter | Run backtest |
Next Steps
- Running a Backtest — Detailed backtest guide
- Running Optimization — Parameter search guide
- Projects — Managing strategy projects
research labideworkspaceeditortabs