Running MetaTrader 4 in Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
mel8331
Newbie
Newbie
Posts: 1
Joined: Fri Jan 16, 2009 8:11 am

Running MetaTrader 4 in Wine

Post by mel8331 »

Metatrader 4 ( http://www.metaquotes.net/ ) do run in Wine but is not fully compatible ie not all function are working. I wish future Wine will enable Metatrader 4 to run properly.

Another wish list is for Wine to incorporate a "File Explorer" that will show the "C:\" directory instead of having to work with the complicate Linux directory.
dAnIK SeNT

Running MetaTrader 4 in Wine

Post by dAnIK SeNT »

On Fri, Jan 16, 2009, mel8331 wrote:
Another wish list is for Wine to incorporate a "File Explorer" that will
show the "C:\" directory instead of having to work with the complicate
Linux directory.
Try executing in terminal window:
wine winefile

--
Best regards,
Danila Sentiabov aka dAnIK SeNT
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Running MetaTrader 4 in Wine

Post by austin987 »

On Fri, Jan 16, 2009 at 7:23 AM, mel8331 <[email protected]> wrote:
Metatrader 4 ( http://www.metaquotes.net/ ) do run in Wine but is not fully compatible ie not all function are working. I wish future Wine will enable Metatrader 4 to run properly.
File bugs.

--
-Austin
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Running MetaTrader 4 in Wine

Post by L. Rahyen »

On 2009-01-16 (Friday) 13:23:19 mel8331 wrote:
Metatrader 4 ( http://www.metaquotes.net/ ) do run in Wine but is not fully
compatible ie not all function are working. I wish future Wine will enable
Metatrader 4 to run properly.
What exactly doesn't work for you? Personally I use Wine in my server where I
have many instances of Metatrader running simultaneously. I use a lot of
functions in Metatrader and everything working great for me (note that
I'm using some native dlls). However, version of Wine I use in my server is
pretty old - obviously I can't upgrade it often because of possible
regressions in Wine: this isn't acceptable for my particular task (if Wine
fail to work properly I may lose real money). In other words I didn't test
Metatrader with new Wine.

If you describe what exactly doesn't work for you I (probably) can give you
advice(s) how to deal with the problem(s). Also don't forget to mention what
version of Wine you are using, what build of Metatrader and what native
dll(s).
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Running MetaTrader 4 in Wine

Post by austin987 »

On Fri, Jan 16, 2009 at 10:25 AM, L. Rahyen <[email protected]> wrote:
On 2009-01-16 (Friday) 13:23:19 mel8331 wrote:
Metatrader 4 ( http://www.metaquotes.net/ ) do run in Wine but is not fully
compatible ie not all function are working. I wish future Wine will enable
Metatrader 4 to run properly.
What exactly doesn't work for you? Personally I use Wine in my server where I
have many instances of Metatrader running simultaneously. I use a lot of
functions in Metatrader and everything working great for me (note that
I'm using some native dlls). However, version of Wine I use in my server is
pretty old - obviously I can't upgrade it often because of possible
regressions in Wine: this isn't acceptable for my particular task (if Wine
fail to work properly I may lose real money). In other words I didn't test
Metatrader with new Wine.
Could you install in a test system and test for regressions? We can't
fix bugs we don't know about :-).



--
-Austin
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Running MetaTrader 4 in Wine

Post by L. Rahyen »

On 2009-01-16 (Friday) 16:30:52 Austin English wrote:
On Fri, Jan 16, 2009 at 10:25 AM, L. Rahyen <[email protected]> wrote:
On 2009-01-16 (Friday) 13:23:19 mel8331 wrote:
Metatrader 4 ( http://www.metaquotes.net/ ) do run in Wine but is not
fully compatible ie not all function are working. I wish future Wine
will enable Metatrader 4 to run properly.
What exactly doesn't work for you? Personally I use Wine in my
server where I have many instances of Metatrader running simultaneously.
I use a lot of functions in Metatrader and everything working great for
me (note that I'm using some native dlls). However, version of Wine I use
in my server is pretty old - obviously I can't upgrade it often because
of possible regressions in Wine: this isn't acceptable for my particular
task (if Wine fail to work properly I may lose real money). In other
words I didn't test Metatrader with new Wine.
Could you install in a test system and test for regressions? We can't
fix bugs we don't know about :-).
I know that. And I plan to do so as soon as I have more free time (in fact I
have few bugs that I want to report but need to do some additional
research/regression testing first) - currently I'm overloaded with work.
However, after a week or two I probably will find some free time to report
all bugs that I found so far (and also retest all my most important programs
with recent Wine and do regression test(s) if necessary).
Surjanto
Newbie
Newbie
Posts: 1
Joined: Fri Jan 23, 2009 10:26 am

Post by Surjanto »

Is there anyone success install Metatrader 4 using Wine?

What version of wine do you use?
wine 1.1 or 0.9?

What linux do you use?
uBuntu 8.10 or Centos 5.2 or .... what?

Please help me, thanks in advance
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Running MetaTrader 4 in Wine

Post by L. Rahyen »

On 2009-01-27 (Tuesday) 02:57:12 Surjanto wrote:
Is there anyone success install Metatrader 4 using Wine?
I thought I already answered this question to you; or you didn't received my
reply to your PM where you asked same questions? I sent it to you on Jan 23,
2009 9:45 pm. I think I simply repost it here - to be sure that you received
it this time and also because it may be helpful to others who looking for
similar answers.

BTW, when something doesn't work please describe exactly what the problem is,
what errors do you get (if any), and post terminal output, and mention what
version(s) of Wine you have tried.

* * *
1.What version of wine did you install?
On my server I have stable configuration based on wine-0.9.44 with some
native overrides and patches. However, general recommendation is not to use
old Wine unless you are sure that new Wine doesn't work good enough for you
or you already have stable and tested configuration with older Wine and don't
want to upgrade (for example because of possibility of regressions in newer
versions).

I just tried and MetaTrader works fine with new Wine 1.1.13 from git (but
standard 1.1.13 release probably will work fine too).

However MetaTrader's installer doesn't install mfc42.dll (without it
MetaTrader doesn't work) so you need to do this by yourself. Quickest way to
install and run MetaTrader in recent Wine:

1) First you need to install winetricks; to do so run this:

wget http://kegel.com/wine/winetricks
chmod +x winetricks
sudo mv winetricks /usr/bin/

2) Then install requirements for MetaTrader (gecko is used for HTML
rendering):

winetricks -q gecko vcrun6

3) Install MetaTrader with Wine and work with it as usually.

You may encounter some bugs though. For example bug "[Bug 4304] Metatrader:
Double clicking to change table values doesn't work" - if this is important
to you then read this bug report and try workarounds described there.

If something still doesn't work for you or you have additional questions -
feel free to ask, maybe I will be able to help.
2.Under what linux version? Centos 5.2? uBuntu 8.10? or what?
I use Debian GNU/Linux Lenny on my server; however, this isn't recent Lenny -
it is more than 1 year old. But actually this doesn't matter because you are
free to use any distro you like.
3.Do you run your MT4 in Linux VPS?
No. I have my own 1U server in collocation center.
milja2008
Level 1
Level 1
Posts: 7
Joined: Sun Feb 01, 2009 2:54 pm

Feeling lost

Post by milja2008 »

Hi there,
I have been scouring different forums trying to find an answer as to why am unable to get Ubuntu 8.10 , with wine 1.0.1 to install mfc42.dll . Without it I will never get MT4 to run .
I have followed your posts still with no success. Any assistance would be appreciated. The only system on my machine is Ubuntu 8.10

Thanks
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Running MetaTrader 4 in Wine

Post by austin987 »

On Sun, Feb 1, 2009 at 2:05 PM, milja2008 <[email protected]> wrote:
Hi there,
I have been scouring different forums trying to find an answer as to why am unable to get Ubuntu 8.10 , with wine 1.0.1 to install mfc42.dll . Without it I will never get MT4 to run .
'winetricks mfc42' doesn't work?

Terminal output. Can you upgrade to 1.1.14?

--
-Austin
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Feeling lost

Post by vitamin »

milja2008 wrote:unable to get Ubuntu 8.10 , with wine 1.0.1 to install mfc42.dll.
You mean you can't copy one single file? What sort of problem you have what that?
milja2008
Level 1
Level 1
Posts: 7
Joined: Sun Feb 01, 2009 2:54 pm

Post by milja2008 »

Can't upgrade at this time.

I've tried all the suggestions I have found.

Just can't load mfc42.dll

MetaTrader 4 requires this file to be in the C:\windows\system32 directory.

My windows directory is blank ! I see no system32 directory !
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Running MetaTrader 4 in Wine

Post by austin987 »

On Sun, Feb 1, 2009 at 2:46 PM, milja2008 <[email protected]> wrote:
Can't upgrade at this time.

I've tried all the suggestions I have found.

Just can't load mfc42.dll

MetaTrader 4 requires this file to be in the C:\windows\system32 directory.

My windows directory is blank ! I see no system32 directory !
Then you've botched something up majorly. Restart in a clean ~/.wine.



--
-Austin
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Running MetaTrader 4 in Wine

Post by L. Rahyen »

On 2009-02-01 (Sunday) 20:46:30 milja2008 wrote:
Can't upgrade at this time.

I've tried all the suggestions I have found.

Just can't load mfc42.dll

MetaTrader 4 requires this file to be in the C:\windows\system32 directory.

My windows directory is blank ! I see no system32 directory !
Assuming you are using default Wine prefix run this:

sudo rm -rf ~/.wine
wineboot

"sudo" is there in case you have broken permissions (BTW, never run Wine as
root if you don't know what you are doing!) and "rm -rf ~/.wine" will remove
your default Wine prefix with all Windows programs you have installed (if
any). "wineboot" will create clean Wine prefix (because you have deleted old
one by previous command). Then you can copy mfc42.dll to
~/.wine/drive_c/windows/system32/ or run "winetricks vcrun6".
milja2008
Level 1
Level 1
Posts: 7
Joined: Sun Feb 01, 2009 2:54 pm

Post by milja2008 »

ok wine was removed and then reinstalled .

now what? When I look in Places, computer, file system, media, windows then that folder is blank :(
Last edited by milja2008 on Sun Feb 01, 2009 4:08 pm, edited 1 time in total.
milja2008
Level 1
Level 1
Posts: 7
Joined: Sun Feb 01, 2009 2:54 pm

Post by milja2008 »

Please slow down guys , I'm new to Ubuntu but catching most of what you're saying. Am I to run this from the terminal window ? Default wine prefix ? now you lost me.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Running MetaTrader 4 in Wine

Post by austin987 »

On Sun, Feb 1, 2009 at 3:11 PM, milja2008 <[email protected]> wrote:
Please slow down guys , I'm new to Ubuntu but catching most of what you're saying. Am I to run this from the terminal window ?





Yes

--
-Austin
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Running MetaTrader 4 in Wine

Post by L. Rahyen »

On 2009-02-01 (Sunday) 21:11:41 milja2008 wrote:
Please slow down guys , I'm new to Ubuntu but catching most of what you're
saying. Am I to run this from the terminal window ?
Of course. All commands should be run in a X terminal (like konsole,
gnome-terminal or xterm); otherwise commands may not work as expected.
milja2008
Level 1
Level 1
Posts: 7
Joined: Sun Feb 01, 2009 2:54 pm

Post by milja2008 »

what did i leave out ?
****@****-desktop:~$ cp mfc42.dll/.wine/drive_c/windows/system32
cp: missing destination file operand after `mfc42.dll/.wine/drive_c/windows/system32'

The mfc42.dll file is currently on my desktop.
Last edited by milja2008 on Sun Feb 01, 2009 4:33 pm, edited 1 time in total.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Running MetaTrader 4 in Wine

Post by austin987 »

On Sun, Feb 1, 2009 at 3:31 PM, milja2008 <[email protected]> wrote:
what did i leave out ?
****@****-desktop:~$ cp mfc42.dll/.wine/drive_c/windows/system32
cp: missing destination file operand after `mfc42.dll/.wine/drive_c/windows/system32'
A) You need a space between dll and /.wine

B) That's not the right way to do it. Use winetricks as I said before.

--
-Austin
milja2008
Level 1
Level 1
Posts: 7
Joined: Sun Feb 01, 2009 2:54 pm

Post by milja2008 »

What is the command line for winetricks?

****@****-desktop:~$ winetricks vcrun6
bash: winetricks: command not found
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Running MetaTrader 4 in Wine

Post by L. Rahyen »

On 2009-02-01 (Sunday) 21:48:21 milja2008 wrote:
What is the command line for winescripts?

****@****-desktop:~$ winetricks vcrun6
bash: winetricks: command not found
I really recommend you to reread this thread! All yours questions are
answered *multiple* times! But I repeat most important things for you anyway:

1) First you need to install winetricks; to do so run this:

wget http://kegel.com/wine/winetricks
chmod +x winetricks
sudo mv winetricks /usr/bin/

2) Then install requirements for MetaTrader (gecko is used for HTML
rendering):

winetricks -q gecko vcrun6

3) Install MetaTrader with Wine and work with it as usually.
milja2008
Level 1
Level 1
Posts: 7
Joined: Sun Feb 01, 2009 2:54 pm

Post by milja2008 »

Thank you for your assistance.
altmerman
Newbie
Newbie
Posts: 2
Joined: Thu Feb 12, 2009 5:29 am

Tooltips

Post by altmerman »

Hello! Metatrader works fine under wine - that is simply great.
But thereś one thing which starts to drive me crazy sometimes. When you point the mouse to the candle (or any object) a tip shows up with info like high-low-close-open. But then i point to the BLANK space and the tip shows up AGAIN. the same last one. It is disturbing.

If anyone could help with this matter?

Thanks in advance
altmerman
Newbie
Newbie
Posts: 2
Joined: Thu Feb 12, 2009 5:29 am

PROBLEM SOLVED

Post by altmerman »

I found out that comctl32.dll is responsible for tooltips. Simply copying the file from real windowsXp wasnt any help.
Then I saw it in winetricks panel and installed - and voila! It works just fine - no tooltips appear where theyre not suppose to appear.
Locked