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

 
Link_x:
Greetings, dear traders - programmers!!!
What is the meaning of AccountComany?
You can draw certain conclusions from the name, but how does it relate to the MT4 programming language ???

I am very interested to know the detailed description of each command. Please help me.

...

What is an array bid?

What's wrong with the handbook? It's all there. There is also an online version - Documentation andTutorial
 
Link_x:
Greetings, dear traders - programmers!!!
What is the meaning of AccountComany?
You can make certain conclusions from the name, but how does it relate to the MT4 programming language ???

AccountCredit?

AccountCurrency?

AccountEquity?

AccountFreeMargin?

AccountFreeMarginCheck?

AccountLeverage?

AccountStopoutLevel?

AccountStopoutMode?

ArrayBsearch?

I am very interested to know the detailed description of each command. Please help me.


It's written in black in Russian https://docs.mql4.com/ru/account/AccountCompany

 
artmedia70:

Let's assume that Ask is always normalised - it's the price: it's not calculated and there's no point in normalising it.

So the price could be wrong why? Maybe the data is out of date? Try to execute RefreshRates() directly before OrderSend() command.


Well, here is a piece of code of my Expert Advisor. It has and was refresh:

// Открытие ордеров
   while(true)                                  // Цикл закрытия орд.
     {
      if (Total==0 && Opn_B==true)              // Открытых орд. нет +
        {                                       // критерий откр. Buy
         RefreshRates();                        // Обновление данных
         SL=pb - New_Stop(StopLoss)*Point;     // Вычисление SL откр.
         TP=pb + New_Stop(TakeProfit)*Point;   // Вычисление TP откр.
         Alert("Попытка открыть Buy. Ожидание ответа..");
         Ticket=OrderSend(Symb,OP_BUY,Lts,pa,2,SL,TP);//Открытие Buy
         if (Ticket > 0)                        // Получилось :)
           {
            Alert ("Открыт ордер Buy ",Ticket);
            return;                             // Выход из start()
           }
         if (Fun_Error(GetLastError())==1)      // Обработка ошибок
            continue;                           // Повторная попытка
         return;                                // Выход из start()
        }

Maybe the DC itself is blocking something? By the way, when I logged into vps everything hung very badly at the time the EA hung on the error.

I feel like I am getting a lot of Bids and Asks through market info as you suggested. The interesting thing is that I've never had such a problem in the Strategy Tester.

There are three flags in my Expert Advisor. May it be the reason for sluggishness?

 
evillive:

DRAW_SECTION

Good! Got it. I will study it. Not sure why he didn't like DRAW_LINE?
 

ArrayInitialize?

break?

 

case? - did not understand the meaning.

CHAR_VALUE? - how to give a description of the meaning of the character?

 
Forexman77:

The indicator does not get drawn in some areas. The essence of the indicator, if the movement is not more than a certain value, the value remains as in the recorded value of MA_otshet.

When the value is exceeded, the value becomes, corresponding to the current moment.

Below is the code of the indicator with explanations:


You should do the cycle backwards. Using old data
 
Forexman77:
Good! Got it. I'll look into it. Not sure why he didn't like DRAW_LINE?


DRAW_LINE does not draw continuously when there are gaps in the data, while DRAW_SECTION fills these gaps, that's a peculiarity.
 
В
 
Hi all! How do I write an EA to open several pending orders simultaneously in both directions with the same sl and different tp.
Reason: