Skip to content

fix: correct SFX ma_std_dev warmup by not feeding None values from std_dev (closes #154)#176

Open
botbikamordehai2-sketch wants to merge 1 commit into
nardew:mainfrom
botbikamordehai2-sketch:fix/issue-154
Open

fix: correct SFX ma_std_dev warmup by not feeding None values from std_dev (closes #154)#176
botbikamordehai2-sketch wants to merge 1 commit into
nardew:mainfrom
botbikamordehai2-sketch:fix/issue-154

Conversation

@botbikamordehai2-sketch
Copy link
Copy Markdown

What

The ma_std_dev inside SFX was connected to std_dev via input_indicator=self.std_dev. This caused ma_std_dev to receive None values during std_dev's warmup period, leading to incorrect (wildly large) values when ma_std_dev first became active.

Fix

Remove the input_indicator linkage and instead register ma_std_dev as a managed sequence. Feed ma_std_dev only valid values from std_dev inside _calculate_new_value, matching the pattern used in other indicators.

Closes #154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SFX warmup issue of ma_std_dev

1 participant