Errors, bugs, questions - page 2178

 
Alexey Viktorov:

If you then put it back into the structure

it will show up fine.

day_of_week = 5

day_of_year = 88

I see. Thanks for checking - far away from the computer myself.

 
Nikolai Semko:

A very strange pause of 22 seconds. Who can explain it?

result:

Maybe a history download from someone else's timeframe?
 
Artyom Trishkin:
Maybe it's loading history from another timeframe?

Yes it takes a long time to load from the current one. I have 22 symbols to load to a depth of only 250 bars, but mt5 terminal does it as if someone walked to the DC to get quotes. The same actions happen instantly in mt4.

 
Artyom Trishkin:
Maybe the history is being loaded from another timeframe?

No, it has nothing to do with loading.

If I take not a zero-start bar, but, say, 50 bars, then everything is OK. Instantly.

if(CopyTime(_Symbol,PERIOD_H4,50,1,Arr)<0) Print("Ошибка");

And if I take it up to and including 30 bar, it freezes. After that, it doesn't.

DEFINITELY A BUG!

 
Nikolai Semko:

No, it has nothing to do with loading.

If you don't take a zero start bar but say 50 bar, then everything is OK. Instantly.

And if I take it up to and including 30 bar, it freezes. After that, it doesn't.

IT'S DEFINITELY A BUG!

First time I come to this thread and there it is !

how do i work ?

how do i explain 30 bar to the customer ?

I'll check it out myself !
 
Nikolai Semko:

No, it has nothing to do with loading.

If I take not zero starting bar, but say 50 bar, then everything is OK. Instantaneous.

And if I take it up to and including 30 bar, it freezes. After that, it doesn't.

IT'S DEFINITELY A BUG!

I take from "0" to "250" - I wrote down the result.

 
Vitaly Muzichenko:

I'm taking from '0' to '250' - I've written the result.

MT5?

 
Nikolai Semko:

MT5?

i checked ! the code is from Nikolai Semko, i thought the script was complete, then bam - the second line appeared

00:09:39.980 Test (EURUSD,M15) 1 2018.03.30 20:00 CurrentTime = 2018.03.30 23:59

00:09:57.313 Test (EURUSD,M15) 2 CurrentTime = 2018.03.30 23:59

 
Nikolai Semko:

MT5?

Forum on trading, automated trading systems and trading strategy testing

Bugs, bugs, questions

Vitaly Muzichenko, 2018.03.30 22:50

Yes it takes a long time to load from the current one. I have 22 symbols to load only 250 bars deep, mt5 terminal does it as if someone has walked to DCs for quotes. In mt4 the same actions happen instantly.


 
Vitaly Muzichenko:

I take from '0' to '250' - I've written the result.

Actually, it might be a floating bug. Because at first I observed it on another combination of timeframes, but then it disappeared on them. I noticed it in this combination.

It is possible that it still depends not only on TF, but also on the time zone.

Reason: