Errors, bugs, questions - page 1047

 
FAQ:
New this button, with the display of news in friends' feeds. Even if you turn off "show in feed", it still lights up when a news item from an already disconnected one appears.
Yes, there's that too.
 

At the very least, you need to set for max bars in the *requires terminal restart window

it's a lot of code to work with...

 

MQ Demo server.

In settings - max. bars per window = 100000

2013.08.22 10:37:55     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:52     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:44     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:41     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:41     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:38     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:30     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:27     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:27     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:27     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:25     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:24     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:21     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:21     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:19     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:12     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:09     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:09     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:09     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:37:06     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100001;  ArrSize(close) ==100001
2013.08.22 10:37:02     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:36:59     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:36:59     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:36:56     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:36:38     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:36:36     prev_calc_Test (EURUSD,M1)      prev_calculated == 100000;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:36:32     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100000;  ArrSize(close) ==100000
2013.08.22 10:36:18     prev_calc_Test (EURUSD,M1)      prev_calculated == 0;  rates_total ==100168;  ArrSize(close) ==100168
 
MetaDriver:

Yeah, right, tried that, got that "oops" - pure bug, for a service desk.

So (as I understand) innocent, unsuspecting indicator is called with rates_total==100000, but request CopyRates(,,100000,) leads to a pop (array out of range in ...) - the terminal already has only 50000 available.

I also remembered.

When I was told in three pages that Bars was working fine. I switched max bars without a second thought and tried to check. Since I didn't see the connection, I didn't write that without reloading the terminal I was making it all up...

I don't use Bars, but maybe that was the hitch. Because I couldn't reproduce it the next day. And just didn't go into the settings anymore, I've always got unlimited.

It's just for developers, may be useful.

 
Silent:

I also remembered.

When I was told on three pages that Bars were fine. I switched max bars without a second thought and tried to check. Since I didn't see the connection, I didn't write that without reloading the terminal it was all composed...

I don't use Bars, but maybe that was the hitch. Because I couldn't reproduce it the next day. And just didn't get into settings anymore, I always have unlimited.

It's just info for developers, may be useful.

I don't use regular prev_calculated for a long time, I declare globally prev_calc and count with it (I live happily and am very fat :)

Although, of course, this bug must be fixed. At least if rates_total did not change, then reset prev_calculated to zero, but if changed to a smaller value, then you must.

 
Urain:

I don't use regular prev_calculated for a long time, I declare globally prev_calc and take it into account (I live happily and am very fat :)

...

Thanks, that's for the documentation :)

 
Silent:

Thank you, that goes in the documentation :)

It's in the ServiceDesk.
 
Urain:
It's at ServiceDesk.

They've already been told everything.

You're just too mature a programmer to appreciate the value of your advice. For me, as an eternal dummie - this is on the verge of discovery :) so into the (personal) documentation.

 
Silent:

They have already been told everything.

You're just too old a programmer to appreciate the value of your advice. For me, as an eternal dummie - this is on the verge of discovery :) so in the (personal) documentation.

Well, in your personal documentation, then, there's this.

if(prev_cal>rates_total-1)prev_cal=0;

Forced start of recalculation if history was trimmed to maxbars in window and rates_total became less.

The error is not critical (it will be corrected on the next tick), but on the same tick where the history was trimmed there will be a shift of the graph due to mismatch and recalculation will be blocked by the cycle condition because prev_cal>rates_total and it means there will be no entry into the cycle.

 
Urain:

Well, in the personal documentation, then, there's this.

Forced start of recalculation if the history was trimmed to maxbars in the window and rates_total became less.

The error is not critical (it will be corrected on the next tick), but on the same tick where the history was trimmed there will be a shift of the graph due to mismatch and recalculation will be blocked by cycle condition because prev_cal>rates_total and therefore there will be no entry into the cycle.

Ok, thanks.

Reason: