Ninjatrader7 works on linux (tested on ubuntu) using crossover 13.2.0 (and probably wine too)

Discussion in 'Trading Software' started by Proof, Aug 11, 2014.

  1. Proof

    Proof

    Need to install all the following into a WINDOWS XP bottle:

    1. All dot net framework versions up through and including 3.5 SP1
    2. All C++ redistributables through 6.0
    3. All MSXML Parsers up through and including 6.0 SP1
    4. A MSVB 6 service pack runtimes through 6
    5. Hotfix for windows XP (KB954550-v5)
    6. Microsoft Rich Edit 2.0
    7. Microsoft Rich Edit 4.1 (Msftedit.dll

    Then, here is what I had to do to get it to work. You must double click the setup file you downloaded from the NinjaTrader7 website. That is not an installer, it will actually download the installer (which was around 51mb in size). You need to run this setup file in an actual windows environment (VM or real installation, doesn't matter). When you run this setup.exe file you need to wait until the 51mb file is downloaded and then you must check your TMP folder for an msi file (look for a file with extension *.msi with a size of about 51mb). This TMP folder is, by default, found by going into control panel, system, Advanced, Environment Variables. In the top box (User Variables for Administrator) you will see a TMP entry. To the right of the TMP there is a path: that is where you will find the required msi file.

    Now you can copy this msi file (you know its the NinjaTrader7 msi file because it should be one of the only msi files that are around the 51mb you saw downloading in a dialog window previously) to a linux folder. Then open Crossover, Install Windows Software, select the msi file, select the bottle you created earlier with all the prerequisites found in 1 through 7 above.

    To start NinjaTrader7 you must navigate to the location where NinjaTrader was installed (usually /Home/.cxoffice/[bottlenameyouchose]/drive_c/Program Files/NinjaTrader7/bin/). Then you must right click NinjaTrader7.exe and select "Open With Crossover (run)"

    This should start the program for you.

    NOTE: you cannot start NinjaTrader by finding it in the "SHOW APPLICATIONS" search menu and typing in NinjaTrader....the NinjaTrader icon will show up that way but you will get an error when you click it. If you wish to add a shortcut to NinjaTrader to your favorites you will have to start Crossover click tools then click run command. Choose the bottle where NinjaTrader is installed then browse for the executable (the one you right clicked and selected "Open With Crossover (run)" earlier) click RUN (to make sure it works). If it works (it should), then click Create Launcher. Then, when you type NinjaTrader after clicking "SHOW APPLICATIONS" in your favorites you will now see two NinjaTrader Icons. Find out which one works by clicking then remove the one that doesn't work (if you want). Now you can right click the one that works and select "Add to Favorites" so that a shortcut will be created for easy access.

    I hope this helps someone. It took me a while to figure this out. Since CrossOver is a commercial version of Wine, I imagine you can do the same thing with Wine and it will probably yield a positive result.
     
    Mavrud, Zzoom and Jonson like this.
  2. Paul1976

    Paul1976

    Anyone still following this thread ??

    I'm on 14.04 64-bit and cannot seem to get NT7 running...

    I have been in contact with the people from CrossOver, as well as NinjaTrader, but to no avail :(

    Traders out there who run NT7 on linux / Ubuntu ??
     
    Mavrud likes this.
  3. Mavrud

    Mavrud

    Hello, Paul,
    I managed to install Ninja in Kubuntu 14.10, Debian 7.8 and Fedora 21, all 64bitPC, with Wine 1.7 and Winetricks following Proof's advice. Ninja installs and starts just fine but doesn't want to connect to any server - I tried FXCM demo and Free end-of-day Kinetick.

    It is important you make a 32 bit Wine set up.



    Proof, were you able to conect to a quote server?
     
  4. Mavrud

    Mavrud

    Paul, you still alive?

    If you install 32-bit isdn4k-utils and libxslt you should be able to have at least CQG and Kinetick end-of-day connections after that, probably more.
    Again, if in 64-bit Linux and Wine - first create 32-bit prefix. I think Crossover will do it for you, but in Wine it's a manual command.
    You may need to change Windows version (in Wine) to 8.1 after you install the .NET stuff and before installing Ninja.
    I think that's all I did and it worked fine. Wine is 1.7 - it's the default version for Fedora now, but should be a beta for Ubuntu.

    Still don't have the FXCM connection though, and it's the one I need. Error code 12152 is the most I get. If anyone can help - please.
     
  5. Paul1976

    Paul1976

    I'm still alive, yes :)

    So I need to make a 32-bit Wine setup ? Crossover keeps telling me I miss 32bit libraries (even when I install them manually), so exit CrossOver for me :(

    Will try to setup a wine 32 bit and test. Sad thing is I did make it to that error 12152 before (using CrossOver), and neither FXCM or NT could / would help :(
     
  6. Mavrud

    Mavrud

    Crossover is usually a few versions behind Wine, sometimes even one major version and Wine made huge progress the last versions - it could be because of that.
    What libraries does Crossover want - isdn4k-utils and libxslt or some else?
    If you are too lazy to install the MS stuff piece by piece (like me) you might run these commands:
    sh winetricks -q dotnet35sp1
    sh winetricks -q gdiplus mdac27 mdac28 msftedit msxml4 msxml6 riched20 riched30 vb6run vcrun2003 vcrun2005 vcrun2008 vcrun2010 vcrun2012
    If you have dotnet30, msxml3 and mdac27 pre-downloaded that should do the job. I'm not sure if mdac are needed by the way - you might skip them from the command. Gdiplus just makes the splash screen look better - it is also not really needed.
     
    Last edited: May 18, 2015
  7. Mavrud

    Mavrud

    FXCM have the ForexConnect API as a standalone software in their forum with a native Linux version. There is also a Windows version of course and (some of) it is included in Ninja.
    I think there was an option for a Mono app to be connected to that API, but I havent read much about it yet (and I have to read a lot to do it because at the current moment I have no clue about coding and stuff).
     
  8. Paul1976

    Paul1976

    Thanks a lot for trying to help, Mr. Mavrud. Truly appreciated ! :)

    I tried running those commands in a termina, but it seems sh is opening the wrong winetricks (the one for the 64-bit setup) How do I install those packages in my 32-bit setup ?

    Ow, this is what CrossOver misses (I ran /opt/cxoffice/bin/cxdiag. This was the output)
    [MissingLibHal]"Level"="Suggest""Title"="Missing 32bit libhal.so.1 library""Description"="This may be needed for Windows applications to automatically detect CD-ROM and USB key insertion."[MissingLibTiff]"Level"="Suggest""Title"="Missing 32bit libtiff.so.4 library""Description"="This is needed by some applications that need to manipulate TIFF images in their user interface."[Properties]"display.depth"="24"[Properties]"opengl.vendor"="VMware, Inc."[Properties]"opengl.version"="2.1 Mesa 10.1.3"[Properties]"opengl.renderer"="Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits)"
     
    Last edited: May 18, 2015
  9. Mavrud

    Mavrud

    env WINEPREFIX=~/.prefix sh winetricks
    I never used this though, you may or may not need the full path to the 32 bit prefix.
    What Ninja license (demo or real) and data provider are you using (or at least plan to use)?
     
  10. Paul1976

    Paul1976


    hmmm, not following, I'm afraid :( I have now a .prefix and a .wine folder in my home dir.

    When I paste that line (env WINEPREFIX=~/.prefix sh winetricks) into a terminal, I get:

    You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.

    This means he still aims for the .wine instead of the .prefix, no ?
     
    #10     May 19, 2015