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

Real author:  Bookkeeper

SnakeInBorders calculates the channel of a filtered market, which is limited by two borders BorderTopBuffer[] and BorderBotBuffer[], and it calculates the signal MartBuffer[].

//+--------------------------------------------+
//|  INDICATOR INPUT PARAMETERS               |
//+--------------------------------------------+
input Smooth_Method XMA_Method=MODE_LWMA_; //Smoothing method
input uint SnakeRange=2; //Half-period of Snake'а Axis calculation                  
input int XPhase=15; //First averaging parameter,
//---- for JJMA within the range of -100 ... +100 it influences the quality of the transition process;
//---- for VIDIA it is a CMO period, for AMA it is a slow average period
input uint   FilterPeriod = 24;  // Filtering period
input double MartFiltr    = 2;  // Market filtering ratio. The larger the value of MartFiltr, the narrower is the filtered market channel. The ratio should be properly selected. Default is 2;
input bool   HardCalc     = true;
input Applied_price_ IPC=PRICE_WEIGHTED_;//A price constant
input int Shift=0; // Horizontal indicator shift in bars
input int PriceShift=0; // Vertical indicator shift in points
input color  Upper_color=clrMediumSeaGreen;
input color  Lower_color=clrRed;

The behavior of the signal Mart inside the channel:

When the market moves up, the signal line moves away from the lower border, crosses the channel and merges with the upper border. And vice versa when the market moves down.

When there is a directional market move, the signal line will be held at the appropriate channel border. Expanding channel width means strengthening of the movement. The channel becomes narrower during market fluctuations. During channel narrowing, the signal line moves from one border to the other inside the channel. After reaching the opposite border, the channel begins to expand.

SnakeInBorders can be used independently, comparing the signal line movement on different timeframes, as well as for the construction of other indicators, using Mart instead of the bar price. For the indicators like MA, OA, AC,.. you can set HardCalc = true, for indicators like ZigZag, Channel,.. — HardCalc = false, and MartFiltr value should be chosen in the range 3...5... You can differentiate between true and false peaks: if a peak is intermediate, the Mart signal line does not match the border.

The indicator uses SmoothAlgorithms.mqh library classes (copy it to <terminal_data_folder>\MQL5\Include). The use of the classes was described in detail in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

This indicator was first implemented in MQL4 and was published in CodeBase on 19.12.2006.

Fig1. The SnakeInBorders indicator

Fig1. The SnakeInBorders indicator

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

XMA-XN_HTF XMA-XN_HTF

The XMA-XN indicator with the timeframe selection option available in the input parameters.

Robot_MACD Robot_MACD

MACD based Expert Advisor

Fractal_TRIX Fractal_TRIX

A fractal TRIX.

Trend_Catcher Trend_Catcher

The Expert Advisor identifies trend based on three moving averages (with periods of 200, 50, 25 or other custom periods), and opens trades using the Parabolic SAR indicator. The EA uses martingale techniques, lot is calculated as percent of deposit depending on stop loss.