[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 430

 

Guys, I can see that you're dealing with serious issues here, but nevertheless, help me solve a mundane problem:

Bingo:

kolo/K61421.jpg

kolo/K61422.jpg

kolo/K61423.jpg.

Need:

kolo/K61421_m.jpg,kolo/K61421_m.jpg,kolo/K61421.jpg

kolo/K61422_m.jpg,kolo/K61422_m.jpg,kolo/K61422.jpg

kolo/K61423_m.jpg,kolo/K61423_m.jpg,kolo/K61423.jpg

Thank you!

 
Sokil >>:

Ребят, я вижу, что вы тут серъезные вопросы решаете, но тем не менее, помогите мирскую задачку решить:

Есть:

kolo/K61421.jpg

kolo/K61422.jpg

kolo/K61423.jpg

Нужно:

kolo/K61421_m.jpg,kolo/K61421_m.jpg,kolo/K61421.jpg

kolo/K61422_m.jpg,kolo/K61422_m.jpg,kolo/K61422.jpg

kolo/K61423_m.jpg,kolo/K61423_m.jpg,kolo/K61423.jpg

Спасибо!

with the challenges here https://forum.mql4.com/ru/29339/page181

 

A simple question:

is it possible from mql4 to determine the minimum level for placing pending orders?

 

Good afternoon friends.

Can you please advise me on this question?


Is it possible to register several accounts on one terminal and trade simultaneously on several of these accounts from one terminal?

(If i can do it in one terminal, what are the options you have to specify?)


Many thanks in advance.

 

Hello, why is the code below not opening positions?

As I understand the error is that I am opening incorrectly - error code 4062, but having searched the help I still don't understand what it means... help please?

#property copyright "Copyright © 2010, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

extern int PeriodOfRVI = 5;
extern int StopLoss = 200;
extern double VolumeLots = 0.1;
int Ticket = 0;
int Error = 999;
int start()
{
   if ( RenderOfErrors () != 0 )
   {
      Comment ( "Error!" );
      return(0);
   }
   int Alarm;
   double RVIMain, RVISignal, RVIMainPrevious, RVISignalPrevious ; 
   RVIMainPrevious = iRVI(NULL, 0, PeriodOfRVI, MODE_MAIN, 5);
   RVISignalPrevious = iRVI(NULL, 0, PeriodOfRVI, MODE_SIGNAL, 5);
   RVIMain = NormalizeDouble(iRVI(NULL, 0, PeriodOfRVI, MODE_MAIN, 0), 3);
   RVISignal = NormalizeDouble(iRVI(NULL, 0, PeriodOfRVI, MODE_SIGNAL, 0), 3);
   if ( RVIMain== RVISignal )
   {
      Alarm = 1;
      Ticket = 0;
      if ( RVIMainPrevious > RVISignalPrevious)
      {
            Ticket = OrderSend( NULL, OP_BUY, VolumeLots, Ask, 3, Bid- StopLoss*Point, 0, NULL, AccountNumber(), 0, Green);
            Error=GetLastError();
      } else
      {
            Ticket = OrderSend( NULL, OP_SELL, VolumeLots, Bid, 3, Ask- StopLoss*Point, 0, NULL, AccountNumber(), 0, Red);
            Error=GetLastError();
      }
     
   } else
   {
      Alarm = 0;
   }
   Comment ( RVIMain, "\n",  RVISignal, "\n", RVIMainPrevious , "\n", RVISignalPrevious , "\n", Alarm, "\n", Error);
   return(0);
}

int RenderOfErrors ()
{
   if ( Bars < 100 )
   {
      return(1);  
   }
   if ( AccountFreeMargin ( ) < 1000 || AccountBalance ( ) < 1000 )
   {
      return (2);
   }
   return (NULL);
}

SZZ: I understand, i need to improve many things, but this topic is for newbies )) and then, this is my first experience of writing EA, and i am stuck on this error.

 
Mepkypuu >>:

Здравствуйте, почему приведенный ниже код не открывает позиций?

Как я понял ошибка в том, что я неправильно открываюсь - код ошибки 4062, но поискав в справке так и не понял, что же это значит... помогите пожалуйста?

ЗЫ: Понимаю, многое тут надо доработать, но тема для новичков )) и потом, это лишь мой первый опыт написания эксперта, и я завис на этой ошибке.


There is a line that catches the eye:

Ticket = OrderSend( NULL, OP_SELL, VolumeLots, Bid, 3, Ask- StopLoss*Point, 0, NULL, AccountNumber(), 0, Red);
Usually SL on short positions is set above the opening price ;) Check it...
(And still, does anyone know if it is possible to determine from mql4 the minimum distance from the current price, at which pending orders can be set...?)
 
Mepkypuu >>:

Здравствуйте, почему приведенный ниже код не открывает позиций?

Как я понял ошибка в том, что я неправильно открываюсь - код ошибки 4062, но поискав в справке так и не понял, что же это значит... помогите пожалуйста?

ЗЫ: Понимаю, многое тут надо доработать, но тема для новичков )) и потом, это лишь мой первый опыт написания эксперта, и я завис на этой ошибке.

The error actually speaks for itself ERR_STRING_PARAMETER_EXPECTED

in the OrderSend() function, pass the instrument (symbol() or "EURUSD" for example, it doesn't understand NULL

And the stop loss for selling should be calculated from Ask + as many or so points

 
Core >>:


Бросается в глаза строчка:


I agree! But it didn't fix the situation. (when coding I just copied it and probably forgot about it completely)


Core >>:


(still, maybe somebody knows, is it possible to determine from mql4 the minimum distance from the current price, at which pending orders can be placed...)

I would try to set it in a practical way as I think it is constant, but I might be wrong.
 

By the way, keekkenen is right. Pay attention to the need to specify the name of the instrument in the OrderSend() function.

About my question. I too now believe that this distance is constant, but in fact it is not. During night time, as well as during important events, the minimum distance for placing pending orders almost always increases. Because of this, sometimes some positions don't go through...

 
keekkenen >>:

вообще-то ошибка сама за себя говорит ERR_STRING_PARAMETER_EXPECTED

в функцию OrderSend() название инструмента (пары) нужно передавать в явном виде (Symbol() или "EURUSD" например), она не понимает NULL

ну и стоплос для продаж считать от аск + столько-то пунктов


That's right! Thank you!
Reason: