[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 468

 
Vinin:

After PlaySound() there is a break

Thank you, Victor Ivanovich, for your promptness.

I made a mistake when copying.

Here is a code fragment:

   for (orderIndex = (OrdersTotal() - 1); orderIndex >= 0; orderIndex--)
           {
            if (OrderSelect(orderIndex, SELECT_BY_POS))
              {
               if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == magic))
                 {
                   if (OrderType() == OP_SELL)
                     {
                       price = Bid; 
                       clr = ColorSell;
                       result = OrderClose(OrderTicket(), OrderLots(), price, 300, clr);
                       if (result) {if (UseSound) {PlaySound("alert.wav");  break;} } // Удалить break;
                       else  {error = GetLastError(); Print ( "error = ", error );}
                     }
                }
              }
           } // Конец цикла 
          


 
Roman.:

Thank you, Victor Ivanovich, for your promptness.

I made a mistake when copying.

Here is a piece of code:



I have already posted the corrected variant. Edited your last post
 
Vinin:

I have already posted the corrected version. Edited your last post.

Ah-ah-ah! And I understood, that's how my photocopying works... :-)

Thank you very much, Victor Ivanovich. I understand the mistake.

 

I've made some kind of an Expert Advisor (I've combined several). Now in the tester it increases the deposit by 3 times, in a week!!!!! Is it possible?

Starts 300 ends 1100 - 1200.

 
MAKDI:

I've made some kind of an Expert Advisor (I've combined several). Now in the tester it increases the deposit by 3 times, in a week!!!!! Is it possible?

Starts 300 ends 1100 - 1200.

even by a factor of four!
 

How do I send an HTML email through the standard SendMail form?

(follow-up question to https://www.mql5.com/ru/forum/138609/page354#688471- how to send a picture by post)

 
MAKDI:

I've made some kind of an Expert Advisor (I've combined several). Now in the tester it increases the deposit by 3 times, in a week!!!!! Is it possible?

Everything is possible on historical data.
 
serler2:

How do I send an HTML email using the standard SendMail form?

Simple, Watson. Write a letter in HTML format and send it via SendMail()
 
Vinin:
Why the cycle?


How else could you do it?
 
Elektronik:

How else could it be?

So why do you use it?
Reason: