StockSharp STOCKSHARPDocumentation
English EN
  • EnglishEnglish
  • РусскийРусский
  • 中文中文
  • DeutschDeutsch
  • EspañolEspañol
  • 日本語日本語
  • PortuguêsPortuguês
  • Tutorial
    • Installer
    • Designer
    • Terminal
    • Hydra
    • Hydra server
    • Telegram services
    • Runner
    • API
      • Setup
      • AI-Assisted Development
      • Examples
      • Connectors
      • Market data
      • Orders management
      • Instruments
      • Market-data storage
      • Candles
      • Indicators
      • Patterns
      • Position Management
      • Adapter Routing
      • Order books
      • Strategies
        • Subscriptions
        • Indicators
        • Trading Operations
        • Position Protection
        • Parameters
        • Logging
        • Platform Compatibility
        • High-Level APIs
        • Working with Charts
        • Statistics
        • Settings saving and loading
        • Orders and trades loading
        • Round price
        • Unit type
        • Quoting algorithm
        • Working securities
        • Strategy Overview
        • Target Position Management
        • Alert System
        • Timer System
        • High-Level Subscriptions
        • Risk Management
        • Reporting
        • Trading Modes
        • Advanced Features
        • Statistics Reference
        • Advanced Optimization
        • Quoting Reference
        • Event model
          • Rules using
          • Rules suspension
          • Mutually exclusive rules
          • Create own rule
          • Samples
        • Samples
      • Commissions
      • Profit and Loss (PnL)
      • Slippage
      • Latency
      • Logging
      • Options
      • Testing
      • Data Export
      • Data Import
      • Analytics Scripts
      • Desktop controls
      • JavaScript
    • Shell
    • Store
    • MATLAB
    • UDP Dumper
    • Connecting AI agents (MCP)
    • Common
  • Strategy examples
  • Designer schemas
  • Designer lessons
  • Class list

No matches

Home / Tutorial / API / Strategies / Event model

Event Model

The event model is built using IMarketRule. IMarketRule can be used both within and outside strategies.

In API, there are several predefined conditions and actions for IMarketRule tailored for common scenarios. These are added as extension methods in MarketRuleHelper.

  • Using rules
  • Rule synchronization and suspension
  • Mutually exclusive rules
  • Creating custom rules
← Previous Quoting Reference Next → Rules using
S#
STOCKSHARP

Trading platform documentation: connectors, strategies, Designer, Hydra and the StockSharp API.

© 2026 StockSharp. All rights reserved.

Documentation

  • Designer
  • Hydra
  • Installer
  • API

StockSharp

  • Website
  • Store
  • GitHub
  • Community chat

Resources

  • Home
  • Sitemap
  • Offline PDF