Skip to content

How should we handling imprecise warmup period results? #306

Answered by DaveSkender
DaveSkender asked this question in Q&A
Discussion options

You must be logged in to vote

User directed pruning to make this a user option by providing an extension method that will either prune the recommended warmup periods or allow users to specify the number of initial periods to prune.

// normal, without pruning
var results = history.GetEma(20);

// with recommended pruning
var results = history.GetEma(20)
  .PruneWarmupPeriods();

// with specific pruning
var results = history.GetEma(20)
  .PruneWarmupPeriods(150);

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DaveSkender
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DaveSkender
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant