Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1022

 

Sorry for the copy-paste, but the other thread doesn't answer the question.

Took the code from the example in the guide https://www.mql5.com/ru/docs/strings/stringadd and pasted it into the script. The result of its execution in MQL4 and MQL5 is similar:

       22:42:49.015    Test Script (EURUSD,H1) time for 'c = a + b' = 235 milliseconds, i = 1000000
       22:42:50.187    Test Script (EURUSD,H1) time for 'StringAdd(a,b)' = 1156 milliseconds, i = 1000000
       22:42:50.781    Test Script (EURUSD,H1) time for 'StringConcatenate(c,a,b)' = 594 milliseconds, i = 1000000

It makes sense that StringAdd() and StringConcatenate() should run faster than "+", but in reality, normal gluing is three times faster, and if we add the number of characters and glues per iteration, "+" takes the lead by a large margin. Why does this happen, what is the point and where is the logic?

 

Can I use a 32 bit DLL on MT5?

2019.03.30 16:31:14.984 xxx is not 64-bit version

What are the options?
 
Can you advise how to implement the following thing? In general, I create buttons on the chart with the symbols of open positions, how by clicking on the button to move to the chart of the symbol of the button. Thanks in advance.
 
Alexander Mikryukov:
Can you tell my friends how to implement such a thing? In general, I'm creating on the chart buttons with the symbols of open positions, how to move to the chart of the button symbol when I click on the button. Thanks in advance.

My understanding of your question is that you have open positions for several symbols and for each symbol there is an OPEN Chart.

Then you need to useChartNext- in the loop ...

//--- переменные для идентификаторов графиков 
   long currChart,prevChart=ChartFirst(); 
   int i=0,limit=100; 
   Print("ChartFirst = ",ChartSymbol(prevChart)," ID = ",prevChart); 
   while(i<limit)// у нас наверняка не больше 100 открытых графиков 
     { 
      currChart=ChartNext(prevChart); // на основании предыдущего получим новый график 
      if(currChart<0) break;          // достигли конца списка графиков 
      Print(i,ChartSymbol(currChart)," ID =",currChart); 
      prevChart=currChart;// запомним идентификатор текущего графика для ChartNext() 
      i++;// не забудем увеличить счетчик 
     }

... bypass all open charts and compare the symbol and the open chart timeframe. Once a match is found, we apply CHART_BRING_TO_TOP and exit the loop.

 
С
Vladimir Karputov:

My understanding of your question is that you have open positions on several symbols and for each symbol there is an OPEN Chart.

Then you need to useChartNext- in the loop ...

... bypass all open charts and compare the symbol and the open chart timeframe. Once a match is found - apply CHART_BRING_TO_TOP and exit the loop.

Thank you.

 

What's the mistake?

JF      2       17:38:24.837    Core 1  2018.03.30 00:00:00   Access violation at 0x0000000000561F61 read to 0x0000000009E50040 in 'C:\Program Files\MetaTrader 5\Tester\Agent-127.0.0.1-3000\MQL5\Experts\Mov_8_Bayes_11_4D.ex5'

KN      2       17:38:24.837    Core 1  2018.03.30 00:00:00      crash -->  0000000000561 F61 488 BBCFC60080000  mov        rdi, [rsp+rdi*8+0x860]

QL      2       17:38:24.837    Core 1  2018.03.30 00:00:00                 0000000000561 F69 F20F58CB          addsd      xmm1, xmm3

KM      2       17:38:24.837    Core 1  2018.03.30 00:00:00                 0000000000561 F6D 66480 F6ED7        movd       xmm2, rdi

ES      2       17:38:24.837    Core 1  2018.03.30 00:00:00                 0000000000561 F72 488978 C0          mov        [rax-0x40], rdi

DQ      2       17:38:24.837    Core 1  2018.03.30 00:00:00                 0000000000561 F76 418 D7C3321        lea        edi, [r11+rsi+0x21]

JR      2       17:38:24.837    Core 1  2018.03.30 00:00:00                 0000000000561 F7B 488 BBCFC60080000  mov        rdi, [rsp+rdi*8+0x860]

JL      2       17:38:24.837    Core 1  2018.03.30 00:00:00                 0000000000561 F83 F20F58D1          addsd      xmm2, xmm1

HR      2       17:38:24.837    Core 1  2018.03.30 00:00:00   

MN      2       17:38:24.837    Core 1  2018.03.30 00:00:00   00: 0x0000000000561F61

GQ      2       17:38:24.837    Core 1  2018.03.30 00:00:00   01: 0x234A5B15D2A360C4

OH      2       17:38:24.837    Core 1  2018.03.30 00:00:00   02: 0x000C6F5900001B70

