Forum

Is WindowHandle(Symbol(),Period()) ambiguous?

The documentation says that WindowHandle() "returns the system handle of the chart window." There may be multiple windows open on a given symbol and period. If we call WindowHandle() with the Symbol() and Period() of the chart that the currently executing code is associated with (CI, EA or Script)

Pre build 600 compiler

I am working on updating a bunch of MQL4 code for someone that was last compiled by its original author with a pre build 600 compiler. The code involves working with long-term cyclic patterns which means it does lots of manipulations of 32-bit timestamps which it frequently treats as integers when

Determining the instance number of a Custom Indicator that is attached multiple times to a chart

I have written a Custom Indicator that places a number of graphical objects on a chart and allows the geometry to be altered by dragging various anchor points using the OnChartEvent() entry point. Think of a MQL4 implementation of the Cycle Lines or Andrews Pitchfork tools and you will get the idea