거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
8304
평가:
(21)
게시됨:
2012.11.14 15:58
업데이트됨:
2023.03.29 13:42
3rdgenxma.mq5 (8.21 KB) 조회
\MQL5\Include\
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Real Author:

EarnForex

3rd Generation XMA is the 3rd generation moving average. This is an advanced version of the standard moving average indicator (МА) that follows a fairly simple procedure to reduce the time lag based on the increase in the moving average period.

The method was first described by Dr. Manfred Dürschner in his article "Gleitende Durchschnitte 3.0" (in German). This implementation uses λ = 2 resulting in more effective lag reduction. Higher λ increases the similarity with the classic moving average.

Input parameters:

//+-----------------------------------+
//| Indicator input parameters        |
//+-----------------------------------+
input Smooth_Method XMA_Method=MODE_EMA; // Smoothing method
input int XLength=50;                    // Smoothing depth                    
input int XPhase=15;                     // Smoothing parameter
input Applied_price_ IPC=PRICE_TYPICAL;  // Price constant
input int Shift=0;                       // Horizontal shift of the indicator in bars
input int PriceShift=0;                  // Vertical shift of the indicator in points

This indicator allows you to select averaging algorithms out of ten possible options:

  1. SMA - simple moving average;
  2. EMA - exponential moving average;
  3. SMMA - smoothed moving average;
  4. LWMA - linear weighted moving average;
  5. JJMA - adaptive JMA smoothing;
  6. JurX - ultralinear smoothing;
  7. ParMA - parabolic smoothing;
  8. T3 - Tillson's multiple exponential smoothing;
  9. VIDYA - smoothing using the algorithm developed by Tushar Chande;
  10. AMA - smoothing using Perry Kaufman's algorithm.

It should be noted that Phase parameters for different smoothing algorithms have completely different meaning. For JMA, it is an external Phase variable that varies from -100 to +100. For T3, it is a smoothing coefficient multiplied by 100 for better visualization. For VIDYA, it is a CMO oscillator period. And for AMA, it is a slow EMA period. These parameters do not affect the smoothing in other algorithms. For AMA, the fast EMA period is a fixed value and is equal to 2 by default. The powering coefficient for AMA is also fixed at 2.

The indicator uses the SmoothAlgorithms.mqh library classes (to be copied to the terminal_data_directory\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

Fig.1 The 3rdGenXMA Indicator

Fig.1 The 3rdGenXMA Indicator 

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/1032

SinTick SinTick

The sine and tick indicator

GetExtremums GetExtremums

The function that identifies extremums over a given period of history.

Squize_MA Squize_MA

The Squize_MA indicator displays the intersection of two Moving Averages with different averaging periods. The chart also features conventional flat limits.

BidAskChannel BidAskChannel

The BidAskChannel indicator is designed to account for spread in the shadows of candles.