Commit Graph

43 Commits

Author SHA1 Message Date
miha 0f7cfb4b50 Optimize SMA to O(1) using running sum algorithm
- Changed from O(n) CircularBuffer.Average() to O(1) running sum
- Maintains _sum and _p_sum for state management
- Tracks _lastValue and _p_lastValue for isNew=false updates
- Provides ~15-20x speedup for large periods
- Pattern verified against Pine Script reference implementation
- All tests pass including update test for isNew handling

Also added .github/copilot-instructions.md with comprehensive
AI agent guidance for QuanTAlib development patterns
2025-10-21 18:47:10 -07:00
Miha Kralj 351214ed31 moar Chart indicators 2024-11-07 21:40:02 -08:00
Miha Kralj f582db2c4c fixes 2024-11-05 05:52:54 -08:00
Miha Kralj 7f6c29151c Fixes 2024-11-03 15:52:25 -08:00
Miha Kralj 94928714bf sonar fixes 2024-11-03 15:52:25 -08:00
codefactor-io a0c99ef326 [CodeFactor] Apply fixes 2024-11-03 23:47:53 +00:00
codefactor-io e60cf47d3a [CodeFactor] Apply fixes 2024-11-03 23:03:24 +00:00
Miha 6231bab9e5 feat: Dpo, Tsi, Vortex, Bpp, Cci, Cfo, Tr, Ui, Vc, Vov, Vr, Vs, Mfi, Nvi, Obv, Pvi, Pvo, Pvol, Pvr, Pvt, Tvi 2024-10-30 13:45:36 -07:00
Miha 6c67a0cf31 Class optimization 2024-10-27 16:11:08 -07:00
Miha b2fcdda785 xml doc rewrite 2024-10-27 09:38:53 -07:00
Miha c21b96152c macos dev update 2024-10-26 23:54:55 -07:00
Miha Kralj efc8e553db Rsi and Rsx 2024-10-24 18:30:59 -07:00
Miha Kralj e3d7cd9896 Atr, FlowIndicator and fixes 2024-10-21 16:06:47 -07:00
Miha Kralj fbe4046b5d Documentation 2024-10-16 18:28:06 -07:00
Miha Kralj ffed6491d4 corrections 2024-10-13 17:31:35 -07:00
Miha Kralj cc45cebeb4 tests and cleanup 2024-10-11 18:02:09 -07:00
Miha Kralj 839313c9f2 Pwma 2024-10-10 16:23:23 -07:00
Miha Kralj 5974f54953 removed Archive 2024-10-09 14:38:51 -07:00
deepsource-autofix[bot] 47862d8682 style: format code with dotnet-format
This commit fixes the style issues introduced in 0bc4185 according to the output
from dotnet-format.

Details: https://github.com/mihakralj/QuanTAlib/pull/32
2024-10-08 21:00:48 +00:00
Miha Kralj 0bc41854aa cleanup 2024-10-08 13:59:33 -07:00
deepsource-autofix[bot] 838f664862 style: format code with dotnet-format
This commit fixes the style issues introduced in a7eeacf according to the output
from dotnet-format.

Details: None
2024-10-08 17:47:49 +00:00
Miha Kralj a7eeacf8cb Merge branch 'dev' 2024-10-08 10:47:21 -07:00
deepsource-autofix[bot] 85b9d9217a style: format code with dotnet-format
This commit fixes the style issues introduced in 931bbdb according to the output
from dotnet-format.

Details: https://github.com/mihakralj/QuanTAlib/pull/30
2024-10-08 17:31:29 +00:00
Miha Kralj 931bbdb6a0 pull request changes 2024-10-08 10:31:04 -07:00
Miha Kralj af234594cc event tests 2024-10-08 09:25:01 -07:00
Miha Kralj b7b5a4a1bf clean code fixes 2024-10-06 17:16:47 -07:00
deepsource-autofix[bot] 5fe968754f style: format code with dotnet-format
This commit fixes the style issues introduced in 1e77eb8 according to the output
from dotnet-format.

Details: None
2024-10-06 06:59:26 +00:00
Miha Kralj 8a3c257038 Vidya fix 2024-09-30 09:21:52 -07:00
Miha Kralj c35d46a962 Merge branch 'dev' 2024-09-30 09:17:57 -07:00
Miha Kralj a48cc5ce85 Vidya fix 2024-09-30 09:17:31 -07:00
Miha Kralj 728017c9ca Merge branch 'dev' 2024-09-30 09:07:08 -07:00
Miha Kralj 93085d24bd sln file 2024-09-30 08:55:50 -07:00
Miha Kralj bdc01bff4a Atr 2024-09-30 06:46:07 -07:00
Miha Kralj 148f0ea846 dependabot 2024-09-26 10:44:09 -07:00
Miha Kralj 9477fc7276 Merge branch 'dev' 2024-09-24 16:51:46 -07:00
Miha Kralj 012458d9d7 Dsma fix 2024-09-24 16:51:11 -07:00
Miha Kralj 133c65ceaf Afirma + documentation +semver: patch 2024-09-24 16:41:26 -07:00
Miha Kralj 4b25801d52 Afirma + documentation 2024-09-24 16:28:16 -07:00
Miha Kralj 58d72c06ca Squash
dotcover

s1

.sln

s1

s1

s2

s3

s4

s5

s1

s2

x

x2

x3

x4

x5

x6

x1

sonarcube cleanup1

sonarcube cleanup2

sonarcube cleanup 3

fixes

q

q

q

q

q

q

q

q

q1

q2

q

q1

codacy 1
2024-09-23 22:08:40 -07:00
Miha Kralj 687725bfbe Merge remote-tracking branch 'origin/dev' into dev 2024-09-23 08:38:20 -07:00
Miha Kralj e9b58e5d48 dev branch 2024-09-23 08:34:47 -07:00
Miha Kralj f1b80ff374 +semver: fix 2024-09-22 20:22:18 -07:00
Miha Kralj d475bcd19a New version merge 2024-09-22 17:31:24 -07:00