Interface MC -> MT4 - futures io
futures io futures trading



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 12,096 views
    2. thumb_up 9 thanks given
    3. group 9 followers
    1. forum 21 posts
    2. attach_file 2 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Interface MC -> MT4

(login for full post details)
  #1 (permalink)
Versailles
 
 
Posts: 8 since Mar 2010
Thanks: 0 given, 0 received

Hi everybody;

here is my problem: I found that MC is the best software to code and to develop strategies... but when you found a good one, what to do?
There is few brokers who work with MC and no connectivity with Zulu, C2, Tradency etc....

So we've got MT4 wich is horrible (for me) in the developpement/code but good in execution and connectivity to brokers.

Is there a solution (exept code translation) to connect MC -> MT4 (a dll or something???)

I know my thread is a little bit... optimistic (lol) but....

Thank you.

Nicolas.

Reply With Quote

Can you help answer these questions
from other members on futures io?
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
Where can I find Cost to Trade and Book Depth info?
Emini and Emicro Index
MACD line not plotting after change of plot order
NinjaTrader
Which kind of Blockvolume is visible? - order processing
Emini and Emicro Index
Short Interest Ratio indicator?
ThinkOrSwim
 
 
(login for full post details)
  #3 (permalink)
Cornwall UK
 
Experience: Intermediate
Platform: Ninja
 
Posts: 2 since Aug 2009
Thanks: 0 given, 0 received


Have you thought of instead of connecting MC to MT4 you use Ninja. The Ninja people provide a connection between TS and Ninja which will work for Multicharts. I have only tried this in Sim but have a strategy written in Easy Language that fires orders to Ninja. Seems to work fine. I basically modified the test strategy they provided with Ninja. As Ninja is free for testing you may wish to try this. I also suggest looking at their manual/help guide which gives further information. Note I am not talking about the standard email interface but an interface that works through a dll I believe.

MicroAl

Reply With Quote
 
(login for full post details)
  #4 (permalink)
Toronto, Canada
 
Experience: Advanced
Platform: NinjaTrader, MT4
Broker: Amp/CQG, Citibank
Trading: CL, GC, 6E, ES, TF, EURUSD, GBPJPY, AUDUSD
 
Beljevina's Avatar
 
Posts: 350 since Sep 2010
Thanks: 392 given, 575 received

I have been looking for something similar, in my case to take trades/alerts out of Tradestation and get them into the Metatrader world.

TradeBullet.com seems to offer this solution. From their application summary: "TradeBullet handles fully automated order routing to your broker from TradeStation, Collective2, eSignal, MS Excel, most charting software and any custom application." The 'Ultra" edition of the software states as part of it's functionality "Fully automated trading of TradeStation 2000i, TradeStation 8 and Collective2 systems. No modification to your strategy is required. API DLL that allows two-way communication between TradeBullet and 3rd party applications such as TradeStation and MetaTrader"

They offer a trial period. Since I've read MultiCharts is 99% (Tradestation) ELD compatible, and there is a API that may be able to be utilized here, perhaps the right combination of criteria is present. I am not yet at the testing or implementation point yet so I unfortunately have no further hands on guidance.

Follow me on Twitter Reply With Quote
 
(login for full post details)
  #5 (permalink)
Versailles
 
 
Posts: 8 since Mar 2010
Thanks: 0 given, 0 received

First thank you for all your solutions.

1. Ninja is not for me, the problem is between MC and MT4.
2. TradeBullet seems to be very powerfull, I will test it.

