Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

19 results for “from:Robert Nicholson”

SMA on Volume?
Robert Nicholson · Nov 27, 2009 · r-sig-finance

If you're viewing a chart series and you have Volume displayed you can you specify "on" such that SMA will be overlaid on Volume graph?

Any examples of addTA legend?
Robert Nicholson · Mar 21, 2010 · r-sig-finance

Looking for examples on how addTA legend functions should be defined. Looking to add Low and High of the series to the existing legend.

How use lapply over one column in a dataframe?
Robert Nicholson · Apr 26, 2010 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100426/d38cf385/attachment.pl>

Subject: Re: Standard Deviations using Sliding window?
Robert Nicholson · Mar 5, 2010 · r-sig-finance

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20100305/e6c4419c/attachment.pl>

What are the requirements for instrument names in a blotter portfolio?
Robert Nicholson · Apr 25, 2010 · r-sig-finance

Why when names(getPortfolio(portfolio)) [1] " -24702R9GE" do I have [1] "2008-05-30 -24702R9GE 10 @ 35" Error in get(x, pos = .instrument) : object ' -24702R9GE' not found Error in get(Symbol, envir = as.environment(.GlobalEnv)) : object ' -24702R9GE' not found when...

Which tool to analyze past trade history?
Robert Nicholson · Jan 17, 2010 · r-sig-finance

Fidelity gives you trade history where each trade is a separate line in a CSV file. Which tool does the best job of letting you enter and exit positions ie. knows when it's closing an existing position and entering...

How use lapply over one column in a dataframe?
Robert Nicholson · Apr 26, 2010 · r-help

So I have Transactions as a dataframe and Transactions$Symbol is a column in the frame I simply want to run sub over all elements in that column where the new value replaces the old value this doesn't seem...

Most common way to add derived columns to an XTS object?
Robert Nicholson · Mar 10, 2010 · r-sig-finance

So you have data in your XTS object and all I'm trying to do is add columns (attributes) that are derived values. does anybody have an example of this? I'm trying to perform a simply transformation on an...

Why is blotter giving me this error?
Robert Nicholson · Apr 25, 2010 · r-sig-finance

addTxn(Portfolio=portfolio, Symbol = Transaction$Symbol, TxnDate = CurrentDate, TxnPrice = as.numeric(Transaction$Price), TxnQty = as.numeric(Transaction$Quantity), TxnFees = 0, verbose = TRUE, ConMult=1) Error in if (PosQty == 0) PosAvgCost = 0 else { : argument is of length zero > as.numeric(Transaction...

Adding columns to an XTS
Robert Nicholson · Mar 6, 2010 · r-sig-finance

If you're using rollapply with an existing XTS object from getSymbols what's the most appropriate way to add new columns to the object? say you have getSymbols('AAPL') change = rollapply(Cl(AAPL),width=2, function(x) log(x...

addTA on an existing subchart
Robert Nicholson · Mar 19, 2010 · r-sig-finance

Is this supported yet? docs say The on is used to identify which subchart to add the graphic to. By default, on=NA will draw the series in a new subchart below the last indicator. Setting this to either a...

Standard Deviations using Sliding window?
Robert Nicholson · Mar 4, 2010 · r-sig-finance

Here was a naive attempt to do standard deviation with sliding window >require(quantmod) >getSymbols("AAPL") > AAPL$STDDEV = sd(Cl(AAPL), 20) > AAPL$SMA = SMA(Cl(AAPL), 10) > AAPL apparently sd doesn't work with a sliding window where was...

"Package", please ...
Robert Nicholson · Mar 11, 2010 · r-sig-finance

Why isn't zoo rollapply written to take the return type? Why do you have to wrap the return value? if I start with an xts and rollapply I get a zoo and I'm required to wrap in an...

What are the requirements for instrument names in a blotter portfolio?
Robert Nicholson · Apr 26, 2010 · r-sig-finance

Why then do I get this? I added Transactions$Symbol = sub('[ -]*','INST',Transactions$Symbol) so this prefixes everything I had with INST presumably I can have digits in the name 1] "2008-05-30 INST24702R9GE 10 @ 0.35" Error in...

Standard Deviations using Sliding window?
Robert Nicholson · Mar 6, 2010 · r-sig-finance

currently using rollapply with sd so I assume that will do the same as runSD On Mar 5, 2010, at 9:23 AM, Joshua Ulrich wrote: > On Thu, Mar 4, 2010 at 8:15 PM, Robert Nicholson > <robert.nicholson at...

Perhaps somebody would like to critique my code?
Robert Nicholson · Mar 10, 2010 · r-sig-finance

This piece of code is giving me the answers I expect it to but to me it looks ugly and that's usually a sign that there are better more elegant ways to accomplish the same task. I would welcome...

What are the requirements for instrument names in a blotter portfolio?
Robert Nicholson · Apr 26, 2010 · r-sig-finance

Sure here's an example Please bear I'm in mind I'm still learning R and blotter. The idea is to put transaction data thru and then look at the PnL ideally for each trade The transactions file looks...

Most common way to add derived columns to an XTS object?
Robert Nicholson · Mar 10, 2010 · r-sig-finance

It seems the missing piece in the puzzle was to define the column first with SD$STDDEV = rep(0, NROW(SD)) for (i in 1:NROW(SD)) { SD[i, "STDDEV"] = SD[i, "StdDev Log Change"] * Cl(AAPL)[i]; } then I...

Most common way to add derived columns to an XTS object?
Robert Nicholson · Mar 10, 2010 · r-sig-finance

The previous post was when I had something given to me already as in library('quantmod') getSymbols('AAPL') CHANGE = rollapply(Cl(AAPL),width=2, function(x) log(x[2]/x[1]), by=1, align = "right", na.pad = TRUE) merge.zoo...

Can't find what you're looking for? Try searching with Google .