Skip to content
All library documents

Live Market Rule Monitoring and One-Shot Price Alerts

Code Quant course library

Summary

This document describes a live monitoring system in which users define named formulas over instrument prices. The system subscribes to the instruments referenced by each rule, reads their latest available prices when market updates arrive, evaluates the formula, rounds the result to a configured precision, and publishes the calculated value with a timestamp. Rules can be added, edited, removed, and saved for later loading.

Users can attach threshold alerts to a rule for greater-than, less-than, or equal-to comparisons. When a condition is met, the alert is deactivated and removed from further checks; configured notification options can send an email or play a sound. The document explains the event-driven workflow and alert behavior, but provides no performance results, trading signals validated against historical data, or guidance on choosing formulas and thresholds. Formula evaluation uses dynamic expression execution, so inputs require careful control; the system is a monitoring utility rather than a tested trading strategy.

Key ideas

  • Rules combine the latest prices of subscribed instruments through user-defined formulas.
  • Market updates trigger recalculation only for rules associated with the updated instrument.
  • Calculated values are rounded to each rule’s configured precision and emitted with a time label.
  • Threshold alerts support greater-than, less-than, and equality conditions, and deactivate after triggering.
  • The described system monitors live values but offers no backtest or evidence of trading performance.
  • Dynamic formula execution makes the trustworthiness of formula inputs an important limitation.

Tags

From a private course collection; the original is not published.