Discussion of article "Visualize this! MQL5 graphics library similar to 'plot' of R language"

 

New article Visualize this! MQL5 graphics library similar to 'plot' of R language has been published:

When studying trading logic, visual representation in the form of graphs is of great importance. A number of programming languages popular among the scientific community (such as R and Python) feature the special 'plot' function used for visualization. It allows drawing lines, point distributions and histograms to visualize patterns. In MQL5, you can do the same using the CGraphics class.

A zero divide error may occur when using the functions. There are two ways to handle this issue:

  • disable the check for zero divide in metaeditor.ini
    [Experts]
    FpNoZeroCheckOnDivision=1
  • or analyze an equation used in a function and return a valid value for such instances. An example of such handling using a macro can be found in the attached 3Functions.mq5 and bat.mq5 files.



Author: MetaQuotes Software Corp.

 

Is there any similar library in mql4??

Reason: