Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 754

 
_new-rena:
Who knows the command to open the chart window programmatically, please advise ?
ChartOpen
 
evillive:
ChartOpen
It didn't work.
 
 if ((chart_id1 = ChartOpen( _Symbol, _Period)) == 0)           // open new chart
   {
      PRINT("Не удалось открыть новый чарт " + _Symbol + string(_Period));
      ERROR;
      return false;
   };  
Still, you were told correctly, or we didn't understand you.
 

The only thing I don't understand is this:

ERROR;

 
a piece of my code (This is a debugging and testing macro - for release you can disable it)

#define  ERROR Print("Errore #",GetLastError(), " __FUNCTION__ = ", __FUNCTION__, "  __LINE__ = ", __LINE__) 
 
evillive:
ChartOpen
ALXIMIKS:
You were told correctly after all, or did we misunderstand you.

Thank you very much!

I just went in.

 
VladislavVG:

I would say it should be something like this in this case:

Indeed, it would be more reliable and the speed of the code would be almost unaffected, thanks for the tip!
 

Hi all.

How do I use the #property icon ? I wrote it like this

#property icon        "\\Images\\Mano_ikona.ico";

Error

- invalid icon file format 'E:\FXPRO\MQL4\\\Images\Mano_ikona.ico' 0 0

The file is

 
gince:

Hi all.

How do I use the #property icon ? I wrote it like this

Error

- invalid icon file format 'E:\FXPRO\MQL4\\\Images\Mano_ikona.ico' 0 0

The file is

So everything is fine:

#property icon      "\\files\\LogoGVisor.ico";

File is located at D:\New MT4\MQL4\Files\LogoGVisor.ico

Icon size 60x60

 
artmedia70:

So, everything is fine:

File is at D:\New MT4\MQL4\Files\LogoGVisor.ico

Icon size 60x60



Tried the file folder as well, but same thing. How much does the size matter ?
Reason: