feat: add TBF (Ehlers Truncated BandPass Filter) + fix all 64 warnings

TBF indicator:
- Sealed class with RingBuffer, stackalloc scratch, O(Length) per bar
- 7 core files: Tbf.cs, Tbf.Quantower.cs, Tbf.md, tbf.pine, 3 test files
- 67 tests (48 lib + 19 Quantower) all passing
- Full integration: sidebar, indexes, docs, Python bridge, exports

AMFM fix:
- Added envBuf.Clear()/smaBuf.Clear() after stackalloc in Batch
  (SkipLocalsInit garbage values caused 8.97e+65 blowup)

Warning fixes (64 → 0):
- Amfm.cs: S125 commented code removed, 11× IDE0011 braces
- Pta.cs: 11× IDE0011 braces on if/else/for/foreach
- Pta.Tests.cs: 14× IDE0011, S1481 unused var, S2699 assertion, 2× MA0074
- Lpf.Quantower.Tests.cs: 2× MA0074 StringComparison

Build: 0 warnings, 0 errors, 20,048 tests passing
This commit is contained in:
Miha Kralj
2026-03-18 19:10:48 -07:00
parent ef00330de3
commit b79b56dc65
21 changed files with 1992 additions and 33 deletions
+1
View File
@@ -356,6 +356,7 @@
| [SWINGS](reversals/swings/Swings.md) | Swing High/Low Detection | Reversals |
| [SWMA](trends_FIR/swma/Swma.md) | Symmetric Weighted MA | Trends (FIR) |
| [T3](trends_IIR/t3/T3.md) | Tillson T3 MA | Trends (IIR) |
| [TBF](filters/tbf/Tbf.md) | Ehlers Truncated Bandpass Filter | Filters |
| [TD_SEQ](oscillators/td_seq/Td_seq.md) | TD Sequential | Oscillators |
| [TDIST](numerics/tdist/Tdist.md) | Student's t-Distribution | Numerics |
| [TEMA](trends_IIR/tema/Tema.md) | Triple Exponential MA | Trends (IIR) |