Coder Social home page Coder Social logo

mql4-redis's Introduction

mql4-redis

MQL4 redis binding based on hiredis

Introduction

This is a redis client for MQL4 based on the hiredis C client. I used Microsoft Open Tech version of the library and made some modifications to the source to make it compile on Visual Studio 2015.

The binding is non-trivial: it can handle mql4 wide strings or any binary data. It supports all redis commands, though not all commands are wrapped in a user friendly way.

Files

The MQL4 part of the library is open sourced and licenced under GPL3. It includes the main headers and testing scripts. In Library folder, there is a precompiled dll, which is the C/C++ part of the binding. This dll wraps hiredis, and is compatible with latest MetaTrader4 terminal (32bit). The dll requires that you have the latest Visual C++ runtime (2015).

About string encoding

MQL4 strings are Win32 UNICODE strings (basically 2-byte UTF-16). In the C++ wrapper, all strings are converted to utf-8 before sending to redis.

Usage

You can find useage samples in the Scripts/Test directory. Since MQL4 is very limited as a programming language, you will find that code written with the library is a little verbose, especially you want to handle errors comprehensively.

Changes

2016-12-09: Release 0.2. Add a Redis module that implements most commonly used key management, string, hash, and connection commands.

2016-07-23: Released 0.1.

mql4-redis's People

Contributors

dingmaotu 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.