Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Joshua Ulrich
On Sun, Jan 5, 2025 at 11:58 AM Sparks, John wrote: > > I don't see atr_df appearing in my current directory. > > Also, I assume that the input data frame is named ohlc? Or am I missing > something. > You need to call the function with your data and assign it to an object. For example: atr

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
I don't see atr_df appearing in my current directory. Also, I assume that the input data frame is named ohlc? Or am I missing something. Thanks, --JJS From: Joshua Ulrich Sent: Sunday, January 5, 2025 11:31 AM To: Sparks, John Cc: R-help@r-project.org Subjec

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
Thanks! Appears helpful and the quick turnaround is very much appreciated. I'll do some testing now. --JJS From: Joshua Ulrich Sent: Sunday, January 5, 2025 11:31 AM To: Sparks, John Cc: R-help@r-project.org Subject: Re: Using library(TTR) Calculate ATR by Sy

Re: [R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Joshua Ulrich
Hi, TTR/xts/quantmod maintainer here. On Sun, Jan 5, 2025 at 10:58 AM Sparks, John wrote: > > Hi, > > In looking at the documentation for the TTR library and particularly the > example for calculating the ATR (average true range). The example shows > how to calculate ATR for a file of a single

[R] Using library(TTR) Calculate ATR by Symbol

2025-01-05 Thread Sparks, John via R-help
Hi, In looking at the documentation for the TTR library and particularly the example for calculating the ATR (average true range). The example shows how to calculate ATR for a file of a single stock. If I have multiple stocks in one file, isn't there a way to get the ATR for each of them? Or