but I have another problem; in fact I found a very simple way to send orders from MC to MT4 with a CSV file and an EA. (check:Paul's Forex random walk: A crude "API" for MetaTrader 4)

The big Problem is: "what about MT4 datas from MT4 to MC" in RT??? I think first of another CSV or TXT file but MC can't map OLHC datas, it can just map "price" data.......

Achhhh......

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Site Moderator
 
 
sam028's Avatar
 
Posts: 3,665 since Jun 2009
Thanks: 3,787 given, 4,494 received

Dear @NicoVersailles, that doesn't make sense, and I think you are wasting your time here.
Why not using one of the MC compatible brokers, MBTrading, Dukascopy or FXCM (in this order ) ?

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
 
(login for full post details)
  #7 (permalink)
Versailles
 
 
Posts: 8 since Mar 2010
Thanks: 0 given, 0 received

The problem is that MC has not enough brokers and not enough connectivity with services like C2, ZipSignal or RentASignal.

My signals are based on daily datas and I can have position during 2 months so I have to look the rollover rates;
MB Trading are a little bit high, FXCM worst and Dukacopy, you must have a great account;


It will be cool if UK Brokers like Alpari or Activtrades would be available with MC...

Why not MBTrading...

Reply With Quote
 
(login for full post details)
  #8 (permalink)
London
 
Experience: Beginner
Platform: MultiCharts
 
Posts: 240 since Nov 2010
Thanks: 10 given, 23 received


NicoVersailles View Post
The problem is that MC has not enough brokers and not enough connectivity with services like C2, ZipSignal or RentASignal.

WHt don't you go on website of project managment of multicharts, register and post your wish.
I post many wishes and they take and they will in the next version.
Ask to connect mc to services that u need.

Reply With Quote
 
(login for full post details)
  #9 (permalink)
New York, NY
 
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: Forex
 
philippe07024's Avatar
 
Posts: 33 since Feb 2011
Thanks: 16 given, 16 received

Did any of you make progress on that topic since last post?

Reply With Quote
 
(login for full post details)
  #10 (permalink)
Bangkok, Thailand
 
 
Posts: 6 since May 2012
Thanks: 13 given, 1 received



sam028 View Post
Dear @NicoVersailles, that doesn't make sense, and I think you are wasting your time here.
Why not using one of the MC compatible brokers, MBTrading, Dukascopy or FXCM (in this order ) ?

I think he is trying to capture the data from his broker, and tunnel it through to MC. The easiest route is in fact to use a supported broker. The second easiest method is to get the broker to be supported via MC. Post on both MC and broker support forums. Request API access. No guarantees, but sometimes brokers are happy to branch out. 3rd option is to request API access and write your own real-time export/import tick function (bridge). Option 4 is similar, but with no API access. You write a custom indicator/EA/script for mt4 that will send incoming ticks directly to the MC datacenter. The latency would be minimal (<1ms) and you get the benefit of real-time charting... You'd always have to leave your workstation on for this, which i already assume you do. If you are doing automated solutions, than this is less of a problem, as your server can hold in the cloud for months or even years without a reboot.

Reply With Quote
The following user says Thank You to 4EverMaAT for this post:
 
(login for full post details)
  #11 (permalink)
Karlsruhe, Germany
 
Experience: Advanced
Platform: NinjaTrader & Metatrader
Broker: IB , TaiPan
Trading: Shares & ETF at the US and EU , some MNQ & MES
 
LoboTrader's Avatar
 
Posts: 31 since Nov 2011
Thanks: 274 given, 14 received

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 MT4s feature to control individual trades (via Magicnumber) and MCs 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 - Multicharts 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
The following user says Thank You to LoboTrader for this post:
 
(login for full post details)
  #12 (permalink)
Leicester England
 
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

Hi,

Im 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
The following user says Thank You to pfabcTrader for this post:
 
(login for full post details)
  #13 (permalink)
New York, NY
 
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: Forex
 
philippe07024's Avatar
 
Posts: 33 since Feb 2011
Thanks: 16 given, 16 received


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 MT4s feature to control individual trades (via Magicnumber) and MCs 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 - Multicharts to Metatrader

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

Best regards

Lobo

Voted yes!

Reply With Quote
The following user says Thank You to philippe07024 for this post:
 
(login for full post details)
  #14 (permalink)
Karlsruhe, Germany
 
Experience: Advanced
Platform: NinjaTrader & Metatrader
Broker: IB , TaiPan
Trading: Shares & ETF at the US and EU , some MNQ & MES
 
LoboTrader's Avatar
 
Posts: 31 since Nov 2011
Thanks: 274 given, 14 received


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
 
(login for full post details)
  #15 (permalink)
Leicester England
 
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

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
The following user says Thank You to pfabcTrader for this post:
 
(login for full post details)
  #16 (permalink)
Karlsruhe, Germany
 
Experience: Advanced
Platform: NinjaTrader & Metatrader
Broker: IB , TaiPan
Trading: Shares & ETF at the US and EU , some MNQ & MES
 
LoboTrader's Avatar
 
Posts: 31 since Nov 2011
Thanks: 274 given, 14 received

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, Ill 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:	86
Size:	241.7 KB
ID:	72525   Click image for larger version

Name:	DDE_MT4_MC_Chart.png
Views:	79
Size:	238.1 KB
ID:	72526  
Follow me on Twitter Reply With Quote
The following user says Thank You to LoboTrader for this post:
 
(login for full post details)
  #17 (permalink)
Leicester England
 
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

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 Gre
PFabc

Reply With Quote
The following user says Thank You to pfabcTrader for this post:
 
(login for full post details)
  #18 (permalink)
Leicester England
 
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

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.
its 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
The following user says Thank You to pfabcTrader for this post:
 
(login for full post details)
  #19 (permalink)
Karlsruhe, Germany
 
Experience: Advanced
Platform: NinjaTrader & Metatrader
Broker: IB , TaiPan
Trading: Shares & ETF at the US and EU , some MNQ & MES
 
LoboTrader's Avatar
 
Posts: 31 since Nov 2011
Thanks: 274 given, 14 received


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 Gre
PFabc

Hello PFabc

I had some general issue with setting up my PC , didnt 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 . Doesnt 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
The following user says Thank You to LoboTrader for this post:
 
(login for full post details)
  #20 (permalink)
Leicester England
 
 
Posts: 35 since Apr 2012
Thanks: 2 given, 23 received

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
 
(login for full post details)
  #21 (permalink)
New York, NY
 
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: Forex
 
philippe07024's Avatar
 
Posts: 33 since Feb 2011
Thanks: 16 given, 16 received


pfabcTrader View Post
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

I am not sure the management of orders via a single file will be a reliable solution. Issues are starting with having 2 programs accessing the same file.
The email or the DLL integration of NinjaTrader and TradeStation are interesting. TradeStation Integration
with unfortunately no direct application for MT4.

Reply With Quote
 
(login for full post details)
  #22 (permalink)
India
 
 
Posts: 18 since May 2010
Thanks: 39 given, 8 received


LoboTrader View Post
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, Ill 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

Could you or for that matter anyone else please also share Excel screenshot to achieve above result? I am particularly interested about how/what you gave name to particular cell in excel? Tutorials on Multicharts site are very short.

Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Interface MC -> MT4


Last Updated on November 20, 2012


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts