log in     sign up for free
 
I had to learn discipline and money management. I decided that I was going to become very disciplined and businesslike about my trading.
Paul Tudor Jones
 
 
Home
systems (284)
 
Special offer: buy AmiBroker and EOD+Real-Time Data
 

Buy

MetaStock

     (special offer)
 
 
 

Buy

EOD data for MetaStock

     (special offer)
 
 
 

Buy

Realtime data for MetaStock

     (special offer)
 
 
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

ATR Custom Indicator

Formula for: MetaStock

indicator


 

 

Views:  1633

Added: January 14, 2007
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: MetaStock, indicator
 
Your Ad Here
Re: Built in ATR indicator vs. custom ATR

· To: metastock@xxxxxxxxxxxxx
· Subject: Re: Built in ATR indicator vs. custom ATR
· From: BAUDECB@xxxxxxxxxxxxx (Christian Baude)
· Date: Thu, 27 May 1999 01:16:34 GMT
· Cc: Equis Support <support@xxxxxxxxx>
· In-Reply-To: <24FA77225FA5D111869F0000C025B6F293504E@xxxxxxxxxxxxxxxxx>
· References: <24FA77225FA5D111869F0000C025B6F293504E@xxxxxxxxxxxxxxxxx>
· Reply-To: metastock@xxxxxxxxxxxxx
· Sender: owner-metastock@xxxxxxxxxxxxx

On Wed, 26 May 1999 09:15:48 -0600, Equis Support wrote:

The actual ATR does not use a simple moving average. Welles Wilder uses >his own smoothing (a modified exponential average) which is the function "Wilders" in MetaStock. Try you formula this way:

 

 



Code:

ATR Custom Indicator
periods:=Input("ATR Periods?",1,100,10);
TH:=If(Ref(C,-1) > H,Ref(C,-1),H);
TL:=If(Ref(C,-1) < L,Ref(C,-1),L);
TR:=TH-TL;
Wilders(TR,periods)

 

ATR (mine) I

prd1:=input("enter ATR period",1,9999,7);
prd2:=(prd1*2)-1;
{max (absolute) of yesterday's close to today's high or today's low}
myatr1:=Max(Abs(Ref(C,-1)-H),Abs(Ref(C,-1)-L));
{max of yesterday's close to today's high or today's low or today's range}
myatr2:=Max(myatr1,H-L);
myatr2

 

ATR (mine) II (H - L + Abs(H - Ref(C,-1)) + Abs(L - Ref(C,-1)) )/2


 





Source: http://purebytes.com/archives/metastock/

 

View similar (indicator for MetaStock):

$HistVol50Prds_Dly
Bollinger Band Hook Up & Down
Durmmond's PLdot
Moving Average - Phased
Barnes' Accelleration
RSI_m_SK_Va
Advance/Decline Divergence Oscillator
Market Pressure - Ultimate
Close Location Value
StochRSI 'Alert' Levels
...
 
 
all formulas for MetaStock
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012