Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1400

 
Trader007_ #:
Hi, Could you please explain the difference between positions and transactions in the history of the MetaTrader 5 mobile platform?

There is no such thing as a "transaction" in the mobile terminal. There are POSITION, ORDER and DELIVERY. The basics can be found in the help: General principles - Trading transactions

Общие принципы - Торговые операции - Справка по MetaTrader 5
Общие принципы - Торговые операции - Справка по MetaTrader 5
  • www.metatrader5.com
Перед тем как приступить к изучению торговых функций платформы, необходимо создать четкое представление об основных терминах: ордер, сделка и...
 

Hello

Help me out and explain what i'm doing wrong?

I need to write data to a common folder of all terminals and read from there

I'm doing it like this

but nothing is created in the shared folder

string common_data_path=TerminalInfoString(TERMINAL_COMMONDATA_PATH);
string nameFolder=common_data_path+"\\Signal";

void writeData(nameFolder,"start");

void writeData(string fileName, string source)
   {
       int h = FileOpen(fileName,FILE_READ|FILE_WRITE|FILE_CSV,";");
      if (h != -1) {
         FileSeek(h, 0, SEEK_END);   
         FileWrite(h,source);  
         FileFlush(h);   
           FileClose(h);
      }
   }
 
Mikhail Rudyk #:

Hello

Help me out and explain what i'm doing wrong?

I need to write data to a common folder of all terminals and read from there

I'm doing it like this

but there's nothing in the shared folder.

How hard is it to read the list of flags

FILE_READ file opens for reading
FILE_WRITE file opens for writing
FILE_BIN binary read-write mode (no conversion from/to string)
FILE_CSV file is csv (all written elements are converted to a string of the corresponding type, unicode or ansi, and are separated with delimiter)
FILE_TXT plain text file (same csv, but the separator is ignored)
FILE_ANSI ANSI strings (single byte characters)
FILE_UNICODE strings UNICODE strings (double byte characters)
FILE_SHARE_READ read access shared by several programs
FILE_SHARE_WRITE write access shared by several programs
FILE_COMMON file location in shared folder of all client terminals \Terminal\Common\Files.

to end...

 
FileOpen(fileName,FILE_COMMON|FILE_READ|FILE_WRITE|FILE_CSV,";");
like this?
 
Mikhail Rudyk #:
like this?

Only common_data_path must be removed from fileName

And the sequence of flags is not regulated, you can write them in any sequence.

 
Alexey Viktorov #:

Only common_data_path must be removed from fileName

And the sequence of flags is not regulated, you can write them in any sequence.

thanks a lot

 

Hello.

Is it possible to save a graphic item as an image file (BMP or PNG)? I.e. first create an object and then save it as an image.

 

Hello. Can you tell me how to make the terminal start without charts, but with services ?

My problem is as follows: I have about 100 EAs running. I close my terminal with cross. I start it. And here the terminal does not always start. I would like terminal to start without charts, but with services.

 
pivomoe #:

Hello. Can you tell me how to make the terminal start without charts, but with services ?

My problem is as follows: I have about 100 EAs running. I close my terminal with cross. I start it. And here the terminal does not always start. I would like to start terminal without charts, but with services.

set Terminal=C:\MetaTrader5

del /f /s /q %Terminal%\MQL5\Profiles\Charts\Default\*.*

TIMEOUT /T 30

start C:/MetaTrader5/terminal64.exe /portable

 

Hi all, can you please help me to add martingale to EA, I need after triggering stoploss (getting loss) and on new signal (owl works by indicator) to enter with increased lot (multiplied by coeff). Did I get it right, first I need to write the event - stop loss event (I don't know where and how), and then do the maths with lots (I need additional variables)?

Reason: