Skip to content

Commit

Permalink
- updated CHANGES, DESCRIPTION, and man/TTR.Rd
Browse files Browse the repository at this point in the history
- updated copyright to include 2011



git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/ttr/pkg@116 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
  • Loading branch information
joshuaulrich committed Aug 30, 2011
1 parent 8d37c47 commit 142de2b
Show file tree
Hide file tree
Showing 41 changed files with 80 additions and 59 deletions.
37 changes: 19 additions & 18 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
TTR version 0.20-2
Changes from version 0.20-1

TTR version 0.21-0
Changes from version 0.20-2

NEW FEATURES:

- Added VWAP and VWMA (thanks to Brian Peterson)
- Added variable moving average function, VMA.

- Added v-factor generalization to DEMA (thanks to John Gavin)
- Added Brian Peterson's price bands function, PBands.

- Added David Varadi's DVI indicator, DVI.

CHANGES:

- Updated volatility() to handle univariate case of calc='close'
(thanks to Cedrick Johnson)
CHANGES:

- Moved EMA, SAR, and wilderSum from .Fortran to .Call and used
xts:::naCheck in lieu of TTR's NA check mechanism
- Added wilder and ratio arguments to DEMA. Thanks to Matthew Fornari for the
suggestion.

- RSI up/down momentum now faster with xts (thanks to Jeff Ryan)
- Changed wilderSum to seed initial value with raw sum. This matches Wilder's
original calculations. Thanks to Mahesh Bp for the report.

- If 'ratio' is specified in EMA but 'n' is missing, the traditional
value of 'n' is approximated and returned as the first non-NA value
- The BBands sd calculation now uses the population instead of sample
statistic. This is consistent with Bollinger Band literature. Thanks to
Jeff Ryan for the patch.


BUG FIXES:

- Fix to stoch() when maType is a list and 'n' is not set in the list's
3rd element (thanks to Wind Me)
- Fixed stockSymbols for nasdaq.com changes.

- Fixed fastK in stoch() when smooth != 1
- Fixed ZLEMA default ratio by changing it from 2/(n-1) to 2/(n+1). This
makes it consistent with EMA. Thanks to Dirk Eddelbuettel.

- Fixed segfault caused by EMA when n < NROW(x) (thanks to Douglas Hobbs)
- Corrected close-to-close volatility. Thanks to James Toll for the report.

- test.EMA.wilder failed under R-devel (thanks to Prof Brian Ripley)
- adjRatios failed (spectacularly) if there were missing close prices. Thanks
to Garrett See for the report.

6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Package: TTR
Type: Package
Title: Technical Trading Rules
Version: 0.20-3
Revision: 99
Date: 2011-01-12
Version: 0.21-0
Revision: 116
Date: 2011-08-30
Author: Joshua Ulrich
Maintainer: Joshua Ulrich <josh.m.ulrich@gmail.com>
Depends: xts (>= 0.6.4)
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export(momentum)
export(MFI)
export(OBV)
export(PBands)
#export(pivots)
export(ROC)
export(RSI)
export(runCor)
Expand Down
2 changes: 1 addition & 1 deletion R/ADX.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/ATR.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/CCI.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/CLV.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/CMF.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/CMO.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/DPO.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
19 changes: 19 additions & 0 deletions R/DVI.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

DVI <- function(price, n=252, wts=c(0.8,0.2), smooth=3,
magnitude=c(5,100,5), stretch=c(10,100,2)) {

Expand Down
2 changes: 1 addition & 1 deletion R/DonchianChannel.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/EMV.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/GMMA.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/KST.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/MACD.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/MFI.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/MovingAverages.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/OBV.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/RSI.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/SAR.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/TDI.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/TRIX.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/TTRtools.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/VHF.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/WPR.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/WebData.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/ZigZag.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/adjRatios.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/aroon.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/bollingerBands.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/chaikinAD.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/chaikinVolatility.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/changes.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/pivots.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/priceBands.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion R/runFun.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# TTR: Technical Trading Rules
#
# Copyright (C) 2007-2010 Joshua M. Ulrich
# Copyright (C) 2007-2011 Joshua M. Ulrich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
Loading

0 comments on commit 142de2b

Please sign in to comment.