EL      2       17:38:24.837    Core 1  2018.03.30 00:00:00   03: 0x5B17241D60C560C5

DE      2       17:38:24.837    Core 1  2018.03.30 00:00:00   04: 0x8AC900001B8F2329

NM      2       17:38:24.837    Core 1  2018.03.30 00:00:00   05: 0x75A160C660C6000C

QJ      2       17:38:24.837    Core 1  2018.03.30 00:00:00   06: 0x00001B6E22C85B18

HS      2       17:38:24.837    Core 1  2018.03.30 00:00:00   07: 0x60C760C7000CA658

KG      2       17:38:24.837    Core 1  2018.03.30 00:00:00   08: 0x1BCB22E25B19C71F

JQ      2       17:38:24.837    Core 1  2018.03.30 00:00:00   09: 0x60C8000CC1C60000

LQ      2       17:38:24.837    Core 1  2018.03.30 00:00:00   10: 0x22895B1B6C6F60C8

PH      2       17:38:24.837    Core 1  2018.03.30 00:00:00   11: 0x000CDD9100001BD2

ES      2       17:38:24.837    Core 1  2018.03.30 00:00:00   12: 0x5B1F0D1560CB60CB

MK      2       17:38:24.837    Core 1  2018.03.30 00:00:00   13: 0xF96300001AAD229A

QR      2       17:38:24.837    Core 1  2018.03.30 00:00:00   14: 0x5D1E60CC60CC000C

PJ      2       17:38:24.837    Core 1  2018.03.30 00:00:00   15: 0x00001BAA20EC5B20

QL      2       17:38:24.837    Core 1  2018.03.30 00:00:00   16: 0x60CD60CD000D1410

HE      2       17:38:24.837    Core 1  2018.03.30 00:00:00   

JQ      2       17:38:24.837    Core 1  OnTick critical error

KF      0       17:38:24.837    Core 1  GBPUSD,H1: 1 ticks, 1 bars generated. Environment synchronized in 0:00:01.987. Test passed in 0:00:01.360 (including ticks preprocessing 0:00:00.328).

KS      0       17:38:24.837    Core 1  GBPUSD,H1: total time from login to stop testing 0:00:03.347 (including 0:00:01.987 for history data synchronization)

GS      0       17:38:24.837    Core 1  236 Mb memory used including 1.41 Mb of history data, 64 Mb of tick data

PJ      0       17:38:24.837    Core 1  log file "C:\Program Files\MetaTrader 5\Tester\Agent-127.0.0.1-3000\logs\20190331.log" written

NG      0       17:38:24.856    Core 1  connection closed
 
Aliaksandr Yemialyanau:

What's the mistake?


Ошибка вставки кода.
 

I apologise for my obtuse greyness... I've never worked with MQL5. I use EAs cautiously (READY) and am learning more about their capabilities. I downloaded EAPADPRO info panel, I thought it works as an EA. But it is "a library to be added to your EA" (???).There are a lot of questions on every centimeter of reading. How do you understand "Copy the MQL5 folder into the folder of your terminal\"? So it's there from the installation of the terminal(???).

https://www.mql5.com/ru/blogs/post/719820 Programming 10 Steps ???? - Where to write it all. And the main question: If I'm so dark, maybe I shouldn't start working with this panel (library)?

 
Александр Кузьмин:

I apologise for my obtuse greyness... I've never worked with MQL5. I use EAs cautiously (READY) and am learning more about their capabilities. I downloaded EAPADPRO info panel, I thought it works as an EA. But it is "a library to be added to your EA" (???).There are a lot of questions on every centimeter of reading. How do you understand "Copy the MQL5 folder into the folder of your terminal\"? So it's there from the installation of the terminal(???).

https://www.mql5.com/ru/blogs/post/719820 Programming 10 Steps ???? - Where to write it all. And the main question: If I'm so dark, why don't I start working with this panel (library)?

I think this panel is unnecessary for MQL5 beginners.

 
Александр Кузьмин:

I apologise for my obtuse greyness... I've never worked with MQL5. I use EAs cautiously (READY) and am learning more about their capabilities. I downloaded EAPADPRO info panel, I thought it works as an EA. But it is "a library to be added to your EA" (???).There are a lot of questions on every centimeter of reading. How do you understand "Copy the MQL5 folder into the folder of your terminal\"? So it's there from the installation of the terminal(???).

https://www.mql5.com/ru/blogs/post/719820 Programming 10 Steps ???? - Where to write it all. And the main question: If I'm so dark, maybe I shouldn't start working with this panel (library)?

Ask questions to the author of this library on his blog, the link to which you gave.

Reason: