22:42:49.015 Test Script (EURUSD,H1) time for 'c = a + b' = 235 milliseconds, i = 100000022:42:50.187 Test Script (EURUSD,H1) time for 'StringAdd(a,b)' = 1156 milliseconds, i = 100000022: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 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.
//--- переменные для идентификаторов графиков 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.
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.
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:
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?
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 ...
... 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.
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?
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.