Giter Club home page Giter Club logo

mt4-node.js's Introduction

MT4-Node.js

MT4 Node.js client/server

Visit Penguin Traders to get help from the community

This demonstrates how you can communicate between a Node.js server and a MT4 client application quickly. There are no delays and the connection/calculations are done on the same tick.

The Node folder contains the Node.js server application that you can run. MQL4 folder contains a simple indicator made for demonstration purposes.

You must have Node.js installed and working in your computer (http://nodejs.org/download). Make sure you have allowed DLL imports in MT4 (Tools > Options > Expert Advisor, check the box "Allow DLL imports)

Installation

  • Copy the entire directory into your MetaTrader installation folder.
  • Open the command prompt and browse to where you copied the Node folder into (The Node folder can be anywhere) and then enter the following command to run the server: node server.js For example, if the Node folder is in C:\Node, you can execute the server by entering: node c:\Node\server.js
  • Either compile the "sample_node_indi.mq4" indicator in MetaEditor or restart MT4 for the indicator to show up in MT4 terminal.
  • Attach the indicator and have fun experimenting.
  • Note: You must have the Node.js server running before you attach the indicator.

Visit Penguin Traders for more examples and for indicators that you can download that uses the MT4 to Node.js extensively.

Credits

License

This code is released to the public under GNU GENERAL PUBLIC LICENSE



mt4-node.js's People

Contributors

saver0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.