Algorithms, Analytics and Automations
Define the behavior and test criteria for an instrument-specific QM project.
Start with one instrument and specify what your project should calculate, how it should interpret the result, and whether it should act. Use the same specification whether you build visually or write code in QM. Quantmeric supports both authoring paths for financial software, including financial infrastructure projects.
Define behavior for one instrument
Name the instrument and describe the inputs your design requires before choosing how to implement it. For example, suppose you want to flag an unusual price increase for one stock. Your design takes a supplied reference price and a supplied comparison price for that stock. The algorithm checks that both values are present and the reference price is positive, then calculates the percentage change from the reference price.
The algorithm defines the steps; the analytic output is the percentage change those steps produce. If your design uses a model instead, specify what its output represents and how the rest of the project should interpret it. Keep the output separate from the decision to act so you can test the calculation or model on its own.
Specify when an automation should act
Define the condition, the action, and when to skip it. In the stock example, the automation records a review flag only when the calculated increase is greater than 2%. It records no flag at or below 2%, or when the calculation has no valid result. The threshold and review flag are choices for this example, not QM trigger settings.
Plan tests before deployment
In Quantmeric’s design, test, and deploy workflow, use the expected results from your design as acceptance criteria. For this example, test both the percentage change and the review flag. A correct flag alone does not show that the calculation was correct.
| Reference price | Comparison price | Expected change | Expected action |
|---|---|---|---|
| 100 | 101 | 1% | No flag |
| 100 | 102 | 2% | No flag |
| 100 | 103 | 3% | Record a review flag |
| 100 | Missing | No valid result | No flag |
| 0 | 103 | No valid result | No flag |
Deploy only after the implementation produces the expected result and action for each case, including the exact threshold and invalid inputs.