Discussion of article "Library for easy and quick development of MetaTrader programs (part VIII): Order and position modification events" - page 4

 

Artyom.

Screen attached.

I.e. it passes through sl and tp levels as if they are not there at all.

Today I tried it on another computer - everything is normal, sl and tp trigger without problems. It turns out that only my PC has these problems. I also tried it on my PC, but on a virtual machine - everything is fine too (same code everywhere).

In general, the situation is unclear....

Files:
16wt3yvz98.png  93 kb
 
MQL_User virtual machine - everything is fine too (same code everywhere).

In general, the situation is unclear....

Good evening, "confusion" can still occur when a 32-bit version of Windows is installed on a personal computer.

Regards, Vladimir.

 
MQL_User virtual machine - everything is fine too (same code everywhere).

In general, the situation is unclear....

And what is written in the "Experts" log?

 

Vladimir, Artem.

My PC has a 64-bit version of Windows10 installed, as well as others on which sl and tp trigger normally. Nothing is written in the "Experts" log. But if I do it in the tester, I understand that nothing should be written there.

But what is interesting is that if I switch on trailing all then tp starts triggering. I assumed that maybe trade.PositionModify(...) has some effect? But I tried in my Expert Advisor to modify it immediately after opening a position (slightly change sl and tp) - it didn't help.

Maybe Windows settings somehow affect it (it works fine on other computers)?