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

Differential_Average_By_Sultonov - MetaTrader 5용 지표

조회수:
3303
평가:
(7)
게시됨:
2018.08.23 13:04
업데이트됨:
2023.03.29 13:48
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Real author: Sevan62

Smoothed differential indicator by Sultonov. Indicator lines show the averaged accumulated sums of bulls and bears power for the user-defined period.


Calculation method

Bulls power is calculated by the following formula:

BullsPower(i) = SUM(Close(i) - Close(i + 1), N) / BUN

where:

  • BullsPower(i) - current bulls power.
  • Close(i) - Close price of the current bar.
  • Close(i + 1) - Close price of the previous bar.
  • N - indicator calculation period.
  • BUN - number of positive increments of Close prices over N bars. The sum includes only positive increments.

Accordingly, the following formula is used for calculating the bears power:

BearsPower(i) = SUM(Close(i + 1) - Close(i), N) / BEN

where:

  • BearsPower(i) - current bears power.
  • BEN - number of negative increments of Close prices over N bars. The sum includes only negative increments.

The final indicator features additional smoothing of obtained lines.

//+-----------------------------------+
//|  INDICATOR INPUTS                 |
//+-----------------------------------+
input uint i_nPeriod=1000;             // calculation period
input Smooth_Method XMethod=MODE_SMA_; // smoothing averaging method 
input uint XLength=12;                 // smoothing depth                    
input int XPhase=15;                   // smoothing parameter,
//---- For JJMA, changing within -100 ... +100, affects the transient process quality;
//---- For VIDIA this is CMO period, for AMA this is a slow average
input Applied_price_ IPC=PRICE_CLOSE_; // price constant
input int Shift=0;                     // indicator horizontal shift in bars


Interpretation

The indicator consists of two lines filling space between them in color corresponding the trend direction. The higher line shows the stronger side. The intersection of lines (color change) indicates trend change and is a good moment for opening a deal in the direction of the power that appeared to be above the other one.

The indicator uses the classes of the SmoothAlgorithms.mqh library. Working with that class was described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

The original indicator was developed in the MQL4 language and published in CodeBase on 22.09.2017.

Fig. 1. Differential_Average_By_Sultonov indicator

Fig. 1. Differential_Average_By_Sultonov indicator

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

Doji_Arrows Doji_Arrows

The indicator finds Doji candlesticks and highlights them on the chart.

FX_Trend FX_Trend

FX Trend trend-following indicator

Exp_Ang_Zad_C_Tm_MMRec Exp_Ang_Zad_C_Tm_MMRec

A trading system using the Ang_Zad_C trend-following indicator with the possibility to set a strict trading time interval and change the volume of a forthcoming trade depending on the results of the previous trades.

Return Strategy Return Strategy

Working with pending Buy Limit and Sell Limit orders. Grid of pending orders.