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

Log4mql - MetaTrader 4용 라이브러리

조회수:
6468
평가:
(24)
게시됨:
2015.07.06 10:51
업데이트됨:
2016.11.22 07:32
\MQL4\Include\
log4mql.mqh (16.61 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Log4mql is an MQL4 (MetaQuotes MetaTrader 4 Language) library for flexible logging to files and the terminal console. It is modeled after the Log4j Java library.

Documentation (GitHub): https://github.com/swaypnet/Log4mql

Usage in your Code:

CLog4mql::getInstance().error(__FILE__, __LINE__, "Something unexpected happen");

or (for more frequent usage)

CLog4mql* logger = CLog4mql::getInstance();
logger.error(__FILE__, __LINE__, "Something unexpected happen");
logger.info(__FILE__, __LINE__, "Calcumation done");
logger.debug(__FILE__, __LINE__, StringFormat("The result of %s is %d", string1, value1));

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

 CLog4mql::release();

or

logger.release();

Directories:

The directory for the log4mql.conf and the log4mql.log files

  • Normal mode: <mt4datadir>/MQL4/Files/
  • Test mode: <mt4datadir>/tester/files/

Log levels:

You can configure the required log level for output in the config file for each appending file and/or a global default.

  • TRACE
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • CRIT

Log4mql

Trade History Export to CSV Trade History Export to CSV

Exports CSV file to analyze trade history for a symbol.

Fibo For Yesterday and Last Week Fibo For Yesterday and Last Week

Using Golden Section Analysis of the market for yesterday and last week.

Guppy (Long and Short) Guppy (Long and Short)

This indicator combines two groups of six exponential moving averages of different periods to elucidate the direction and the strength of the short-term and long-term trend.

Check Current Open Orders With Profit Check Current Open Orders With Profit

This script lists current open orders with profit.