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

OptimReport v2.15 - MetaTrader 5용 라이브러리

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

If you want to optimize your Expert Advisor using your own characteristics, you can use "Custom max" mode via OnTester() function.

This code simplifies to create your own formulae.

To define the custom optimization parameter, sometimes it's necceary to calculate many trade characteristics.

This code provides you the following characteristics:

  1. Profit factor;
  2. Profit in deposit currency;
  3. Profit in points;
  4. Total Profit;
  5. Total Loss;
  6. Loss deals;
  7. Profitable deals;
  8. Profit per deal (in percents);
  9. Profit per day (in percents);
  10. Maximal drawdown;
  11. Balance channel width (in points);
  12. Difference between the maximal and minimal slope of the balance line;
  13. Average drawdown (averaged sum of drawdown for all deals);
  14. Recovery factor;
  15. Average points per deal.

Compared with previous version, I added the option to save optimization results (and all characteristics) to the HTML file.

OptimReport v2.15

Manual:

Copy the "OptimReport.mqh" file to the MQL5\Include\ folder

Add the following line to the code of your Expert Advisor:

#include <OptimReport.mqh>
Add this line to OnInit() function:
OtimReport(1);

Add this line to OnTick() function:

OtimReport(2);

Add this line to the code when open position:

OtimReport(3);

Add these 4 lines to OnTester() function:

OtimReport(4);
Input_Param="input"; // Input parameters here. See example below...
if(Crt_HTML) Sort_HTML_Ar();
return(Vigoda);

Here is an example of Input_Param:

Input_Param="TP_B="+DoubleToString(TP_B,0)
                  +" SL_B="+DoubleToString(SL_B,0)
                  +" GT_B="+DoubleToString(GT_B,0)
                  +" TS_B="+DoubleToString(TS_B,0);

Recommendations:

The Lot_Risk variable is the percent of margin used in trading (for increasing volume).

Note that HTML file with optimization results is saved separately for each agent: С:\Program Files (x86)\MetaTrader 5\Tester\Agent-127.0.0.1-3000\MQL5\Files\

If you have found errors or need some other characteristics, please inform me.
It will be great if you provide your own optimization characteristics.

PS: I prefer to use the formula № 5

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

iUSDx (USD index) Multicurrency Indicator iUSDx (USD index) Multicurrency Indicator

The iUSDx indicator uses the "MCM Control Panel" for multicurrency mode. It calculates the USD index.

FAT PANEL FAT PANEL

The Panel Designed for "Best Graphic Panel in MQL5" Contest. This graphic panel allows to automate manual trading. It has many functions, including the visual construction of trading strategies.

Grr-al Grr-al

The Expert Advisor is profitable only if the "Open prices" only or "1 minute OHLC" modes used in Strategy Tester.

ZigzagColor_Channel ZigzagColor_Channel

The ZigzagColor_Channel plots a channel by connecting the ZigZag peaks and ZigZag bottoms.