Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

ATR - Average True Range Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
cliffhanger31
Posted : Wednesday, August 5, 2009 4:05:16 PM
Registered User
Joined: 8/24/2007
Posts: 43
I would like:

Create +1, +2, +3 and -1, -2, -3 ATR lines above and below the 26 period moving average of price. 

The existing ATR indicator calculates the value of one atr which is the first step of, course. However, I would like to use this value to create six lines that parallel the moving average (three above and three below). If I am overlooking some key piece of data, please let me know.

Andreas
StockGuy
Posted : Wednesday, August 5, 2009 4:08:45 PM

Administration

Joined: 9/30/2004
Posts: 9,187
Do you mean literally ATR + $1, +$2, etc.? Not sure I understand what you're asking.

Do you want MA 26 + ATR, MA 26 - ATR, MA 26 + (ATR*2), etc.?
cliffhanger31
Posted : Wednesday, August 5, 2009 4:18:59 PM
Registered User
Joined: 8/24/2007
Posts: 43

Hey There StockGuy:

Yes I would like MA 26 + ATR, MA 26 - ATR, MA 26 (ATR * 2), etc.

Hope that is enough information.

Andreas

jas0501
Posted : Wednesday, August 5, 2009 4:42:59 PM
Registered User
Joined: 12/31/2005
Posts: 2,499

Oh! for want of...

multiple plots from a single module 

then you could just do this:


'# ATR = indicator.whatever
plot1 = price.value + ATR.value
plot2 = price.value - ATR.value

plot3 = price.value + ATR.value*2
plot4 = price.value - ATR.value*2

plot5 = price.value + ATR.value*3
plot6 = price.value - ATR.value*3

but such capabilities are not yet available in StockFinder,  :-(



You could however create a single indicator with a user input and ATR indicator and then create five copies and adjust the userinput value to cover the range (-3, -2, -1, 1, 2, 3). Like so

'# MULT = userinput.integer = -3
'# ATR = indicator.whatever
plot = price.value + ATR.value * MULT







jas0501
Posted : Wednesday, August 5, 2009 4:52:06 PM
Registered User
Joined: 12/31/2005
Posts: 2,499
closer reading the ATR should be added to AVG26, so add the noving average indicator as well and this will do it:

'# MULT = userinput.integer = -3
'# ATR = indicator.whatever
'# AVG26 = indicator.whateverelse
plot = AVG26.value + ATR.value * MULT

cliffhanger31
Posted : Wednesday, August 5, 2009 5:18:26 PM
Registered User
Joined: 8/24/2007
Posts: 43
I am looking at someone else's plot and it exists in Stockfinder, so that should help. I don't have access to the code so I am trying to duplicate it with help from here.
Bruce_L
Posted : Thursday, August 6, 2009 9:07:45 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
cliffhanger31,
Does changing the Period of the Moving Average automatically adjust the Period of the Average True Range? Do you know if the type of the 26-Period Moving Average affects the type of Moving Average used in the Average True Range?

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
cliffhanger31
Posted : Thursday, August 6, 2009 10:46:45 AM
Registered User
Joined: 8/24/2007
Posts: 43
Mr Bruce:

Good to have you back.

I picked 26 weeks arbitrarily. However, to answer your question, yes, I would assume that changing the time period of the underlying moving average will also affect plot.

I just reread your question and you may be asking is the moving average simple vs expodential vs something else and how would that affect it etc. I am going to go with simple moving average.

In case this helps, if you have an off line spot to send it to, I have a jpeg of what it looks like. 

Say we have a stock price of $10 and a current ATR value of $1 and the current value of the moving average is say $9.50. The plot would have the +1 atr line at $10.50, the +2 atr line at $11.50 and finally the +3 atr line at $12.50. Then also the -1 atr line at $8.50, etc. 
Bruce_L
Posted : Thursday, August 6, 2009 1:15:09 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
cliffhanger31,
You should be able to Open the attached Chart directly into a running copy of StockFinder.

Attachments:
EMA of Price and True Range.sfChart - 72 KB, downloaded 207 time(s).
SMA of Price and True Range.sfChart - 70 KB, downloaded 108 time(s).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
cliffhanger31
Posted : Thursday, August 6, 2009 1:43:14 PM
Registered User
Joined: 8/24/2007
Posts: 43
Thank you SIR!!!!!

That looks just great. Give yourself a raise!

Andreas
Bruce_L
Posted : Thursday, August 6, 2009 1:48:24 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
cliffhanger31,
You're welcome. Our pleasure.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.