Margin_Trading_Simulator
> CLASSIFICATION: DATA VISUALIZATION
> STATUS: ARCHIVED
>_ SYSTEM_STATUS: ARCHIVED
>_ IDENTIFIER: MARGIN_TRADING_SIMULATOR
>_ CLASSIFICATION: INTERACTIVE_DATA_VISUALIZATION
[INIT_LOGGING]
TIMESTAMP: 2021-05-01
USER_CLEARANCE: ROOT
ACTION: EXPORT_MISSION_REPORT
>_ OVERVIEW
[SYS_MSG] INITIATING SIMULATOR RECONNAISSANCE...
[STATUS] DEPLOYED TO PRODUCTION HOMEPAGE
TradeNation needed to demystify margin trading for beginners — leverage, margins, volatility, long vs short — without risking a penny of real money. The answer: a fully interactive, nine-step trading simulator embedded directly into the TradeNation platform, where it features prominently on the homepage. Built with The Value Engine, the tool walks users through a complete simulated trade — from selecting their regulatory region and deposit, through market volatility and direction, to opening and closing a position against a live geopolitical trigger scenario.
>_ SIMULATION_ENGINE
[MODULE_LOAD] REACT // REDUX // THUNK // RESELECT
[STATUS] STATE MACHINE NOMINAL...
- GUIDED_WIZARD_ARCHITECTURE: Engineered a nine-step simulation flow as a resilient Redux state machine — country/regulation selection (driving margin rules), deposit funding slider, market volatility profiling, trade direction, $-per-point calibration, and risk management, capped by a live open/close trade execution.
- TRADE_SUMMARY_LEDGER: Built a persistent trade summary header that re-computes balance, margin allocation, and exposure on every user decision via memoized Reselect selectors — zero wasted re-renders across the wizard lifecycle.
- LIVE_PRICING_SIMULATION: Simulated bid/ask pricing on index markets (Germany 30 et al) with randomized tick movement, giving beginners an authentic feel for spread, leverage, and P&L without a backend.
>_ MOTION_&_UX
[MODULE_LOAD] FRAMER-MOTION // CSS_MODULES // STORYBOOK
[STATUS] RENDERING HIGH-FIDELITY VECTORS...
- PHYSICS-DRIVEN_ANIMATION: Deployed Framer-motion spring physics across every transition — step reveals, card selection states, price tickers, and P&L feedback — delivering the high-fidelity feel of a trading platform rather than a form.
- EDUCATIONAL_INTERSTITIALS: Integrated animated explainer modules (leverage, margins, short & long, $ per point, risk management) between simulation steps, with skippable video content woven into the flow.
- COMPONENT_LIBRARY: Developed and documented the full UI kit in isolation with Storybook; styled with scoped CSS modules to survive embedding inside the legacy platform shell.
- TEST_HARNESS: Locked simulation logic down with Jest and Testing-library — margin calculations, step validation gating, and reducer transitions all covered.
>_ VISUAL_RECORD
[SYS_MSG] EXHIBITS RETRIEVED FROM PRODUCTION ENVIRONMENT...



[SYS_MSG] REPORT COMPLETE.
[SYS_MSG] TERMINAL DISCONNECTING...
CONNECTION TERMINATED.