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

Tester Control - MetaTrader 4용 라이브러리

조회수:
10134
평가:
(10)
게시됨:
2011.06.28 12:36
업데이트됨:
2015.03.10 14:47
\MQL4\Include\
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Idea: As far as i know, many times i need backtest some EA to find a proper settings. Run backtest from time1 to time2, change settings and run again... after 1h waiting, must click to Start and test is again.

If u use summary report or something similar or newer, u can fully automated the whole backtest pocedure. Just using this library... :D

So the inspiration was the Mike Furlender - script, but his code is not as good enough (btw thanks), ofc my code isnt so good...

Library:

2 files needed:

- MetaTrader\experts\include -> testerControl.mqh
- MetaTrader\libraries -> specialUser32.mq4

u must compile specialUser32 solo, because some control handling need different type of SendMessageA function from user32.dll, in this file the lparam is string not an integer.
and testerControl file using this specialUser32 as a library importing by ex4 file.

Sample:

- MetaTrader\experts\scripts -> AutomataTesterSample.mq4

In this sample demonstrate how u can use this library, simply as enough. Specify multiple experts,symbol,period,(from-to) time... Ofc use them in your own way, just few requirements needed:

use this funtion on Init() procedure - this rutin detect a Tester window and controls...

InitTester();

and set the tester options by

SetTesterOptions(...);

and run it by

StartTester();

thats all folks.

Update 1.1

Every comobox items, enough to write unique pre-name e.g. advisor name: ea_symr_tes but Full name is ea_symr_test, Copyright © 2011, Symr

new method present - settings are similar the expert properties window

#define TST_POS_LONG_ONLY        "Long only"
#define TST_POS_SHORT_ONLY       "Short only"
#define TST_POS_LONG_SHORT       "Long & Short"

#define TST_OPT_BALANCE          "Balance"
#define TST_OPT_PROFIT_FACTOR    "Profit Factor"
#define TST_OPT_EXPECTED_PAYOFF  "Expected Payoff"
#define TST_OPT_MAXIMAL_DRAWDOWN "Maximal Drawdown"
#define TST_OPT_DRAWDOWN_PERCENT "Drawdown Percent"

void SetTestingOptions(string advisor, int money, string currency, string positions, string optpar, bool genetic = false);


Features for futures:

- u can edit optimalization parameters via this library

Sicker_EA_DIGITS Sicker_EA_DIGITS

Sicker_EA_DIGITS - daytrading EA

InputResizer: edit indicator and EA settings comfortably InputResizer: edit indicator and EA settings comfortably

A small utility making MT4 input windows resizable.

ZMFX Stolid 5a EA ZMFX Stolid 5a EA

trend trading EA

MTF sar_rsi MTF sar_rsi

This EA capitalises on four timeframes SAR, RSI and BB to determine entry as well as time zone.