有货哟 发表于 2013-7-22 11:20:08

震荡指标-DeM指标源代码下载


主题:
DeMarker, DeM

创建人:MetaQuotes (2005.12.07 11:12 )
已下载:680
下载:
http://www.mql4.com/i/ico/mq4.gif DeMarker.mq4 (3.0 Kb) View
http://www.mql4.com/i/ico/gif.gif demarker.gif (8.8 Kb)



    DeMark Technical Indicator is based on the comparison of the period maximum with the previous period maximum. If the current period (bar) maximum is higher, the respective difference between the two will be registered. If the current maximum is lower or equaling the maximum of the previous period, the naught value will be registered. The differences received for N periods are then summarized. The received value is used as the numerator of the DeMarker and will be divided by the same value plus the sum of differences between the price minima of the previous and the current periods (bars). If the current price minimum is greater than that of the previous bar, the naught value will be registered.
    When the indicator falls below 30, the bullish price reversal should be expected. When the indicator rises above 70, the bearish price reversal should be expected.
    If you use periods of longer duration, when calculating the indicator, you’ll be able to catch the long term market tendency. Indicators based on short periods let you enter the market at the point of the least risk and plan the time of transaction so that it falls in with the major trend.
    Calculation:
    The value of the DeMarker for the "i" interval is calculated as follows:

[*]The DeMax(i) is calculated:

If high(i) > high(i-1) , then DeMax(i) = high(i)-high(i-1), otherwise DeMax(i) = 0

[*]The DeMin(i) is calculated:

If low(i) < low(i-1), then DeMin(i) = low(i-1)-low(i), otherwise DeMin(i) = 0

[*]The value of the DeMarker is calculated as:

DMark(i) = SMA(DeMax, N)/(SMA(DeMax, N)+SMA(DeMin, N))

    Where:
SMA — Simple Moving Average;
N — the number of periods used in the calculation.

love869 发表于 2014-12-11 08:42:14

研究研究

猪八戒 发表于 2014-12-21 00:34:23

想学EA,拜师,谁收了我吧

臧家小咔吧 发表于 2014-12-21 02:23:42

bwuhf 发表于 2014-12-25 09:30:46

我靠

wx_fj5cW4Ec 发表于 2016-11-12 13:09:42

怎么下载怎么下载怎么下载

yiyang 发表于 2020-2-13 20:12:46

LZ真是人才

旧忆如何放下你 发表于 2020-6-16 20:17:47

难得一见的好帖

keyscc23 发表于 2020-7-3 13:53:08

:lol不错

03137ntixx 发表于 2020-7-18 16:53:26

学习了,不错
页: [1] 2
查看完整版本: 震荡指标-DeM指标源代码下载