거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
9320
평가:
(10)
게시됨:
2018.07.09 12:35
Candle_Code.mq5 (23.37 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Indicator Candle_Code displays in a separate window the "code" of candlesticks as lines built on the ratio of each candle's parameters. Each parameter of one candlestick has its weight within the general view of its candle:

  1. Candlestick body size;
  2. Upper candlestick shadow size;
  3. Lower candlestick shadow size;
  4. Candle direction;
  5. A gap between the adjacent candlesticks (the current one and the previous one).

If the parameter weight exceeds the doubled average range, the value of its weight will be assigned to it; if it does not, then its weight in the general candle view will be its weight multiplied by the parameter range and divided by its doubled average range.

Then, on the data calculated for each candle, a moving average (Weights Data) will be built that displays in the chart the data of all candlesticks available within the history (displaying this line is disabled by default). Then this line is smoothed to display the primary indicator line (Primary MA). The secondary indicator line (Secondary MA) is built by smoothing the primary one.

The indicator has 10 input parameters:

  • Body size weight - candlestick body weight;
  • Upper shadow weight - upper candle shadow weight;
  • Lower shadow weight - lower candle shadow weight;
  • Candle direction weight - candle direction (bullish/bearish) weight;
  • Gap weight - weight of the distance between the adjacent candles;
  • Show weights data line - whether to display the line of the general calculated weight data of each candlestick or no (Yes/No);
  • First MA period - period of calculating the first smoothing moving average to be calculated by the line of candlestick weights;
  • First MA method - first moving average calculation method;
  • Second MA period - period of calculating the second smoothing moving average to be calculated by the data of the first MA;
  • Second MA method - second moving average calculation method.

Exemplary calculations of the candlestick body weight:

If Abs(Open-Close) >= Avg(Open-Close)

BodySize = BodyWeight

otherwise

BodySize = BodyWeight * (Abs(Open-Close)) / Avg(Open-Close)

where:

Abs(Open-Close) = absolute size of the candlestick body
Avg(Open-Close) = average size of the candlestick bodies over the period of history data
BodyWeight = candlestick body weight defined in the parameters

Fig 1. Default weights.

Fig 1. Default weights.


Fig. 2. Candlestick direction weight = 512

Fig. 2. Candlestick direction weight = 512


Figure 2. Default weights, Show data = Yes

Figure 2. Default weights, Show data = Yes

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

CaudateCandle CaudateCandle

The indicator highlights caudate candlesticks of the "hammer" or "inverted hammer" type, the body of such candlestick being in the upper or lower half of the candlestick

WATR_Candles WATR_Candles

Indicator WATR implemented as a sequence of candlesticks.

AROON AROON

Indicator Aroon.

BBB BBB

Indicator Bull And Bear Balance.