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

FileLog - MetaTrader 4용 라이브러리

조회수:
8509
평가:
(18)
게시됨:
2017.06.19 14:07
\MQL4\Include\
FileLog.mqh (9.53 KB) 조회
\MQL4\Indicators\
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

FileLog is a simple MQL4 class for flexible logging to files and the terminal console.

Github Repository: https://github.com/RGunning/MQL4Logger

Log File will be saved in:

  • <Data folder>\MQL4\Files\
  • <Data folder>\tester\files\


Usage

CFileLog* logger = new CFileLog("example.log",WARNING,true);

logger.Error(StringFormat("%s %d %s",__FILE__, __LINE__, "Something unexpected happen"));
logger.Info(StringFormat("%s %d %s",__FILE__, __LINE__, "Calculation Done));
logger.debug(StringFormat("%s %d The result of %s is %d",__FILE__, __LINE__,string1, value1));

Don't forget at the end of your EA/Indicator/Script:

Delete logger;

Log levels:

  • TRACE
  • DEBUG
  • INFO
  • WARNING
  • ERROR
  • CRITICAL

Log functions:

  • Trace()
  • Debug()
  • Info()
  • Warning()
  • Error()
  • Critical()


Example

A working example of the logger in action can be seen in FileLogExample.mq4.

Console:

File:

Market Watch Cleaner Market Watch Cleaner

This script removes all instruments with spread higher than the specified maximum requested and it also removes all non-trade enabled instruments from Market Watch, which allows you to concentrate on items you may want to trade without all the clutter.

Automatically bring charts one by one to the top Automatically bring charts one by one to the top

This indicator helps to move charts one by one to the the front, just like slide show,and make your hands free.

Multi Timeframe Bollinger Bands Multi Timeframe Bollinger Bands

This is a multi timeframe indicator for Bollinger Bands. With it you can plot the Bollinger Bands of the higher timeframes without changing the current chart. This allows you to more clearly understand the price context by seeing the levels of the other timeframes on the same chart.

Tipu EA Tipu EA

A simple EA based on Tipu Trend indicator and Tipu Stops indicator.