Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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
|
|
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.?
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
Registered User Joined: 8/24/2007 Posts: 43
|
Thank you SIR!!!!!
That looks just great. Give yourself a raise!
Andreas
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
cliffhanger31,
You're welcome. Our pleasure.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |