Forum

Reading and writing files anywhere on disk using CreateFileA() etc.

There are frequent questions in this forum (e.g. 'Difficulty using FileReadString on file opened outside /experts/files' ) about reading and writing files anywhere on the hard disk, but there only seems to be one published library for doing so, and it's fairly limited: 'File Operations without

Subclassing a Metatrader chart window

The following was prompted by a query from fbj in 'Can I code in MQL to turn on and off an already running EA? ' Posting this as a new topic to give it slightly wider attention, because I don't think it's been done before and it's a fun little experiment. It demonstrates using a DLL to subclass a

A DLL-free solution to communicate between MetaTrader 4 terminals using Named Pipes

Prompted by the new article at https://www.mql5.com/en/forum/127024 , the attached files are an example of sending messages asynchronously between different instances of MT4 on the same computer, using named pipes. Inspired by the MT5 article, but there are some major differences in the

EX4 from build 220 crashing on build 223, and vice versa

I've got two copies of MetaTrader, one on build 220 and one on build 223. If I create an EA using build 220, the .ex4 file works fine on build 220 of MT4 but causes build 223 to crash. And, similarly, if I create an EA using build 223, then the .ex4 file works fine on build 223 but crashes build 220

Offsetting transactions - NFA rule 2-43(b)

Anyone read anything about this: http://www.nfa.futures.org/news/newsNotice.asp?ArticleID=2273 ? Am I right in thinking that US-based brokers are now going to be required to treat a long order for e.g. 1 lot followed by a short order for 1 lot as a close? In other words, you could do two