Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

strategy dema inconsistent noise_level_pct? #1247

Open
@Haehnchen

Description

noise_level_pct calculation in dema looks inconsistent to me. in sim we have values like 98-102 %. So a valid value would be 100.012. also a negative noise level does not make sense to me.

Any suggestion what would be a valid here? eg noise_level_pct=0.012 looks better to me. also i dropped negative values simple patch. PR wanted?

extensions/strategies/dema/strategy.js
Math.abs(100 - s.period.ema_short / s.lookback[0].ema_short * 100) < s.options.noise_level_pct

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions