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

Convenient use of indicators - MetaTrader 5용 라이브러리

조회수:
3333
평가:
(16)
게시됨:
2017.01.18 10:02
\MQL5\Include\
cindmacd.mqh (13.98 KB) 조회
cindsdl.mqh (23.03 KB) 조회
\MQL5\Indicators\
idealzz.mq5 (7.33 KB) 조회
idealzzp.mq5 (7.33 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

General

Originally written for myself, when I had to work with many indicators at once.

Each class consists of the multiple fields. They can be the same for all (for example, indicator handle, timeframe, period, price) and those required by the particular indicator. The class also contains functions that set and get those fields.


How to Use

Download the archive. Files with the .mqh extension (that have "cind" in the beginning of file name) should be placed to the folder with your Expert Advisor.

Files with indicator names (*.mq5) should be placed to the \MQL5\Indicators\ folder.

Indicator parameters can be set and modified using the class functions. For example:

Macd.SetFastEma(MACD_Fast_EMA_Period); // Set the value of the fast EMA
Macd.SetSlowEma(MACD_Slow_EMA_Period); // Set the value of the slow EMA
Macd.SetSignalSma(MACD_Signal_SMA_Period); // Set the value of the signal SMA

Macd — object of the CIndMacd class.

Indicator value can be obtained by calling the corresponding function. For the "macd_histogram" indicator, it will look as follows:

double valueHist = Macd.OutValueHist(1); // Histogram value at the last bar
double valueMacd = Macd.OutValueMacd(1); // Indicator value at the last bar
double valueSignal = Macd.OutValueSignal(1); // Signal line value at the last bar

One as the argument means that the value is taken for the last completed bar.


Conclusion

In short, this is all. If you have questions on usage - write in comments.

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

RSI_Slowdown RSI_Slowdown

Semaphore signal indicator based on the RSI indicator, which features alerts, sending emails and push-notifications to mobile devices.

Exp_Delta_WPR Exp_Delta_WPR

The Exp_Delta_WPR Expert Advisor is based on the Delta_WPR indicator color change.

Exp_RSI_Slowdown Exp_RSI_Slowdown

Trading system based on the signals of the RSI_Slowdown indicator.

MFI_Slowdown MFI_Slowdown

Semaphore signal indicator based on the MFI indicator, which features alerts, sending emails and push-notifications to mobile devices.