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

 

Dear specialists. What and where am I "wrong"? I enter the menu "Report". Right-click and select "COPY". I come to page Excel and make an insertion on parameter of an insertion "Text" (and parameter only one). Result: the column of numbers is normal, but the text that in "Report" in Russian, now in abracadabra?

I searched for fonts, but I haven't found anywhere what should be changed and where? Interestingly, there are times when everything works correctly in Russian, but only after restarting MT4 and not always. There is, maybe not quite a reasonable suspicion that somehow it connects/switches to Unicode. I remember, on some forum it was mentioned about outputting messages from EAs in mangled font, i.e. not in Russian, but it has been confirmed there.

In short. I'm grateful in advance for hints. I think that such nonsense popped up not at one of me.

 
piranija:

Dear specialists. What and where am I "wrong"? I enter the menu "Report". Right-click and select "COPY". I come to page Excel and make an insertion on parameter of an insertion "Text" (and parameter only one). Result: the column of numbers is normal, but the text that in "Report" in Russian, now in abracadabra?

I searched for fonts, but I haven't found anywhere what should be changed and where? Interestingly, there are times when everything works correctly in Russian, but only after restarting MT4 and not always. There is, maybe not quite a reasonable suspicion that somehow it connects/switches to Unicode. I remember, on some forum it was mentioned about outputting messages from EAs in mangled font, i.e. not in Russian, but it has been confirmed there.

In short. I'm grateful in advance for hints. I think that such nonsense popped up not at one of me.

When MT4 is open and active, switch to Russian. Then copy from MT4 and paste into Excel. Then everything will be fine. This has always been the case with MT4.
 
Sergey Basov:
When MT4 is open and active, switch to Russian. Then copy from MT4 and paste into Excel. Then everything will be fine. This has always been the case with MT4.

Of course, thank you. I did it all through my ass, and when I managed to copy it normally, I didn't manage to switch fonts in Windows.
 

Greetings. Help me understand the classes, I already asked a question:

"Can you tell me how to make separatevariables for each new order(let's say A, B, C for each)? I assume it's something like Peremennaja+ticket=A12345, B12345, C12345."

I was told that I should write a class and create a class object for each order.

Can anyone help with examples or manual for this or similar situation?

 
Andrey Sokolov:

Greetings. Help me understand the classes, I already asked a question:

"Can you tell me how to make separatevariables for each new order(let A, B, C for each)? I assume it's something like Peremennaja+ticket=A12345, B12345, C12345."

I was told that I should write a class and create a class object for each order.

Can anyone help with examples or manual for this or similar situation?

Isn't it easier to use an array?
 
Alexey Viktorov:
Wouldn't it be easier to use an array?


I do not know.

I have a question about creating some new variables for each new order (with binding to it) and deleting them when the order closes.

 
Andrey Sokolov: To create some new variables for each new order (with binding to it) and delete them when the corresponding order is closed.

Here is a simple example. You can store the ticket number for binding. Deletion - by shifting the array in the second example.

Set the array size to the maximum number of orders

Press F1 on struct word. There's more about classes = data+methods below. The classes may contain functions

Files:
-PROBA.mq4  4 kb
-PROBA2.mq4  3 kb
 
Andrey Sokolov:

You can't do that at all. 10 orders - 10 arrays. 20 orders - 20 arrays.... Is the memory rubber? The computer is iron, but not infinite.

Artyom answered thinking about something else. An array of structures is the best for such a task. An example has already been given, I don't want to learn... I think it's better to define a dynamic array and redefine the array size and fill it when the number of opened orders changes.

 
Hello all ___ I am a newbie __ I want to make a million -- help me write an advisor _ any information would be great __ I do not know where to start and how to make __ but the desire is great __ I do not know myself watched videos, etc., but at heart I do not programmer --- I can write it down but do not do it __ I need a teacher - who can help in this hard work? thank you
Reason: