validation and profiles

This commit is contained in:
Miha Kralj
2026-02-26 22:02:52 -08:00
parent 9ab37c1200
commit 8a1ba95173
317 changed files with 18704 additions and 622 deletions
+36 -1
View File
@@ -1,4 +1,4 @@
# AMAT: Archer Moving Averages Trends
# AMAT: Archer Moving Averages Trends
The Archer Moving Averages Trends indicator is a triple-confirmation trend identification system that uses dual EMAs to produce discrete directional signals (+1 bullish, -1 bearish, 0 neutral). Unlike simple crossover systems that trigger on any intersection, AMAT requires alignment of three conditions: relative position (fast above/below slow), fast EMA direction (rising/falling), and slow EMA direction (rising/falling). This triple gate filters out the whipsaw endemic to single-condition crossover systems in ranging markets. A secondary output quantifies trend strength as the percentage separation between EMAs, providing a conviction metric for position sizing.
@@ -111,6 +111,41 @@ Fast periods too close to slow periods produce excessive neutral readings. A rat
- **0:** Any disagreement — indeterminate; no position recommended
- **Strength:** Quantifies EMA separation as percentage of slow EMA; useful for position sizing but not directional signal
## Performance Profile
### Operation Count (Streaming Mode)
AMAT compares a fast EMA against a slow EMA to determine trend direction.
**Post-warmup steady state (per bar):**
| Operation | Count | Cost (cycles) | Subtotal |
| :--- | :---: | :---: | :---: |
| FMA × 2 (fast EMA, slow EMA updates) | 2 | 4 | 8 |
| CMP (fast > slow → trend = 1 else 0) | 1 | 1 | 1 |
| **Total** | **3** | — | **~9 cycles** |
Two independent EMA streams with a single comparison. One of the cheapest dynamics indicators: ~9 cycles per bar at steady state.
### Batch Mode (SIMD Analysis)
| Operation | Vectorizable? | Notes |
| :--- | :---: | :--- |
| EMA (fast) | **No** | Recursive IIR — sequential |
| EMA (slow) | **No** | Recursive IIR — sequential |
| Comparison | Yes | VCMPPD after both EMA arrays computed |
Both EMA passes are recursive and sequential. The final comparison step is trivially vectorizable once both arrays exist.
### Quality Metrics
| Metric | Score | Notes |
| :--- | :---: | :--- |
| **Accuracy** | 9/10 | Exact EMA arithmetic; binary output eliminates rounding nuance |
| **Timeliness** | 7/10 | Slow EMA period determines lag; faster than SMA-based versions |
| **Smoothness** | 10/10 | Binary 0/1 output is maximally smooth by definition |
| **Noise Rejection** | 7/10 | EMA crossover can whipsaw in sideways markets |
## Resources
- Joseph, T. — AMAT trend confirmation methodology (2009)