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

Script Calling Library for MT4 build 600 and later - MetaTrader 4용 라이브러리

조회수:
12432
평가:
(27)
게시됨:
2014.02.27 14:15
업데이트됨:
2016.11.22 07:32
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This is script calling library for MT4 build 600 and later.

This library is for callingl scripts from your indicator and expert advisors.

On earlier build of MT4, this can be achieved with this method.

Around build 509, message parameter may have been changed.

wParam is 0x11, and lParam is the ordinal of Navigator tree view, starts from 0 (the top script is 0).

This library includes DLL and a MQL class library.

Source:

Source is hosted on GitHub (CodeBase version might be outdated. Check here for new release).

If you are in trouble:

I'm welcome bug reports on GitHub Issue.

How to use:

  1. Add the following include line to your indicator or expert advisor

    #include <ScriptCaller.class.mqh>
  2. Add the following code to initialize/deinitialize class instance.

    ScriptCaller* g_scriptCaller = NULL;
    
    int OnInit()
    {
       g_scriptCaller = new ScriptCaller();
       return INIT_SUCCEEDED;
    }
    
    void OnDeinit(const int reason)
    {
       if (g_scriptCaller) {
           delete g_scriptCaller;
       }
    }
  3. Finally, put the following code to call script!

    g_scriptCaller.callScript("ScriptName"); // Do not end with .mq4
  4. If the script shows input dialog, and you want to close it automatically, call as follows.

    g_scriptCaller.callScript("ScriptName", true); // if the 2nd parameter is true, dialog will be closed automatically.


Samples:

Under MQL4\Indicators, 2 sample indicators, which calls scripts under MQL4\Scripts .

License:

This software is licensed under GNU General Public License Version 3.

Update history:

  • March 6, 2014: v0.1.1: Fix GitHub #1: Cannot load DLL on Windows XP and Wine
  • Feburary 27, 2014: v0.1.0: Initial release version
Indicator RDS2689SignalAlerts Indicator RDS2689SignalAlerts

This indicator will write the price of Pivot Point on the trading chart, ranging from Price Support 6 to Price Resistance 6. When prices change or pass one of Pivot Price level, the indicator will be given alerts.

EA SmartAssTrade EA SmartAssTrade

This EA just using a very simple formula, but according to my experience, the formula was accurate enough to make a profit.

MPCandle MPCandle

Combine Candle sticks and Market Profile indicator.

_MAvsMA_ema _MAvsMA_ema

EA Crossing of 2 MA