당사 팬 페이지에 가입하십시오
Expert - MetaTrader 5용 라이브러리
- 조회수:
- 10315
- 평가:
- 게시됨:
- 2017.11.03 12:29
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
The library can be connected using
#include <fxsaber\Expert.mqh>
All other files on this page provide examples/scenarios of library application; they are not needed for the operation of the library.
Features
// Is the Expert Advisor running on the appropriate chart? bool EXPERT::Is( const long Chart_ID = 0 ); // Deletes the Expert Advisor form the appropriate chart bool EXPERT::Remove( const long Chart_ID = 0 ); // Restarts the Expert Advisor on the appropriate chart bool EXPERT::Reopen( const long Chart_ID = 0 ); // Retrieves data of the EA running on the appropriate chart bool EXPERT::Parameters( const long Chart_ID, MqlParam &Parameters[], // Path to the EA and values of its input parameters string &Names[] ); // Names of input parameters // Launches the EA on the appropriate chart bool EXPERT::Run( const long Chart_ID, MqlParam &Parameters[] ); // Path to the EA and values of its input parameters
Example
The library use examples/scenarios are attached to the description.
-
ExpertsRemove.mq5
// Removes from all charts running Expert Advisors
-
ExpertsReopen.mq5
// Restarts running Expert Advisors
-
ChartsClose.mq5
// Closes all charts, on which there are no Expert Advisors (convenient for VPS)
-
ExpertLoader_Example.mq5 (in the source file, you can see how the Expert Advisor is launched, as well as how the script starts itself as an EA)
// Starts an Expert Advisor with specified parameters
-
ExpertsChange_Example.mq5
// Restarts running Expert Advisors and changes their input parameters
The above examples are the simplest scenarios of library use. It can also be useful in the development of various control panels, from which charts/Expert Advisors are managed, etc.
For a better understanding of how to use the library, here is a short source code:
// Starts an Expert Advisor with specified parameters #include <fxsaber\Expert.mqh> void OnStart() { MqlParam Params[2]; // Path to the Expert Advisor Params[0].string_value = "Experts\\Advisors\ExpertMACD.ex5"; // The first input parameter of the Expert Advisor Params[1].type = TYPE_STRING; Params[1].string_value = "Hello World!"; // Launching the Expert Advisor on the new chart EXPERT::Run(ChartOpen(_Symbol, _Period), Params); }
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/19003
The Psychological indicator implemented as a color histogram, featuring alerts, push and email notifications.
MASi_WaveHistThis is an implementation of the market cycle indicator described by Raghee Horner.
The 'History Deals and Orders' script shows absolutely all properties of deals and orders from the trading history over a given time interval.
Pending orders UPThe scripts places multiple pending orders higher than the current price.