Creat ion of Custom Indicators When creating a trading strategy a developer often faces the necessity to draw graphically in a security window a certain dependence calculated by a user (programmer). For this purpose MQL4 offers the possibility of creating custom indicators. Custom Indicatoris an application program coded in MQL4it is basically intended for graphical displaying of preliminarily calculated dependences. Custom Indicator Structure Necessity of Buffers !he main principle underlying custom indicators is passing values of indicator arrays to a client terminal (for drawing indicator lines) via e"change buffers. Bufferis a memory area containing numeric values of an indicator array. MQL4 standard implies the possibility of drawing up to eight indicator lines using one custom indicator. #ne indicator array and one buffer are brought into correspondence with each indicator line. $ach buffer has its own inde". !he inde" of the first buffer is %& of the second one ' & and so on& the last one has the inde" . Fig. * shows how the information from a custom indicator is passed via buffers to a client terminal for drawing indicator lines.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.