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

Export Positions History V1 - MetaTrader 5용 스크립트

조회수:
8936
평가:
(22)
게시됨:
2018.07.26 15:59
업데이트됨:
2021.10.24 23:18
dummy.mq5 (0.67 KB) 조회
\MQL5\Scripts\
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The script exports history of closed positions from MT5 retail hedging account selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software.

For version 2 of the script, please go to https://www.mql5.com/en/code/27683

It supports only retail hedging accounts (Forex).

To export the entire trading history, keep Start date and End date at their default values.


The CSV file will be auto-opened with the associated Windows program (e.g., Microsoft Excel or Ron's CSV Editor).

The output CSV file can be located at: Terminal > File > Open data folder > MQL5\Files\<Filename>

Following data columns are exported:

  • Open Time
  • Ticket: this is the position ID
  • Type
  • Volume
  • Symbol
  • Open Price
  • S/L
  • T/P
  • Close Time
  • Close Price
  • Commission
  • Swap
  • Profit
  • Profit Points
  • Balance, this includes the running sum of all profits, swaps and commissions from previous trades
  • Magic Number
  • Duration, this includes duration of the position expressed in (hh:mm:ss) format
  • Open Reason, this includes reason of opening the position (client, mobile, web, expert)
  • Close Reason, this includes reason of closing the position (client, mobile, web, expert, sl, tp, so, ...)
  • Open Comment, this includes comment of the deal in for position
  • Close Comment, this includes comments of all the deals out for position
  • Deal In Ticket, this includes ticket of the deal in for position
  • Deal Out Tickets, this includes tickets of all the deals out for position

The closed positions are reconstructed in a more convenient representation than the History tab of the MetaTrader 5 terminal.

The CSV file can be opened with Microsoft Excel or better with  Ron's CSV Editor.

https://www.ronsplace.eu/Products/RonsEditor


Note:

To be able to calculate the running Balance in the correct chronological order, the option "Order positions by: " has to be set to "Close time", so that the list of positions is ordered by the time of closing (not by the opening times).



Price Zone Oscillator - Floating Levels Smoothed Price Zone Oscillator - Floating Levels Smoothed

In order to filter out some of the signals of the Price Zone Oscillator - Floating Levels indicator, smoothing is added to this version.

Price Zone Oscillator - Smoothed Price Zone Oscillator - Smoothed

This version of Price Zone Oscillator is an attempt to solve the "too fast" slope issue of the original indicator.

Range Oscillator - Smoothed Range Oscillator - Smoothed

This version of Range Oscillator has smoothing option in order to avoid some false signals.

Range Oscillator + Bands (Smoothed) Range Oscillator + Bands (Smoothed)

This version is the smoothed version of the original Range Oscillator + Bands indicator. Smoothing is cleaning up some false signals and, since the smoothing method is JMA (which has very small lag) the added lag is as small as it can be making it much easier to use in a lot of decision situations.