feat: Refactor TBar and TValue to record structs; improve readability and performance

fix: Update condition checks in Htit and Mgdi for better numerical stability
refactor: Simplify parameter struct in T3 and enhance Vidya state management
This commit is contained in:
Miha Kralj
2025-12-17 07:27:45 -08:00
parent d277e08056
commit 8cec2fec8d
6 changed files with 20 additions and 100 deletions
+1 -2
View File
@@ -67,14 +67,13 @@ public sealed class Vidya : AbstractBase
if (isNew)
{
_p_state = _state;
_state.BarCount++;
}
else
{
_state = _p_state;
}
if (isNew) _state.BarCount++;
if (_state.IsInitialized)
{
_state.PrevClose = _state.CurrentClose;