Discussion of article "Creating an Information Board Using the Standard Library Classes and Google Chart API"

 

New article Creating an Information Board Using the Standard Library Classes and Google Chart API is published:

The MQL5 programming language primarily targets the creation of automated trading systems and complex instruments of technical analyses. But aside from this, it allows us to create interesting information systems for tracking market situations, and provides a return connection with the trader. The article describes the MQL5 Standard Library components, and shows examples of their use in practice for reaching these objectives. It also demonstrates an example of using Google Chart API for the creation of charts.


Author: Евгений

 

I was not happy with this construction: ((CArrayDouble *)Data.At(Data.Total()-1)).Add(profit).

And you have a great solution with diagrams.

 

when compiling it gives an error possible loss of data due to type conversion InfoBoard.mq5 589 20 in the line

int deal_type=((CArrayDouble *)Data.At(i)).At(1); //and deal type

 
sergey1294:

when compiling it gives an error possible loss of data due to type conversion InfoBoard.mq5 589 20 in the line

int deal_type=((CArrayDouble *)Data.At(i)).At(1); //and deal type


probably not an error, but a warning.

you can live with it, feel free to run the indicator

 
Error 2010.06.03 11:47:26 InfoBoard (EURUSD,M5) Error when calling Convert_PNG()
charts are not displayed accordingly.
 
sergey1294:
Error 2010.06.03 11:47:26 InfoBoard (EURUSD,M5) Error when calling Convert_PNG()
charts are not displayed accordingly.

Go to the MQL5\Files folder and see if there are board_balance_chart.png and pie_chart.png files there.

also check the MQL5/Images folder

 
space_cowboy:

go to the MQL5\Files folder and see if there are board_balance_chart.png and pie_chart.png files there.

also check the MQL5/Images folder.

Yes, these files are there, I also copied them to another directory of the terminal, since I have Windows 7, when I install the terminal, the folders are scattered in the middle of nowhere. the error message disappeared, but the images are still not loaded on the chart.
 
sergey1294:
when installing the terminal, folders are scattered to who knows where

this is probably the problem

try running the script

#property copyright "Copyright 2010, MetaQuotes Software Corp."
#property link      "http://www.mql5.com"
#property version   "1.00"

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   Print(TerminalInfoString(TERMINAL_PATH));
  }
//+------------------------------------------------------------------+
and see if the MQL5\Files, MQL5\Images and MQL5\Libraries folders (where you should put dlls) are present in the terminal folder that the script will show.


 
space_cowboy:

that's probably the problem

try running the script

and see if the MQL5\Files, MQL5\Images and MQL5\Libraries folders (where you should put the dll) are present in the terminal folder that the script will show.


In general, where the folders are duplicated, I also put the files there, but still it does not want to load pictures.
 
sergey1294:
Anyway, where there are duplicate folders, I put the files there too, still doesn't want to upload pictures.

What do you mean "duplicate folders"?

Install terminal properly.

Run the script (see above), get, let's say, this result:

then open this folder, it must contain such subfolders:

 
space_cowboy:

what do you mean "duplicate folders"?

install the terminal properly.

run the script (see above) and get, let's say, this result:

then open this folder, it must contain such subfolders:

In Windows 7 some kind of protection is triggered, I have the terminal installed in the directory

C:\Program Files (x86)\MetaTrader 5_1\MQL5 but at the same time the folders in the directory are duplicated

C:\Users\user\AppData\Roaming\MetaQuotes\Terminal\E885B7972A0C831E41EB39B7A9849BBC\MQL5

I uploaded files to both. still doesn't work, and also when restarting the terminal everything disappears, the indicator window remains empty.