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

Export to Excel in Real Time - MetaTrader 4용 라이브러리

조회수:
30240
평가:
(21)
게시됨:
2013.06.03 08:01
업데이트됨:
2014.04.21 14:56
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

I use DDE library provided by Windows and wrap it up so that a novice coder can use it easily.

DDE works as follow:

  1. Initialize DDE
  2. Create string handle for Excel Application (in DDE term, it is known as SERVICE)
  3. Create string handle for Sheet name (TOPIC)
  4. Connect to Sheet
  5. Free the above handles, they won't be used anymore
  6. Create string handle for cell (ITEM) using cell address in R1C1 style
  7. Send the data
  8. To export data to another cell, repeat 6-7
  9. You can reuse the already created items' handle (in case you want to update the cells regularly)
  10. Before program return, free all items' string handle
  11. Disconnect Excel and sheet
  12. Uninitialize DDE

Make sure to enable "Allow DLL imports" in Expert Advisor settings. You may need to disable MT4 DDE Server before running this script.

There are 2 files attached in this post:
  • ExcelExportLib.mq4, put this file in experts\libraries folder. This is just a simple mq4 library that wrap a few DDE functions.
  • ExcelExportTest.mq4, put this file in experts\scripts folder. This is a test script that will write text on Excel Sheet 1, cell R2C2

Cheers,

sangmane

Sliders Sliders

Uses up to 4 visual "sliders" in the chart window to quickly and easily adjust values of any technical indicator in a separate window. Based on MetaTrader 4 chart objects, not DLLs.

VR---FIGURA VR---FIGURA

Different view of the figures and the patterns of the day ....

Ichimoku Moving Average Ichimoku Moving Average

Ichimoku with Moving Average instead middle Price channel (Donchian channel) .

Aeron Expert Advisor Aeron Expert Advisor

Aeron Expert Advisor is well known. I am the author of Aeron Expert Advosor. It is based on martingale pattern and all of its parameters are fully customisable.