거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

Func Measure Trends - MetaTrader 5용 라이브러리

조회수:
6236
평가:
(30)
게시됨:
2013.02.06 13:17
업데이트됨:
2016.09.20 10:02
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Target:

Due to the creation of an indicator, which needed to determine the direction of a trend formed earlier in order to further solve the algorithm, I came up with a certain formula to measure the trend strength (closeness of this trend to the ideal) as a percentage.

Below is represented the illustration that to my point of view symbolizes the ideal trend (on the left side is the down trend, on the right side is the up trend). Next to each trend are indicated existence conditions of an ideal trend:

The algorithm:

At first, to write this function I decided to enter the rating system, i.e. for every true condition some "ball" variable gets one rating. Further on these ratings were formed into this variable and after calculating the ratings at last the received number of ratings was divided by the maximum possible number and multiplied by 100% that allows conversing the received ratings into a percentage.

Actually the function itself is given in the Func_Trend.mqh.

Another type of analysis:

Then I came up with another idea, which supposed a non-uniform accrual of ratings. For example, for the most important conditions more ratings would be accrued. So the idea of counting the ratings by power of two was created and the more important the condition is, the higher the power of two will be.

Below is represented the illustration with a lot of number of conditions for each trend. More important conditions are located at the beginning of the list:

The conditions were added into the functions and the sense of calculating the ratings changed, but, in general, the trend percentage remained the same. It can be seen in the Func_Trend_2.mqh.

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

AFL Winner AFL Winner

The oscillator for intraday trading.

PFE2 PFE2

The smooth oscillator performed in the form of the color histogram

NDuet NDuet

Two different period Moving Averages to define the direction of the trend and the semaphore signal indicator to specify the moment for settlement of a deal

TrendLine Touch Alert TrendLine Touch Alert

This indicator simply alerts and sends email every time the trend line touched by the price.