Trading Script Workflow
Understand how our trading scripts load data, compute indicators, detect events, and generate actionable signals.
Try the SimulatorHow the Trading Script Works
1. Load Historical Data
The script retrieves historical market data from APIs or CSV sources and normalizes it into a consistent format for reliable analysis.
2. Compute Indicators
Moving averages, slopes, volatility metrics, and custom indicators are computed to track trends and potential market shifts.
3. Detect Events
Crossovers, direction changes, and predefined conditions are detected as market events that highlight potential trading opportunities.
4. Score & Context
Each event is scored using trend strength, probability, and market context, prioritizing high-quality signals for execution.
Events and Alerts
The system continuously monitors market data and records events in real time. Alerts are generated when predefined conditions are met.
Real-Time Alerts
Instantly detect price movements, indicator crossovers, and volatility spikes, with alerts ranked by priority.
Historical Event Analysis
Review past signals to evaluate strategy performance, validate logic, and identify recurring market patterns.
Custom Event Configuration
Define custom events using any combination of indicators to explore alternative strategies and scenarios.
Stockutils Functions
Stockutils provides modular, reusable functions for data loading, indicator computation, event detection, and signal scoring across multiple scripts.
Data Loader
Fetch and normalize market data from multiple sources with consistent structure and robust error handling.
Indicator Calculator
Compute moving averages, slopes, volatility, and custom metrics across multiple timeframes.
Signal Generator
Convert detected events into structured signals with scoring and context-aware ranking.
Design Principles
- Rule-based and deterministic workflow
- Clear separation of data, analysis, and signal logic
- Fully traceable and auditable outputs
- Reusable components across strategies
- Flexible architecture for future extensions
- Optimized for backtesting and live execution
Experience the Workflow Yourself
Test the trading script with historical data in our interactive simulator and observe the workflow in action.
Open Simulator