FlyTradr
⏱️

� Trading Simulator - User Guide

Last updated: December 14, 2025

🎮 Trading Simulator - User Guide

Version: 1.0
Last Updated: 10 Dec 2025
Audience: All Flytradr users
Difficulty: Intermediate


📋 Table of Contents

  1. Overview
  2. Quick Start
  3. Interface Overview
  4. Strategy Selection
  5. Market Selection
  6. Test Settings
  7. Speed Control
  8. Execution Realism
  9. Scenario Injection
  10. Running a Simulation
  11. Live Monitoring
  12. Playback Controls
  13. Results Analysis
  14. Templates
  15. Tips & Best Practices
  16. FAQ
  17. Related Guides

1. Overview

🎯 What is the Trading Simulator?

The Trading Simulator is a real-time strategy testing environment that replays historical market data while simulating realistic trading conditions. Unlike backtesting which processes data instantly, the simulator streams data at controllable speeds with live execution modeling.

Screenshot: [Diagram placeholder #1 - Add relevant screenshot here]

✨ Key Features

FeatureDescription
⏱️ Speed Control6 speed modes from realtime (1x) to fast (2x)
📡 Live TelemetryReal-time streaming of ticks, trades, and metrics
🎲 Execution RealismLatency, market impact, partial fills, slippage
💥 Scenario InjectionTest against flash crashes, volatility spikes
⏸️ Pause/ResumeFull playback control during simulation
📊 Live MetricsPortfolio stats updated in real-time
💾 TemplatesSave and reload test configurations

🔄 Simulator vs Backtesting vs Paper Trading

FeatureBacktestingSimulatorPaper Trading
Data SourceHistoricalHistoricalLive Market
ExecutionInstantReal-time replayReal-time
RealismBasicConfigurableFull
Scenarios
DurationSecondsMinutes-HoursOngoing
Use CaseRapid iterationStress testingPre-live validation

2. Quick Start

🚀 5-Step Launch Guide

Screenshot: [Diagram placeholder #2 - Add relevant screenshot here]

  1. Navigate: 🏠 Dashboard → 📊 Platform → 🎮 Simulator
  2. Select Strategy: Choose from library or Strategy Builder
  3. Choose Market: Pick provider, symbol, timeframe
  4. Configure Settings: Capital, fees, date range, speed mode
  5. Click Start: Watch live execution in real-time!

📸 [Screenshot placeholder: Simulator main interface with panels labeled]


3. Interface Overview

🖼️ Four-Panel Layout

Screenshot: [Diagram placeholder #3 - Add relevant screenshot here]

🎛️ Sidebar Controls

SectionPurpose
StrategyLoad strategy from library or Strategy Builder
MarketSelect data provider, symbol, interval
Test SettingsConfigure capital, commission, slippage, dates
Execution RealismModel latency, market impact, partial fills
Scenario InjectionAdd stress test events
Speed ModeControl replay speed
EstimatesPreview candle count, duration before running
ActionsStart, pause, stop, save, export
TemplatesSave/load configurations

📊 Main Content Panels

PanelContent
Progress BarSimulation progress with estimated time remaining
Status BannerCurrent state (idle, running, paused, completed)
Portfolio StatsLive equity, P&L, positions, cash
Live ExecutionOpen positions, pending orders, recent fills
Telemetry TimelineReal-time event stream (ticks, trades, scenarios)
Runtime HealthTick counter, execution latency, memory usage
Equity CurveLive-updating performance chart
Trade ListAll executed trades with details

4. Strategy Selection

📋 Loading Your Strategy

Click the Strategy section in the sidebar to select a strategy:

Screenshot: [Diagram placeholder #4 - Add relevant screenshot here]

✅ Strategy Requirements

Your strategy must include:

RequirementDescription
Entry RulesAt least one condition for entering trades
Exit RulesAt least one condition for exiting trades
Valid DSLStrategy must compile without errors

💡 Tip: If your strategy shows ⚠️ validation errors, return to Strategy Builder to fix them first.


5. Market Selection

📈 Choosing Your Market

Screenshot: [Diagram placeholder #5 - Add relevant screenshot here]

🌐 Available Providers

ProviderMarketsData Quality
TwelveDataUS/Global Equities, Forex, CryptoHigh
Flytradr SampleDemo data for testingMedium

⏱️ Available Timeframes

TimeframeCodeBest For
1 Minute1mScalping, high-frequency
5 Minutes5mDay trading
15 Minutes15mIntraday swing
30 Minutes30mShort-term swing
1 Hour1hSwing trading
4 Hours4hPosition trading
Daily1dLong-term strategies
Weekly1wInvestment strategies

6. Test Settings

⚙️ Core Configuration

The Test Settings panel configures your simulation parameters:

┌────────────────────────────────────────────────────┐
│  ⚙️ Test Settings                         [▼]     │
├────────────────────────────────────────────────────┤
│                                                    │
│  Initial Capital                                   │
│  ┌────────────────────┐  ┌────────────────────┐   │
│  │ ₹1,00,000         │  │ INR             ▼  │   │
│  └────────────────────┘  └────────────────────┘   │
│                                                    │
│  Commission (per trade)                            │
│  ┌────────────────────────────────────────────┐   │
│  │ ₹20                                        │   │
│  └────────────────────────────────────────────┘   │
│                                                    │
│  Slippage                                          │
│  ┌────────────────────────────────────────────┐   │
│  │ 0.05%                                      │   │
│  └────────────────────────────────────────────┘   │
│                                                    │
│  Date Range                                        │
│  ┌───────────────────┐ ┌─────────────────────┐    │
│  │ 2024-01-01       │→│ 2024-06-30          │    │
│  └───────────────────┘ └─────────────────────┘    │
│                                                    │
│  Quick Select: [1W] [1M] [3M] [6M] [1Y]           │
│                                                    │
│  Session Template                                  │
│  ┌──────────────────────────────────────────────┐  │
│  │ Indian Equities (9:15-15:30 IST)          ▼  │  │
│  └──────────────────────────────────────────────┘  │
│                                                    │
└────────────────────────────────────────────────────┘

💰 Initial Capital Options

CurrencySymbolTypical Starting Capital
Indian RupeeINR (₹)₹1,00,000 - ₹10,00,000
US DollarUSD ($)$10,000 - $100,000
EuroEUR (€)€10,000 - €100,000
British PoundGBP (£)£10,000 - £100,000
Japanese YenJPY (¥)¥1,000,000 - ¥10,000,000
Australian DollarAUDA$10,000 - A$100,000
Canadian DollarCADC$10,000 - C$100,000
Swiss FrancCHFCHF 10,000 - CHF 100,000

📅 Date Range Quick Selects

PresetPeriodCandles (5m)Use Case
1W1 Week~1,560Quick validation
1M1 Month~6,240Standard test
3M3 Months~18,720Extended validation
6M6 Months~37,440Comprehensive test
1Y1 Year~74,880Full cycle analysis

⏰ Session Templates

TemplateHours (Local)TimezoneMarkets
Indian Equities9:15 - 15:30IST (Asia/Kolkata)NSE, BSE
US Equities9:30 - 16:00EST (America/New_York)NYSE, NASDAQ
EU Equities8:00 - 16:30CET (Europe/Paris)LSE, Euronext
Global Forex24 hoursRollingAll FX pairs
Crypto 24x724 hoursUTCAll crypto
CommoditiesVariousExchange-specificCOMEX, MCX

7. Speed Control

⏱️ Replay Speed Modes

The simulator offers 6 speed modes to control how fast data is replayed:

Screenshot: [Diagram placeholder #6 - Add relevant screenshot here]

📊 Speed Mode Comparison

ModeSpeedDescriptionBest For
🕐 Realtime1xMatches actual market paceObserving every tick
🐢 Slow5x5x faster than realtimeDetailed analysis
🎯 AutoDynamicSystem selects optimal speedMost users (recommended)
Fast2xDouble processing speedQuick validation
⚖️ BalancedStandardStandard optimized speedGeneral testing
🎬 Accurate0.5xHalf speed, smooth UIVisual presentation

📊 Pre-Simulation Estimates

Before starting, the simulator shows estimates:

Screenshot: [Diagram placeholder #7 - Add relevant screenshot here]

MetricDescription
CandlesTotal data points to process
SpeedTicks per second (tps)
DurationEstimated simulation time
UI UpdatesHow often the display refreshes

8. Execution Realism

🎲 Modeling Real-World Execution

The Execution Realism panel lets you simulate real trading conditions:

Screenshot: [Diagram placeholder #8 - Add relevant screenshot here]

⚡ Network Latency & Jitter

Models network delays between your order and execution:

SettingRangeDescription
Min Latency0-1000msMinimum delay before order executes
Max Latency0-5000msMaximum delay (orders vary randomly)
JitterOn/OffRandom variability in latency

💡 Tip: Retail brokers typically have 50-200ms latency. Institutional: 1-10ms.

📊 Order Book & Liquidity

Models realistic market depth:

SettingDescription
Min Liquidity Threshold% of daily volume - larger orders may be rejected
Partial FillsOrders may fill partially if liquidity is thin
Min Fill PercentageMinimum % of order that must fill (e.g., 50%)

📈 Market Impact

Large orders move prices:

ModelDescription
LinearImpact proportional to order size
Square RootRealistic model - impact = √(size) × coefficient
NoneNo market impact (unrealistic)

Impact Coefficient: Basis points of price impact per 1% of daily volume traded.

  • Liquid stocks: 5-15 bps
  • Illiquid stocks: 50-100 bps

📉 Dynamic Slippage

Slippage increases during volatile periods:

SettingDescription
Volatility MultiplierBase slippage × current volatility × this value

Example: If base slippage is 0.05% and volatility is 2x normal with multiplier 1.5:

  • Actual slippage = 0.05% × 2 × 1.5 = 0.15%

9. Scenario Injection

💥 Stress Testing Your Strategy

The Scenario Injection panel lets you inject synthetic market events:

┌────────────────────────────────────────────────────┐
│  💥 Scenario Injection                    [▼]     │
├────────────────────────────────────────────────────┤
│                                                    │
│  ☑️ Enable Scenario Injection                      │
│  Stress test with synthetic market events          │
│                                                    │
│  Add Scenario:                                     │
│  ┌────────────────────┬─────────────────────┐     │
│  │ 💥 Volatility Spike│ 📉 Flash Crash      │     │
│  ├────────────────────┼─────────────────────┤     │
│  │ 💧 Liquidity       │ 📰 News Shock       │     │
│  │    Drought         │                     │     │
│  ├────────────────────┴─────────────────────┤     │
│  │       🔄 Regime Shift                    │     │
│  └──────────────────────────────────────────┘     │
│                                                    │
│  Active Scenarios (2):                             │
│                                                    │
│  ┌──────────────────────────────────────────────┐  │
│  │ 📉 Flash Crash                      [Remove] │  │
│  │ Trigger: 11:30 | Drop: 5% | Recovery: 15min  │  │
│  └──────────────────────────────────────────────┘  │
│                                                    │
│  ┌──────────────────────────────────────────────┐  │
│  │ 💥 Volatility Spike                 [Remove] │  │
│  │ Start: 14:00 | Duration: 30min | 3x normal   │  │
│  └──────────────────────────────────────────────┘  │
│                                                    │
│  ⚠️ Simulator Only: Scenarios are synthetic       │
│  events for stress testing.                        │
│                                                    │
└────────────────────────────────────────────────────┘

🎭 Available Scenario Types

ScenarioIconDescription
Volatility Spike💥Sudden VIX-style volatility explosion
Flash Crash📉2010-style rapid price drop and recovery
Liquidity Drought💧Spreads widen, order book depth vanishes
News Shock📰Gap up/down on unexpected news
Regime Shift🔄Gradual transition from low to high volatility

💥 Volatility Spike Settings

SettingDescriptionExample
Start TimeWhen spike begins (HH:MM)10:00
DurationHow long it lasts (minutes)30
MultiplierHow much higher than normal3x

📉 Flash Crash Settings

SettingDescriptionExample
Trigger TimeWhen crash begins11:30
Drop PercentageHow far price drops5%
Recovery TimeMinutes to recover15

💧 Liquidity Drought Settings

SettingDescriptionExample
Start TimeWhen drought begins14:00
DurationHow long it lasts60 min
Spread MultiplierHow much spreads widen3x

📰 News Shock Settings

SettingDescriptionExample
Trigger TimeWhen news hits09:30
Price JumpGap size (%)2%
DirectionGap Up or Gap DownUp

🔄 Regime Shift Settings

SettingDescriptionExample
Start TimeWhen shift begins10:00
From VolatilityStarting regimeLow
To VolatilityEnding regimeHigh
Transition DurationTime to shift (minutes)120

10. Running a Simulation

▶️ Starting the Simulation

  1. Verify all settings are configured
  2. Check the Estimates panel for expected duration
  3. Click the green ▶️ Start button

📸 [Screenshot placeholder: Start button and pre-simulation estimate panel]

📊 Simulation Status Flow

┌──────────────────────────────────────────────────────────────┐
│                                                              │
│   ⬤ Idle  ──▶  ⬤ Initializing  ──▶  ⬤ Running            │
│                                          │                   │
│                                          ▼                   │
│                                     ⬤ Paused                │
│                                          │                   │
│                                          ▼                   │
│                                     ⬤ Completed             │
│                                                              │
│   (or)  ⬤ Failed  (on error)                                │
│                                                              │
└──────────────────────────────────────────────────────────────┘

🔄 Status Indicators

StatusColorDescription
IdleGrayReady to start
InitializingBlueConnecting to server
RunningGreenActively processing data
PausedYellowTemporarily stopped
CompletedGreenFinished successfully
FailedRedError occurred

⏱️ Progress Bar

┌────────────────────────────────────────────────────────────┐
│ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░  45%          │
│ Processed: 8,424 / 18,720 candles | ETA: 4m 15s            │
└────────────────────────────────────────────────────────────┘

11. Live Monitoring

📡 Real-Time Telemetry

The simulator streams live data via SSE (Server-Sent Events):

┌────────────────────────────────────────────────────────────┐
│  📡 Telemetry Timeline                                     │
├────────────────────────────────────────────────────────────┤
│                                                            │
│  14:32:15.234  📈 TICK  AAPL @ $185.42 (+0.12%)           │
│  14:32:15.456  🟢 BUY   100 shares @ $185.42              │
│  14:32:18.789  📈 TICK  AAPL @ $185.55 (+0.07%)           │
│  14:32:22.123  📈 TICK  AAPL @ $185.61 (+0.03%)           │
│  14:32:25.456  💥 SCENARIO  Volatility Spike Started!     │
│  14:32:30.789  📈 TICK  AAPL @ $186.15 (+0.29%)           │
│  14:32:35.012  🔴 SELL  100 shares @ $186.15 [+$73]       │
│                                                            │
│  ⬇️ Auto-scrolling enabled                                 │
│                                                            │
└────────────────────────────────────────────────────────────┘

📊 Live Portfolio Stats

┌────────────────────────────────────────────────────────────┐
│  💰 Portfolio Stats (Live)                                 │
├──────────────┬──────────────┬──────────────┬──────────────┤
│   Equity     │    Cash      │  Open P&L    │  Total P&L   │
│  ₹1,03,542   │   ₹45,230    │   +₹1,280    │   +₹3,542    │
│    +3.5%     │              │              │    +3.5%     │
├──────────────┼──────────────┼──────────────┼──────────────┤
│  Positions   │   Orders     │   Trades     │   Win Rate   │
│      2       │      1       │     15       │    60%       │
└──────────────┴──────────────┴──────────────┴──────────────┘

🖥️ Runtime Health

┌────────────────────────────────────────────────────────────┐
│  🖥️ Runtime Health                                         │
├──────────────┬──────────────┬──────────────┬──────────────┤
│ Tick Counter │ Exec Latency │ Memory Usage │  SSE Status  │
│   8,424/18k  │    45ms avg  │   128 MB     │  🟢 Connected │
└──────────────┴──────────────┴──────────────┴──────────────┘

12. Playback Controls

⏯️ Controlling the Simulation

ButtonActionKeyboard
▶️ StartBegin simulation
⏸️ PauseTemporarily stop
▶️ ResumeContinue from pause
⏹️ StopEnd simulation

⏸️ When to Use Pause

  • Observe a specific event: Pause to analyze what just happened
  • Scenario triggered: Watch how strategy responds
  • Large trade executed: Review order details
  • Take a break: Return later without losing progress

💡 Tip: Pausing does NOT reset the simulation. You can resume from exactly where you left off.


13. Results Analysis

📊 Performance Summary

After completion, the simulator shows comprehensive results:

┌────────────────────────────────────────────────────────────┐
│  📊 Performance Summary                                    │
├────────────────────────────────────────────────────────────┤
│                                                            │
│  ┌──────────────────────────────────────────────────────┐  │
│  │  Return: +12.5%    │  Max Drawdown: -8.2%            │  │
│  │  Sharpe: 1.45      │  Sortino: 1.82                  │  │
│  │  Win Rate: 58%     │  Profit Factor: 1.65            │  │
│  │  Total Trades: 45  │  Avg Trade: +₹312               │  │
│  └──────────────────────────────────────────────────────┘  │
│                                                            │
└────────────────────────────────────────────────────────────┘

📈 Available Charts

ChartShows
Equity CurvePortfolio value over time
Drawdown ChartPeak-to-trough losses
Win/Loss DistributionTrade outcome histogram
Monthly ReturnsCalendar heatmap of returns

📋 Trade List

┌────────────────────────────────────────────────────────────────────────┐
│  📋 Trade List                                            [Export CSV] │
├────────┬────────┬─────────┬─────────┬─────────┬───────────┬───────────┤
│ # │ Time       │ Side    │ Symbol  │ Qty     │ Price     │ P&L       │
├───┼────────────┼─────────┼─────────┼─────────┼───────────┼───────────┤
│ 1 │ 09:32:15   │ 🟢 BUY  │ AAPL    │ 100     │ $185.42   │ —         │
│ 2 │ 10:15:30   │ 🔴 SELL │ AAPL    │ 100     │ $186.15   │ +$73      │
│ 3 │ 11:02:45   │ 🟢 BUY  │ AAPL    │ 150     │ $184.90   │ —         │
│ 4 │ 12:45:20   │ 🔴 SELL │ AAPL    │ 150     │ $183.50   │ -$210     │
│ 5 │ 14:10:55   │ 🟢 BUY  │ AAPL    │ 100     │ $185.00   │ —         │
└───┴────────────┴─────────┴─────────┴─────────┴───────────┴───────────┘

💾 Exporting Results

Click Export to download:

FormatContents
CSVAll trades, metrics, timestamps
JSONFull simulation data including configuration

14. Templates

💾 Saving Configuration Templates

Save your simulation setup for reuse:

┌────────────────────────────────────────────────────────────┐
│  💾 Templates                                              │
├────────────────────────────────────────────────────────────┤
│                                                            │
│  [Save Current Config]                                     │
│                                                            │
│  Saved Templates:                                          │
│  ┌──────────────────────────────────────────────────────┐  │
│  │ 📁 "AAPL Stress Test"              [Load] [Delete]   │  │
│  │    AAPL 5m | $100k | Flash Crash enabled             │  │
│  ├──────────────────────────────────────────────────────┤  │
│  │ 📁 "Quick Validation"              [Load] [Delete]   │  │
│  │    Any symbol | 1 week | Fast mode                   │  │
│  ├──────────────────────────────────────────────────────┤  │
│  │ 📁 "Full Realism Test"             [Load] [Delete]   │  │
│  │    All realism options | Slow mode                   │  │
│  └──────────────────────────────────────────────────────┘  │
│                                                            │
└────────────────────────────────────────────────────────────┘

📝 What Templates Include

ComponentSaved
Strategy Reference
Market Selection
Test Settings
Execution Realism
Scenario Injection
Speed Mode

15. Tips & Best Practices

💡 Pro Tips

  1. Start with Auto Speed

    • Let the system optimize for your data volume
    • Switch to specific modes only if needed
  2. Use Conservative Realism

    • Enable at least latency and slippage
    • Better to overestimate friction than underestimate
  3. Test Edge Cases with Scenarios

    • Every strategy should survive a flash crash
    • Test regime shifts before going live
  4. Compare with Backtesting

    • Run same config in backtesting first
    • Simulator results should be similar (slightly worse)
  5. Save Templates for Repeated Tests

    • Create standard test templates
    • Maintain consistency across strategy versions

⚠️ Common Mistakes to Avoid

MistakeProblemSolution
Zero slippageUnrealistic fillsAlways set 0.01-0.1%
No latencyInstant executionEnable 50-200ms delay
Fast mode onlyMiss execution issuesTest with slower modes too
No scenariosFalse confidenceAdd at least one stress test
Too short date rangeStatistical noiseUse minimum 1-3 months

🎯 When to Use Simulator vs Others

Use CaseToolWhy
Rapid iterationBacktestingFastest results
Execution testingSimulatorRealistic fills
Stress testingSimulatorScenario injection
Pre-live validationPaper TradingReal market data
Parameter optimizationBacktestingMany runs needed

16. FAQ

❓ Frequently Asked Questions

Q: How long does a simulation take? A: Depends on data volume and speed mode. Check the Estimates panel before starting. A 3-month period at Auto speed typically takes 5-15 minutes.

Q: Can I change speed during simulation? A: Not currently. Stop the simulation and restart with different speed to change.

Q: Why are my results different from backtesting? A: Execution realism (latency, slippage, market impact) affects fills. The simulator is intentionally more conservative.

Q: What happens if I close the browser? A: The simulation continues on the server. Reconnect to see results, but you may miss some telemetry events.

Q: How many scenarios can I add? A: No hard limit, but too many overlapping scenarios may produce unrealistic conditions.

Q: Does scenario injection affect historical data? A: Scenarios are overlaid on top of historical data. The original data is not modified.

Q: Why is the SSE connection showing error? A: Network issues or server restart. The page will attempt to reconnect automatically. Refresh if it persists.

Q: Can I run multiple simulations simultaneously? A: Currently limited to one simulation per user session.


17. Related Guides

📚 Continue Learning

GuideDescription
📋 Strategy Builder GuideCreate and configure strategies
🧪 Backtesting Lab GuideQuick historical validation
📄 Paper Trader GuidePre-live testing with real data
📊 Dashboard GuidePlatform navigation

🔧 Developer Documentation


🆘 Need Help?

  • 📧 Email: support@flytradr.com
  • 💬 Chat: In-app support widget
  • 📖 Docs: Full documentation at docs.flytradr.com

Last updated: December 10, 2025
Version: 1.0