Errors, bugs, questions - page 1682

 
fxsaber:
You are forcing me to complain about you as being completely unwilling to hear what your opponent writes.
This is your right, my task is to inform you that there are no strict rules on the number of calls to OnCalculate() - because this function essentially reflects the reaction to events: either history paging, or history changing (arrival of fresh ticks) or preparation of the trading environment.
 
Sergei Vladimirov:
Look in the Func() body to see what it returns before exiting. I'm talking about a special case. If the value will be calculated directly in parentheses, of course, there's no way.
Then there's no sense in using the second F5!
 
fxsaber:
Thanks. I can't figure out why the indicator calls OnCalculate twice in the beginning. I'd like to find out what event this response is for. There are no events visible on the debugging, unfortunately.

Answer from Service Desk on this subject:

Specifically depends on the checksum.

The history may not have swapped (may well be a modification of an existing history without adding new data), but the checksum has changed significantly

 
Karputov Vladimir:
This is your right, my task is to inform you that there are no strict rules on the number of calls OnCalculate() - because this function essentially reflects the reaction to events: either history paging or history changing (arrival of fresh ticks) or trade environment preparation.

You are free to set yourself whatever tasks you like. But please don't, at least to me, answer questions I don't ask.

I know how to use even undocumented features of OnCalculate. Please don't talk about "lukewarm" when asked about a completely different area.

 
Alexey Kozitsyn:

Response from Service Desk on this issue:

No, that's not the point at all. Read the conversation at the beginning of the previous page.
 
Alexey Kozitsyn:

Response from Service Desk on this issue:

Thank you, but there was a hasty response here too. See example.
 

Build 1010 of 18 August

Problem with loading history

2016.09.13 09:51:02.539 Windows 7 Ultimate (x64 based PC), IE 11.00, 8 x Intel Core i7-6700 @ 3.40GHz, RAM: 18768 / 32684 Mb, HDD: 35417 / 1498122 Mb, GMT+02:00


such problem:

is DRWEB.

I can not download history with enabled antivirus. antivirus does not tell me about the blocked ports

Terminal is inallowed programs, but when enabled antivirus - history is not downloaded.

There is nothing in the log, I.e. History download slider stands still, after pressing STOP - just writes

2016.09.13 10:04:52.424 HistoryCenter: error reading data

2016.09.13 10:03:04.944 HistoryCenter: GBPUSD_2004_07 loaded (115 kb)

2016.09.13 10:03:04.621 HistoryCenter: GBPUSD_2004_06 loaded (118 kb)

I disabled the antivirus - the downloading process started, downloaded a couple of years - then it stopped again and does not go any further.

I restarted history downloading a couple of times - and after 10-15 tries all the history was downloaded.

 
fxsaber:
Thank you, but you rushed the answer here as well. See example.

I understand you are talking about the debugger. My question sounded like this:

Description of the problem.

I am writing an indicator. MT4. I get (in a way I do not understand) a reset of prev_calculated to 0 after it should have become non-zero after the first tick. I.e. double.

The result is in the log:

2016.03.15 13:54:36.545 test_indicator_15032016 EURUSD,M1: initialized
2016.03.15 13:54:36.545 test_indicator_15032016 EURUSD,M1: OnCalculate: prev_calculated = 0, rates_total = 5000
2016.03.15 13:54:36.757 test_indicator_15032016 EURUSD,M1: OnCalculate: prev_calculated = 0, rates_total = 5008

Hadn't noticed before, but is this a bug or is it supposed to be?

Let's assume that the history was pumped up (rates_total increased). But still can get similar:

2016.03.15 13:55:40.661 test_indicator_15032016 EURUSD,M15: OnCalculate: prev_calculated = 0, rates_total = 5000
2016.03.15 13:55:40.569 test_indicator_15032016 EURUSD,M15: OnCalculate: prev_calculated = 0, rates_total = 5000 

2016.03.15 13:55:40.569 test_indicator_15032016 EURUSD,M15: initialized

In this case I was doing an unpriming.

 
Alexey Kozitsyn:

I understand you are talking about the debugger. My question sounded like this:

In this case, I was doing an unpriming.

Your case has nothing to do with what I was asking. Thank you for your willingness to help.
 
fxsaber:
Your case has nothing to do with what I was asking about. Thank you for wanting to help.
You're welcome, my answer was about why OnCalculate() is called twice (three times) first, not about the debugger bug.
Reason: