Questions from a "dummy" - page 261

 
DC2008:

swap it around:

doesn't help between lines 0 instead of a new string. string type.
 

but what does it mean if

HistoryOrderGetString

gives false

   HistorySelect(t1,t0);
   ulong    ticket=0;
   uint     total=HistoryDealsTotal();
 
   for(uint i=0;i<total;i++){
         if((ticket=HistoryDealGetTicket(i))>0)
        {
 bool ss=HistoryOrderGetString(ticket,ORDER_SYMBOL,symbol);
 
zfs:

gives out false

It's a shitty ticket, then.
 
TheXpert:
It's a shitty ticket then.
He's got all the lame ones. What do they suck at?
 
zfs:
They all suck. How do they suck?
Because they are taken for trades and tucked into orders.
 
TheXpert:
The ones that are taken for trades and tucked into orders.
And how do I get the symbol of historical orders(positions)?
 

Just started studying MQL, and here I wrote an EA that draws an iMA and draws a tangent (very close) to the chart in the iMA at the point where the mouse pointer is on the time axis.

Problem one. The Expert Advisor is VERY slow. It means that the tangent is redrawn for a long time and does not keep pace with the mouse movement.

Problem two. I thought it may take a long time to draw graphical objects (a straight line in this case) or copy data into dynamic arrays. But profiling of the algorithm has shown that it takes a very long time to recalculate mouse coordinates into time and price and vice versa (lines 99 and 105). Does anyone know why this happens and how to speed it up?

To the expediency of the algorithm, please do not pick on, because it is nothing more than an exercise.

The algorithm was tested on the clock.

Files:
 
agvozdezkiy:

Just started to learn MQL, and ....

If you want help, you should paste the code correctly or attach it as a file.

MQL5.community - Памятка пользователя
MQL5.community - Памятка пользователя
  • 2010.02.23
  • MetaQuotes Software Corp.
  • www.mql5.com
Вы недавно зарегистрировались и у вас возникли вопросы: Как вставить картинку в сообщение на форуме, как красиво оформить исходный код MQL5, где находятся ваши Личные сообщения? В этой статье мы подготовили для вас несколько практических советов, которые помогут быстрее освоиться на сайте MQL5.community и позволят в полной мере воспользоваться доступными функциональными возможностями.
 
DC2008:

If you want help, insert the code correctly or attach it as a file.

Corrected)))))
 
agvozdezkiy:
Corrected)))))
The button at the top is SRC for the future, but that's fine too.
Reason: