Forum

wrong TimeLocal() value

I`m using the newest version MetaTrader v 5.0 build 2507 (26 Jun 2020). I`ve never get a problem with obtain a correct system time of my computer in Metatrader 5 by get it using TimeLocal() function , but now my EA obtaining a wrong value equal to TimeCurrent() from trade server. is this a bug or

Metaeditor fail to work

Hello is anybody nows how to force Metaeditor5 works at the debugging program when it stops? it looks like it whait for tick in function OnTick in EA after passed OnInit function. MetaTrader terminal works normaly. Any help

How to prevent from calling closing position on each tick twice

I wrote a simple EA and I have a big problem I want to call on each tick closing position when profit is generated, but I have a serious problem with closing position only once Sometimes ticks are generated too fast and function generates signal to close position twice I want to have this call from