<=
systemic:core-lsteLogicInputs
| Name | Type | Description |
|---|---|---|
| First Value | Number series | The value to test (left side of the comparison). |
| Second Value | Number series | The threshold to compare against (right side of the comparison). |
Outputs
| Name | Type | Description |
|---|---|---|
| LSTE | True/false series | A true/false series that is `true` on bars where First Value is less than or equal to Second Value. |
Cost
0.199 + 0.00556·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Less Than or Equal module compares two numeric series bar by bar. It outputs true on every bar where the first value is less than or equal to the second.
| A | B | A ≤ B |
|---|---|---|
| 5 | 10 | true |
| 10 | 10 | true |
| 15 | 10 | false |
| 0 | 0 | true |
Inclusive vs Strict Comparison
⚠️ Key difference from LST (<): Equal values return
truewith LSTE.
| Comparison | 10 vs 10 Result |
|---|---|
| LST (<) | false |
| LSTE (≤) | true |
Use LSTE when touching a threshold should count as meeting the condition (e.g., "at or below the stop-loss level").
Missing Data
If either input is missing (empty) on a bar — a data gap or a closed-market day — the result on that bar is empty. The module never invents an answer for missing data: a gap in your inputs stays a gap in the output, not a
false.
| A | B | A ≤ B |
|---|---|---|
| 5 | empty | empty |
| empty | 10 | empty |
| empty | empty | empty |
Two numbers can always be compared, so the output is empty only where an input is missing.
Missing data is separate from input alignment (below). Alignment matches two series of different lengths or periods. A missing value inside an aligned series is never filled in and stays empty in the output.
Input Alignment
When the inputs have different lengths or periods, Systemic aligns them by time automatically:
| Scenario | Behavior |
|---|---|
| Different lengths | The result covers the dates that both series share |
| Different periods | The series with the longer period repeats its last value until its next bar |
| Constant vs series | The constant is used on every bar |
Practical Example
Risk limit check: Check that a drawdown series stays within a limit using Drawdown <= Max Drawdown. Because equal values count, exactly hitting the limit still passes the check.
Related Modules
- LST (<) — Strict less-than (excludes equality)
- GTR (>) — Strict greater-than
- GTRE (≥) — Greater than or equal
- EQ (==) — Equality only