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

 
sergey1294:

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 the folders in the directory are duplicated.

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

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

Did you put String_metrics and Convert_PNG DLLs in the libraries folder?

what is the result of the script?

 
space_cowboy:

Did you put String_metrics and Convert_PNG DLLs in the libraries folder?

what is the result of the script?

Of course I did.

The script returns C:\Program Files (x86)\MetaTrader 5_1

 
sergey1294:

Of course I did.

The script outputs C:/Program Files (x86)/ MetaTrader 5_1.


what messages are displayed in the log after running the indicator?

 
space_cowboy:

what messages are displayed in the log after starting the indicator?

none
 

this is how the chart looks like when the indicator is launched


and this is how it looks after terminal restart


 
sergey1294:

this is how the chart looks like when the indicator is launched


and this is how it looks after terminal restart



try to delete files with images from Files and Images folders and see if they reappear when the indicator is launched.

also see if other custom indicators, which are built in a separate subwindow, work.

Документация по MQL5: Файловые операции / FileDelete
Документация по MQL5: Файловые операции / FileDelete
  • www.mql5.com
Файловые операции / FileDelete - Документация по MQL5
 
space_cowboy:

try deleting image files from the Files and Images folders and see if they reappear when the indicator is started.

also see if other custom indicators that are built in a separate subwindow work.

deleted , now it gives the error 2010.06.04 12:20:40 InfoBoard (EURUSD,M5) Error when calling Convert_PNG()


files appeared again in the directory C:\Users\Users\AppData\Roaming\MetaQuotes\Terminal\E885B7972A0C831E41EB39B7A9849BBC\MQL5\Files

 

try to replace in the function void Board::GetChart(int X_size,int Y_size,string request,string file_name)

//prepare the paths for the converter 
   CString src;
   src.Assign(TerminalInfoString(TERMINAL_PATH));
   src.Append("\MQL5\Files\\"+file_name+".png");
   src.Replace("\\","\\\\");
   CString dst;
   dst.Assign(TerminalInfoString(TERMINAL_PATH));
   dst.Append("\MQL5\Images\\"+file_name+".bmp");
   dst.Replace("\\","\\\\");

by

//prepare the paths for the converter 
   CString src;
   src.Assign(TerminalInfoString(TERMINAL_DATA_PATH));
   src.Append("\MQL5\Files\\"+file_name+".png");
   src.Replace("\\","\\\\");
   CString dst;
   dst.Assign(TerminalInfoString(TERMINAL_DATA_PATH));
   dst.Append("\MQL5\Images\\"+file_name+".bmp");
   dst.Replace("\\","\\\\");
 
It's working, thank you!
 

Евгений

Very interesting and potentially very very useful.

Thank you for you effort.