The NetBSD Project

CVS log for pkgsrc/finance/R-TTR/distinfo

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / finance / R-TTR

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jan 4 13:49:52 2025 UTC (4 months, 1 week ago) by mef
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1, HEAD
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
(finance/R-TTR) Updated 0.24.3 to 0.24.4, make test passed

# Changes in 0.24.4

* Added Ethan B. Smith as a contributor. Thanks Ethan!

### NEW FEATURES

- Added a `TR()` function to calculate the true high, true low, and true
  range. Refactored `ATR()` to use the `TR()` function. Thanks to @openbmsjsc
  and Steve Bronder for the reports, and Ethan B. Smith for the PR.
  (#18, #114, #124)

### BUG FIXES

* Fix `stockSymbols()` for ticker "NA". `read.table()` converts the string "NA"
  to a missing value (NA) because `na.strings = "NA"` by default. This causes
  an issue because there's actually a company with "NA" for the ticker. (#128)

- `CTI()` did not pad its result with leading NA when the input was not
  coerced to an xts object. This was different from other TTR functions
  (e.g. `SMA()`, `RSI()`, `ROC()`). (#127)

- Removed the `VMA()` function, which was never correct because the
  results made no sense.

- Check that the `wma()` C function has enough non-NA values and throw
  an error if it doesn't. This could cause the `WMA()` function to crash
  the user's R session. (#126)

- `runMean(..., cumulative = TRUE)` didn't account for leading NA in the
  denominator. (#122)

- `runSD(x, cumulative = TRUE)` returned all NA when `x` had any leading
  NA. Thanks to Ethan B. Smith for the report. (#121)

- The `TRIX()` signal line did not use `nSig` unless `maType` was provided.
  Thanks to @SatoshiReport for the... report. (#120)

### MISCELLANEOUS

- Use symbols for native routine entry points to make them explicit and
  unable to be found accidentally. (#123)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun May 29 00:46:45 2022 UTC (2 years, 11 months ago) by wen
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4 lines
Update to 0.24.3

Upstream changes:
#-#-#-#-#-#-#-#-#-#    Changes in TTR version 0.24.2    #-#-#-#-#-#-#-#-#-#


BUG FIXES

  - Check for 'ratio > 0' before calculating 'n' in zlema() C code. The prior
    code could result in division by 0, which was flagged by clang-UBSAN.
    Thanks to Prof Brian Ripley for the report. (#100)


#-#-#-#-#-#-#-#-#-#    Changes in TTR version 0.24.1    #-#-#-#-#-#-#-#-#-#


BUG FIXES

  - Fix leading NA accounting in wma() C code. The prior code caused invalid
    reads under valgrind. Thanks to Prof Brian Ripley for the report. (#99)

  - Check for 'ratio > 0' before calculating 'n' in ema() C code. The prior
    code could result in division by 0, which was flagged by UBSAN. Thanks to
    Prof Brian Ripley for the report. (#100)

  - Make ALMA() output length equal input length when the input can not be
    converted to xts. This was caused by the difference between
    rollapply.default() and rollapply.xts(). Thanks to GitHub user
    marksimmonds for the report. (#29)

  - Fix stoch() in very rare cases where fastK is Inf. I could only reproduce
    this if the Close is > High and High and Low are equal, but that is a data
    error. I fixed anyway because there may be other cases I don't anticipate.
    Thanks to GitHub user cjuncosa for the report. (#52)

  - Fix MFI() when money flow is always zero or positive. The denominator of
    the money ratio will be zero if there is no negative money flow for 'n'
    consecutive observations (e.g. during a strong up-trend), which causes the
    money flow index to be Inf. Set the money flow index to 100 in this case.

    And the money ratio will be NaN if there's no money flow for 'n'
    consecutive observations (e.g. if there are no trades), which causes the
    money flow index to be NaN. Set the money flow index to 50 in this case.

    Thanks to GitHub user jgehw for the report, reproducible example, and
    suggested patch. (#81)


#-#-#-#-#-#-#-#-#-#    Changes in TTR version 0.24.0    #-#-#-#-#-#-#-#-#-#


SIGNIFICANT USER-VISIBLE CHANGES

  - Updated stockSymbols() to use the NASDAQ FTP site instead of downloading
    the CSV from the NASDAQ stock screener page. Some columns are no longer
    populated because they are not provided in the FTP file:
      LastSale ,MarketCap, IPOyear, Sector, Industry
    These columns will be removed in a future version. (#98, #5, #97)

  - runPercentRank(x, n, cumulative = TRUE) now sets observations in the
    initialization period to NA. This is consistent with the other
    running/rolling functions in TTR. If you want the previous behavior,
    you should use runPercentRank(x, n = 1, cumulative = TRUE). Thanks to
    GitHub user httassadar for the report. (#73)


NEW FEATURES

  - Add Ehler's Correlation Trend Indicator. Thanks to Evelyn Mitchell for
    the suggestion, and for Ethan Smith for the initial implementation. (#92)


BUG FIXES

  - runMAD() returned incorrect values when 'cumulative = TRUE' and the input
    contained leading NA. Thanks to GitHub user stellathecat for the report.
    This also affected runMedian() also. (#93)

  - ZLEMA() would crash when 'ratio = 0.0' and 'n' was not specified. Thanks
    to GitHub user yogat3ch for the report! (#95)

  - WMA() did not return an xts object when passed an xts object for 'x' that
    had leading NA, with the default 'wts = 1:n'. Thanks to Cory Fletcher for
    reporting this issue via email. (#96)

  - stoch() was wrong when 'bounded = FALSE'. Thanks to GitHub user rfinfun
    for the report and patch. (#74)

  - HMA() threw an error when 'n' was an odd number. This was because the
    first call to WMA() used 'n = n / 2' which caused 'n' to not be an
    integer. Thanks to GitHub user dragie for the report. (#76)

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Oct 26 10:26:00 2021 UTC (3 years, 6 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
finance: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Oct 7 13:53:49 2021 UTC (3 years, 7 months ago) by nia
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -2 lines
finance: Remove SHA1 hashes for distfiles

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jul 31 15:46:40 2019 UTC (5 years, 9 months ago) by brook
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -5 lines
R-TTR: update to version 0.23.4.

Update to the canonical form of an R package.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Feb 4 23:40:02 2018 UTC (7 years, 3 months ago) by minskim
Branches: MAIN
CVS tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1
finance/R-TTR: Import version 0.23.3

Functions and data to construct technical trading rules with R.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>