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

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

ColorPsychological ColorPsychological

The Psychological indicator implemented as a color histogram, featuring alerts, push and email notifications.

MASi_WaveHist MASi_WaveHist

This is an implementation of the market cycle indicator described by Raghee Horner.

History Deals and Orders History Deals and Orders

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 UP Pending orders UP

The scripts places multiple pending orders higher than the current price.