und werden Sie Mitglied unserer Fangruppe
Veröffentliche einen Link auf das Skript, damit die anderen ihn auch nutzen können
Bewerten Sie es im Terminal MetaTrader 5
- Ansichten:
- 28148
- Rating:
- Veröffentlicht:
- 2010.11.22 09:35
- Aktualisiert:
- 2014.04.21 14:55
-
Benötigen Sie einen Roboter oder Indikator, der auf diesem Code basiert? Bestellen Sie ihn im Freelance-Bereich Zum Freelance
ZEROMQ
These are partial bindings to the zeromq library along with a demo of a zeromq tcp socket. If anyone makes more complete bindings please share! I might if i need all of the features. Linux wine version also included.
"Ø The socket library that acts as a concurrency framework.
Ø Carries messages across inproc, IPC, TCP, and multicast.
Ø Connect N-to-N via fanout, pubsub, pipeline, request-reply.
Ø Fast enough for clustered products and supercomputing.
Ø Asynch I/O for scalable multicore message-passing apps.
Ø Large and active open source community.
Ø 20+ languages including C, C++, Java, .NET, Python.
Ø Most OSes including Linux, Windows, OS X.
Ø LGPL free software with full commercial support."
And its very simple to use. Notice that you cant automatically connect to a raw socket, we're connecting zeromq to zeromq here. Though i think there is support for adding raw sockets into a network using zeromq_poll, though i haven't bound that yet.
VERSION 2: precompiled libs for windows and linux x86 32 bit added (using zeromq version 2.0.10). Added cmake build script for windows. Updated zeromq script so that it uses port 127.0.0.1, instead of 'localhost' which doesnt work. And most importantly fixed a shared memory bug between mql4 and zeromq library - basically we now copy strings sent to our wrapper library and copy new strings when we request data from a message. Note that there is no check if malloc returns null in sample code, maybe that should also be included for rare cases when not enough memory is available? So we dont crash metatrader by trying to pass in a null pointer? I'll test this soon..
VERSION 3: pub/sub, multipart send (no receive), polling on one socket, no more using of raw messages (automatically created/deleted). Added commando and pub/sub example, updated other example. NOTE: i dont know how to safely destroy a poll object, i tried free(ptr) and metatrader crashes. if anyone can help here....
VERSION 3.2: added multi part receive (through z_more), added sending of double arrays and int arrays, refactored commando example (and demonstrate array sending). changed window dlls to release. added linux libzmq.so
VERSION 3.3: updated commando example to include multipart receive. And also majorly changed it to make more efficient. Also included GUI.mqh
UPDATE : modified commando.zip to include an executable (commando.exe) that will install the newest version of libzmq and bindings and sample commando program along with a python interface. This might be a quick fix for problems mentioned below. So just run commando.exe....
![Emilio's Trend Line Breakout Alerter](https://c.mql5.com/i/code/indicator.png)
The Alerter simply works on 1 or 2 trendlines and plays a sound file when the trendline has been broken so the only think you must do is name correctly the trendlines.
![STP-Entry Framework Daily V1](https://c.mql5.com/i/code/expert.png)
Stop-Orders are used to enter a position. Pending orders and postions are handled based on a daily system. Risk and money management are included as well as time and dayfilters. The entry logik (STP-value calculation) can be easily changed.
![Doda-Trend](https://c.mql5.com/i/code/indicator.png)
Shows whether the market is trending or range-bound. Must to note before opening any position.
![SimpleMarketInfo](https://c.mql5.com/i/code/indicator.png)
Shows upcoming news events 1 hour before and 30 minutes after event. Also shows active sessions etc.