mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 19:48:05 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user