Errors, bugs, questions - page 2738

 
shev1404:

Afternoon.

Stumbled across an incomprehensible thing and don't understand what it is.

There are two functions which are used in different strategies. Logically, the code in checks like

It should not be executed if one of the conditions is wrong. But for some reason it is executed if the magic number and the magic number passed into the function are NOT EQUAL.

It seems to be an integer type comparison. I cannot understand why. You can see it in the screenshot below.


IsSetSell(magic,ExtDP)
What does this function do?
 
Anton:

Can you comment on it?

Forum on trading, automated trading systems and trading strategy testing

Bugs, bugs, questions

Alexey Kozitsyn, 2020.05.12 14:10

The device hangs permanently while debugging indicators in MT4 if I switch to chart.

For example it happens during debugging of CCI standard indicator.

1. Set a breakpoint;

2. Press F5;

3. Switch to the graph.

Result - the debugger graph hangs.

You can also simply press F5 several times during debugging - the chart hangs.

Build 1260.

Debugger settings:

 
Anton:
What does this function do?

Checks the distance from the last position with a certain magician.

Logically, if checking the magician of the position with the magician I want fails, then this function should not come up either.

 
Defect with www.mql5.com, when opening a forum page from the home page the new post is not highlighted with a blue background when it is the very first (top) on the open page.
 

Mt 4

I get this

2020.05.13 18:05:09.335 Access violation write to 0x0335346E

2020.05.13 18:05:09.276 VR EURUSD,H4: 1 leaked strings left

2020.05.13 18:11:11.126 Access violation write to 0x033403B7

2020.05.13 18:37:13.585 Access violation write to 0x03093648

 
Vladimir Pastushak:

Mt 4

I get this

2020.05.13 18:05:09.335 Access violation write to 0x0335346E

2020.05.13 18:05:09.276 VR EURUSD,H4: 1 leaked strings left

2020.05.13 18:11:11.126 Access violation write to 0x033403B7

2020.05.13 18:37:13.585 Access violation write to 0x03093648

Dll. You won't know where you blew off a limb without the code)))

 
Vladimir Simakov:

Dll. You won't know where you blew off a limb without code)))

No DLL

Tried disabling the DLL in the terminal settings and in the indicator does not help.
 
Vladimir Pastushak:

No DLL

Well, let's look at the code then. String can leak only together with dynamic object, and access error without dll - that's interesting...
 
Vladimir Simakov:
Well, then let's look at the code. The string can leak only together with dynamic object, and access error without dll - it's already interesting...

I have identified by exception, the error appears if there is a template attached to the chart which already has an indicator on it.

 
Vladimir Pastushak:

I have identified by exception, the error appears if there is a template attached to the chart which already has an indicator on it.

Without the code, it's just guessing by coffee grounds...
Reason: