下载MetaTrader 5
要添加评论,请登录注册
寻找志同道合的朋友?在论坛您会遇到很多!
证明自己
14
证明自己 2007.12.25 10:34 

我想得到当前的ATR值。为什么shift参数用0没有值?但用1就有值,但是是上一个值。

ATRCurrent=iATR(NULL,15,1,1);

Rashid Umarov
管理员
6601
Rashid Umarov 2007.12.25 11:34  
ATR is Average True Range. If period of iATR equals 1 that means True Range on one-bar range. If we want to see ATR on one-bar range on 0 (zero) index bar which is uncompleted bar it means we measure difference between High and Low. In first tick this difference equals 0. See https://www.mql5.com/go?link=https://ta.mql4.com/cn/indicators/oscillators/average_true_range
mt520131003
32
mt520131003 2007.12.25 18:48  

能看懂中文,为什么不用中文回复一下呢?

证明自己
14
证明自己 2007.12.26 03:04  
thanks
Rashid Umarov
管理员
6601
Rashid Umarov 2007.12.26 13:02  
john2007smith:

能看懂中文,为什么不用中文回复一下呢?

I don't speak Chinese. I translate Chinese posts with Babelfish
K.H. SOH
13
K.H. SOH 2008.01.20 06:43  

Dear: Rosh

Respect to you, you do all the hard work to help the new people like me, Thank you.

BIT
29
BIT 2008.01.20 08:55  
Rosh:
ATR is Average True Range. If period of iATR equals 1 that means True Range on one-bar range. If we want to see ATR on one-bar range on 0 (zero) index bar which is uncompleted bar it means we measure difference between High and Low. In first tick this difference equals 0. See https://www.mql5.com/go?link=https://ta.mql4.com/cn/indicators/oscillators/average_true_range


Rosh的意思是 ATR是平均真实波动.如果 iATR 的周期等于1的话,就意味真实波动在1柱(这个1柱不是first bar那柱)的波动.如果你想要让ATR在first bar( 比如buffer[0]这个),这就意味着我们在测量不同的最高和最低, 第一个参数NULL是空不是零.

我英语水平有限,他的大概意思就是这样了

/
要添加评论,请登录注册