Errors, bugs, questions - page 1235

 

What program are you running it in? Are you trying it in a script? Change it to an indicator or expert.
And add

Print("Set timer");
Return INIT_SUCCEED;

 
JAG_MistR:

Question: Why isn't it working? Blew my mind...(((.

Maybe you didn't have the patience to wait 60 seconds?)

>ALXIMIKS

In the script timer does not work.

 
ALXIMIKS:

What program are you running it in? Maybe you're trying it in a script? Change it to indicator or expert.
You can also add

Print("Set timer");
Return INIT_SUCCEED;

set return INIT_SUCCEED; - didn't help...

It's an EA, I'm testing it in the tester... maybe it doesn't work in the tester?

================

I addedthePrint(GetLastError()) command tobool setTimer=EventSetTimer(60); ;

As a result I got an error 4051 (Invalid value of a function parameter).

I tried to enter it in different ways, I even changed the amount. I'm shocked, it doesn't work!

I began to dig through the Internet for examples of ready-made jobs that use this function, and oh boy, they don't work either...

Maybe I do not understand something?

 
JAG_MistR:

set return INIT_SUCCEED; - didn't help...

It's an EA, I'm testing it in the tester... maybe it doesn't work in the tester?

================

I addedthePrint(GetLastError()) command tobool setTimer=EventSetTimer(60); ;

As a result I got an error 4051 (Invalid value of a function parameter).

I tried to enter it in different ways, I even changed the amount. I'm shocked, it doesn't work!

I began to dig through the Internet for examples of ready-made jobs that use this function, and oh boy, they don't work either...

Maybe I don't understand something?

It works in four and five, but not in the tester.

//+------------------------------------------------------------------+
//|                                                   test_timer.mq4 |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
 uint count;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
   EventSetMillisecondTimer(3000);
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   EventKillTimer();
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
  }
//+------------------------------------------------------------------+
void OnTimer()
  {
     count++;
    Print   (count, " : ", SymbolInfoDouble(_Symbol,SYMBOL_BID));
  }
//+------------------------------------------------------------------+

..

 
pako:

works in fours and fives, but not in the tester

..

It's funny, how do you check if it works then? In real life it takes a long time...

 
stringo:
Which of the results is correct? In build 975 or in build 1010?
For me, the ones in 975. The cloud agents from build 1010 are also nonsense and money down the drain, so I excluded them from testing and stayed on 975.
More detailed analysis is not engaged and attempts to understand why the tester does not work in 5ka - not taken, because there is not much time,
And what's the use, only the developer can fix it anyway. I would dig, if only my expert did not work, but no, all do not work, including from the examples of MQ.
 
crOss:
For me, the ones in 975. The cloud agents from build 1010 are also nonsense and money down the drain, so I excluded them from testing and stayed on 975.
More detailed analysis is not engaged and attempts to understand why the tester does not work in 5ka - not taken, because there is not much time,
And what's the use, only the developer can fix it anyway. I would dig, if only my expert does not work, but no - all do not work, including from the examples of MQ.

Actually, there are a few nuances.

For example, swaps for volumes less than 1 lot were counted incorrectly in the 975 build. In the 1010 build this has been corrected

 
Can you tell me if there are classes of data array approximation in MQL, it seems to be a useful thing, I'm too lazy to write it myself)
 

Подскажите пож. может где на просторах MQL есть классы по аппроксимации массива данных?, вроде нужная в хозяйстве вещь, лень самому писать) 

look in the ALGLIB to see if there is

 
ALXIMIKS:

look in the ALGLIB to see if there is

Thanks, I'll look into it.
Reason: