NexusFi: Find Your Edge


Home Menu

 





Interface MC -> MT4


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one pfabcTrader with 5 posts (4 thanks)
    2. looks_two LoboTrader with 4 posts (3 thanks)
    3. looks_3 NicoVersailles with 3 posts (0 thanks)
    4. looks_4 philippe07024 with 3 posts (1 thanks)
      Best Posters
    1. looks_one 4EverMaAT with 1 thanks per post
    2. looks_two pfabcTrader with 0.8 thanks per post
    3. looks_3 LoboTrader with 0.8 thanks per post
    4. looks_4 philippe07024 with 0.3 thanks per post
    1. trending_up 15,408 views
    2. thumb_up 9 thanks given
    3. group 10 followers
    1. forum 21 posts
    2. attach_file 2 attachments




 
Search this Thread

Interface MC -> MT4

  #11 (permalink)
 
LoboTrader's Avatar
 LoboTrader 
Karlsruhe, Germany
 
Experience: Advanced
Platform: NinjaTrader & Metatrader
Broker: IB , TaiPan
Trading: Shares & ETF at the US and EU , some MNQ & MES
Posts: 31 since Nov 2011
Thanks Given: 289
Thanks Received: 14

Dears

me into the same yet to date w/o success & appreciating any support very much .

For example we could jointly put the recommendation of 4EverMaAT into life . I did not try his option "4" as I am too new in MC & MT4 and simply not brave enough to invest time into something with questionable chances of success (from the little bit of what I do know :-) ). Yet I never coded any I/O nor in MT4 and less in MC .

My motivation to connect MC with MT4 really is, that I wish to take advantage of MT4´s feature to control individual trades (via Magicnumber) and MC´s EL posibilities/easiness of coding and (!) optimizing capabilities .

Please refer to my posts here :



and MC Project Managment 282
MultiCharts Project Management - Issue MC-282 - [AUTOLINK]Multicharts[/AUTOLINK] to Metatrader

Really hope this thread will develop into "a" solution .

Best regards

Lobo

Do not trade alone
Follow me on Twitter Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
About a successful futures trader who didnt know anythin …
Psychology and Money Management
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
 
  #12 (permalink)
pfabcTrader
Leicester England
 
Posts: 35 since Apr 2012
Thanks Given: 2
Thanks Received: 23

Hi,

I’m using MT4 DDE to connect MT4 to MC ( Data from MT4 -> MC).

I have used it for a week on EUR/USD and AUD/USD in real time with no problems.

It is only practical for 2 or 3 instruments.

Reply With Quote
Thanked by:
  #13 (permalink)
 
philippe07024's Avatar
 philippe07024 
New York, NY
 
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: Forex
Posts: 33 since Feb 2011
Thanks Given: 16
Thanks Received: 16



LoboTrader View Post
Dears

me into the same yet to date w/o success & appreciating any support very much .

For example we could jointly put the recommendation of 4EverMaAT into life . I did not try his option "4" as I am too new in MC & MT4 and simply not brave enough to invest time into something with questionable chances of success (from the little bit of what I do know :-) ). Yet I never coded any I/O nor in MT4 and less in MC .

My motivation to connect MC with MT4 really is, that I wish to take advantage of MT4´s feature to control individual trades (via Magicnumber) and MC´s EL posibilities/easiness of coding and (!) optimizing capabilities .

Please refer to my posts here :



and MC Project Managment 282
MultiCharts Project Management - Issue MC-282 - [AUTOLINK]Multicharts[/AUTOLINK] to Metatrader

Really hope this thread will develop into "a" solution .

Best regards

Lobo

Voted yes!

Reply With Quote
Thanked by:
  #14 (permalink)
 
LoboTrader's Avatar
 LoboTrader 
Karlsruhe, Germany
 
Experience: Advanced
Platform: NinjaTrader & Metatrader
Broker: IB , TaiPan
Trading: Shares & ETF at the US and EU , some MNQ & MES
Posts: 31 since Nov 2011
Thanks Given: 289
Thanks Received: 14


pfabcTrader View Post
Hi,

I’m using MT4 DDE to connect MT4 to MC ( Data from MT4 -> MC)..

Hello pfabc

thanks for your input ! I only trade Silver and not need any other Market . How did you develop this "DDE" , I could not find any toolbox in the MQL4 Tutorial . Will you like to share your know-how with us ?

And , than , once you recieved MT4 data in MC and processed them through your trading system ... do you also send trades into MT4 ? Can you send "Comments" and "Magicnumber" as well ?

Thank you

Lobotrader

PS.: Thx towards philippe07024 and my best regards :-)

Do not trade alone
Follow me on Twitter Reply With Quote
  #15 (permalink)
pfabcTrader
Leicester England
 
Posts: 35 since Apr 2012
Thanks Given: 2
Thanks Received: 23

Hi,

I use MT4 manually to execute all my trades, no link from MC to MT4.
I have no experience in MQL4 but a simple text message system
between MC and MT4 could work, otherwise a dll with shared memory
is probably needed.

MT4 has a DDE server build in as standard.
To enable it go to:
Tools - Options - Server and select Enable DDE server

MC needs more effort to setup

go to:
MC QuoteManager

add Symbol - DataSource - ASCII Mapping ( I use 1min , 5min and 15min on EUR/USD)
( I have a file for each time frame I import from MT4, as csv)

add Tools-Data Source select Universal DDE and fill with

Trade Price =MT4|BID!*

Bid Price =MT4|BID!*

Ask Price =MT4|ASK!*
( save new dde data-source eg. MT4DDE)

add Symbol - DataSource - MT4DDE

Every morning I save the 1min, 5min and 15min csv data from MT4 with:
Save As

Next run MC QuoteManager

1. Select Symbol (right click) Clear Cache and Delete Data for each
ASCII Mapping Symbol you use from MT4
( I also clear the DDE DataSource probably not needed)

2. Select Symbol (right click) Import Data ASCII --- select your saved MT4 csv file
( repeat for each MT4-symbol-timeframe)

To get real time MT4-DDE MC charts select your ASCII Mapping for History
and MTDDE for Real Time ( remember to Reload All Data in View Ctrl+R).

I have automated most of it with macros.

Hope it helps.

----------------------------------------------

Nur nicht verzagen, sondern wagen!

Reply With Quote
Thanked by:
  #16 (permalink)
 
LoboTrader's Avatar
 LoboTrader 
Karlsruhe, Germany
 
Experience: Advanced
Platform: NinjaTrader & Metatrader
Broker: IB , TaiPan
Trading: Shares & ETF at the US and EU , some MNQ & MES
Posts: 31 since Nov 2011
Thanks Given: 289
Thanks Received: 14

Ok ,

@ pfabcTrader you gave me a very important hint , which has led me - after some intents on my own - straight into the MC support (we might have different versions of MC , I still have loaded MC7.4) :

The team there than helped me out with two links :

Universal DDE - MultiCharts in the newly created MC Wiki

and some 2 videos , position 4 and 5 in the list of

Videos


When I than asked , if there would also be a way of shuffling tradedata from MT4-Brokerage into MC the answer was "No" (which is a reconfirm to me , from people which know about MC )

Ok, I´ll work on the connection , next step that is . But I really wanted to follow up also appreciating the post of pfabcTrader

Lobo

PS.: Nur nicht verzagen, sondern wagen! => and NEVER give up

Do not trade alone
Attached Thumbnails
Click image for larger version

Name:	DDE_MT4_MC.png
Views:	229
Size:	241.7 KB
ID:	72525   Click image for larger version

Name:	DDE_MT4_MC_Chart.png
Views:	205
Size:	238.1 KB
ID:	72526  
Follow me on Twitter Reply With Quote
Thanked by:
  #17 (permalink)
pfabcTrader
Leicester England
 
Posts: 35 since Apr 2012
Thanks Given: 2
Thanks Received: 23

Hallo Lobo

I have watched the two videos, I can not see any difference in the latest version and
my old MC6 DDE.
What I have done different to the video is I combine MT4 history data ( csv file )
with DDE real time data to generate a new chart in MC.

====shuffling tradedata from MT4-Brokerage into MC====

I have a dll which allows MC to read and write standard windows ini files which you could use
to communicate between MT4 and MC, unfortunately I do not have the time to get involved
with MQL4.

Viele Grüße
PFabc

Reply With Quote
Thanked by:
  #18 (permalink)
pfabcTrader
Leicester England
 
Posts: 35 since Apr 2012
Thanks Given: 2
Thanks Received: 23

Hi Lobo

here is a possibility to talk between MT4 and MC by using Excel as a link.
search google for --- EXCELLINK ADDON --- hope this doesn't cause me any problems.
it’s a free library , you need to register to get it.

This Addon is written to exchange data between excel and trading tools like Tradestation, Wealth-Lab and Metatrader.

PFabc

Reply With Quote
Thanked by:
  #19 (permalink)
 
LoboTrader's Avatar
 LoboTrader 
Karlsruhe, Germany
 
Experience: Advanced
Platform: NinjaTrader & Metatrader
Broker: IB , TaiPan
Trading: Shares & ETF at the US and EU , some MNQ & MES
Posts: 31 since Nov 2011
Thanks Given: 289
Thanks Received: 14


pfabcTrader View Post
Hallo Lobo

I have watched the two videos, I can not see any difference in the latest version and
my old MC6 DDE.

Viele Grüße
PFabc

Hello PFabc

I had some general issue with setting up my PC , didn´t recognize until MC support advised me..... I can only agree with you : No difference to your instructions , after I did just as you described in your post .

The rest of your post .... I do know not what a "dll" , nore a "ini" , is other than some piece of software .
Yet I do know and work quit a bit with MQL4 . Doesn´t help me , as it appears .

Will have to follow maybe another approach : Now as I learned how to shuffle quotes from MT4 into MC I could put my studies on the MC-chart and have the entry signal calculated . Once this has happened , MC could save a "flag" in a CSV file (Filewrite, -append) located in the MT4-file, there being accessable to MT4-Brokerage . There an EA (MQL4 code) could run and manage all my trades (pyramid/ inverse martinggale ) within MT4 . Each time, that MC is placing a flag into that file, the EA would find it and place an order , but according to the rules of the EA .
Neither system would know about the other . All RMMM is part of the EA . To me that is not of a problem, as the system is long lasting .4 h system, trades lasting days, week in theory even months .

Why do this all : To develop the system in an easy way, EL . At the same time take advantage of the very robust and extremly flexible ordermanagment of MT4 and MT4Brokerage .

Have a great holiday

Lobo

Do not trade alone
Follow me on Twitter Reply With Quote
Thanked by:
  #20 (permalink)
pfabcTrader
Leicester England
 
Posts: 35 since Apr 2012
Thanks Given: 2
Thanks Received: 23


Hello Lobo,


I agree with you using a text file to communicate between the programs is probably
the best solution. I would start with MC first and check if you can access a file
created with append in MT4. I tried a similar method last year but MC6 blocked
the file access.

PFabc

Reply With Quote




Last Updated on November 20, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts