A condition watches a signal and decides which action or actions can run. In strategy JSON, a condition node hasDocumentation Index
Fetch the complete documentation index at: https://docs.miramarket.org/llms.txt
Use this file to discover all available pages before exploring further.
type: "CONDITION" and a condition object.
Condition fields
| Field | Meaning |
|---|---|
watch | The market or market selector to observe. |
signal | The value to evaluate. |
trigger | The crossing direction. |
threshold | The numeric trigger value. |
timing | Optional timing data for time conditions. |
reference | Optional reference mode for return or PnL conditions. |
stabilizers | Optional debounce-style controls. |
conjuncts | Optional additional AND clauses. |
Signals
signal | Use when |
|---|---|
IMPLIED_PROBABILITY | You want to react to market price or probability. |
ROI_PCT | You want to react to return on investment. |
PNL_USD | You want to react to profit or loss in dollars. |
TIME_SINCE_GROUP_SECONDS | You want to trigger after time has passed in a decision group. |
TIME_TO_RESOLUTION_SECONDS | You want to trigger based on time remaining before resolution. |
Triggers
UseCROSS_ABOVE when the signal must move above threshold.
Use CROSS_BELOW when the signal must move below threshold.
Market watch
watch identifies the market and outcome the condition observes.
watch_selector.
Time conditions
Time conditions require atiming object.
For a trigger before close:
AND clauses
Useconjuncts when a condition needs more than one clause.
All clauses must pass for the condition to pass.