joshuaulrich / TTR

Technical analysis and other functions to construct technical trading rules with R
GNU General Public License v2.0
325 stars 102 forks source link

Add argument to EMA to prevent setting first n-1 obs to NA #125

Open joshuaulrich opened 1 year ago

joshuaulrich commented 1 year ago

Some users want to use EMA() without having the first n-1 observations set to NA. The prior recommended solution no longer works because of the change in 590e181d59365aa41528e0ded58065ca1d5b1f3f as part of #69. Need to restore that behavior so that solution works again. Then the recommended solution will be to use the new argument.