Denn1Ro / MQL_Easy

Framework/Library for cross platform MQL development
MIT License
53 stars 29 forks source link

IsNewBar don't work #16

Open elijunior01 opened 1 year ago

elijunior01 commented 1 year ago

CUtilities utils("EURUSD");
if(utils.IsNewBar(PERIOD_M1)){ Print("One Minute Passed!!!"); }

The function IsNewBar() don't work properly for mql4 MT4 build 1380 x86 Windows 7. Every tick it's said is new bar.

Denn1Ro commented 3 months ago

As we test the functionality, it seems that it works correctly on the latest version of Metatrader 4. I would like to ask where the initialize of object utils("EURUSD") happens? If it is initialized inside the OnTick function, then the message "One Minute Passed!!!" should be printed on every tick because the object is created on every tick. The initialization of the object utils should be inside OnInit function.